mattsears/nyan-cat-formatter

JSON Warnings in Ruby 2.3.0

Closed this issue · 2 comments

I recently started getting this error locally when using the lovely NyanCat. Thoughts?

-->> COVERAGE=true RAILS_ENV=test bundle exec rspec --format NyanCatFormatter
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:4: warning: already initialized constant JSON::VERSION
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/version.rb:3: warning: previous definition of VERSION was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_ARRAY
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MAJOR
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_MINOR
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/version.rb:8: warning: already initialized constant JSON::VERSION_BUILD
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:100: warning: already initialized constant JSON::NaN
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:99: warning: previous definition of NaN was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:102: warning: already initialized constant JSON::Infinity
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:101: warning: previous definition of Infinity was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:104: warning: already initialized constant JSON::MinusInfinity
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:103: warning: previous definition of MinusInfinity was here
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/2.3.0/json/common.rb:129: warning: already initialized constant JSON::UnparserError
/Users/chrishough/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.6/lib/json/common.rb:128: warning: previous definition of UnparserError was here
Run options: include {:focus=>true}

2.3.3 resolved for me

I think that fixed it @rileytg