Skip to content

Commit

Permalink
Maybe this will be easier with Appraisal
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed May 26, 2018
1 parent 280895f commit 9ad7f74
Show file tree
Hide file tree
Showing 31 changed files with 206 additions and 97 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ rvm:
- 2.3
- 2.2
gemfile:
- gemfiles/Gemfile.rspec2-x
- gemfiles/Gemfile.rspec3-0
- gemfiles/Gemfile.rspec3-1
- gemfiles/Gemfile.rspec3-2
- gemfiles/Gemfile.rspec3-3
- gemfiles/Gemfile.rspec3-4
- gemfiles/Gemfile.rspec3-5
- gemfiles/Gemfile.rspec3-6
- gemfiles/Gemfile.rspec3-7
- gemfiles/rspec_2_x.gemfile
- gemfiles/rspec_3_0.gemfile
- gemfiles/rspec_3_1.gemfile
- gemfiles/rspec_3_2.gemfile
- gemfiles/rspec_3_3.gemfile
- gemfiles/rspec_3_4.gemfile
- gemfiles/rspec_3_5.gemfile
- gemfiles/rspec_3_6.gemfile
- gemfiles/rspec_3_7.gemfile
script: bundle exec rspec
35 changes: 35 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
appraise "rspec-2-x" do
gem "rspec", "~> 2.14", "< 2.99"
end

appraise "rspec-3-0" do
gem "rspec", "~> 3.0.0"
end

appraise "rspec-3-1" do
gem "rspec", "~> 3.1.0"
end

appraise "rspec-3-2" do
gem "rspec", "~> 3.2.0"
end

appraise "rspec-3-3" do
gem "rspec", "~> 3.3.0"
end

appraise "rspec-3-4" do
gem "rspec", "~> 3.4.0"
end

appraise "rspec-3-5" do
gem "rspec", "~> 3.5.0"
end

appraise "rspec-3-6" do
gem "rspec", "~> 3.6.0"
end

appraise "rspec-3-7" do
gem "rspec", "~> 3.7.0"
end
18 changes: 12 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,40 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
rake (10.5.0)
rake (12.3.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.0)
rspec-support (3.7.1)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec
rspec_junit_formatter!

Expand Down
15 changes: 5 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
require "bundler/gem_tasks"
require "appraisal"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

desc "Run specs against all support rspec versions"
task "spec:all" do
fail unless (Dir["gemfiles/Gemfile.*"] - Dir["gemfiles/Gemfile.*.lock"]).all? do |gemfile|
Bundler.with_clean_env do
(system({"BUNDLE_GEMFILE" => gemfile}, "bundle", "check") || system({"BUNDLE_GEMFILE" => gemfile}, "bundle", "install")) &&
system({"BUNDLE_GEMFILE" => gemfile}, "bundle", "exec", "rake", "spec")
end
end
end

task :default => :spec

if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task :default => :appraisal
end
5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-0

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-1

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-2

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-3

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-4

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-5

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-6

This file was deleted.

5 changes: 0 additions & 5 deletions gemfiles/Gemfile.rspec3-7

This file was deleted.

6 changes: 4 additions & 2 deletions gemfiles/Gemfile.rspec2-x → gemfiles/rspec_2_x.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source "https://rubygems.org"
# This file was generated by Appraisal

gemspec :path => ".."
source "https://rubygems.org"

gem "rspec", "~> 2.14", "< 2.99"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
Expand All @@ -21,15 +25,17 @@ GEM
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec (~> 2.14, < 2.99)
rspec_junit_formatter!

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.0.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
Expand All @@ -25,15 +29,17 @@ GEM
rspec-mocks (3.0.4)
rspec-support (~> 3.0.0)
rspec-support (3.0.4)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec (~> 3.0.0)
rspec_junit_formatter!

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.1.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
Expand All @@ -25,15 +29,17 @@ GEM
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec (~> 3.1.0)
rspec_junit_formatter!

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.2.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
Expand All @@ -26,15 +30,17 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.2.0)
rspec-support (3.2.2)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec (~> 3.2.0)
rspec_junit_formatter!

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.3.0"

gemspec path: "../"
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
coderay (1.1.2)
diff-lcs (1.3)
mini_portile2 (2.3.0)
Expand All @@ -26,15 +30,17 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
thor (0.20.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
coderay (~> 1.0)
appraisal
bundler
coderay
nokogiri (~> 1.8, >= 1.8.2)
rake (~> 10.0)
rake
rspec (~> 3.3.0)
rspec_junit_formatter!

Expand Down
7 changes: 7 additions & 0 deletions gemfiles/rspec_3_4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rspec", "~> 3.4.0"

gemspec path: "../"
Loading

0 comments on commit 9ad7f74

Please sign in to comment.