From 0402c4d9e157819b132531bf889a16e4f6de4ebe Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Tue, 21 Mar 2017 21:47:09 -0700 Subject: [PATCH] chore: Require Ruby 2.1 or higher --- .travis.yml | 12 ------------ omniauth-saml.gemspec | 2 ++ spec/spec_helper.rb | 14 ++++++-------- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index ec2b927..da81a89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,6 @@ script: - bundle exec rspec rvm: - - 1.9.3 - - jruby-19mode - - 2.0.0 - 2.1.10 - 2.2.2 - 2.3.1 @@ -36,14 +33,5 @@ matrix: fast_finish: true exclude: - - rvm: 1.9.3 - gemfile: gemfiles/rack_2.gemfile - - - rvm: jruby-19mode - gemfile: gemfiles/rack_2.gemfile - - - rvm: 2.0.0 - gemfile: gemfiles/rack_2.gemfile - - rvm: 2.1.10 gemfile: gemfiles/rack_2.gemfile diff --git a/omniauth-saml.gemspec b/omniauth-saml.gemspec index b9a79c2..bfc8d94 100644 --- a/omniauth-saml.gemspec +++ b/omniauth-saml.gemspec @@ -11,6 +11,8 @@ Gem::Specification.new do |gem| gem.email = 'rajiv@alum.mit.edu' gem.homepage = 'https://github.com/omniauth/omniauth-saml' + gem.required_ruby_version = '>= 2.1' + gem.add_runtime_dependency 'omniauth', '~> 1.3' gem.add_runtime_dependency 'ruby-saml', '~> 1.4' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ad725ca..ae91a87 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,14 +1,12 @@ -if RUBY_VERSION >= '1.9' - require 'simplecov' +require 'simplecov' - if ENV['TRAVIS'] - require 'coveralls' - Coveralls.wear! - end - - SimpleCov.start +if ENV['TRAVIS'] + require 'coveralls' + Coveralls.wear! end +SimpleCov.start + require 'omniauth-saml' require 'rack/test' require 'rexml/document'