forked from dreilly1982/rubygems-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
38 lines (31 loc) · 919 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
38
#!/usr/bin/env rake
require 'hoe'
Hoe.plugin :doofus, :git, :gemcutter
Hoe.spec 'rubygems-mirror' do
developer('James Tucker', '[email protected]')
license "MIT"
extra_dev_deps << %w[hoe-doofus ~>1.0]
extra_dev_deps << %w[hoe-git ~>1.3]
extra_dev_deps << %w[hoe-gemcutter ~>1.0]
extra_dev_deps << %w[builder ~>2.1]
extra_dev_deps << %w[minitest ~>5.4]
extra_deps << %w[net-http-persistent ~>2.1]
self.extra_rdoc_files = FileList["**/*.rdoc"]
self.history_file = "CHANGELOG.rdoc"
self.readme_file = "README.rdoc"
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