lib/spring/test/application_generator.rb in spring-2.0.1 vs lib/spring/test/application_generator.rb in spring-2.0.2
- old
+ new
@@ -90,9 +90,14 @@
application.run! "gem install activesupport --version '#{version}'"
end
build_and_install_gems
+ # TO prevent nokogiri install error in application.bundle.
+ if RUBY_VERSION < "2.1.0"
+ append_to_file(application.gemfile, "gem 'nokogiri', '~> 1.6.8'")
+ end
+
application.bundle
FileUtils.rm_rf application.path("bin")
if application.path("bin_original").exist?