Skip to content

Commit d6a9fbc

Browse files
authored
Test with different Rails versions (#20)
* Test on Travis with different Rails versions
1 parent acb93d1 commit d6a9fbc

9 files changed

+291
-2
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
language: ruby
2+
23
rvm:
3-
- 1.9
44
- 2.0
55
- 2.1
66
- 2.2
7+
- 2.3.1
8+
9+
gemfile:
10+
- gemfiles/rails_5.0.gemfile
11+
- gemfiles/rails_4.2.gemfile
12+
- gemfiles/rails_4.1.gemfile
13+
14+
matrix:
15+
exclude:
16+
- rvm: 2.0
17+
gemfile: gemfiles/rails_5.0.gemfile
18+
- rvm: 2.1
19+
gemfile: gemfiles/rails_5.0.gemfile
20+
21+
before_install:
22+
- if ruby --version | cut -d ' ' -f 2 | grep -q 2.1.5p273 ; then gem update --system 2.4.8; fi

Appraisals

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
appraise "rails-4.1" do
2+
gem "activesupport", "~> 4.1.0"
3+
end
4+
5+
appraise "rails-4.2" do
6+
gem "activesupport", "~> 4.2.0"
7+
end
8+
9+
appraise "rails-5.0" do
10+
gem "activesupport", "~> 5.0.0"
11+
end

gemfiles/rails_4.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", "~> 4.1.0"
6+
7+
gemspec :path => "../"

gemfiles/rails_4.1.gemfile.lock

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
PATH
2+
remote: ../
3+
specs:
4+
qbxml (0.3.0)
5+
activesupport (>= 4.1.0)
6+
builder (~> 3.0)
7+
nokogiri (~> 1.5)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activesupport (4.1.16)
13+
i18n (~> 0.6, >= 0.6.9)
14+
json (~> 1.7, >= 1.7.7)
15+
minitest (~> 5.1)
16+
thread_safe (~> 0.1)
17+
tzinfo (~> 1.1)
18+
appraisal (2.1.0)
19+
bundler
20+
rake
21+
thor (>= 0.14.0)
22+
builder (3.2.2)
23+
coderay (1.1.1)
24+
diff-lcs (1.2.5)
25+
docile (1.1.5)
26+
i18n (0.7.0)
27+
json (1.8.3)
28+
method_source (0.8.2)
29+
mini_portile2 (2.1.0)
30+
minitest (5.9.0)
31+
nokogiri (1.6.8)
32+
mini_portile2 (~> 2.1.0)
33+
pkg-config (~> 1.1.7)
34+
pkg-config (1.1.7)
35+
pry (0.10.4)
36+
coderay (~> 1.1.0)
37+
method_source (~> 0.8.1)
38+
slop (~> 3.4)
39+
pry-nav (0.2.4)
40+
pry (>= 0.9.10, < 0.11.0)
41+
rake (11.2.2)
42+
rspec (3.5.0)
43+
rspec-core (~> 3.5.0)
44+
rspec-expectations (~> 3.5.0)
45+
rspec-mocks (~> 3.5.0)
46+
rspec-core (3.5.2)
47+
rspec-support (~> 3.5.0)
48+
rspec-expectations (3.5.0)
49+
diff-lcs (>= 1.2.0, < 2.0)
50+
rspec-support (~> 3.5.0)
51+
rspec-mocks (3.5.0)
52+
diff-lcs (>= 1.2.0, < 2.0)
53+
rspec-support (~> 3.5.0)
54+
rspec-support (3.5.0)
55+
simplecov (0.12.0)
56+
docile (~> 1.1.0)
57+
json (>= 1.8, < 3)
58+
simplecov-html (~> 0.10.0)
59+
simplecov-html (0.10.0)
60+
slop (3.6.0)
61+
thor (0.19.1)
62+
thread_safe (0.3.5)
63+
tzinfo (1.2.2)
64+
thread_safe (~> 0.1)
65+
66+
PLATFORMS
67+
ruby
68+
69+
DEPENDENCIES
70+
activesupport (~> 4.1.0)
71+
appraisal
72+
pry
73+
pry-nav
74+
qbxml!
75+
rake
76+
rspec
77+
simplecov
78+
79+
BUNDLED WITH
80+
1.12.5

gemfiles/rails_4.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", "~> 4.2.0"
6+
7+
gemspec :path => "../"

gemfiles/rails_4.2.gemfile.lock

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
PATH
2+
remote: ../
3+
specs:
4+
qbxml (0.3.0)
5+
activesupport (>= 4.1.0)
6+
builder (~> 3.0)
7+
nokogiri (~> 1.5)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activesupport (4.2.7.1)
13+
i18n (~> 0.7)
14+
json (~> 1.7, >= 1.7.7)
15+
minitest (~> 5.1)
16+
thread_safe (~> 0.3, >= 0.3.4)
17+
tzinfo (~> 1.1)
18+
appraisal (2.1.0)
19+
bundler
20+
rake
21+
thor (>= 0.14.0)
22+
builder (3.2.2)
23+
coderay (1.1.1)
24+
diff-lcs (1.2.5)
25+
docile (1.1.5)
26+
i18n (0.7.0)
27+
json (1.8.3)
28+
method_source (0.8.2)
29+
mini_portile2 (2.1.0)
30+
minitest (5.9.0)
31+
nokogiri (1.6.8)
32+
mini_portile2 (~> 2.1.0)
33+
pkg-config (~> 1.1.7)
34+
pkg-config (1.1.7)
35+
pry (0.10.4)
36+
coderay (~> 1.1.0)
37+
method_source (~> 0.8.1)
38+
slop (~> 3.4)
39+
pry-nav (0.2.4)
40+
pry (>= 0.9.10, < 0.11.0)
41+
rake (11.2.2)
42+
rspec (3.5.0)
43+
rspec-core (~> 3.5.0)
44+
rspec-expectations (~> 3.5.0)
45+
rspec-mocks (~> 3.5.0)
46+
rspec-core (3.5.2)
47+
rspec-support (~> 3.5.0)
48+
rspec-expectations (3.5.0)
49+
diff-lcs (>= 1.2.0, < 2.0)
50+
rspec-support (~> 3.5.0)
51+
rspec-mocks (3.5.0)
52+
diff-lcs (>= 1.2.0, < 2.0)
53+
rspec-support (~> 3.5.0)
54+
rspec-support (3.5.0)
55+
simplecov (0.12.0)
56+
docile (~> 1.1.0)
57+
json (>= 1.8, < 3)
58+
simplecov-html (~> 0.10.0)
59+
simplecov-html (0.10.0)
60+
slop (3.6.0)
61+
thor (0.19.1)
62+
thread_safe (0.3.5)
63+
tzinfo (1.2.2)
64+
thread_safe (~> 0.1)
65+
66+
PLATFORMS
67+
ruby
68+
69+
DEPENDENCIES
70+
activesupport (~> 4.2.0)
71+
appraisal
72+
pry
73+
pry-nav
74+
qbxml!
75+
rake
76+
rspec
77+
simplecov
78+
79+
BUNDLED WITH
80+
1.12.5

gemfiles/rails_5.0.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.0.0"
6+
7+
gemspec :path => "../"

gemfiles/rails_5.0.gemfile.lock

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
PATH
2+
remote: ../
3+
specs:
4+
qbxml (0.3.0)
5+
activesupport (>= 4.1.0)
6+
builder (~> 3.0)
7+
nokogiri (~> 1.5)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activesupport (5.0.0.1)
13+
concurrent-ruby (~> 1.0, >= 1.0.2)
14+
i18n (~> 0.7)
15+
minitest (~> 5.1)
16+
tzinfo (~> 1.1)
17+
appraisal (2.1.0)
18+
bundler
19+
rake
20+
thor (>= 0.14.0)
21+
builder (3.2.2)
22+
coderay (1.1.1)
23+
concurrent-ruby (1.0.2)
24+
diff-lcs (1.2.5)
25+
docile (1.1.5)
26+
i18n (0.7.0)
27+
json (2.0.2)
28+
method_source (0.8.2)
29+
mini_portile2 (2.1.0)
30+
minitest (5.9.0)
31+
nokogiri (1.6.8)
32+
mini_portile2 (~> 2.1.0)
33+
pkg-config (~> 1.1.7)
34+
pkg-config (1.1.7)
35+
pry (0.10.4)
36+
coderay (~> 1.1.0)
37+
method_source (~> 0.8.1)
38+
slop (~> 3.4)
39+
pry-nav (0.2.4)
40+
pry (>= 0.9.10, < 0.11.0)
41+
rake (11.2.2)
42+
rspec (3.5.0)
43+
rspec-core (~> 3.5.0)
44+
rspec-expectations (~> 3.5.0)
45+
rspec-mocks (~> 3.5.0)
46+
rspec-core (3.5.2)
47+
rspec-support (~> 3.5.0)
48+
rspec-expectations (3.5.0)
49+
diff-lcs (>= 1.2.0, < 2.0)
50+
rspec-support (~> 3.5.0)
51+
rspec-mocks (3.5.0)
52+
diff-lcs (>= 1.2.0, < 2.0)
53+
rspec-support (~> 3.5.0)
54+
rspec-support (3.5.0)
55+
simplecov (0.12.0)
56+
docile (~> 1.1.0)
57+
json (>= 1.8, < 3)
58+
simplecov-html (~> 0.10.0)
59+
simplecov-html (0.10.0)
60+
slop (3.6.0)
61+
thor (0.19.1)
62+
thread_safe (0.3.5)
63+
tzinfo (1.2.2)
64+
thread_safe (~> 0.1)
65+
66+
PLATFORMS
67+
ruby
68+
69+
DEPENDENCIES
70+
activesupport (~> 5.0.0)
71+
appraisal
72+
pry
73+
pry-nav
74+
qbxml!
75+
rake
76+
rspec
77+
simplecov
78+
79+
BUNDLED WITH
80+
1.12.5

qbxml.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
1717
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
1818
gem.require_paths = ["lib"]
1919

20-
gem.add_dependency('activesupport', '>= 3.2.9')
20+
gem.add_dependency('activesupport', '>= 4.1.0')
2121
gem.add_dependency('nokogiri', '~> 1.5')
2222
gem.add_dependency('builder', '~> 3.0')
2323

@@ -26,4 +26,5 @@ Gem::Specification.new do |gem|
2626
gem.add_development_dependency('rspec')
2727
gem.add_development_dependency('simplecov')
2828
gem.add_development_dependency('rake')
29+
gem.add_development_dependency('appraisal')
2930
end

0 commit comments

Comments
 (0)