rumb 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +6 -5
  3. data/bin/rumb +13 -10
  4. metadata +7 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: feadd3ea525406999919623b96b10c9bc14196fa
4
- data.tar.gz: 2ef6e9fdd91629a2f06407d10db718c0b43679b0
2
+ SHA256:
3
+ metadata.gz: d2facfe7cb31a6d82dadac46b5aaa0ba8693f85f0f4bfe7b167043349c41ee15
4
+ data.tar.gz: 5c8be71a3bd57ddd614e4e86079a67d6a9802df4c6208100268f8bde28c7ff24
5
5
  SHA512:
6
- metadata.gz: 40f3fffefd394392a4bd6b47b2ce8983550a49962d1b26b1d67931178e13a5446d132c2502df8918140c33c98c218124a528f7b7fe22fbcbb7adea698415ed8a
7
- data.tar.gz: e1109181eb38239e10e337c000e0026182ab198b1d9c31efead603a68f2847fa8bb86b6289b45a98e3b3e3378460a81f0876023c485858205b3d29e7577c08c4
6
+ metadata.gz: ed34e5112090136579adffb8adb481ffeb9bd65957872ca9a6f8ec03bbd4bd10668a1176e22b87b486258b9dc8f325e740a637c61031fca42a9b7bc0bfcf46a9
7
+ data.tar.gz: 6add297f4a989a17e79db88e0b12f442f04532a81eaf0beecd7eed0a8036644fb5375bbba4352326857241f09630042707f67f6f36c815d1978fdadbb00b5d90
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- rmb - Rubygems mirror benchmarks
1
+ rumb - Rubygems mirror benchmarks
2
2
  =================================
3
3
 
4
4
  This tool was created to measure and compare the performance
@@ -8,20 +8,21 @@ built with rack.
8
8
 
9
9
  Install
10
10
  -------
11
-
12
- gem install rmb
11
+ ```
12
+ gem install rumb
13
+ ```
13
14
 
14
15
  Usage:
15
16
  ------
16
17
  ```
17
- rmb gem_name mirror_source_a mirror_source_b
18
+ rumb gem_name mirror_source_a mirror_source_b
18
19
  ```
19
20
 
20
21
  Output:
21
22
  -------
22
23
 
23
24
  ```
24
- ###--------- RMB Rubygems Mirror Benchmarks -------------###
25
+ ###--------- RUMB Rubygems Mirror Benchmarks -------------###
25
26
 
26
27
  => Removing http://localhost:4732 from rubygems sources...
27
28
  http://localhost:4732 removed from sources
data/bin/rumb CHANGED
@@ -27,14 +27,15 @@ require 'fileutils'
27
27
  gem_name = ARGV[0]
28
28
  sources = [ ARGV[1], ARGV[2] ]
29
29
 
30
- puts "\n\n\e[92m###--------- \e[36mRUMB Rubygems Mirror Benchmarks" +
31
- " \e[92m-------------###\e[39m\n\n"
30
+ puts "\n\n\e[92m###------------- \e[36mRUMB Rubygems Mirror Benchmarks" +
31
+ " \e[92m-------------###\e[39m"
32
32
 
33
33
  sources.each do |s|
34
- env = ENV.to_hash
35
- rumb_dir = "#{ ENV['HOME'] }/.rumb/"
36
- env["GEM_HOME"] = rumb_dir
37
- env["GEM_PATH"] = rumb_dir
34
+ env = ENV.to_hash
35
+ rumb_dir = "#{ ENV['HOME'] }/.rumb/"
36
+ env["GEM_HOME"] = rumb_dir
37
+ env["GEM_PATH"] = rumb_dir
38
+ env["GEM_SPEC_CACHE"] = rumb_dir
38
39
 
39
40
  FileUtils.rm_r rumb_dir if File.directory? rumb_dir
40
41
  FileUtils.mkdir rumb_dir
@@ -42,16 +43,18 @@ sources.each do |s|
42
43
  existing_sources = `gem sources`.split("\n").grep /http/
43
44
 
44
45
  existing_sources.each do |source|
45
- puts "=> Removing #{source} from rubygems sources..."
46
+ puts "\n=> Removing #{source} from rubygems sources..."
46
47
  system env, "gem sources -r #{source}"
47
48
  end
48
49
 
49
50
  puts "=> Adding #{s} to sources"
50
51
  system env, "gem source --add #{s}"
51
-
52
52
  puts "\n=> Starting installing #{gem_name} from: #{s}"
53
53
 
54
- bench = Benchmark.measure { system env, "gem install #{gem_name} --no-rdoc --no-ri" }
55
- puts "\n\e[92m### --- BENCHMARK RESULTS FOR #{s} --- ###"
54
+ bench = Benchmark.measure { system env, "gem install #{gem_name} --no-document --silent" }
55
+
56
+ puts "\n\e[92m### --- BENCHMARK RESULTS FOR [ #{s} ] --- ###"
56
57
  puts "\e[93m#{bench}\e[39m\n"
58
+ puts '###-------------------------------------------------------###'
59
+ system env, "rm -rf #{rumb_dir}"
57
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaston Ramos
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This tool was created to measure and compare the performance of 2 rubygems
14
14
  mirrors.
@@ -26,7 +26,7 @@ homepage: https://github.com/gramos/rumb/
26
26
  licenses:
27
27
  - GPLv3
28
28
  metadata: {}
29
- post_install_message:
29
+ post_install_message:
30
30
  rdoc_options: []
31
31
  require_paths:
32
32
  - lib
@@ -34,16 +34,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: '3.0'
38
38
  required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
- rubyforge_project:
45
- rubygems_version: 2.4.4
46
- signing_key:
44
+ rubygems_version: 3.5.11
45
+ signing_key:
47
46
  specification_version: 4
48
47
  summary: rumb - Rubygems mirror benchmarks.
49
48
  test_files: []