File tree Expand file tree Collapse file tree 3 files changed +33
-6
lines changed
spec/dummy/config/initializers Expand file tree Collapse file tree 3 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 66 global :
77 - CC_TEST_REPORTER_ID=98c9b3070ea9ac0e8f7afb6570f181506c3a06372b1db5c7deb8e46089fdf132
88 - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
9+ matrix :
10+ - RAILS_VERSION=5.0.0
11+ - RAILS_VERSION=5.1.0
12+ - RAILS_VERSION=5.2.0
13+ - RAILS_VERSION=master
914rvm :
10- - 2.2.2
11- - 2.3.3
15+ - 2.2.10
16+ - 2.3.7
17+ - 2.4.4
18+ - 2.5.1
1219 - ruby-head
1320matrix :
1421 allow_failures :
1522 - rvm : ruby-head
23+ - env : RAILS_VERSION=master
24+ exclude :
25+ - rvm : 2.2.10
26+ env : RAILS_VERSION=master
27+ - rvm : 2.3.7
28+ env : RAILS_VERSION=master
1629before_script :
1730 - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
1831 - chmod +x ./cc-test-reporter
1932 - ./cc-test-reporter before-build
2033after_script :
21- # Preferably you will run test-reporter on branch update events. But
22- # if you setup travis to build PR updates only, you don't need to run
34+ # Preferably you will run test-reporter on branch update events. But
35+ # if you setup travis to build PR updates only, you don't need to run
2336 # the line below
2437 - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
25- # In the case where travis is setup to build PR updates only,
38+ # In the case where travis is setup to build PR updates only,
2639 # uncomment the line below
2740 # - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
22
3+ rails_version = ENV [ 'RAILS_VERSION' ] || "default"
4+ rails = case rails_version
5+ when 'master'
6+ { github : 'rails/rails' }
7+ when 'default'
8+ '>= 5.0'
9+ else
10+ "~> #{ ENV [ 'RAILS_VERSION' ] } "
11+ end
12+
13+ gem 'rails' , rails
14+
315gemspec
Original file line number Diff line number Diff line change 1818Rails . application . config . active_record . belongs_to_required_by_default = true
1919
2020# Do not halt callback chains when a callback returns false. Previous versions had true.
21- ActiveSupport . halt_callback_chains_on_return_false = false
21+ if Rails . version . to_f < 5.2
22+ ActiveSupport . halt_callback_chains_on_return_false = false
23+ end
2224
2325# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
2426Rails . application . config . ssl_options = { hsts : { subdomains : true } }
You can’t perform that action at this time.
0 commit comments