Not sure if a +1 would do anything, but I like the idea of `Thread#report_on_exception` defaults to true. For quick and one time scripts, it's tedious to write `Thread.current.abort_on_exception = true` all the time, and it shouldn...godfat (Lin Jen-Shin)
Eric Wong wrote: > Oops, can you try the following? > ... Haha, indeed this works. I was reading the source yesterday for a while, thinking that the order should be preserved. There's GVL and it shouldn't insert into the list randoml...godfat (Lin Jen-Shin)
Here's the story. I wrote a testing framework which could run test cases in parallel. To accumulate the number of assertions, I could just use a shared number and lock it for each testing threads. However, I would also like to detec...godfat (Lin Jen-Shin)
normalperson (Eric Wong) wrote: > "godfat (Lin Jen-Shin)" <[email protected]> wrote: > ... Yes, thank you for your support. I've added a test for this and updated the patch in the attachment. The updated commit on Github is located...godfat (Lin Jen-Shin)
This patch makes `IO.copy_stream' always copy in binary mode, fixing the following scenario: require 'tempfile' require 'stringio' Encoding.default_internal = 'UTF-8' out = Tempfile.new('out') out.binmode ...godfat (Lin Jen-Shin)
=begin I wonder if this is not a valid YAML, should we allow it? According to http://yaml-online-parser.appspot.com/
ERROR: while parsing a flow node expected the node content, but found ':' in "<unicode string>", line 1,...godfat (Lin Jen-Shin)