jruby_threach 0.4.0-java → 0.4.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +1 -0
  2. data/VERSION +1 -0
  3. data/lib/jruby_threach.rb +3 -1
  4. metadata +4 -3
@@ -74,6 +74,7 @@ You can also use Threach::MultiEnum, the class behind `#mthreach`, by itself, fo
74
74
 
75
75
  ## CHANGES
76
76
 
77
+ * 0.4.1 Remembering to tell consumers to bail on native exception
77
78
  * 0.4.0 Changed signature of Threach::MultiEnum.new to put no. threads up front.
78
79
 
79
80
  ## Contributing to JRuby_threach
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.4.1
@@ -237,7 +237,7 @@ module Enumerable
237
237
  self.send(iterator) do |*x|
238
238
  until successful_push = bq.push(x)
239
239
  # if we're in here, we got a timeout. Check for errors
240
- raise Threach::ThreachNotMyError.new, "bailing", nil if bail if bail
240
+ raise Threach::ThreachNotMyError.new, "bailing", nil if bail
241
241
  end
242
242
  print "Queued #{x}\n" if Threach::DEBUG
243
243
  end
@@ -248,6 +248,7 @@ module Enumerable
248
248
 
249
249
  rescue NativeException => e
250
250
  print "Producer rescuing native exception #{e.inspect}" if Threach::DEBUG
251
+ bail = true
251
252
 
252
253
  rescue Threach::ThreachNotMyError => e
253
254
  print "Producer: not my error\n" if Threach::DEBUG
@@ -274,6 +275,7 @@ module Enumerable
274
275
  end
275
276
  end
276
277
 
278
+ __END__
277
279
 
278
280
  class DelayedEnum
279
281
  include Enumerable
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby_threach
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: java
7
7
  authors:
8
8
  - BillDueber
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-01 00:00:00 -07:00
13
+ date: 2011-07-06 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -84,6 +84,7 @@ files:
84
84
  - LICENSE.txt
85
85
  - README.markdown
86
86
  - Rakefile
87
+ - VERSION
87
88
  - lib/jruby_threach.rb
88
89
  - samples.rb
89
90
  - spec/jruby_threach_spec.rb
@@ -102,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
103
  requirements:
103
104
  - - ">="
104
105
  - !ruby/object:Gem::Version
105
- hash: -424975983
106
+ hash: -246699091
106
107
  segments:
107
108
  - 0
108
109
  version: "0"