Skip to content

Commit f08aca6

Browse files
committed
Add Appraisal for activesupport 5.2; update travis
1 parent bc61708 commit f08aca6

10 files changed

Lines changed: 149 additions & 12 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ spec/reports
1515
test/tmp
1616
test/version_tmp
1717
tmp
18+
*.gemfile.lock

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
language: ruby
2+
sudo: false
3+
4+
cache:
5+
bundler: true
6+
27
rvm:
38
- 2.2
49
- 2.3
510
- 2.4
611
- jruby-19mode # JRuby in 1.9 mode
7-
# uncomment this line if your project needs to run something other than `rake`:
8-
script: bundle exec rspec spec
12+
13+
script: bundle exec rake
14+
915
gemfile:
10-
- Gemfile.activesupport51
16+
- gemfiles/activesupport_5.1.gemfile
17+
- gemfiles/activesupport_5.2.gemfile
1118

12-
before_install:
13-
- gem install bundler
19+
matrix:
20+
fast_finish: true

Appraisals

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
appraise "activesupport-5.1" do
2+
gem "activesupport", "~> 5.1.0"
3+
end
4+
5+
appraise "activesupport-5.2" do
6+
gem "activesupport", "~> 5.2.0"
7+
end

Gemfile.activesupport51

Lines changed: 0 additions & 4 deletions
This file was deleted.

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ require "bundler/gem_tasks"
44
require 'rspec/core/rake_task'
55

66
task :default => :spec
7-
RSpec::Core::RakeTask.new('spec')
7+
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
8+
task :default => :appraisal
9+
end
10+
RSpec::Core::RakeTask.new('spec')

gemfiles/activesupport_5.1.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activesupport", "~> 5.1.0"
6+
7+
gemspec path: "../"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
time_difference (0.7.0)
5+
activesupport
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
activesupport (5.1.5)
11+
concurrent-ruby (~> 1.0, >= 1.0.2)
12+
i18n (~> 0.7)
13+
minitest (~> 5.1)
14+
tzinfo (~> 1.1)
15+
appraisal (2.2.0)
16+
bundler
17+
rake
18+
thor (>= 0.14.0)
19+
concurrent-ruby (1.0.5)
20+
diff-lcs (1.3)
21+
i18n (0.9.5)
22+
concurrent-ruby (~> 1.0)
23+
minitest (5.11.3)
24+
rake (12.3.1)
25+
rspec (3.7.0)
26+
rspec-core (~> 3.7.0)
27+
rspec-expectations (~> 3.7.0)
28+
rspec-mocks (~> 3.7.0)
29+
rspec-core (3.7.1)
30+
rspec-support (~> 3.7.0)
31+
rspec-expectations (3.7.0)
32+
diff-lcs (>= 1.2.0, < 2.0)
33+
rspec-support (~> 3.7.0)
34+
rspec-mocks (3.7.0)
35+
diff-lcs (>= 1.2.0, < 2.0)
36+
rspec-support (~> 3.7.0)
37+
rspec-support (3.7.1)
38+
thor (0.20.0)
39+
thread_safe (0.3.6)
40+
tzinfo (1.2.5)
41+
thread_safe (~> 0.1)
42+
43+
PLATFORMS
44+
ruby
45+
46+
DEPENDENCIES
47+
activesupport (~> 5.1.0)
48+
appraisal
49+
rake
50+
rspec (~> 3.7.0)
51+
time_difference!
52+
53+
BUNDLED WITH
54+
1.16.1

gemfiles/activesupport_5.2.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activesupport", "~> 5.2.0"
6+
7+
gemspec path: "../"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
time_difference (0.7.0)
5+
activesupport
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
activesupport (5.2.0)
11+
concurrent-ruby (~> 1.0, >= 1.0.2)
12+
i18n (>= 0.7, < 2)
13+
minitest (~> 5.1)
14+
tzinfo (~> 1.1)
15+
appraisal (2.2.0)
16+
bundler
17+
rake
18+
thor (>= 0.14.0)
19+
concurrent-ruby (1.0.5)
20+
diff-lcs (1.3)
21+
i18n (1.0.1)
22+
concurrent-ruby (~> 1.0)
23+
minitest (5.11.3)
24+
rake (12.3.1)
25+
rspec (3.7.0)
26+
rspec-core (~> 3.7.0)
27+
rspec-expectations (~> 3.7.0)
28+
rspec-mocks (~> 3.7.0)
29+
rspec-core (3.7.1)
30+
rspec-support (~> 3.7.0)
31+
rspec-expectations (3.7.0)
32+
diff-lcs (>= 1.2.0, < 2.0)
33+
rspec-support (~> 3.7.0)
34+
rspec-mocks (3.7.0)
35+
diff-lcs (>= 1.2.0, < 2.0)
36+
rspec-support (~> 3.7.0)
37+
rspec-support (3.7.1)
38+
thor (0.20.0)
39+
thread_safe (0.3.6)
40+
tzinfo (1.2.5)
41+
thread_safe (~> 0.1)
42+
43+
PLATFORMS
44+
ruby
45+
46+
DEPENDENCIES
47+
activesupport (~> 5.2.0)
48+
appraisal
49+
rake
50+
rspec (~> 3.7.0)
51+
time_difference!
52+
53+
BUNDLED WITH
54+
1.16.1

time_difference.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ Gem::Specification.new do |gem|
1414
gem.version = "0.7.0"
1515
gem.license = 'MIT'
1616

17-
gem.add_runtime_dependency('activesupport', '~> 5.1')
17+
gem.add_runtime_dependency('activesupport')
18+
19+
gem.add_development_dependency('appraisal')
1820
gem.add_development_dependency('rspec', '~> 3.7.0')
1921
gem.add_development_dependency('rake')
20-
2122
end

0 commit comments

Comments
 (0)