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

Fix deprecation warning on ruby 2.4.0 #40

Merged
merged 4 commits into from
Dec 26, 2016

Conversation

sue445
Copy link
Collaborator

@sue445 sue445 commented Dec 25, 2016

Fixnum and Bignum are deprecated since ruby 2.4

$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin13]

$ bundle exec rspec
(snip)
/Users/sue445/dev/workspace/github.com/tomykaira/rspec-parameterized/lib/rspec/parameterized/table_syntax.rb:30: warning: constant ::Fixnum is deprecated
/Users/sue445/dev/workspace/github.com/tomykaira/rspec-parameterized/lib/rspec/parameterized/table_syntax.rb:34: warning: constant ::Bignum is deprecated

lib/rspec/parameterized/table_syntax.rb:30: warning: constant ::Fixnum is deprecated
lib/rspec/parameterized/table_syntax.rb:34: warning: constant ::Bignum is deprecated
last_comment is removed since rake 12.0.0

$ bundle exec rake
rake aborted!
NoMethodError: undefined method `last_comment' for #<Rake::Application:0x00000001b54158>
/home/travis/build/tomykaira/rspec-parameterized/gemfiles/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/rake_task.rb:82:in `define'
/home/travis/build/tomykaira/rspec-parameterized/gemfiles/vendor/bundle/ruby/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/rake_task.rb:62:in `initialize'
/home/travis/build/tomykaira/rspec-parameterized/Rakefile:7:in `new'
/home/travis/build/tomykaira/rspec-parameterized/Rakefile:7:in `<top (required)>'
/home/travis/build/tomykaira/rspec-parameterized/gemfiles/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
@joker1007
Copy link
Collaborator

LGTM
Thanks!!

@joker1007 joker1007 merged commit dd202ee into tomykaira:master Dec 26, 2016
@sue445 sue445 deleted the feature/fix_deprecation_warning branch December 26, 2016 04:26
@sue445
Copy link
Collaborator Author

sue445 commented Dec 26, 2016

😄

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

Successfully merging this pull request may close these issues.

2 participants