File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ language: ruby
2
2
cache : bundler
3
3
sudo : false
4
4
rvm :
5
- - 1.9.3
5
+ - 1.9.3 # when removed, get rid of the before_script hack and also the one in application_generator.rb
6
6
- 2.0.0
7
7
- 2.1.5
8
8
- 2.2.0
12
12
- RAILS_VERSION="~> 4.1.0"
13
13
- RAILS_VERSION="~> 4.2.0"
14
14
before_script :
15
+ - " [ $TRAVIS_RUBY_VERSION = \" 1.9.3\" ] && travis_retry gem install mime-types --version \" ~> 2\" || true"
15
16
- travis_retry gem install rails --version "$RAILS_VERSION"
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ def generate_files
58
58
append_to_file ( application . gemfile , "gem 'spring-commands-testunit'" )
59
59
end
60
60
61
+ if RUBY_VERSION == "1.9.3"
62
+ append_to_file ( application . gemfile , "gem 'mime-types', '~> 2'" )
63
+ end
64
+
61
65
rewrite_file ( application . gemfile ) do |c |
62
66
c . sub! ( "https://rubygems.org" , "http://rubygems.org" )
63
67
c . gsub! ( /(gem '(byebug|web-console|sdoc|jbuilder)')/ , "# \\ 1" )
You can’t perform that action at this time.
0 commit comments