From e31a705b067fe848b4b9021323c1b9b7582c3e41 Mon Sep 17 00:00:00 2001 From: Anthony Dmitriyev Date: Wed, 28 Dec 2016 17:38:04 +0000 Subject: [PATCH 1/2] Add ruby 2.4.0 to build targets --- .travis.yml | 1 + Gemfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 39fc4dc20f..14adc61096 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ rvm: - 2.1.10 - 2.2.5 - 2.3.1 + - 2.4.0 - rbx-2 - jruby-9.0.5.0 - jruby-9.1.2.0 diff --git a/Gemfile b/Gemfile index 95443599d1..532b696b0f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source 'https://rubygems.org' -gem 'coveralls', :require => false +gem 'coveralls', '~> 0.8.17', :require => false gem 'pry', :require => false # JSON gem no longer supports ruby < 2.0.0 From 22cf221d632456aadfbb42ec0dcd06a5746b10f2 Mon Sep 17 00:00:00 2001 From: Anthony Dmitriyev Date: Wed, 28 Dec 2016 17:42:48 +0000 Subject: [PATCH 2/2] Fix ruby 2.4.0 deprecation warnings --- spec/money_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/money_spec.rb b/spec/money_spec.rb index 1c3095b913..b7ca736c54 100644 --- a/spec/money_spec.rb +++ b/spec/money_spec.rb @@ -191,7 +191,7 @@ def expectation.fractional it "stores fractional as an integer regardless of what is passed into the constructor" do m = Money.new(100) expect(m.fractional).to eq 100 - expect(m.fractional).to be_a(Fixnum) + expect(m.fractional).to be_a(Integer) end context "loading a serialized Money via YAML" do @@ -351,7 +351,7 @@ def expectation.fractional it "returns a Fixnum when infinite_precision is not set" do money = Money.new(100, "USD") - expect(money.round_to_nearest_cash_value).to be_a Fixnum + expect(money.round_to_nearest_cash_value).to be_a Integer end it "returns a BigDecimal when infinite_precision is set", :infinite_precision do