From 6049249c6c5c2a3078bb0f146168e8f9c0d99bc7 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 12 Jan 2014 01:12:12 +0100 Subject: upgrade SDoc Kudos to @zzak for taking over SDoc and make it work with RDoc 4. --- railties/CHANGELOG.md | 4 ++++ railties/lib/rails/generators/app_base.rb | 2 +- railties/test/generators/app_generator_test.rb | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'railties') 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 -- cgit v1.2.3