[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23115] [Bug #1351] Net::HTTP - set_form_data no longer allows symbols as keys.

From: "bryan o'connor" <redmine@...>
Date: 2009-04-04 04:24:32 UTC
List: ruby-core #23115
Bug #1351: Net::HTTP - set_form_data no longer allows symbols as keys.
http://redmine.ruby-lang.org/issues/show/1351

Author: bryan o'connor
Status: Open, Priority: Normal
Category: lib, Target version: 1.9.1
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9]

ruby-1.8 allowed symbols as keys in set_form_data.  ruby-1.9.x does not.

for example:
  require "net/http"
  p = Net::HTTP::Post.new("/")
  p.set_form_data({:key => "value"})

the documentation doesn't explicitly state that this is allowed, but there are a few projects that rely on it.

if it is indeed a bug, i've attached a trivial patch.  if not, i will submit bug reports to the individual projects.

thanks,
  ...bryan


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next