General

Profile

postmodern (Hal Brodigan)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 12 34 46

Activity

01/12/2026

08:53 AM Ruby Misc #21834: Extract `yaml/store` into it's own gem that depends on the `pstore` gem
Note, while `pstore` is still available in Ruby 4.0.0 as a bundled gem, Bundler will refuse to load it unless it is explicitly listed in the `Gemfile` or gemspec. This means that if one's project uses any other gem which requires `yaml/s... postmodern (Hal Brodigan)
08:44 AM Ruby Misc #21834 (Assigned): Extract `yaml/store` into it's own gem that depends on the `pstore` gem
Ruby 4.0.0 removed the `pstore` gem from the set of default stdlib libraries. However, `yaml/store` is still available from the `yaml` library, but relies on the `pstore` gem which is now no longer part of stdlib. It is odd that a file w... postmodern (Hal Brodigan)

06/09/2024

01:26 AM Ruby Feature #20567 (Open): Net::HTTPResponse#detect_encoding should default to UTF-8 for application/javascript
It is fairly common now for JavaScript to include UTF-8 characters. If a misconfigured web server returns an `application/javascript` response for a JavaScript file, but *without* `charset=utf-8` in the `Content-Type`, `Net::HTTPResponse... postmodern (Hal Brodigan)
12:22 AM Ruby Bug #20566 (Closed): string << 0xC2 should raise a RangeError if the string encoding is Encoding::ASCII
I noticed that appending extended ASCII characters (0x80 - 0xff) works when the String's encoding is Encoding::ASCII, as well as Encoding::ASCII_8BIT. I was under the impression that Encoding::ASCII only covers the regular ASCII characte... postmodern (Hal Brodigan)

04/25/2024

09:58 PM Ruby Bug #20458: OpensSSL::SSL::SSLContext#min_version= and #max_version no longer accept Symbol values
Also I just now noticed that `SSLContext#ssl_version=` is deprecated. This issue can be closed. postmodern (Hal Brodigan)
09:42 PM Ruby Bug #20458: OpensSSL::SSL::SSLContext#min_version= and #max_version no longer accept Symbol values
Ah I see the problem now. `OpenSSL::SSL::SSLContext#ssl_version` accepts `:TLSv1*` symbols, but `#min_version` and `#max_version` only seem to accept `:TLS1*` symbols without the `v`. This seems inconsistent and prone to causing confusion. postmodern (Hal Brodigan)
08:45 PM Ruby Bug #20458 (Closed): OpensSSL::SSL::SSLContext#min_version= and #max_version no longer accept Symbol values
It appears that `OpenSSL::SSL::SSLContext#min_version=` and `#max_version=` no longer accept Symbol values, contrary to their [documentation](https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D). Inst... postmodern (Hal Brodigan)

03/08/2024

02:10 AM Ruby Bug #20328: optparse omits the option's description in the --help output if the description is an Array
Ah ha! I suppose also adding an explicit option type class would help differentiate between option's desired value and the description lines?
```ruby
opts.on('-m', '--multiline-opt', String, 'Line one', 'Line two') do |test|
end...
postmodern (Hal Brodigan)

03/07/2024

10:03 PM Ruby Bug #20328 (Rejected): optparse omits the option's description in the --help output if the description is an Array
If you define an option using `OptionParser#on`, but give the option's description as a multi-line Array, then the option's description is omitted from the `--help` output.
## Steps To Reproduce
```ruby
#!/usr/bin/env ruby
requ...
postmodern (Hal Brodigan)

10/09/2023

10:48 PM Ruby Feature #19915: URI::HTTP.build accepts user: and password: keyboard arguments, but do not populate #user or #password
I would expect either for unused options to raise an ArgumentError, or for `user:` and `password:` to be accepted and used. Since `URI::HTTP.build` is actually accepting a Hash [1], this makes it harder to validate the given Hash keys an... postmodern (Hal Brodigan)

Also available in: Atom