Skip to content

Commit 3c311c2

Browse files
authored
Test Rails 5.1 and 5.2 (#26)
* Test on Ruby 2.7 * Update bundler in Rails 5.0 gemfile for Ruby 2.7 support * Lock bundler * Try this to fix bundler * Drop Ruby 2.1 and 2.2 * Remove 2.1 and 2.2 from matrix as well * Test on Rails 5.1 and 5.2 * Fix bundler on 2.3? * Drop Rails 4 tests * Require Rails >= 5 * Update lockfiles
1 parent 18b4b33 commit 3c311c2

10 files changed

+168
-189
lines changed

.travis.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,10 @@ rvm:
88
- 2.7.0
99

1010
gemfile:
11+
- gemfiles/rails_5.2.gemfile
12+
- gemfiles/rails_5.1.gemfile
1113
- gemfiles/rails_5.0.gemfile
12-
- gemfiles/rails_4.2.gemfile
13-
- gemfiles/rails_4.1.gemfile
14-
15-
matrix:
16-
exclude:
17-
- rvm: 2.4.8
18-
gemfile: gemfiles/rails_4.1.gemfile
19-
- rvm: 2.4.8
20-
gemfile: gemfiles/rails_4.2.gemfile
21-
- rvm: 2.5.7
22-
gemfile: gemfiles/rails_4.1.gemfile
23-
- rvm: 2.5.7
24-
gemfile: gemfiles/rails_4.2.gemfile
25-
- rvm: 2.6.5
26-
gemfile: gemfiles/rails_4.1.gemfile
27-
- rvm: 2.6.5
28-
gemfile: gemfiles/rails_4.2.gemfile
29-
- rvm: 2.7.0
30-
gemfile: gemfiles/rails_4.1.gemfile
31-
- rvm: 2.7.0
32-
gemfile: gemfiles/rails_4.2.gemfile
3314

3415
before_install:
35-
- if ruby --version | cut -d ' ' -f 2 | grep -q 2.1.5p273 ; then gem update --system 2.4.8; fi
36-
- gem install bundler
16+
- yes | gem update --system --force
17+
- gem install bundler

Appraisals

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
appraise "rails-4.1" do
2-
gem "activesupport", "~> 4.1.0"
1+
appraise "rails-5.0" do
2+
gem "activesupport", "~> 5.0.0"
33
end
44

5-
appraise "rails-4.2" do
6-
gem "activesupport", "~> 4.2.0"
5+
appraise "rails-5.1" do
6+
gem "activesupport", "~> 5.1.0"
77
end
88

9-
appraise "rails-5.0" do
10-
gem "activesupport", "~> 5.0.0"
9+
appraise "rails-5.2" do
10+
gem "activesupport", "~> 5.2.0"
1111
end

gemfiles/rails_4.1.gemfile.lock

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

gemfiles/rails_4.2.gemfile.lock

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

gemfiles/rails_5.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
qbxml (0.4.0)
5-
activesupport (>= 4.1.0)
5+
activesupport (>= 5.0.0)
66
builder (~> 3.0)
77
nokogiri (~> 1.5)
88

gemfiles/rails_4.1.gemfile renamed to gemfiles/rails_5.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "activesupport", "~> 4.1.0"
5+
gem "activesupport", "~> 5.1.0"
66

77
gemspec path: "../"

gemfiles/rails_5.1.gemfile.lock

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
qbxml (0.4.0)
5+
activesupport (>= 5.0.0)
6+
builder (~> 3.0)
7+
nokogiri (~> 1.5)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activesupport (5.1.7)
13+
concurrent-ruby (~> 1.0, >= 1.0.2)
14+
i18n (>= 0.7, < 2)
15+
minitest (~> 5.1)
16+
tzinfo (~> 1.1)
17+
appraisal (2.2.0)
18+
bundler
19+
rake
20+
thor (>= 0.14.0)
21+
builder (3.2.4)
22+
coderay (1.1.2)
23+
concurrent-ruby (1.1.5)
24+
diff-lcs (1.3)
25+
docile (1.3.2)
26+
i18n (1.7.1)
27+
concurrent-ruby (~> 1.0)
28+
json (2.3.0)
29+
method_source (0.9.2)
30+
mini_portile2 (2.4.0)
31+
minitest (5.13.0)
32+
nokogiri (1.10.7)
33+
mini_portile2 (~> 2.4.0)
34+
pry (0.12.2)
35+
coderay (~> 1.1.0)
36+
method_source (~> 0.9.0)
37+
pry-nav (0.3.0)
38+
pry (>= 0.9.10, < 0.13.0)
39+
rake (13.0.1)
40+
rspec (3.9.0)
41+
rspec-core (~> 3.9.0)
42+
rspec-expectations (~> 3.9.0)
43+
rspec-mocks (~> 3.9.0)
44+
rspec-core (3.9.1)
45+
rspec-support (~> 3.9.1)
46+
rspec-expectations (3.9.0)
47+
diff-lcs (>= 1.2.0, < 2.0)
48+
rspec-support (~> 3.9.0)
49+
rspec-mocks (3.9.1)
50+
diff-lcs (>= 1.2.0, < 2.0)
51+
rspec-support (~> 3.9.0)
52+
rspec-support (3.9.2)
53+
simplecov (0.17.1)
54+
docile (~> 1.1)
55+
json (>= 1.8, < 3)
56+
simplecov-html (~> 0.10.0)
57+
simplecov-html (0.10.2)
58+
thor (1.0.1)
59+
thread_safe (0.3.6)
60+
tzinfo (1.2.6)
61+
thread_safe (~> 0.1)
62+
63+
PLATFORMS
64+
ruby
65+
66+
DEPENDENCIES
67+
activesupport (~> 5.1.0)
68+
appraisal
69+
pry
70+
pry-nav
71+
qbxml!
72+
rake
73+
rspec
74+
simplecov
75+
76+
BUNDLED WITH
77+
2.1.2

gemfiles/rails_4.2.gemfile renamed to gemfiles/rails_5.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "activesupport", "~> 4.2.0"
5+
gem "activesupport", "~> 5.2.0"
66

77
gemspec path: "../"

gemfiles/rails_5.2.gemfile.lock

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
qbxml (0.4.0)
5+
activesupport (>= 5.0.0)
6+
builder (~> 3.0)
7+
nokogiri (~> 1.5)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activesupport (5.2.4.1)
13+
concurrent-ruby (~> 1.0, >= 1.0.2)
14+
i18n (>= 0.7, < 2)
15+
minitest (~> 5.1)
16+
tzinfo (~> 1.1)
17+
appraisal (2.2.0)
18+
bundler
19+
rake
20+
thor (>= 0.14.0)
21+
builder (3.2.4)
22+
coderay (1.1.2)
23+
concurrent-ruby (1.1.5)
24+
diff-lcs (1.3)
25+
docile (1.3.2)
26+
i18n (1.7.1)
27+
concurrent-ruby (~> 1.0)
28+
json (2.3.0)
29+
method_source (0.9.2)
30+
mini_portile2 (2.4.0)
31+
minitest (5.13.0)
32+
nokogiri (1.10.7)
33+
mini_portile2 (~> 2.4.0)
34+
pry (0.12.2)
35+
coderay (~> 1.1.0)
36+
method_source (~> 0.9.0)
37+
pry-nav (0.3.0)
38+
pry (>= 0.9.10, < 0.13.0)
39+
rake (13.0.1)
40+
rspec (3.9.0)
41+
rspec-core (~> 3.9.0)
42+
rspec-expectations (~> 3.9.0)
43+
rspec-mocks (~> 3.9.0)
44+
rspec-core (3.9.1)
45+
rspec-support (~> 3.9.1)
46+
rspec-expectations (3.9.0)
47+
diff-lcs (>= 1.2.0, < 2.0)
48+
rspec-support (~> 3.9.0)
49+
rspec-mocks (3.9.1)
50+
diff-lcs (>= 1.2.0, < 2.0)
51+
rspec-support (~> 3.9.0)
52+
rspec-support (3.9.2)
53+
simplecov (0.17.1)
54+
docile (~> 1.1)
55+
json (>= 1.8, < 3)
56+
simplecov-html (~> 0.10.0)
57+
simplecov-html (0.10.2)
58+
thor (1.0.1)
59+
thread_safe (0.3.6)
60+
tzinfo (1.2.6)
61+
thread_safe (~> 0.1)
62+
63+
PLATFORMS
64+
ruby
65+
66+
DEPENDENCIES
67+
activesupport (~> 5.2.0)
68+
appraisal
69+
pry
70+
pry-nav
71+
qbxml!
72+
rake
73+
rspec
74+
simplecov
75+
76+
BUNDLED WITH
77+
2.1.2

0 commit comments

Comments
 (0)