rumb 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rumb +11 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feadd3ea525406999919623b96b10c9bc14196fa
|
4
|
+
data.tar.gz: 2ef6e9fdd91629a2f06407d10db718c0b43679b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f3fffefd394392a4bd6b47b2ce8983550a49962d1b26b1d67931178e13a5446d132c2502df8918140c33c98c218124a528f7b7fe22fbcbb7adea698415ed8a
|
7
|
+
data.tar.gz: e1109181eb38239e10e337c000e0026182ab198b1d9c31efead603a68f2847fa8bb86b6289b45a98e3b3e3378460a81f0876023c485858205b3d29e7577c08c4
|
data/bin/rumb
CHANGED
@@ -16,23 +16,28 @@ DESCRIPTION
|
|
16
16
|
|
17
17
|
EOS
|
18
18
|
|
19
|
+
if ARGV.size < 3
|
20
|
+
puts help
|
21
|
+
exit 0
|
22
|
+
end
|
23
|
+
|
19
24
|
require 'benchmark'
|
20
25
|
require 'fileutils'
|
21
26
|
|
22
27
|
gem_name = ARGV[0]
|
23
28
|
sources = [ ARGV[1], ARGV[2] ]
|
24
29
|
|
25
|
-
puts "\n\n\e[92m###--------- \e[
|
30
|
+
puts "\n\n\e[92m###--------- \e[36mRUMB Rubygems Mirror Benchmarks" +
|
26
31
|
" \e[92m-------------###\e[39m\n\n"
|
27
32
|
|
28
33
|
sources.each do |s|
|
29
34
|
env = ENV.to_hash
|
30
|
-
|
31
|
-
env["GEM_HOME"] =
|
32
|
-
env["GEM_PATH"] =
|
35
|
+
rumb_dir = "#{ ENV['HOME'] }/.rumb/"
|
36
|
+
env["GEM_HOME"] = rumb_dir
|
37
|
+
env["GEM_PATH"] = rumb_dir
|
33
38
|
|
34
|
-
FileUtils.rm_r
|
35
|
-
FileUtils.mkdir
|
39
|
+
FileUtils.rm_r rumb_dir if File.directory? rumb_dir
|
40
|
+
FileUtils.mkdir rumb_dir
|
36
41
|
|
37
42
|
existing_sources = `gem sources`.split("\n").grep /http/
|
38
43
|
|