Skip to content

Commit

Permalink
Merge pull request delynn#17 from lowjoel/fix-build-matrix
Browse files Browse the repository at this point in the history
Fix build matrix
  • Loading branch information
lowjoel authored Jan 30, 2017
2 parents 61c5c66 + adfbf74 commit 3354807
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
31 changes: 15 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.9
- 2.2.5
- 2.3.1
- 2.1.10
- 2.2.6
- 2.3.3
- 2.4.0
- ruby-head
env:
- "RAILS_VERSION=4.0"
- "RAILS_VERSION=4.1"
- "RAILS_VERSION=4.2"
- "RAILS_VERSION=5.0"
- "RAILS_VERSION=4.1.0"
- "RAILS_VERSION=4.2.0"
- "RAILS_VERSION=5.0.0"
matrix:
allow_failures:
- rvm: ruby-head
exclude:
- rvm: 2.0.0
env: "RAILS_VERSION=5.0"
- rvm: 2.1.9
env: "RAILS_VERSION=5.0"
- rvm: 2.1.10
env: "RAILS_VERSION=5.0.0"
- rvm: 2.4.0
env: "RAILS_VERSION=4.1.0"
- rvm: 2.4.0
env: "RAILS_VERSION=4.2.0"
- rvm: ruby-head
env: "RAILS_VERSION=4.0"
env: "RAILS_VERSION=4.1.0"
- rvm: ruby-head
env: "RAILS_VERSION=4.1"
- rvm: ruby-head
env: "RAILS_VERSION=4.2"
env: "RAILS_VERSION=4.2.0"

bundler_args: "--jobs=3 --retry=3"
cache: bundler
Expand Down
6 changes: 3 additions & 3 deletions activerecord-userstamp.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ Gem::Specification.new do |s|
rails_version =
case ENV['RAILS_VERSION']
when nil, ''
'>= 4.0'
'>= 4.1'
else
"~> #{ENV['RAILS_VERSION']}"
end
else
rails_version = '>= 4.0'
rails_version = '>= 4.1'
end

s.add_dependency 'rails', rails_version

s.add_development_dependency 'tzinfo-data'
s.add_development_dependency 'tzinfo-data' if RUBY_PLATFORM =~ /mswin|mingw/
s.add_development_dependency 'rake'
s.add_development_dependency 'rdoc'
s.add_development_dependency 'rspec-rails', '>= 3.3'
Expand Down
7 changes: 5 additions & 2 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de

# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
# Do not swallow errors in after_commit/after_rollback callbacks. This only applies to Rails 4.2
# and is deprecated in Rail 5.
if ActiveRecord.version == Gem::Version.new('4.2.x')
config.active_record.raise_in_transactional_callbacks = true
end

config.after_initialize do
require_relative '../db/schema'
Expand Down
8 changes: 4 additions & 4 deletions spec/lib/stamping_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
User.stamper = @hera
expect(User.stamper).to eq(@hera)

@delynn.name << " Berry"
@delynn.name = @delynn.name + " Berry"
@delynn.save
@delynn.reload
expect(@delynn.creator).to eq(@zeus)
Expand All @@ -149,7 +149,7 @@
User.stamper = @hera.id
expect(User.stamper).to eq(@hera.id)

@delynn.name << " Berry"
@delynn.name = @delynn.name + " Berry"
@delynn.save
@delynn.reload
expect(@delynn.creator_id).to eq(@zeus.id)
Expand Down Expand Up @@ -184,7 +184,7 @@
Person.stamper = @nicole.id
expect(Person.stamper).to eq(@nicole.id)

@first_post.title << " - Updated"
@first_post.title = @first_post.title + " - Updated"
@first_post.save
@first_post.reload
expect(@first_post.creator_id).to eq(@delynn.id)
Expand All @@ -199,7 +199,7 @@
Person.stamper = @nicole
expect(Person.stamper).to eq(@nicole)

@first_post.title << " - Updated"
@first_post.title = @first_post.title + " - Updated"
@first_post.save
@first_post.reload
expect(@first_post.creator_id).to eq(@delynn.id)
Expand Down

0 comments on commit 3354807

Please sign in to comment.