rumb 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/rumb +13 -10
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d2facfe7cb31a6d82dadac46b5aaa0ba8693f85f0f4bfe7b167043349c41ee15
|
4
|
+
data.tar.gz: 5c8be71a3bd57ddd614e4e86079a67d6a9802df4c6208100268f8bde28c7ff24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
31
|
-
" \e[92m-------------###\e[39m
|
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
|
35
|
-
rumb_dir
|
36
|
-
env["GEM_HOME"]
|
37
|
-
env["GEM_PATH"]
|
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
|
-
|
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.
|
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:
|
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
|
-
|
45
|
-
|
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: []
|