awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

Warning: constant ::Fixnum is deprecated (ruby 2.4.0) #299

Closed thbar closed 7 years ago

thbar commented 7 years ago

I'm upgrading an app to ruby 2.4.0 and noticed this warning, so I thought I'd report it here (although it's not blocking at this point) :

/Users/thbar/.rvm/gems/ruby-2.4.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated

Related:

gerrywastaken commented 7 years ago

@thbar Thanks for that :)

gerrywastaken commented 7 years ago

Merged that change, there are still some references to fixnum which should probably be updated though. Will update here when I've pushed a new release to Rubygems.

alexandre-mbm commented 7 years ago

Workaround: http://stackoverflow.com/a/42336144/3391915

export RUBYOPT="-W0"
codebycliff commented 7 years ago

How long before a release is going to be cut? I'm also experiencing this deprecation warning on 2.4.0. I'm trying to figure out if I should just point to master in my gemfile or wait for a release. Thanks in advance for your time.

Dr4hcir commented 7 years ago

Same question here. Before getting into the workaround, is there a fix coming soon? Thanks for the help

tisba commented 7 years ago

Looks like this is fixed in master, maybe we can cut a new version soonish? :)

nogweii commented 7 years ago

It's be nice to cut a release soon, though I don't know if you want to tackle any of the issues in the v2 milestone, or perhaps instead a 1.8 release?

mattscilipoti commented 7 years ago

Since this update has been ready for a while, I recommend a 1.x release.

Zhomart commented 7 years ago

It will be nice to have 1.8.0 or 1.7.1 sooner.

alexandre-mbm commented 7 years ago

Since this update has been ready for a while, I recommend a 1.x release.

Here I have 1.7.0 and it is buggy also. The command gem install does not update.

kikonen commented 7 years ago

Q: what's status on this?

imajes commented 7 years ago

so sorry -- life has been one project after another. Well, a year between releases can't be bad for a simple stable gem ;)

Here's to 1.8.0 ! :beers: 👍 💯

thbar commented 7 years ago

@imajes don't apologise, you owe use nothing :-) Thanks for the release!

artmai commented 6 years ago

I had the same error and I've just added the following in my gem file and it worked: gem 'selenium-webdriver' gem 'chromedriver-helper'

Hope that helps!