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

::Fixnum is deprecated #35

Open
beaucox opened this issue Jan 30, 2017 · 2 comments
Open

::Fixnum is deprecated #35

beaucox opened this issue Jan 30, 2017 · 2 comments

Comments

@beaucox
Copy link

beaucox commented Jan 30, 2017

Hi,

As of Ruby 2.4 ::Fixnum is deprecated:

$ asepsisctl diagnose
/Library/Application Support/Asepsis/ctl/lib/micro-optparse.rb:47: warning: constant ::Fixnum is deprecated
Your Asepsis installation seems to be OK

I don't know Ruby, but I made the following change in 'micro-optparse.rb':

...
# Fixnum is no more BEC Sunday, January 29, 2017 at 3:54:10 PM
# klass = o[2][:default].class == Fixnum ? Integer : o[2][:default].class
klass = o[2][:default].class == Integer ? Integer : o[2][:default].class
...

It seems to fix the warning, but is it a valid fix?

Beau.

@darwin
Copy link
Member

darwin commented Jan 30, 2017

I'm sorry, I can't tell I don't follow Ruby language changes anymore.

Maybe ask here? florianpilz/micro-optparse#12

@florianpilz
Copy link

Just replicate the change in florianpilz/micro-optparse@f0bf29a#diff-4e27138339dcd335130fa76476c6a893 to fix the warning.

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

3 participants