Skip to content
Newer
Older
100644 33 lines (26 sloc) 725 Bytes
64e7b62 @raggi Initial import, missing coverage and docs after big refactor
raggi authored
1 require 'hoe'
b372314 @raggi Update Rakefile for modern deps
raggi authored
2 Hoe.plugin :doofus, :git
64e7b62 @raggi Initial import, missing coverage and docs after big refactor
raggi authored
3
4 Hoe.spec 'rubygems-mirror' do
32a79e6 @raggi hoe spec updates
raggi authored
5 developer('James Tucker', 'jftucker@gmail.com')
6 license "MIT"
64e7b62 @raggi Initial import, missing coverage and docs after big refactor
raggi authored
7
b372314 @raggi Update Rakefile for modern deps
raggi authored
8 extra_dev_deps << %w[minitest ~>5.7]
9 extra_deps << %w[net-http-persistent ~>2.9]
64e7b62 @raggi Initial import, missing coverage and docs after big refactor
raggi authored
10
11 self.extra_rdoc_files = FileList["**/*.rdoc"]
12 self.history_file = "CHANGELOG.rdoc"
13 self.readme_file = "README.rdoc"
14 self.testlib = :minitest
15 end
16
17 namespace :mirror do
18 desc "Run the Gem::Mirror::Command"
19 task :update do
20 $:.unshift 'lib'
21 require 'rubygems/mirror/command'
22
384fd2a @raggi Move to the traditional rubygems constant namespace to override the b…
raggi authored
23 mirror = Gem::Commands::MirrorCommand.new
64e7b62 @raggi Initial import, missing coverage and docs after big refactor
raggi authored
24 mirror.execute
25 end
fded7da @raggi Bump net-http-persistent dependency
raggi authored
26 end
30137cb @raggi Add "integration test" (just runs the command in the "normal" way)
raggi authored
27
28 namespace :test do
29 task :integration do
30 sh Gem.ruby, '-Ilib', '-rubygems', '-S', 'gem', 'mirror'
31 end
32 end
Something went wrong with that request. Please try again.