Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: constant ::Bignum is deprecated #39

Open
trevor opened this issue Jun 27, 2017 · 1 comment
Open

warning: constant ::Bignum is deprecated #39

trevor opened this issue Jun 27, 2017 · 1 comment

Comments

@trevor
Copy link

trevor commented Jun 27, 2017

% ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

irb(main):001:0> require 'edn'
/usr/local/lib/ruby/gems/2.4.0/gems/edn-1.1.1/lib/edn/core_ext.rb:97: warning: constant ::Bignum is deprecated
@trevor
Copy link
Author

trevor commented Feb 23, 2023

Bignum has been removed in Ruby 3.2, this now causes an error instead of a warning.

Ref: https://rubyreferences.github.io/rubychanges/3.2.html#removals

% ruby --version
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]

irb(main):001:0> require 'edn'
/opt/homebrew/lib/ruby/gems/3.2.0/gems/edn-1.1.1/lib/edn/core_ext.rb:97:in `<top (required)>': uninitialized constant Bignum (NameError)

Bignum.send(:include, EDN::CoreExt::Bignum)
^^^^^^
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in `require'
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in `require'
	from /opt/homebrew/lib/ruby/gems/3.2.0/gems/edn-1.1.1/lib/edn.rb:4:in `<top (required)>'
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:162:in `require'
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:162:in `rescue in require'
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:152:in `require'
	from (irb):1:in `<main>'
	from /opt/homebrew/Cellar/ruby/3.2.1/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `load'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `<main>'
<internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in `require': cannot load such file -- edn (LoadError)
	from <internal:/opt/homebrew/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in `require'
	from (irb):1:in `<main>'
	from /opt/homebrew/Cellar/ruby/3.2.1/lib/ruby/gems/3.2.0/gems/irb-1.6.2/exe/irb:11:in `<top (required)>'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `load'
	from /opt/homebrew/opt/ruby/bin/irb:25:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant