ProMotion icon indicating copy to clipboard operation
ProMotion copied to clipboard

Ruby 2.6 deprecations removed in Ruby 2.7

Open andrewhavens opened this issue 4 years ago • 0 comments

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

andrewhavens avatar May 08 '20 19:05 andrewhavens