File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ def generate
38
38
39
39
# Sporadic SSL errors keep causing test failures so there are anti-SSL workarounds here
40
40
def generate_files
41
+ if RUBY_VERSION == "1.9.3"
42
+ system ( "gem list '^mime-types$' --installed --version '~> 2' || " \
43
+ "gem install mime-types --clear-sources --source http://rubygems.org --version '~> 2'" )
44
+ end
45
+
41
46
system ( "gem list '^rails$' --installed --version '#{ version_constraint } ' || " \
42
47
"gem install rails --clear-sources --source http://rubygems.org --version '#{ version_constraint } '" )
43
48
@@ -59,7 +64,7 @@ def generate_files
59
64
append_to_file ( application . gemfile , "gem 'spring-commands-testunit'" )
60
65
end
61
66
62
- if RUBY_VERSION == "1.9.3"
67
+ if RUBY_VERSION == "1.9.3" && version . to_s . start_with? ( "4.0" )
63
68
append_to_file ( application . gemfile , "gem 'mime-types', '~> 2'" )
64
69
end
65
70
You can’t perform that action at this time.
0 commit comments