diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2019-10-26 09:56:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-26 09:56:57 +0800 |
commit | f7cdccb814f9dcc72a7075a4d548b4568c90285b (patch) | |
tree | 640ffe20d70e26d0b657ee52cd0727bb0995d4bb | |
parent | 7079cd72e320e689abfe9d60b164553b98b5eeaf (diff) | |
parent | 6487a1e425997f674c6a6bb8c9e5e83c425ba271 (diff) | |
download | method_source-f7cdccb814f9dcc72a7075a4d548b4568c90285b.tar.gz |
Merge pull request #60 from casperisfine/fix-ci
Fix CI builds and add newer ruby versions
-rw-r--r-- | .travis.yml | 13 | ||||
-rw-r--r-- | spec/method_source_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
3 files changed, 10 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 3aed178..ffd2772 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ dist: trusty bundler_args: "--verbose" before_install: - - gem update --system - which bundle || gem install bundler - gem update bundler rvm: @@ -12,11 +11,13 @@ rvm: - rbx-3 - jruby - jruby-head - - 2.0.0 - - 2.1 - - 2.2 - - 2.3 - - 2.4.2 + - "2.0" + - "2.1" + - "2.2" + - "2.3" + - "2.4" + - "2.5" + - "2.6" - ruby-head matrix: allow_failures: diff --git a/spec/method_source_spec.rb b/spec/method_source_spec.rb index 088c21f..c4e0669 100644 --- a/spec/method_source_spec.rb +++ b/spec/method_source_spec.rb @@ -33,7 +33,7 @@ describe MethodSource do @lambda_source = "MyLambda = lambda { :lambda }\n" @proc_source = "MyProc = Proc.new { :proc }\n" @hello_instance_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n" - @hello_instance_evaled_source_2 = " def \#{name}_two()\n if 44\n 45\n end\n end\n" + @hello_instance_evaled_source_2 = " def \#{name}_two()\n if 40 + 4\n 45\n end\n end\n" @hello_class_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n" @hi_module_evaled_source = " def hi_\#{name}\n @var = \#{name}\n end\n" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0e5de61..d011657 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -82,14 +82,14 @@ METHOD M.instance_eval <<EOF, __FILE__, __LINE__ + 1 def #{name}_one() - if 43 + if 40 + 3 44 end end def #{name}_two() - if 44 + if 40 + 4 45 end end |