Skip to content

Commit 02f2f86

Browse files
committed
Exclude 2.0 form 5.0; update deps
1 parent 1b89a4b commit 02f2f86

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,18 @@ env:
3333

3434
matrix:
3535
exclude:
36+
- rvm: 1.9.3
37+
env: RAILS_VERSION=master
38+
- rvm: 2.0.0
39+
env: RAILS_VERSION=master
3640
- rvm: 2.1
3741
env: RAILS_VERSION=master
3842
- rvm: jruby-9.1.5.0
3943
env: RAILS_VERSION=master
44+
- rvm: 1.9.3
45+
env: RAILS_VERSION=5.0
46+
- rvm: 2.0.0
47+
env: RAILS_VERSION=5.0
4048
- rvm: 2.1
4149
env: RAILS_VERSION=5.0
4250
- rvm: jruby-9.1.5.0

Gemfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,27 @@ version = ENV["RAILS_VERSION"] || "4.2"
66

77
if version == 'master'
88
gem 'rack', github: 'rack/rack'
9+
gem 'arel', github: 'rails/arel'
10+
gem 'rails', github: 'rails/rails'
911
git 'https://github.com/rails/rails.git' do
1012
gem 'railties'
1113
gem 'activesupport'
1214
gem 'activemodel'
1315
gem 'actionpack'
16+
gem 'activerecord', group: :test
1417
# Rails 5
1518
gem 'actionview'
1619
end
1720
# Rails 5
1821
gem 'rails-controller-testing', github: 'rails/rails-controller-testing'
1922
else
2023
gem_version = "~> #{version}.0"
24+
gem 'rails', gem_version
2125
gem 'railties', gem_version
2226
gem 'activesupport', gem_version
2327
gem 'activemodel', gem_version
2428
gem 'actionpack', gem_version
29+
gem 'activerecord', gem_version, group: :test
2530
end
2631

2732
if RUBY_VERSION < '2'
@@ -36,14 +41,14 @@ end
3641
@windows_platforms = [:mswin, :mingw, :x64_mingw]
3742

3843
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
39-
gem 'tzinfo-data', platforms: (@windows_platforms + [:jruby])
44+
tzinfo_platforms = @windows_platforms
45+
tzinfo_platforms += [:jruby] if version >= '4.1'
46+
gem 'tzinfo-data', platforms: tzinfo_platforms
4047

4148
group :test do
42-
gem 'activerecord'
4349
gem 'sqlite3', platform: (@windows_platforms + [:ruby])
4450
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
4551

46-
gem 'codeclimate-test-reporter', require: false
4752
gem 'simplecov', '~> 0.10', require: false, group: :development
4853
end
4954

lib/active_model/serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def embedded_in_root_associations
203203
if included_associations.include? name
204204
association_serializer = build_serializer(association)
205205
# we must do this always because even if the current association is not
206-
# embeded in root, it might have its own associations that are embeded in root
206+
# embedded in root, it might have its own associations that are embedded in root
207207
hash.merge!(association_serializer.embedded_in_root_associations) do |key, oldval, newval|
208208
if oldval.respond_to?(:to_ary)
209209
[oldval, newval].flatten.uniq

test/fixtures/poro.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def comments
4949

5050
class SpecialPost < Post
5151
def special_comment
52-
@speical_comment ||= Comment.new(content: 'special')
52+
@special_comment ||= Comment.new(content: 'special')
5353
end
5454
end
5555

0 commit comments

Comments
 (0)