Rakefile in jekyll-bits-0.4.1 vs Rakefile in jekyll-bits-0.5
- old
+ new
@@ -20,39 +20,29 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
require 'rubygems'
require 'rake'
-require 'rdoc'
require 'rake/clean'
-CLEAN = FileList['coverage', 'rdoc']
+CLEAN = FileList['coverage']
def name
@name ||= File.basename(Dir['*.gemspec'].first, '.*')
end
def version
Gem::Specification.load(Dir['*.gemspec'].first).version
end
-task default: [:clean, :test, :rdoc, :rubocop]
+task default: [:clean, :test, :rubocop]
require 'rake/testtask'
desc 'Run all unit tests'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = false
-end
-
-require 'rdoc/task'
-desc 'Build RDoc documentation'
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "#{name} #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rubocop/rake_task'
desc 'Run RuboCop on all directories'
RuboCop::RakeTask.new(:rubocop) do |task|