Rakefile in yamled_acl-0.2.0 vs Rakefile in yamled_acl-0.3.0
- old
+ new
@@ -1,7 +1,7 @@
require 'rake'
-require 'rake/rdoctask'
+require 'rdoc/task'
desc 'Generate documentation for the yamled_acl plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'YamledAcl'
@@ -10,28 +10,20 @@
end
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
-desc "Run specs with RCov"
-RSpec::Core::RakeTask.new(:rcov) do |t|
- t.rcov = true
- t.rcov_opts = %q[--exclude "spec" --text-report]
-end
+task :default => :spec
desc "Build current version as a rubygem"
task :build do
`gem build yamled_acl.gemspec`
- `mkdir -p pkg`
`mv yamled_acl-*.gem pkg/`
end
desc "Relase current version to rubygems.org"
task :release => :build do
`git tag -am "Version bump to #{YamledAcl::VERSION}" v#{YamledAcl::VERSION}`
`git push origin master`
`git push origin master --tags`
`gem push pkg/yamled_acl-#{YamledAcl::VERSION}.gem`
end
-
-task :default => :spec
-