General

Profile

fitmap (Justin Peal)

  • Login: fitmap
  • Email: fitmap@163.com
  • Registered on: 10/07/2014
  • Last sign in: 04/12/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 9 9

Activity

04/03/2025

02:33 AM Ruby Bug #21215 (Closed): IRB upto yield self when self is little then end_val
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)

03/28/2025

01:12 AM Ruby Bug #21199: Psych.dump and load on Date before 1582-10-15
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)

03/27/2025

09:22 AM Ruby Bug #21199 (Third Party's Issue): Psych.dump and load on Date before 1582-10-15
The code is:
```ruby
require 'date'
require 'psych'
date = Date.new(1582, 10, 4)
p "date=#{date.inspect}"
str = Psych.dump(date, permitted_classes: [Date])
p "str=#{str}"
date2 = Psych.load(str, permitted_classes: [Date])
p ...
fitmap (Justin Peal)

06/30/2021

06:03 AM Ruby Bug #18016 (Closed): fiddle\types.rb typealias maybe wrong
in ...\lib\ruby\3.0.0\fiddle\types.rb
module Fiddle
module Win32Types
def included(m) # :nodoc:
m.module_eval{
# ...
typealias "HANDLE", "uintptr_t"
# ...
typealias "HINSTANCE", "unsi...
fitmap (Justin Peal)

06/03/2021

10:15 AM Ruby Bug #17934: clipboard gem fail on Ruby 3.0.1
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)

06/02/2021

09:50 AM Ruby Bug #17934 (Third Party's Issue): clipboard gem fail on Ruby 3.0.1
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)

08/04/2020

03:36 PM Ruby Bug #17101: YAML.load_file: Massive slowdown under Ruby 2.7 vs. Ruby 2.4
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)

08/03/2020

03:19 PM Ruby Bug #17101 (Closed): YAML.load_file: Massive slowdown under Ruby 2.7 vs. Ruby 2.4
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)

10/01/2017

05:36 AM Ruby Bug #13959 (Rejected): IO.write(filename, Marshal.dump(obj), :encoding => 'binary') != File.open(filename, 'wb') { |fil| Marshal.dump(obj, fil) }
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)

08/01/2017

10:30 PM Ruby Bug #13778 (Closed): net/http.rb:879 TCPSocket.open fail
I had a error on use evil-proxy in ruby 2.2.4, please see attached. fitmap (Justin Peal)

Also available in: Atom