-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
40 lines (33 loc) · 1.05 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env rake
require 'rake'
require 'rdoc/task'
require 'rubygems/package_task'
require 'bundler/gem_helper'
MY_GEMS = Dir['*.gemspec'].map { |g| g.sub(/.*-(.*)\.gemspec/, '\1') }
MY_GEMS.each do |g|
namespace g do
bgh = Bundler::GemHelper.new(Dir.pwd, "epp-client-#{g}")
bgh.install
task :push do
sh "gem push #{File.join(Dir.pwd, 'pkg', "epp-client-#{g}-#{bgh.__send__(:version)}.gem")}"
end
end
end
namespace :all do
task :build => MY_GEMS.map { |f| "#{f}:build" }
task :install => MY_GEMS.map { |f| "#{f}:install" }
task :push => MY_GEMS.map { |f| "#{f}:push" }
end
task :build => 'all:build'
task :install => 'all:install'
task :push => 'all:push'
desc 'Generate documentation for the Rails framework'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.title = 'Documentation'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('ChangeLog')
rdoc.rdoc_files.include('lib/**/*.rb')
end