From bd28cd41b337dc943d3684acd2a48d900a957a15 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Fri, 6 Jan 2017 09:30:47 -0800 Subject: [PATCH] Require Ruby 2.1.9 or higher --- .rubocop.yml | 1 + .travis.yml | 14 ++++++-------- README.md | 10 ++++------ gems.gemspec | 4 ++-- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 489d163..561ce99 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,5 @@ AllCops: + TargetRubyVersion: 2.1 Include: - 'Gemfile' - 'Rakefile' diff --git a/.travis.yml b/.travis.yml index e654ce9..5710ca3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,18 @@ bundler_args: --without development +cache: bundler env: global: - JRUBY_OPTS="$JRUBY_OPTS --debug" language: ruby rvm: - - 1.9.3 - - 2.0.0 - - 2.1 - - 2.2 - - jruby-19mode - - jruby-head - - rbx-2 + - 2.1.9 + - 2.2.6 + - 2.3.3 + - 2.4.0 + - jruby-9.1.6.0 - ruby-head matrix: allow_failures: - - rvm: jruby-head - rvm: ruby-head fast_finish: true sudo: false diff --git a/README.md b/README.md index 1f31b23..e0c41cb 100644 --- a/README.md +++ b/README.md @@ -119,15 +119,13 @@ Ruby wrapper for the RubyGems.org API. This library aims to support and is [tested against][travis] the following Ruby implementations: -* Ruby 1.9.3 -* Ruby 2.0.0 -* Ruby 2.1.0 -* Ruby 2.2.0 +* Ruby 2.1 +* Ruby 2.2 +* Ruby 2.3 +* Ruby 2.4 * [JRuby][] -* [Rubinius][] [jruby]: http://www.jruby.org/ -[rubinius]: http://rubini.us/ If something doesn't work on one of these interpreters, it's a bug. diff --git a/gems.gemspec b/gems.gemspec index 9137436..d1db86c 100644 --- a/gems.gemspec +++ b/gems.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'gems/version' Gem::Specification.new do |spec| - spec.add_dependency 'json', '~> 1.8' + spec.add_dependency 'json' spec.add_development_dependency 'bundler', '~> 1.0' spec.authors = ['Erik Michaels-Ober'] spec.description = 'Ruby wrapper for the RubyGems.org API' @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.licenses = %w(MIT) spec.name = 'gems' spec.require_paths = %w(lib) - spec.required_ruby_version = '>= 1.9.3' + spec.required_ruby_version = '>= 2.1.9' spec.summary = spec.description spec.version = Gems::VERSION end