diff --git a/.gitignore b/.gitignore index effd518..5cce6e7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ pkg/* .idea # bundler -Gemfile.lock +Gemfile.*lock # vim *.swp diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..2bf1c1c --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.3.1 diff --git a/.travis.yml b/.travis.yml index fe161bf..a1ab478 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,29 @@ -sudo: false language: ruby script: "rspec" -rvm: - - ruby-head - - 2.3.1 - - 2.2.5 - - 2.1.10 - - 2.0.0 +matrix: + - rvm: ruby-head + - rvm: 2.3.1 + - rvm: 2.2.5 - - jruby-9.1.5.0 - - jruby-9.0.5.0 - - jruby-1.7.26 + - rvm: 2.2.2 + gemfile: gemfiles/Gemfile.lte-2.2.2 + - rvm: 2.1.0 + gemfile: gemfiles/Gemfile.lte-2.2.2 - - rubinius-3.9 - - rubinius-2.9 + - rvm: 1.9.3 + gemfile: gemfiles/Gemfile.lte-1.9.3 + + - rvm: 1.8.7 + gemfile: gemfiles/Gemfile.lte-1.8.7 + + - rvm: jruby-9.1.5.0 + - rvm: jruby-9.0.5.0 + - rvm: jruby-1.7.26 + + - rvm: rubinius-3.9 + - rvm: rubinius-2.9 notifications: on_success: change diff --git a/Gemfile b/Gemfile index c49a343..6d36fa4 100644 --- a/Gemfile +++ b/Gemfile @@ -11,17 +11,13 @@ group :development, :test do gem 'rspec-mocks' gem 'rspec-its' - if RUBY_VERSION < "1.9" - gem 'timecop', '0.6.0' - gem 'activesupport', '~> 3' - else - gem 'timecop' - gem 'activesupport' + gem 'timecop' + gem 'byebug' + gem 'timecop' - gem 'byebug' - end + gem 'activesupport', '~> 5' - gem 'simplecov', :require => false, :platform => :ruby_20 - gem 'coveralls', :require => false, :platform => :ruby_20 + gem 'simplecov', :require => false + gem 'coveralls', :require => false end diff --git a/Gemfile.lte-1.9.3 b/Gemfile.lte-1.9.3 new file mode 100644 index 0000000..ac39f5a --- /dev/null +++ b/Gemfile.lte-1.9.3 @@ -0,0 +1,17 @@ +source "http://rubygems.org" + +# Specify your gem's dependencies in yell.gemspec +gemspec + +group :development, :test do + gem 'rake' + + gem 'rspec-core', '~> 3' + gem 'rspec-expectations' + gem 'rspec-mocks' + gem 'rspec-its' + + gem 'timecop', '~> 0.8' + + gem 'activesupport', '~> 3' +end