forked from hoffrocket/ruby-rapleaf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
28 lines (23 loc) · 774 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require './lib/ruby-rapleaf.rb'
Hoe.new('ruby-rapleaf', Rapleaf::VERSION) do |p|
p.rubyforge_name = 'ruby-rapleaf' # if different than lowercase project name
p.developer('Glenn Rempe', 'glenn@rempe.us')
p.extra_deps = [['xml-simple', '>= 1.0.11'], ['builder', '>= 2.1.2']]
end
namespace :manifest do
desc 'Recreate Manifest.txt to include ALL files'
task :refresh do
`rake check_manifest | patch -p0 > Manifest.txt`
end
end
namespace :gemspec do
desc 'Refresh the gemspec file'
task :refresh do
`rake debug_gem > ruby-rapleaf.gemspec`
# remove the first line from the file which is an artifact of the gemspec generation
`perl -pi -e '$_ = "" if ($. == 1);' ruby-rapleaf.gemspec`
end
end