diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-05-05 08:30:26 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-05-05 08:30:26 +0530 |
commit | 2f331fd9b2649bd431207a8c83304795bee1ef8e (patch) | |
tree | e2737be8e160175857eef3a0f05613a22ed6eafe | |
parent | e99c1e3a3bd231a11cb2e2d5062dd1cdbcda61e2 (diff) | |
download | rails-2f331fd9b2649bd431207a8c83304795bee1ef8e.tar.gz rails-2f331fd9b2649bd431207a8c83304795bee1ef8e.tar.bz2 rails-2f331fd9b2649bd431207a8c83304795bee1ef8e.zip |
Adding jruby-openssl in Gemfile by default. #jruby
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/Gemfile | 1 | ||||
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile b/railties/lib/rails/generators/rails/app/templates/Gemfile index b046edd5b7..a69efdf29d 100644 --- a/railties/lib/rails/generators/rails/app/templates/Gemfile +++ b/railties/lib/rails/generators/rails/app/templates/Gemfile @@ -4,6 +4,7 @@ source 'http://rubygems.org' <%= database_gemfile_entry -%> +<%= "gem 'jruby-openssl'\n" if defined?(JRUBY_VERSION) && JRUBY_VERSION < "1.6" -%> # Asset template engines <%= "gem 'json'\n" if RUBY_VERSION < "1.9.2" -%> gem 'sass' diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 81263a6ce9..e271095636 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -135,6 +135,7 @@ class AppGeneratorTest < Rails::Generators::TestCase run_generator([destination_root, "-d", "jdbcmysql"]) assert_file "config/database.yml", /jdbcmysql/ assert_file "Gemfile", /^gem\s+["']activerecord-jdbcmysql-adapter["']$/ + assert_file "Gemfile", /^gem\s+["']jruby-openssl["']$/ if defined?(JRUBY_VERSION) && JRUBY_VERSION < "1.6" end def test_config_jdbcsqlite3_database |