This affects all versions from 1.8 to 2.0 I have tested. I'd expect all three examples below to have the same output, but not only does the example with module_function end up with a private instance method, it also has the wrong one....manveru (Michael Fellinger)
I've reduced the code a bit, calling `force_encoding` seems to cause it, and calling `valid_encoding?` repairs the damage. s = 'abc' p [s.slice(3), s.slice(3, 1)] [nil, ""]
=begin I've found a bug where if the target server sends an eof to the socket, net/http will raise an error. I've attached a sample script to prove the bug and a patch to fix it. I wrote the patch against 1.8, but I think it should...manveru (Michael Fellinger)
=begin The documentation of Kernel.methods doesn't cover the optional argument. It's covered by RubySpec, so I think the docs should mention it. =end manveru (Michael Fellinger)
=begin Hi Naruse, Allowing for the flag to be passed is fine, I'm not that eager on the /g or /G syntax itself as long as I can do it another way. I'll try your patch and get back to you, FWIW, this is almost identical to what I did i...manveru (Michael Fellinger)
=begin That's one out of many, and the shortest I could find. My other samples still fail... here's a quick paste from when I try to convert the Markdown bundle: http://pastie.org/851062 =end manveru (Michael Fellinger)