Skip to content

Commit

Permalink
Merge pull request #390 from arunagw/jruby_openssl
Browse files Browse the repository at this point in the history
Adding jruby-openssl in Gemfile by default. #jruby
  • Loading branch information
josevalim committed May 5, 2011
2 parents 65fd004 + 2f331fd commit 3e9bb54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators/rails/app/templates/Gemfile
Expand Up @@ -4,6 +4,7 @@ source 'http://rubygems.org'
<%= database_gemfile_entry -%> <%= database_gemfile_entry -%>


<%= "gem 'jruby-openssl'\n" if defined?(JRUBY_VERSION) && JRUBY_VERSION < "1.6" -%>
# Asset template engines # Asset template engines
<%= "gem 'json'\n" if RUBY_VERSION < "1.9.2" -%> <%= "gem 'json'\n" if RUBY_VERSION < "1.9.2" -%>
gem 'sass' gem 'sass'
Expand Down
1 change: 1 addition & 0 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -135,6 +135,7 @@ def test_config_jdbcmysql_database
run_generator([destination_root, "-d", "jdbcmysql"]) run_generator([destination_root, "-d", "jdbcmysql"])
assert_file "config/database.yml", /jdbcmysql/ assert_file "config/database.yml", /jdbcmysql/
assert_file "Gemfile", /^gem\s+["']activerecord-jdbcmysql-adapter["']$/ assert_file "Gemfile", /^gem\s+["']activerecord-jdbcmysql-adapter["']$/
assert_file "Gemfile", /^gem\s+["']jruby-openssl["']$/ if defined?(JRUBY_VERSION) && JRUBY_VERSION < "1.6"
end end


def test_config_jdbcsqlite3_database def test_config_jdbcsqlite3_database
Expand Down

0 comments on commit 3e9bb54

Please sign in to comment.