General

Profile

hsbt (Hiroshi SHIBATA)

  • Login: hsbt
  • Email: hsbt@ruby-lang.org
  • Registered on: 04/26/2009
  • Last sign in: 10/11/2026

Issues

open closed Total
Assigned issues 65 434 499
Reported issues 17 242 259

Projects

Project Roles Registered on
Ruby Committer, Contributor, Release Manager, Security team, Infrastructure team 01/25/2013

Activity

Today

01:09 AM Ruby Revision 6b66a7e1 (git): [ruby/rubygems] Compare YAML null scalars without allocating an array
["~", "null"].include?(val) allocates an array on every plain scalar on Ruby 3.3 and older, where include? on an array literal is not optimized. Use a frozen constant instead.
https://github.com/ruby/rubygems/commit/8319439744
Co-Autho...
hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision 6926e656 (git): [ruby/rubygems] Avoid a word codespell flags in a YAML serializer test
codespell read "caf\xC3\xA9", the bytes of "café" spelled out in a string literal, as a misspelling of "calf". Any raw UTF-8 bytes serve the test, so use those of a Japanese character instead.
https://github.com/ruby/rubygems/commit/271...
hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision 41e7a8f7 (git): [ruby/rubygems] Unescape the remaining YAML double-quoted escapes
Psych writes NEL as "\N" and a BOM or other non-printable characters as "\uXXXX" or "\UXXXXXXXX", but those escapes stayed in the loaded string as is. Restore them along with "\_", "\L" and "\P". Metadata is read as binary, so a non-ASCI... hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision d5b9496e (git): [ruby/rubygems] Keep quoted commas inside a YAML flow sequence entry
A flow sequence was split on every comma, so a quoted entry containing one, as in ["x, y", z], came back as the fragments "\"x" and "y\"". Scan the entries so a quoted one is taken whole.
https://github.com/ruby/rubygems/commit/b3de2a6c...
hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision 7e58ec2f (git): [ruby/rubygems] Apply the strip chomping indicator of YAML block scalars
The strip indicator only took effect when it was the whole header, so "|2-" written by Psych kept the trailing line break, and even "|-" removed just one of several. Read the chomping indicator next to an indentation indicator and remove... hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision c593a9e7 (git): [ruby/rubygems] Keep spaces beyond the indentation on blank-looking block scalar lines
A block scalar line holding only spaces became an empty line even when it had more spaces than the indentation, which are content in YAML. Gem::YAMLSerializer.dump writes such lines for strings like "x\n \ny\n", so they did not survive... hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision 79a78fb1 (git): [ruby/rubygems] Stop folding a plain YAML scalar at a comment line
A more indented comment line after a plain scalar was folded into the value, so "ssl_ca_cert: /path" followed by an indented comment in ~/.gemrc loaded as "/path # comment". A comment line ends a plain scalar, so treat it like a blank li... hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision d0693e50 (git): [ruby/rubygems] Honor the indentation indicator of YAML block scalars
Psych writes a block scalar whose first line starts with spaces as "|2", but the parser ignored the digit and took the indentation from that first line. A description such as " Indented first line\nsecond line\n" lost its leading spaces... hsbt (Hiroshi SHIBATA)
01:09 AM Ruby Revision 70e332c8 (git): [ruby/rubygems] Skip comment and blank lines inside nested YAML collections
Gem::YAMLSerializer ended a nested sequence or mapping at the first comment or blank line, so the entries after it were dropped or moved to the root mapping. Commenting out one of the :sources: in ~/.gemrc silently removed every source a... hsbt (Hiroshi SHIBATA)
12:53 AM Ruby Revision cf8f58a9 (git): [ruby/rubygems] Point the from: and to: of 4.1.0.beta2 overrides at in: and with:
Otherwise `override "b", from: "a", to: "c"` from a beta2 Gemfile fails as an unsupported `from:` field, which does not say how to write it now.
https://github.com/ruby/rubygems/commit/28df3adad7
Co-Authored-By: Claude Opus 5.5 <norepl...
hsbt (Hiroshi SHIBATA)

Also available in: Atom