Skip to content

Commit

Permalink
Merge pull request #1206 from arunagw/jruby_openssl_load
Browse files Browse the repository at this point in the history
Let's load jruby-openssl now for all. #jruby
  • Loading branch information
josevalim committed May 22, 2011
2 parents f924dbe + 69bad8f commit 1ab556f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/rails/app/templates/Gemfile
Expand Up @@ -4,7 +4,7 @@ source 'http://rubygems.org'
<%= database_gemfile_entry -%>

<%= "gem 'jruby-openssl'\n" if defined?(JRUBY_VERSION) && JRUBY_VERSION < "1.6" -%>
<%= "gem 'jruby-openssl'\n" if defined?(JRUBY_VERSION) -%>
# Asset template engines
<%= "gem 'json'\n" if RUBY_VERSION < "1.9.2" -%>
gem 'sass'
Expand Down
4 changes: 3 additions & 1 deletion railties/test/generators/app_generator_test.rb
Expand Up @@ -136,7 +136,9 @@ def test_config_jdbcmysql_database
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"
# TODO: When the JRuby guys merge jruby-openssl in
# jruby this will be removed
assert_file "Gemfile", /^gem\s+["']jruby-openssl["']$/ if defined?(JRUBY_VERSION)
end

def test_config_jdbcsqlite3_database
Expand Down

0 comments on commit 1ab556f

Please sign in to comment.