arb-thread 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0f91dd6b00e99650806f28a4b3f2517758321841
4
- data.tar.gz: aed9c5149f8476ef75540f01e0eed1e39440c163
2
+ SHA256:
3
+ metadata.gz: 19e699b813d2ac6095144716dc343859d6e8e455eefa0ea32b829e9713b61c1f
4
+ data.tar.gz: 2fa700e54361a31633ed4c7fa44920eef5a6d397500335dc5a3ed0cff581699b
5
5
  SHA512:
6
- metadata.gz: 9c111480dbf0b660d4fd71843a671fe3dd477be2b6006f3633c49600f8f99902ac18b9ef54596710e25032ca1fe01dcc5cefa81e518be2cbd57e677e011a720e
7
- data.tar.gz: 2c3b8fe2824eb26d27b0dc39043fad020ea6e9be2e44e42d5b64a558c3a5df3d872c4de6ed9b1faa9b35394b3890dd08621a389453f72e0e3ce3a29b0dc8de52
6
+ metadata.gz: cb9d2e5e97f2571ba41a037ae2a50862844941b7b8295fd259e6b2f1af4a421a7a5b739f0add0c7f5693eb7113af138a86188bac8259fb80c3ca3e1578d7755a
7
+ data.tar.gz: bdaed37814abe1d490338c5ccd3045b1974cc2cc47d7ba37ae9426fc0599ea7710f3c97ff29be1130921e2771f3a13c37915bcebffdfac629f878c3cdfa37883
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/arb-thread.gemspec CHANGED
File without changes
data/lib/arb/thread.rb CHANGED
@@ -62,7 +62,7 @@ module Arb
62
62
  class << ::Thread
63
63
  define_method :parallel do |max_thread_count,&blk|
64
64
  TaskDispatcher.new(max_thread_count).tap do |dispatcher|
65
- blk[dispatcher]
65
+ blk[dispatcher] if block_given?
66
66
  end
67
67
  end
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Arb
2
2
  module Thread
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arb-thread
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arybin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.4.8
76
+ rubygems_version: 2.7.6
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: A simple "thread pool" for parallel tasks.