asepsis icon indicating copy to clipboard operation
asepsis copied to clipboard

::Fixnum is deprecated

Open beaucox opened this issue 8 years ago • 2 comments

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.

beaucox avatar Jan 30 '17 02:01 beaucox

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

Maybe ask here? https://github.com/florianpilz/micro-optparse/issues/12

darwin avatar Jan 30 '17 15:01 darwin

Just replicate the change in https://github.com/florianpilz/micro-optparse/commit/f0bf29a9fd1eb65bb7ba50c17ba94c4bbd2a8f48#diff-4e27138339dcd335130fa76476c6a893 to fix the warning.

florianpilz avatar Oct 02 '17 20:10 florianpilz