-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix Ruby 2.4 warnings because of Fixnum #62
Conversation
lib/flag_shih_tzu.rb
Outdated
@@ -318,7 +318,7 @@ def parse_flag_options(*args) | |||
else | |||
options. | |||
keys. | |||
select { |key| !key.is_a?(Fixnum) }. | |||
select { |key| RUBY_VERSION >= "2.4" !key.is_a?(Integer) : !key.is_a?(Fixnum) }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unexpected token tBANG
unexpected token tCOLON
lib/flag_shih_tzu.rb
Outdated
@@ -318,7 +318,7 @@ def parse_flag_options(*args) | |||
else | |||
options. | |||
keys. | |||
select { |key| !key.is_a?(Fixnum) }. | |||
select { |key| RUBY_VERSION >= "2.4" ? !key.is_a?(Integer) : !key.is_a?(Fixnum) }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 2 (not 0) spaces for indenting an expression spanning multiple lines.
Line is too long. [104/80]
Use Integer instead of Fixnum.
Unify Fixnum and Bignum into Integer https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/
4 similar comments
4 similar comments
I need to get the build fixed so I understand what this will do to backwards compatibility with other Rubies. |
@pboling Any news? |
I did work on fixing the build for a few hours, but had to give up to try again another day. It is on my list of things to get done soon. I do not actively use this gem in any projects at the moment, so PRs appreciated! |
Thanks @pboling! So what's the status here? Is the build currently broken and you prefer to get that sorted out first, or is it this PR breaking the build somehow? I guess the former? |
Yeah, I'd rather not release with a broken build. It has been a little broken for a while now. Just needs maintenance. Nothing to do with any PR AFAIK. |
Yeah, sounds sensible. I'll look into helping out! |
@JuanitoFatas |
Thanks so much for the merged!!! |
This PR fixes this warning:
Ruby 2.4 unified Fixnum and Bignum into Integer.
https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/