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

Ruby 2.6 deprecations removed in Ruby 2.7 #823

Open
andrewhavens opened this issue May 8, 2020 · 0 comments
Open

Ruby 2.6 deprecations removed in Ruby 2.7 #823

andrewhavens opened this issue May 8, 2020 · 0 comments

Comments

@andrewhavens
Copy link
Collaborator

Apparently there are some deprecated calls that need to be updated.

https://motioneers.slack.com/archives/C055RS0VA/p1588922704034900

I have the following errors running rake in RubyMotion, using Redpotion gem (promotion).
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/gems/2.7.0/gems/ProMotion-3.0.0/lib/ProMotion.rb:9: warning: deprecated Object#=~ is called on Array; it always returns nil
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/gems/2.7.0/gems/ProMotion-3.0.0/lib/ProMotion.rb:9: warning: deprecated Object#=~ is called on Array; it always returns nil
rake aborted!
NoMethodError: undefined method new' for BigDecimal:Class /Users/username/Documents/ruby-projects/ipu/my_new_app/Rakefile:7:in <top (required)>'
(See full trace by running task with --trace)
Rakefile:Line 7
Bundler.require
/usr/local/Cellar/ruby/2.7.1_2/lib/ruby/gems/2.7.0/gems/ProMotion-3.0.0/lib/ProMotion.rb: Line 9
insert_point = app.files.find_index { |file| file =~ /^(?:./)?app// } || 0

Reply from Eamon Webster:

BigDecimal.new was deprecated in ruby 2.6 and removed from ruby 2.7

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

1 participant