Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
*.DS_Store

Gemfile.lock
*.gemfile.lock

/coverage
29 changes: 20 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
language: ruby
rvm:
- 2.2.3
- 2.3.1
# - 2.4.0
- 2.2.6
- 2.3.3
- 2.4.1
env:
global:
- CODECLIMATE_REPO_TOKEN=396d4263adb6febf1e6e9b0c0e176fbde35e1a116a3c1ecf8dd4f9384e41979b
matrix:
- "AS_VERSION=3.2.0"
- "AS_VERSION=4.0.0"
- "AS_VERSION=4.1.0"
- "AS_VERSION=4.2.0"
- "AS_VERSION=5.0.0"
gemfile:
- gemfiles/3.2.gemfile
- gemfiles/4.0.gemfile
- gemfiles/4.1.gemfile
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
matrix:
fast_finish: true
exclude:
- rvm: 2.4.1
gemfile: gemfiles/3.2.gemfile
- rvm: 2.4.1
gemfile: gemfiles/4.0.gemfile
- rvm: 2.4.1
gemfile: gemfiles/4.1.gemfile
- rvm: 2.4.1
gemfile: gemfiles/4.2.gemfile
# We need to install latest version of bundler, because one in travis
# image is too old to recognize platform => :mri_22 in Gemfile.
before_install:
Expand Down
20 changes: 20 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
appraise '3.2' do
gem 'activesupport', '~> 3.2.22'
gem 'minitest', '~> 5'
end

appraise '4.0' do
gem 'activesupport', '~> 4.0.13'
end

appraise '4.1' do
gem 'activesupport', '~> 4.1.14'
end

appraise '4.2' do
gem 'activesupport', '~> 4.2.5.1'
end

appraise '5.0' do
gem 'activesupport', '~> 5.0.0'
end
17 changes: 2 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,11 @@ source "https://rubygems.org"
gemspec

gem 'rake'
gem 'appraisal'

as_version = ENV["AS_VERSION"] || "default"

as_version = case as_version
when "default"
">= 3.2.0"
else
"~> #{as_version}"
end

gem "activesupport", as_version
gem "activesupport"
gem 'addressable', '~> 2.2'

# 3.2 now requires the minitest gem
if as_version =~ /3\.2\./
gem "minitest", '~> 5'
end

gem "codeclimate-test-reporter", group: :test, require: nil

group :development, :test do
Expand Down
16 changes: 16 additions & 0 deletions gemfiles/3.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "appraisal"
gem "activesupport", "~> 3.2.22"
gem "addressable", "~> 2.2"
gem "codeclimate-test-reporter", :group => :test, :require => nil
gem "minitest", "~> 5"

group :development, :test do
gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22]
end

gemspec :path => "../"
15 changes: 15 additions & 0 deletions gemfiles/4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "appraisal"
gem "activesupport", "~> 4.0.13"
gem "addressable", "~> 2.2"
gem "codeclimate-test-reporter", :group => :test, :require => nil

group :development, :test do
gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22]
end

gemspec :path => "../"
15 changes: 15 additions & 0 deletions gemfiles/4.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "appraisal"
gem "activesupport", "~> 4.1.14"
gem "addressable", "~> 2.2"
gem "codeclimate-test-reporter", :group => :test, :require => nil

group :development, :test do
gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22]
end

gemspec :path => "../"
15 changes: 15 additions & 0 deletions gemfiles/4.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "appraisal"
gem "activesupport", "~> 4.2.5.1"
gem "addressable", "~> 2.2"
gem "codeclimate-test-reporter", :group => :test, :require => nil

group :development, :test do
gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22]
end

gemspec :path => "../"
15 changes: 15 additions & 0 deletions gemfiles/5.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "appraisal"
gem "activesupport", "~> 5.0.0"
gem "addressable", "~> 2.2"
gem "codeclimate-test-reporter", :group => :test, :require => nil

group :development, :test do
gem "byebug", :platforms => [:mri_20, :mri_21, :mri_22]
end

gemspec :path => "../"