File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ language: ruby
22cache : bundler
33sudo : false
44rvm :
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
66 - 2.0.0
77 - 2.1.5
88 - 2.2.0
1212 - RAILS_VERSION="~> 4.1.0"
1313 - RAILS_VERSION="~> 4.2.0"
1414before_script :
15+ - " [ $TRAVIS_RUBY_VERSION = \" 1.9.3\" ] && travis_retry gem install mime-types --version \" ~> 2\" || true"
1516 - 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
5858 append_to_file ( application . gemfile , "gem 'spring-commands-testunit'" )
5959 end
6060
61+ if RUBY_VERSION == "1.9.3"
62+ append_to_file ( application . gemfile , "gem 'mime-types', '~> 2'" )
63+ end
64+
6165 rewrite_file ( application . gemfile ) do |c |
6266 c . sub! ( "https://rubygems.org" , "http://rubygems.org" )
6367 c . gsub! ( /(gem '(byebug|web-console|sdoc|jbuilder)')/ , "# \\ 1" )
You can’t perform that action at this time.
0 commit comments