From a0424bf198a3b089e39b628dbd04808bb72ae3df Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 7 Feb 2019 17:54:51 +0200 Subject: [PATCH] upgrade to 2.4+ rubies --- .ruby-version | 2 +- .travis.yml | 6 ++++-- lib/rx-file/util.rb | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.ruby-version b/.ruby-version index 3f684d2..6a6a3d8 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.3.4 +2.6.1 diff --git a/.travis.yml b/.travis.yml index 6237f3d..e122a91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,5 +4,7 @@ cache: bundler script: - CODECLIMATE_REPO_TOKEN=40ed7f464af09c892b27adc2cd171c36b24992d8d527428285bc55c46fe2f0e0 ruby test/test_all.rb rvm: - - 2.2.7 - - 2.3.4 + - 2.4.5 + - 2.5.3 + - 2.6.1 + diff --git a/lib/rx-file/util.rb b/lib/rx-file/util.rb index 7d9ce88..86b208c 100644 --- a/lib/rx-file/util.rb +++ b/lib/rx-file/util.rb @@ -7,7 +7,7 @@ module RxFile # hence int/bool/string etc are values def is_value? o return true if [true , false , nil].include?(o) - return true if [Fixnum, Symbol, String, Class].include?(o.class) + return true if [::Integer, Symbol, String, Class].include?(o.class) if o.respond_to? :is_value? return true if o.is_value? end