lib/spring/test/application_generator.rb in spring-1.6.4 vs lib/spring/test/application_generator.rb in spring-1.7.0
- old
+ new
@@ -56,9 +56,13 @@
if version.needs_testunit?
append_to_file(application.gemfile, "gem 'spring-commands-testunit'")
end
+ if RUBY_VERSION == "1.9.3"
+ append_to_file(application.gemfile, "gem 'mime-types', '~> 2'")
+ end
+
rewrite_file(application.gemfile) do |c|
c.sub!("https://rubygems.org", "http://rubygems.org")
c.gsub!(/(gem '(byebug|web-console|sdoc|jbuilder)')/, "# \\1")
c
end