gem-dependent 0.2.5 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rubygems/dependent/parallel.rb +4 -3
- data/lib/rubygems/dependent/version.rb +1 -1
- metadata +7 -28
- checksums.yaml.gz.sig +0 -1
- data.tar.gz.sig +0 -2
- metadata.gz.sig +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 446d7f8a5578b4732473f82c3ea78a79ff5d6eeace52a37a8642ef5f9ae5580d
|
4
|
+
data.tar.gz: 86cf61acbebad90b39b20cb20493e97c5ab5079c89d376d69e7460d9807d4e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da1c43fe61310186943a33dced3509fb9e5fb02a5e45278f8e1178adc63b56bcf5ac2b4a0e0fe2db5e04fa2d01e31c553fa900fbed1c35e888c593ec7c385075
|
7
|
+
data.tar.gz: 60219a1df294b7e36fdc68a71bfc9e97bba4ea75b39cb782957b0e5cb00630699e4f6a756aac7d59d3c726798710601b1d93645dd09cc84a7ea55b6e7959c809
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# load parallel, which causes overhead and problems
|
3
3
|
# copied from https://github.com/grosser/parallel/blob/master/lib/parallel.rb
|
4
4
|
|
5
|
-
require 'thread'
|
5
|
+
require 'thread'
|
6
6
|
require 'base64'
|
7
7
|
require 'rbconfig'
|
8
8
|
|
@@ -61,6 +61,7 @@ class Gem::Dependent::Parallel
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
@init_mutex = Mutex.new
|
64
65
|
class << self
|
65
66
|
def in_threads(options={:count => 2})
|
66
67
|
count, options = extract_count_from_options(options)
|
@@ -188,7 +189,7 @@ class Gem::Dependent::Parallel
|
|
188
189
|
loop do
|
189
190
|
break if exception
|
190
191
|
|
191
|
-
index =
|
192
|
+
index = @init_mutex.synchronize { current += 1 }
|
192
193
|
break if index >= items.size
|
193
194
|
|
194
195
|
with_instrumentation items[index], index, options do
|
@@ -217,7 +218,7 @@ class Gem::Dependent::Parallel
|
|
217
218
|
begin
|
218
219
|
loop do
|
219
220
|
break if exception
|
220
|
-
index =
|
221
|
+
index = @init_mutex.synchronize { current_index += 1 }
|
221
222
|
break if index >= items.size
|
222
223
|
|
223
224
|
output = with_instrumentation items[index], index, options do
|
metadata
CHANGED
@@ -1,35 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem-dependent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MRAwDgYDVQQDDAdtaWNo
|
14
|
-
YWVsMRcwFQYKCZImiZPyLGQBGRYHZ3Jvc3NlcjESMBAGCgmSJomT8ixkARkWAml0
|
15
|
-
MB4XDTEzMDIwMzE4MTMxMVoXDTE0MDIwMzE4MTMxMVowPzEQMA4GA1UEAwwHbWlj
|
16
|
-
aGFlbDEXMBUGCgmSJomT8ixkARkWB2dyb3NzZXIxEjAQBgoJkiaJk/IsZAEZFgJp
|
17
|
-
dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMorXo/hgbUq97+kII9H
|
18
|
-
MsQcLdC/7wQ1ZP2OshVHPkeP0qH8MBHGg6eYisOX2ubNagF9YTCZWnhrdKrwpLOO
|
19
|
-
cPLaZbjUjljJ3cQR3B8Yn1veV5IhG86QseTBjymzJWsLpqJ1UZGpfB9tXcsFtuxO
|
20
|
-
6vHvcIHdzvc/OUkICttLbH+1qb6rsHUceqh+JrH4GrsJ5H4hAfIdyS2XMK7YRKbh
|
21
|
-
h+IBu6dFWJJByzFsYmV1PDXln3UBmgAt65cmCu4qPfThioCGDzbSJrGDGLmw/pFX
|
22
|
-
FPpVCm1zgYSb1v6Qnf3cgXa2f2wYGm17+zAVyIDpwryFru9yF/jJxE38z/DRsd9R
|
23
|
-
/88CAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUsiNnXHtKeMYYcr4yJVmQ
|
24
|
-
WONL+IwwCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQAlyN7kKo/NQCQ0
|
25
|
-
AOzZLZ3WAePvStkCFIJ53tsv5Kyo4pMAllv+BgPzzBt7qi605mFSL6zBd9uLou+W
|
26
|
-
Co3s48p1dy7CjjAfVQdmVNHF3MwXtfC2OEyvSQPi4xKR8iba8wa3xp9LVo1PuLpw
|
27
|
-
/6DsrChWw74HfsJN6qJOK684hJeT8lBYAUfiC3wD0owoPSg+XtyAAddisR+KV5Y1
|
28
|
-
NmVHuLtQcNTZy+gRht3ahJRMuC6QyLmkTsf+6MaenwAMkAgHdswGsJztOnNnBa3F
|
29
|
-
y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
|
30
|
-
ycwMXfl0
|
31
|
-
-----END CERTIFICATE-----
|
32
|
-
date: 2013-10-21 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-22 00:00:00.000000000 Z
|
33
12
|
dependencies: []
|
34
13
|
description:
|
35
14
|
email: michael@grosser.it
|
@@ -52,17 +31,17 @@ require_paths:
|
|
52
31
|
- lib
|
53
32
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
33
|
requirements:
|
55
|
-
- -
|
34
|
+
- - ">="
|
56
35
|
- !ruby/object:Gem::Version
|
57
|
-
version: '0'
|
36
|
+
version: '2.0'
|
58
37
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
38
|
requirements:
|
60
|
-
- -
|
39
|
+
- - ">="
|
61
40
|
- !ruby/object:Gem::Version
|
62
41
|
version: '0'
|
63
42
|
requirements: []
|
64
43
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.
|
44
|
+
rubygems_version: 2.7.6
|
66
45
|
signing_key:
|
67
46
|
specification_version: 4
|
68
47
|
summary: See which gems depend on your gems
|
checksums.yaml.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
�|���?���#�3�뛶���ދ��W�
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
�r�_h��S��@�%f@�mUK�M�&����|q��t�����
|