Skip to content

Commit 36d2e9d

Browse files
authored
Merge pull request #367 from aclemons/travis_updates
Fix travis build for rails-main.
2 parents 17a0c04 + fea3876 commit 36d2e9d

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

.travis.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ sudo: false
33
cache: bundler
44

55
rvm:
6-
- 2.7.2
7-
- 2.6.5
8-
- 2.5.7
6+
- 3.0.3
7+
- 2.7.5
98
- ruby-head
109
- jruby-head
1110

@@ -27,32 +26,38 @@ matrix:
2726
env: BRANCH=5-1-stable
2827
- rvm: 2.3.8
2928
env: BRANCH=5-2-stable
30-
- rvm: 2.4.7
29+
- rvm: 2.4.10
3130
env: BRANCH=5-0-stable
32-
- rvm: 2.4.7
31+
- rvm: 2.4.10
3332
env: BRANCH=5-1-stable
34-
- rvm: 2.4.7
33+
- rvm: 2.4.10
3534
env: BRANCH=5-2-stable
36-
- rvm: 2.5.7
35+
- rvm: 2.5.9
3736
env: BRANCH=5-0-stable
38-
- rvm: 2.5.7
37+
- rvm: 2.5.9
3938
env: BRANCH=5-1-stable
40-
- rvm: 2.5.7
39+
- rvm: 2.5.9
4140
env: BRANCH=5-2-stable
42-
- rvm: 2.5.7
41+
- rvm: 2.5.9
4342
env: BRANCH=6-0-stable
44-
- rvm: 2.6.5
43+
- rvm: 2.6.9
4544
env: BRANCH=5-0-stable
46-
- rvm: 2.6.5
45+
- rvm: 2.6.9
4746
env: BRANCH=5-1-stable
48-
- rvm: 2.6.5
47+
- rvm: 2.6.9
4948
env: BRANCH=5-2-stable
50-
- rvm: 2.6.5
49+
- rvm: 2.6.9
5150
env: BRANCH=6-0-stable
52-
- rvm: 2.7.2
51+
- rvm: 2.7.5
5352
env: BRANCH=6-0-stable
54-
- rvm: 2.7.2
53+
- rvm: 2.7.5
5554
env: BRANCH=6-1-stable
55+
- rvm: 3.0.3
56+
env: BRANCH=6-1-stable
57+
- rvm: 2.7.5
58+
env: BRANCH=7-0-stable
59+
- rvm: 3.0.3
60+
env: BRANCH=7-0-stable
5661

5762
notifications:
5863
email: false

activeresource.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
2020

2121
s.required_ruby_version = ">= 2.2.2"
2222

23-
s.add_dependency("activesupport", ">= 5.0", "< 7")
24-
s.add_dependency("activemodel", ">= 5.0", "< 7")
23+
s.add_dependency("activesupport", ">= 5.0", "< 8")
24+
s.add_dependency("activemodel", ">= 5.0", "< 8")
2525
s.add_dependency("activemodel-serializers-xml", "~> 1.0")
2626

2727
s.add_development_dependency("rake")

test/cases/base_errors_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ def test_should_iterate_over_errors
6464
[ :json, :xml ].each do |format|
6565
invalid_user_using_format(format) do
6666
errors = []
67-
@person.errors.each { |attribute, message| errors << [attribute, message] }
67+
if ActiveSupport.gem_version >= Gem::Version.new("6.1.x")
68+
@person.errors.each { |error| errors << [error.attribute, error.message] }
69+
else
70+
@person.errors.each { |attribute, message| errors << [attribute, message] }
71+
end
6872
assert errors.include?([:name, "can't be blank"])
6973
end
7074
end

0 commit comments

Comments
 (0)