forked from troessner/reek
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe1b43
commit 77fe51a
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
desc "Generate a #{$hoe.name}.gemspec file" | ||
task :gemspec do | ||
File.open("#{$hoe.name}.gemspec", "w") do |file| | ||
file.puts $hoe.spec.to_ruby | ||
end | ||
end | ||
|
||
task :release do | ||
puts <<-EOS.gsub(/^ /,'') | ||
Remember to create tag your release; eg for Git: | ||
git tag REL-#{$hoe.version} | ||
Announce your release on RubyForge News: | ||
rake post_news | ||
EOS | ||
end | ||
|
||
task :check_version do | ||
unless ENV['VERSION'] | ||
puts 'Must pass a VERSION=x.y.z release version' | ||
exit | ||
end | ||
unless ENV['VERSION'] == $hoe.version | ||
puts "Please update your lib/#{$hoe.name}.rb to match the release version, currently #{$hoe.version}" | ||
exit | ||
end | ||
end | ||
|
||
desc 'Install the package as a gem, without generating documentation(ri/rdoc)' | ||
task :install_gem_no_doc => [:clean, :package] do | ||
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri" | ||
end | ||
|
||
desc 'Recreate Manifest.txt to include ALL files' | ||
task :manifest do | ||
`rake check_manifest | patch -p0 > Manifest.txt` | ||
end |