Rakefile in panini-1.2.0 vs Rakefile in panini-1.3.0
- old
+ new
@@ -11,17 +11,17 @@
end
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
gem.name = "panini"
gem.homepage = "http://github.com/mjbellantoni/panini"
gem.license = "MIT"
gem.summary = %Q{Create sentences from a context-free grammar (CFG)}
gem.description = %Q{Panini allows you to generate sentences from a context-free grammar, also known as a CFG.}
- gem.email = "mjbellantoni@yahoo.com"
+ gem.email = "mjbellantoni@gmail.com"
gem.authors = ["mjbellantoni"]
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
@@ -29,17 +29,18 @@
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
-RSpec::Core::RakeTask.new(:rcov) do |spec|
- spec.pattern = 'spec/**/*_spec.rb'
- spec.rcov = true
+desc "Code coverage detail"
+task :simplecov do
+ ENV['COVERAGE'] = "true"
+ Rake::Task['test'].execute
end
task :default => :spec
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "panini #{version}"