From 25d933f274a6a3e608b63bbc237716bbd4a305a4 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Fri, 8 Jan 2016 11:13:20 -0600 Subject: [PATCH 1/2] Fix #343; drop support for Ruby 1.9.3 --- .travis.yml | 1 - active_interaction.gemspec | 2 +- lib/active_interaction/backports.rb | 12 ------------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index d93bca0e..b2f62261 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,6 @@ rvm: - 2.2 - 2.1 - 2.0 -- 1.9 - jruby - rbx-2 script: bundle exec rake $RAKE_TASK diff --git a/active_interaction.gemspec b/active_interaction.gemspec index 6122111d..5d3f92f8 100644 --- a/active_interaction.gemspec +++ b/active_interaction.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.homepage = 'http://devblog.orgsync.com/active_interaction/' gem.licenses = %w[MIT] - gem.required_ruby_version = '>= 1.9.3' + gem.required_ruby_version = '>= 2' { 'Aaron Lasseigne' => 'aaron.lasseigne@gmail.com', diff --git a/lib/active_interaction/backports.rb b/lib/active_interaction/backports.rb index 76b42ee7..d8aa6baa 100644 --- a/lib/active_interaction/backports.rb +++ b/lib/active_interaction/backports.rb @@ -4,18 +4,6 @@ require 'active_support/core_ext' module ActiveInteraction - class GroupedInput # rubocop:disable Style/Documentation - # Required for Ruby <= 1.9.3. - def [](name) - send(name) - end unless method_defined?(:[]) - - # Required for Ruby <= 1.9.3. - def []=(name, value) - send("#{name}=", value) - end unless method_defined?(:[]=) - end - class Errors # rubocop:disable Style/Documentation # Required for Rails < 3.2.13. protected :initialize_dup From a25807ed14261c8de828ab99721628b288183fd1 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Fri, 8 Jan 2016 13:57:10 -0600 Subject: [PATCH 2/2] Try to specify a more recent version of JRuby --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b2f62261..f7e9f837 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,6 @@ rvm: - 2.2 - 2.1 - 2.0 -- jruby +- jruby-9 - rbx-2 script: bundle exec rake $RAKE_TASK