Skip to content

Commit

Permalink
setup appraisal to test multiple rails versions
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Dec 9, 2016
1 parent 1f93ff5 commit dc0ab26
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ test/dummy/tmp/
*.gem
.rbenv-gemsets
*.swp
gemfiles/*.lock
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ rvm:
- 2.1
- 2.2
- 2.3.0
gemfile:
- gemfiles/4.0.gemfile
- gemfiles/4.1.gemfile
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
before_install:
- gem install bundler --conservative --version '~> 1.10'
before_script:
Expand Down
19 changes: 19 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
appraise "4.0" do
gem "rails", "~> 4.0.0"
gemspec
end

appraise "4.1" do
gem "rails", "~> 4.1.0"
gemspec
end

appraise "4.2" do
gem "rails", "~> 4.2"
gemspec
end

appraise "5.0" do
gem "rails", "~> 5.0"
gemspec
end
7 changes: 6 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ GEM
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
appraisal (2.1.0)
bundler
rake
thor (>= 0.14.0)
arel (4.0.2)
builder (3.1.4)
concurrent-ruby (1.0.2)
Expand Down Expand Up @@ -80,11 +84,12 @@ PLATFORMS
ruby

DEPENDENCIES
appraisal
bootstrap_form!
jquery-rails
mime-types (~> 2.6.2)
mocha
rails (~> 4.0)
rails (>= 4.0)
sqlite3
timecop (~> 0.7.1)

Expand Down
3 changes: 2 additions & 1 deletion bootstrap_form.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ Gem::Specification.new do |s|
s.test_files = Dir["test/**/*"]

s.add_development_dependency "mime-types", "~> 2.6.2"
s.add_development_dependency "rails", "~> 4.0"
s.add_development_dependency "rails", ">= 4.0"
s.add_development_dependency "sqlite3"
s.add_development_dependency "timecop", "~> 0.7.1"
s.add_development_dependency "mocha"
s.add_development_dependency "appraisal"
end
8 changes: 8 additions & 0 deletions gemfiles/4.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "jquery-rails"
gem "rails", "~> 4.0.0"

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

source "http://rubygems.org"

gem "jquery-rails"
gem "rails", "~> 4.1.0"

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

source "http://rubygems.org"

gem "jquery-rails"
gem "rails", "~> 4.2"

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

source "http://rubygems.org"

gem "jquery-rails"
gem "rails", "~> 5.0"

gemspec :path => "../"

0 comments on commit dc0ab26

Please sign in to comment.