Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Ruby 2.6 deprecations removed in Ruby 2.7 #823

@andrewhavens

Description

@andrewhavens

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions