rumb 0.1.2 → 0.2.0

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 +5 -5
  2. data/bin/rumb +13 -10
  3. metadata +10 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 803cb8e4187987b43ca9e21cce2a4c245cc708c2
4
- data.tar.gz: daa8248110ad1b065e96d8eb852a802ea2e88fd5
2
+ SHA256:
3
+ metadata.gz: d2facfe7cb31a6d82dadac46b5aaa0ba8693f85f0f4bfe7b167043349c41ee15
4
+ data.tar.gz: 5c8be71a3bd57ddd614e4e86079a67d6a9802df4c6208100268f8bde28c7ff24
5
5
  SHA512:
6
- metadata.gz: b94a9eef25cfacc660fe2545d671d63bad6cf0574e46a8fb2f983bcd98bb0fa887cb7f21a46f39b0eaf1ad094a41ac48b248e20d4ec9b7ee55a1b7fb9f9f6451
7
- data.tar.gz: fe2f184e7ca1a653cb46e883bbaf56d3b6a2c04923fa0fccdd86fb555bee550060a7fd4d6ad3b93d3cf3a33a96b20118ebd3130b5b335553dd2ae38ccefa5f7c
6
+ metadata.gz: ed34e5112090136579adffb8adb481ffeb9bd65957872ca9a6f8ec03bbd4bd10668a1176e22b87b486258b9dc8f325e740a637c61031fca42a9b7bc0bfcf46a9
7
+ data.tar.gz: 6add297f4a989a17e79db88e0b12f442f04532a81eaf0beecd7eed0a8036644fb5375bbba4352326857241f09630042707f67f6f36c815d1978fdadbb00b5d90
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-document" }
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.2
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: 2021-05-27 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.
@@ -19,31 +19,30 @@ executables:
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - README.md
23
22
  - LICENSE
23
+ - README.md
24
24
  - bin/rumb
25
25
  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
33
33
  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.0.3
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: []