thread 0.0.4 → 0.0.4.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.
data/lib/thread/delay.rb CHANGED
@@ -13,6 +13,8 @@
13
13
  class Thread::Delay
14
14
  # Create a delay with the passed block.
15
15
  def initialize (&block)
16
+ raise ArgumentError, 'no block given' unless block
17
+
16
18
  @mutex = Mutex.new
17
19
 
18
20
  @block = block
data/lib/thread/future.rb CHANGED
@@ -18,6 +18,8 @@ class Thread::Future
18
18
 
19
19
  # Create a future with the passed block.
20
20
  def initialize (&block)
21
+ raise ArgumentError, 'no block given' unless block
22
+
21
23
  @mutex = Mutex.new
22
24
  @cond = ConditionVariable.new
23
25
 
data/thread.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new {|s|
2
2
  s.name = 'thread'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.4.1'
4
4
  s.author = 'meh.'
5
5
  s.email = 'meh@schizofreni.co'
6
6
  s.homepage = 'http://github.com/meh/ruby-thread'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thread
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: