Rakefile in edtf-2.0.0 vs Rakefile in edtf-2.1.0
- old
+ new
@@ -11,19 +11,19 @@
$:.unshift(File.join(File.dirname(__FILE__), './lib'))
require 'edtf/version'
require 'rake/clean'
-task :default => [:racc, :spec, :cucumber]
+task :default => [:spec, :cucumber]
desc 'Run an IRB session with CiteProc loaded'
task :console, [:script] do |t,args|
ARGV.clear
require 'irb'
require 'edtf'
-
+
IRB.conf[:SCRIPT] = args.script
IRB.start
end
desc 'Generates the parser'
@@ -44,14 +44,24 @@
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber)
desc 'Builds the gem file'
-task :build => [:racc] do
+task :build => [:check_warnings] do
system 'gem build edtf.gemspec'
end
-task :release => [:build] do
+require 'coveralls/rake/task'
+Coveralls::RakeTask.new
+task :test_with_coveralls => [:spec, :cucumber, 'coveralls:push']
+
+task :check_warnings do
+ $VERBOSE = true
+ require 'edtf'
+ puts EDTF::VERSION
+end
+
+task :release => [ :build] do
system "git tag #{EDTF::VERSION}"
system "git push --tags"
system "gem push edtf-#{EDTF::VERSION}.gem"
end