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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: afc8028826702e46dc846ddaa1b6b5161449caf9
4
- data.tar.gz: fee1b6005723a95e52eefcec2955179bf168273d
2
+ SHA256:
3
+ metadata.gz: 446d7f8a5578b4732473f82c3ea78a79ff5d6eeace52a37a8642ef5f9ae5580d
4
+ data.tar.gz: 86cf61acbebad90b39b20cb20493e97c5ab5079c89d376d69e7460d9807d4e5b
5
5
  SHA512:
6
- metadata.gz: 2d4363c02e41b93aa50e4e98a8762ca4b9818320666daae587c3a9833e6483343dc0e0efc836dea71c0f5896ba3944f824e828dbe005200ef364ea119d1e00f2
7
- data.tar.gz: 4df19254cc6abd8db0f0000d5e6600966d07c0fb543ac3f2db7f72d85731870d2710699eabbf1503ff8e58cb3d26033db7920e516791382b17feff3dc3d74cd6
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' # to get Thread.exclusive
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 = Thread.exclusive{ current+=1 }
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 = Thread.exclusive{ current_index += 1 }
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
@@ -1,5 +1,5 @@
1
1
  module Gem
2
2
  class Dependent
3
- VERSION = Version = '0.2.5'
3
+ VERSION = Version = '0.3.0'
4
4
  end
5
5
  end
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.2.5
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.0.6
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
@@ -1 +0,0 @@
1
- �|���?���#�3�뛶���ދ��W�
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- ��Z� 3�N��d��-�*��0)�� a8JZkoߢ3�0�åE�k[�����[���v�*>�Q��W"��C�} 9�f%Z#�Q���Ṿ;�7���wkYNՇt� D������O9�p A�
2
- Im7VZ�q�0[������V43Q�>æ�� �P��_���ݬ�X��:=f���N┙��{�4H�|�YĜ�5ǩ� }��Xז-N9����h��z?݊�T��݇K����e\��A�,��t%� 4�gZ�ZC
metadata.gz.sig DELETED
@@ -1 +0,0 @@
1
- �r�_h��S��@�%f@�mUK�M�&����|q��t�����