forked from alibaba-archive/rubygems-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
executable file
·37 lines (30 loc) · 906 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
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env rake
require 'hoe'
Hoe.plugin :doofus, :git, :gemcutter
Hoe.spec 'rubygems-mirror' do
developer('James Tucker', 'raggi@rubyforge.org')
extra_dev_deps << %w[hoe-doofus >=1.0.0]
extra_dev_deps << %w[hoe-git >=1.3.0]
extra_dev_deps << %w[hoe-gemcutter >=1.0.0]
extra_dev_deps << %w[builder >=2.1.2]
extra_deps << %w[net-http-persistent >=2.1]
self.extra_rdoc_files = FileList["**/*.rdoc"]
self.history_file = "CHANGELOG.md"
self.readme_file = "README.md"
self.rubyforge_name = 'rubygems'
self.testlib = :minitest
end
namespace :mirror do
desc "Run the Gem::Mirror::Command"
task :update do
$:.unshift 'lib'
require 'rubygems/mirror/command'
mirror = Gem::Commands::MirrorCommand.new
mirror.execute
end
end
namespace :test do
task :integration do
sh Gem.ruby, '-Ilib', '-rubygems', '-S', 'gem', 'mirror'
end
end