diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-11-07 10:55:24 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-11-07 21:32:46 +0100 |
commit | e259afe847f83ae26645d95bb73ec38279414c92 (patch) | |
tree | 131f905975e9fbd8ed6ff9c41528d5f2378e1218 /railties/lib/rails/generators | |
parent | 1c4722560918b2d3cf30466b7daed2283b3d3482 (diff) | |
download | rails-e259afe847f83ae26645d95bb73ec38279414c92.tar.gz rails-e259afe847f83ae26645d95bb73ec38279414c92.tar.bz2 rails-e259afe847f83ae26645d95bb73ec38279414c92.zip |
Added platform dependent gems
See #12475
If people are on rbx they will get the desired gem
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 40145a7a50..962cb5eb1b 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -110,6 +110,7 @@ module Rails javascript_gemfile_entry, jbuilder_gemfile_entry, sdoc_gemfile_entry, + platform_dependent_gemfile_entry, @extra_entries].flatten.find_all(&@gem_filter) end @@ -316,6 +317,14 @@ module Rails gems end + def platform_dependent_gemfile_entry + gems = [] + if RUBY_ENGINE == 'rbx' + gems << GemfileEntry.version('rubysl', nil) + end + gems + end + def jbuilder_gemfile_entry comment = 'Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder' GemfileEntry.version('jbuilder', '~> 1.2', comment) |