ohler55 / oj

Optimized JSON
http://www.ohler.com/oj
MIT License
3.14k stars 251 forks source link

Add bigdecimal as dependency gem #901

Closed Watson1978 closed 1 year ago

Watson1978 commented 1 year ago

The bigdecimal gem will be changed bundled gem since Ruby 3.4.0. https://www.ruby-lang.org/en/news/2023/09/14/ruby-3-3-0-preview2-released/

To use bundled gem, it requires to specify the dependency in Gemfile.

This patch will fix following warning with Ruby 3.3.0-preview2.

/Users/watson/.rbenv/versions/3.3.0-preview2/lib/ruby/gems/3.3.0+0/gems/oj-3.16.1/lib/oj/mimic.rb:3: warning: bigdecimal will be not part of the default gems since Ruby 3.4.0. Add bigdecimal to your Gemfile. Also contact author of  to add bigdecimal into its gemspec.