diff options
author | Xavier Noria <fxn@hashref.com> | 2014-01-12 01:12:12 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2014-01-12 22:18:44 +0100 |
commit | 6049249c6c5c2a3078bb0f146168e8f9c0d99bc7 (patch) | |
tree | b643dacd6099c6e228d059e5d573b18297aa1f25 /railties | |
parent | 20a795f64d8a4f540004d7361f6a02e81eba79bb (diff) | |
download | rails-6049249c6c5c2a3078bb0f146168e8f9c0d99bc7.tar.gz rails-6049249c6c5c2a3078bb0f146168e8f9c0d99bc7.tar.bz2 rails-6049249c6c5c2a3078bb0f146168e8f9c0d99bc7.zip |
upgrade SDoc
Kudos to @zzak for taking over SDoc and make it work with RDoc 4.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG.md | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 21887c32fe..dc1679c8cb 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,7 @@ +* The `Gemfile` of new applications depends on SDoc ~> 0.4.0. + + *Xavier Noria* + * `test_help.rb` now automatically checks/maintains your test datbase schema. (Use `config.active_record.maintain_test_schema = false` to disable.) diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 4988602aea..1b50569c9e 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -352,7 +352,7 @@ module Rails def sdoc_gemfile_entry comment = 'bundle exec rake doc:rails generates the API under doc/api.' - GemfileEntry.new('sdoc', nil, comment, { group: :doc, require: false }) + GemfileEntry.new('sdoc', '~> 0.4.0', comment, group: :doc) end def coffee_gemfile_entry diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index be109cc598..43900e0fcf 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -390,9 +390,9 @@ class AppGeneratorTest < Rails::Generators::TestCase end end - def test_inclusion_of_lazy_loaded_sdoc + def test_inclusion_of_doc run_generator - assert_file 'Gemfile', /gem 'sdoc', \s+group: :doc, require: false/ + assert_file 'Gemfile', /gem 'sdoc',\s+'~> 0.4.0',\s+group: :doc/ end def test_template_from_dir_pwd |