File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ gemspec
17
17
18
18
rails_dependencies_gemfile = File . expand_path ( "../Gemfile-rails-dependencies" , __FILE__ )
19
19
eval_gemfile rails_dependencies_gemfile
20
+
21
+ gem 'radius-spec' , require : false , group : %i[ development test ] if RUBY_VERSION . to_f >= 2.5
Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ export RACK_ROOT="$RAILS_ROOT"
17
17
echo " ---> Running tests"
18
18
./bin/rspec --require rails_helper
19
19
20
- # Script for running Rubocop
21
- # A Ruby static code analyzer, based on the community Ruby style guide.
22
- # http://rubocop.readthedocs.io
23
- echo " ---> Running rubocop"
24
- ./bin/rubocop --config .rubocop.yml --lint
20
+ if [ " $TRAVIS_RUBY_VERSION " = " 2.5.0" ]; then
21
+ # Script for running Rubocop
22
+ # A Ruby static code analyzer, based on the community Ruby style guide.
23
+ # http://rubocop.readthedocs.io
24
+ echo " ---> Running rubocop"
25
+ ./bin/rubocop --config .rubocop.yml --lint
26
+ fi
25
27
26
28
# Script for running Brakeman tests
27
29
# Brakeman is a security scanner
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ if [[ "$TRAVIS_PULL_REQUEST" = "false" ]] || [[ "$TRAVIS_BRANCH" = "production"
12
12
exit
13
13
fi
14
14
15
+ if ! [ " $TRAVIS_RUBY_VERSION " = " 2.5.0" ]; then
16
+ exit
17
+ fi
18
+
15
19
set -e
16
20
cd " $( dirname " $0 " ) /.."
17
21
Original file line number Diff line number Diff line change @@ -27,6 +27,5 @@ Gem::Specification.new do |s|
27
27
s . add_development_dependency 'rspec-rails' , '~> 3.5'
28
28
s . add_development_dependency 'pry'
29
29
s . add_development_dependency 'pry-nav'
30
- s . add_development_dependency 'radius-spec' , '~> 0.4'
31
30
s . add_development_dependency 'webmock'
32
31
end
You can’t perform that action at this time.
0 commit comments