ruby-3

ArgumentError after updating from Ruby 2.7 to Ruby 3.0

无人久伴 提交于 2021-02-10 14:38:43
问题 When I try to update our site to Ruby 3.0.0 I get this error: ArgumentError (wrong number of arguments (given 2, expected 1)) % rails console Loading development environment (Rails 6.1.0) irb(main):001:0> puts RUBY_VERSION 3.0.0 irb(main):002:0> puts IceCube::VERSION 0.16.3 irb(main):003:0> schedule = IceCube::Schedule.new => #<IceCube::Schedule:0x00007fccfe19cfa8 @start_time=2020-12-27 11:14:30 -0800, @all_recurrence_rules=[], @all_exception_rules=[]> irb(main):004:0> puts schedule.to_ical

ArgumentError after updating from Ruby 2.7 to Ruby 3.0

情到浓时终转凉″ 提交于 2021-02-10 14:37:15
问题 When I try to update our site to Ruby 3.0.0 I get this error: ArgumentError (wrong number of arguments (given 2, expected 1)) % rails console Loading development environment (Rails 6.1.0) irb(main):001:0> puts RUBY_VERSION 3.0.0 irb(main):002:0> puts IceCube::VERSION 0.16.3 irb(main):003:0> schedule = IceCube::Schedule.new => #<IceCube::Schedule:0x00007fccfe19cfa8 @start_time=2020-12-27 11:14:30 -0800, @all_recurrence_rules=[], @all_exception_rules=[]> irb(main):004:0> puts schedule.to_ical