From 3cbf1868b679ad9f0353bc86ce7ffb1cea7a99ba Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Thu, 27 Mar 2014 15:06:52 -0700 Subject: [PATCH] Remove redundant Gemfile. Use `rake newb` --- Gemfile | 5 ----- Rakefile | 20 ++++++++++++-------- 2 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 Gemfile diff --git a/Gemfile b/Gemfile deleted file mode 100644 index ec90ffe21..000000000 --- a/Gemfile +++ /dev/null @@ -1,5 +0,0 @@ -source 'https://rubygems.org' - -if RUBY_VERSION < "2.0.0" - gem 'minitest', '~> 4.3' -end diff --git a/Rakefile b/Rakefile index bccb86e3e..a801ca5d4 100644 --- a/Rakefile +++ b/Rakefile @@ -60,17 +60,21 @@ hoe.test_prelude = 'gem "minitest", "~> 4.0"' Rake::Task['docs'].clear Rake::Task['clobber_docs'].clear -require 'rdoc/task' +begin + require 'rdoc/task' -RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc| - doc.main = hoe.readme_file - doc.title = 'Rake -- Ruby Make' + RDoc::Task.new :rdoc => 'docs', :clobber_rdoc => 'clobber_docs' do |doc| + doc.main = hoe.readme_file + doc.title = 'Rake -- Ruby Make' - rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc] - rdoc_files.add hoe.extra_rdoc_files + rdoc_files = Rake::FileList.new %w[lib History.rdoc MIT-LICENSE doc] + rdoc_files.add hoe.extra_rdoc_files - doc.rdoc_files = rdoc_files + doc.rdoc_files = rdoc_files - doc.rdoc_dir = 'html' + doc.rdoc_dir = 'html' + end +rescue LoadError + warn 'run `rake newb` to install rdoc' end