validates_timeliness/.travis.yml
Pedro Paiva 709d2c87e2
Add Rails 6.1 compatibility
Rails 6.1 needs the following changes:
- Add `owner: nil` to `define_method_attribute` calls
- Pass `options` to error `add` method as keyword argument

Ref:
- https://api.rubyonrails.org/v6.0.0/classes/ActiveModel/Errors.html#method-i-add
- https://api.rubyonrails.org/v6.1.0/classes/ActiveModel/Errors.html#method-i-add

Fix: #193
2021-01-10 10:28:52 +01:00

23 lines
394 B
YAML

language: ruby
before_install: gem install bundler
cache: bundler
gemfile:
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6_0.gemfile
- gemfiles/rails_6_1.gemfile
rvm:
- "2.5.3"
script: 'bundle exec rspec'
notifications:
email:
recipients:
- adam.meehan@gmail.com
on_failure: change
on_success: never