You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveSupport is apparently busted in latest (7.1.3.? as of October 2023, it seems). Example:
➜ project git:(main) ✗ gem install whois-parser
Successfully installed whois-parser-2.0.0
Parsing documentation for whois-parser-2.0.0
Done installing documentation for whois-parser after 0 seconds
1 gem installed
➜ project git:(main) ✗ irb
irb(main):001> require 'whois-parser'
/Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.2/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>': undefined method `deprecator' for module ActiveSupport (NoMethodError)
deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
^^^^^^^^^^^
Did you mean? deprecate_constant
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.2/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.2/lib/active_support/duration.rb:3:in `<top (required)>'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/activesupport-7.1.3.2/lib/active_support/core_ext/time/calculations.rb:3:in `<top (required)>'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/whois-parser-2.0.0/lib/whois/parser.rb:16:in `<top (required)>'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/whois-parser-2.0.0/lib/whois-parser.rb:10:in `require_relative'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/whois-parser-2.0.0/lib/whois-parser.rb:10:in `<top (required)>'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:141:in `require'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:141:in `rescue in require'
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:135:in `require'
from (irb):1:in `<main>'
... 4 levels...
<internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- whois-parser (LoadError)
from <internal:/Users/user/.rbenv/versions/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from (irb):1:in `<main>'
from <internal:kernel>:187:in `loop'
from /Users/user/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/irb-1.11.0/exe/irb:9:in `<top (required)>'
from /Users/user/.rbenv/versions/3.3.0/bin/irb:25:in `load'
from /Users/user/.rbenv/versions/3.3.0/bin/irb:25:in `<main>'
irb(main):002>
This seems resolved when forcing a downgrade to ActiveSupport 7.0.8:
Adding require 'activesupport' to my code got this working - apparently it's needed because of the way activesupport is being used. I'm not a Ruby coder so no clue what that means, I'm just trying to get whois and whois-parser to work.
This is related to rails/rails#49495
ActiveSupport is apparently busted in latest (7.1.3.? as of October 2023, it seems). Example:
This seems resolved when forcing a downgrade to ActiveSupport 7.0.8:
Pinning to that version in the gem should resolve things, if you cared to. Dunno if that breaks other things, but probably not.
My Ruby version is 3.3.0, installed with rbenv, from MacOS Homebrew. If that matters.
The text was updated successfully, but these errors were encountered: