upgrade to 2.4+ rubies

This commit is contained in:
Torsten Ruger 2019-02-07 17:54:51 +02:00
parent c1de10352d
commit a0424bf198
3 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
2.3.4
2.6.1

View File

@ -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

View File

@ -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