aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/app_base.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2017-08-01 14:54:42 -0500
committerGitHub <noreply@github.com>2017-08-01 14:54:42 -0500
commitf9a43f28c087f8ffd35ff7c33a60c938b60f2be2 (patch)
tree7d319abdb62afc4eafe9dca993bbfc545c68ea5f /railties/lib/rails/generators/app_base.rb
parent38a79124424da5c34a2275cfd45c828ac4a089b2 (diff)
parentdd439bfbda2a39b305b13f00c40d07c6a8c46d8c (diff)
downloadrails-f9a43f28c087f8ffd35ff7c33a60c938b60f2be2.tar.gz
rails-f9a43f28c087f8ffd35ff7c33a60c938b60f2be2.tar.bz2
rails-f9a43f28c087f8ffd35ff7c33a60c938b60f2be2.zip
Merge pull request #30015 from larskanis/use-duktake-on-mingw
Use duktape gem as default JS engine on Windows-MINGW
Diffstat (limited to 'railties/lib/rails/generators/app_base.rb')
-rw-r--r--railties/lib/rails/generators/app_base.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 760cb2f81e..4899a63917 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -348,6 +348,8 @@ module Rails
comment = "See https://github.com/rails/execjs#readme for more supported runtimes"
if defined?(JRUBY_VERSION)
GemfileEntry.version "therubyrhino", nil, comment
+ elsif RUBY_PLATFORM =~ /mingw|mswin/
+ GemfileEntry.version "duktape", nil, comment
else
GemfileEntry.new "mini_racer", nil, comment, { platforms: :ruby }, true
end