From 2ba52997fe736d9d02960e1ca00c867dd857c229 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 17 Feb 2016 23:51:49 +0900 Subject: [PATCH] Good bye Ruby 2.0.0 Ruby 2.0.0 will be end-of-life on Feb. 24th, 2016. https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-0-0-p648-released/ --- .travis.yml | 2 -- Gemfile | 3 +-- benchmark/utils/benchmark_ips_extension.rb | 2 +- bin/test | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09a48de8..6a02dc8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,6 @@ script: - "bundle exec rake $TASK" matrix: include: - - rvm: 2.0.0 - env: TASK=test - rvm: 2.1 env: TASK=test - rvm: 2.2 diff --git a/Gemfile b/Gemfile index 77eb4b38..865dd883 100644 --- a/Gemfile +++ b/Gemfile @@ -7,8 +7,7 @@ gem 'benchmark-ips', '2.3.0' gem 'minitest-line' gem 'pry-byebug' -is_windows = RUBY_PLATFORM =~ /mswin|mingw|bccwin|wince/ -if RUBY_VERSION >= '2.1.0' && !is_windows +if RUBY_PLATFORM !~ /mswin|mingw|bccwin|wince/ gem 'faml' gem 'lineprof' gem 'stackprof' diff --git a/benchmark/utils/benchmark_ips_extension.rb b/benchmark/utils/benchmark_ips_extension.rb index d9a358c6..a8fbe1e4 100644 --- a/benchmark/utils/benchmark_ips_extension.rb +++ b/benchmark/utils/benchmark_ips_extension.rb @@ -16,7 +16,7 @@ module Benchmark end end end - Entry.send(:prepend, EntryExtension) + Entry.prepend(EntryExtension) end end diff --git a/bin/test b/bin/test index c918f552..ec4a46e9 100755 --- a/bin/test +++ b/bin/test @@ -1,7 +1,6 @@ #!/bin/bash VERSIONS=( - 2.0.0 2.1.7 2.2.3 2.3.0