From 8a2a3232e772ebee94d7ac155f1d7c91accccf64 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 6 Jan 2018 19:06:35 +0000 Subject: CI with Ruby 2.5.0 https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/ --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4e1bca45c7..da8eac13bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ rvm: - 2.2.8 - 2.3.5 - 2.4.2 + - 2.5.0 - ruby-head - jruby-9.1.12.0 - jruby-head -- cgit v1.2.3 From f870164839d4bca4795342f179bd4a581deb5ac7 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 6 Jan 2018 19:31:44 +0000 Subject: Use the latest RubyGems 2.7.4 or higher Refer https://github.com/rubygems/rubygems/issues/2123 --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index da8eac13bb..081b586eb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ matrix: - rvm: jruby-9.1.12.0 - rvm: jruby-head bundler_args: --jobs 3 --retry 3 +before_install: + - "travis_retry gem update --system" notifications: email: false irc: -- cgit v1.2.3 From f4477d631f19e7a9e09f77062a0992121d0bca16 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sun, 7 Jan 2018 23:39:35 +0000 Subject: require 'date' to address for Ruby 2.5 Address #517 --- test/support/fake_record.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb index 03116ff2ee..75ac1e072f 100644 --- a/test/support/fake_record.rb +++ b/test/support/fake_record.rb @@ -1,4 +1,6 @@ # frozen_string_literal: true + +require 'date' module FakeRecord class Column < Struct.new(:name, :type) end -- cgit v1.2.3 From cbbe9ed392bfe146fc0871653aad9b619cef8509 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sun, 7 Jan 2018 23:43:51 +0000 Subject: BigDecimal.new is deprecated in Ruby 2.5 Refer https://github.com/ruby/bigdecimal/pull/86 --- test/visitors/test_to_sql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 77756b9e99..4416a11b8d 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -233,7 +233,7 @@ module Arel end it "should visit_BigDecimal" do - compile Nodes.build_quoted(BigDecimal.new('2.14')) + compile Nodes.build_quoted(BigDecimal('2.14')) end it "should visit_Date" do -- cgit v1.2.3