concurrent-ruby-edge 0.2.3.pre3 → 0.2.3

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
2
  SHA1:
3
- metadata.gz: b58d9990e2ee99eefcd421597ba5a97be13ec425
4
- data.tar.gz: bda381661df4dace0abe70409258a5def15fbb62
3
+ metadata.gz: b398256349826cad009356afa007b45f253fc972
4
+ data.tar.gz: ad7478d3270b6f079e61e5430bdb3d4e5e4d41f7
5
5
  SHA512:
6
- metadata.gz: 227a12b990fc6bc4e4fb97cfa8ad3c1ad876ca475aa30cd873cdb26fef6ec5116f71c7341e3abd307872efa41c8d43b49f0a191f3c53fd17fc1919cab040f84c
7
- data.tar.gz: 890662538270890c97c7674e09af9a937b72657f5b3fda8c8d4bfcba84b28daf9618d1c61834d93df9083ae0959abc88084e328e4944389cb460500c37255099
6
+ metadata.gz: 8a332493df1d73ca26cc88efc9691b78bf111e8945b3d072ada4e3e4da43a24a33566372bdabca30a8c35e1da6ffd2e820a2316b32b2a212ce3ba46f0640b2d0
7
+ data.tar.gz: a82dff7f718a75abb215a55d7c06f52355c2b0f18eb72672da252109fa2c3465e9491aac1526a2646ac4f4546b72650a5369bc1cb874feea37fff42ae5896112
data/README.md CHANGED
@@ -235,8 +235,8 @@ The best practice is to depend on `concurrent-ruby` and let users to decide if t
235
235
 
236
236
  ## Maintainers
237
237
 
238
+ * [Petr Chalupa](https://github.com/pitr-ch) (lead maintainer)
238
239
  * [Jerry D'Antonio](https://github.com/jdantonio) (creator)
239
- * [Petr Chalupa](https://github.com/pitr-ch)
240
240
  * [Michele Della Torre](https://github.com/mighe)
241
241
  * [Chris Seaton](https://github.com/chrisseaton)
242
242
  * [Paweł Obrok](https://github.com/obrok)
@@ -46,7 +46,7 @@ module Concurrent
46
46
  end
47
47
 
48
48
  # Spawns a new actor. {Concurrent::Actor::AbstractContext.spawn} allows to omit class parameter.
49
- # To see the list of avaliable options see {Core#initialize}
49
+ # To see the list of available options see {Core#initialize}
50
50
  # @see Concurrent::Actor::AbstractContext.spawn
51
51
  # @see Core#initialize
52
52
  # @example by class and name
@@ -399,10 +399,14 @@ module Concurrent
399
399
 
400
400
  @Lock.synchronize do
401
401
  @Waiters.increment
402
- unless completed?
403
- @Condition.wait @Lock, timeout
402
+ begin
403
+ unless completed?
404
+ @Condition.wait @Lock, timeout
405
+ end
406
+ ensure
407
+ # JRuby may raise ConcurrencyError
408
+ @Waiters.decrement
404
409
  end
405
- @Waiters.decrement
406
410
  end
407
411
  completed?
408
412
  end
@@ -659,7 +663,7 @@ module Concurrent
659
663
 
660
664
  # zips with the Future in the value
661
665
  # @example
662
- # Concurrent.future { Concurrent.future { 1 } }.flat.vale # => 1
666
+ # Concurrent.future { Concurrent.future { 1 } }.flat.value # => 1
663
667
  def flat(level = 1)
664
668
  FlatPromise.new(self, level, @DefaultExecutor).future
665
669
  end
@@ -1176,6 +1180,7 @@ module Concurrent
1176
1180
  value = internal_state.value
1177
1181
  case value
1178
1182
  when Future
1183
+ value.touch if self.future.touched
1179
1184
  @BlockedBy.push value
1180
1185
  value.add_callback :callback_notify_blocked, self
1181
1186
  @Countdown.value
@@ -67,7 +67,7 @@ module Concurrent
67
67
  #
68
68
  # @param [Object] item the item you wish to insert
69
69
  #
70
- # @return [Oject] the set on which the :<< method was invoked
70
+ # @return [Object] the set on which the :<< method was invoked
71
71
  def <<(item)
72
72
  add item
73
73
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concurrent-ruby-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.pre3
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry D'Antonio
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-06-23 00:00:00.000000000 Z
13
+ date: 2016-12-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: concurrent-ruby
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.3.pre3
21
+ version: 1.0.3
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.0.3.pre3
28
+ version: 1.0.3
29
29
  description: |
30
30
  These features are under active development and may change frequently. They are expected not to
31
31
  keep backward compatibility (there may also lack tests and documentation). Semantic versions will
@@ -108,12 +108,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: 1.9.3
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ">"
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 1.3.1
113
+ version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.6.4
116
+ rubygems_version: 2.5.1
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Edge features and additions to the concurrent-ruby gem.