irb(main):001:0> 1.upto(0) { |k| p k } => 1 1 irb(main):002:0> 0.downto(1) { |k| p k } => 0 0 Save these statements to script and run the script, no output. ====== Sorry, It is not a bug, Just the IRB Echo of return value o...fitmap (Justin Peal)
I suggest Psych.dump and Psych.load should deal the date as the default style Date::ITALY, like Date.new. Normal people only know Date::ITALY, which skip 1582-10-05~1582-10-14. I also suggest Date.to_s should convert inner date style to ...fitmap (Justin Peal)
In Windows x64, SIZE_T and HGLOBAL (and other handles) in Fiddle shoule be map to void*(64 bits), not uint(32 bits). So gem clipboard V1.3.5 got a pointor failure. Attachment fix this bug, just for Windows platform.fitmap (Justin Peal)
gem install clipboard (Which was used well in Ruby 2.XX): Fetching clipboard-1.3.5.gem Successfully installed clipboard-1.3.5 Parsing documentation for clipboard-1.3.5 Installing ri documentation for clipboard-1.3.5 Done installing ...fitmap (Justin Peal)
I run this program on Windows 10 64-bit. Very very slow: I wait more than 10 minutes, then I press Ctrl-Break. Now I install Ruby 2.6, then the program runs as fast as Ruby 2.4.fitmap (Justin Peal)
When use Ruby 2.4, the following program runs fast, After ungrade to Ruby 2.7, the same program runs very very slow. Please unzip the attach first for test. require 'yaml' YAML.load_file('qlnv_h_h.yaml')fitmap (Justin Peal)
For some complex objects, IO.write(filename, Marshal.dump(obj), :encoding => 'binary') and File.open(filename, 'wb') { |fil| Marshal.dump(obj, fil) } can create different file content, and these files can't load each other by ...fitmap (Justin Peal)