rumb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rumb +11 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a35180d669333988c29dcae98c74b331894adb16
4
- data.tar.gz: 9a1394cb41d7e34cb446c83372cec6300fbdbcd6
3
+ metadata.gz: feadd3ea525406999919623b96b10c9bc14196fa
4
+ data.tar.gz: 2ef6e9fdd91629a2f06407d10db718c0b43679b0
5
5
  SHA512:
6
- metadata.gz: 2c2a562be3e32157a31c15144b82e02999548c88654fe4511cc813f984abb80e05d8a9d41471e4f845b56a39e53ae96f7be28c6e7c8237e7ce8b78ec15c5d866
7
- data.tar.gz: 4f2b84e398280981e7d6d91e52196a91b0bdc2fec026121513d1afac713aae445557eef85ff4eee6fe423912f03e085ebc147933726d3737c9aaaa295a96cf4f
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[36mRMB Rubygems Mirror Benchmarks" +
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
- rmb_dir = "#{ ENV['home'] }/.rmb/"
31
- env["GEM_HOME"] = rmb_dir
32
- env["GEM_PATH"] = rmb_dir
35
+ rumb_dir = "#{ ENV['HOME'] }/.rumb/"
36
+ env["GEM_HOME"] = rumb_dir
37
+ env["GEM_PATH"] = rumb_dir
33
38
 
34
- FileUtils.rm_r rmb_dir if File.directory? rmb_dir
35
- FileUtils.mkdir rmb_dir
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaston Ramos