Skip to content

Commit

Permalink
-m Removed dependence on newgem
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Feb 8, 2009
1 parent 6fe1b43 commit 77fe51a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ $hoe = Hoe.new('reek', Reek::VERSION) do |p|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
p.rubyforge_name = p.name # TODO this is default value
# p.extra_deps = [
# ['activesupport','>= 2.0.2'],
# ]
p.extra_deps = [
['ParseTree', '~> 3.0'],
['sexp_processor', '~> 3.0']
]
p.extra_dev_deps = [
['newgem', ">= #{::Newgem::VERSION}"]
]
Expand All @@ -21,5 +22,4 @@ $hoe = Hoe.new('reek', Reek::VERSION) do |p|
p.rsync_args = '-av --delete --ignore-errors'
end

require 'newgem/tasks' # load /tasks/*.rake
Dir['tasks/**/*.rake'].each { |t| load t }
37 changes: 37 additions & 0 deletions tasks/deployment.rake
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

0 comments on commit 77fe51a

Please sign in to comment.