From 2a307623a29283c794e94c71f34f111c885d30a8 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Sat, 7 Mar 2015 13:38:59 +0900 Subject: [PATCH] Remove gem check in guides/rails_guides.rb Now rails/Gemfile includes nokogiri and redcarpet, so remove gem check from guides/rails_guides.rb --- guides/rails_guides.rb | 45 ------------------------------------------ 1 file changed, 45 deletions(-) diff --git a/guides/rails_guides.rb b/guides/rails_guides.rb index 762ab1c0e22..f4182f53941 100644 --- a/guides/rails_guides.rb +++ b/guides/rails_guides.rb @@ -1,13 +1,6 @@ pwd = File.dirname(__FILE__) $:.unshift pwd -# This is a predicate useful for the doc:guides task of applications. -def bundler? - # Note that rake sets the cwd to the one that contains the Rakefile - # being executed. - File.exist?('Gemfile') -end - begin # Guides generation in the Rails repo. as_lib = File.join(pwd, "../activesupport/lib") @@ -20,44 +13,6 @@ rescue LoadError gem "actionpack", '>= 3.0' end -begin - require 'redcarpet' -rescue LoadError - # This can happen if doc:guides is executed in an application. - $stderr.puts('Generating guides requires Redcarpet 3.2.2+.') - $stderr.puts(< 3.2.2' - -to the Gemfile, run - - bundle install - -and try again. -ERROR - exit 1 -end - -begin - require 'nokogiri' -rescue LoadError - # This can happen if doc:guides is executed in an application. - $stderr.puts('Generating guides requires Nokogiri.') - $stderr.puts(<