concurrent-ruby-edge 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/concurrent/actor/behaviour/abstract.rb +1 -2
- data/lib/concurrent/actor/behaviour/sets_results.rb +1 -1
- data/lib/concurrent/actor/context.rb +0 -1
- data/lib/concurrent/actor/core.rb +2 -2
- data/lib/concurrent/actor/default_dead_letter_handler.rb +1 -1
- data/lib/concurrent/actor/internal_delegations.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e691a974bbd43a36db55136dfefc96376a18ee99
|
4
|
+
data.tar.gz: c2fab3e02530312a7ed81244bbeead41cd616281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00ec82a9a7e7a55ca5eab51e46eb3f412a45a4b38c76757348772adfdc72f8066f9b4a5412ed35949e3b7c8145d1d2bd1934d4f4b2cff2ef73922acb59214e8
|
7
|
+
data.tar.gz: 22c85760d062d301affa2af1b4a4a841e8a1064e9f0600909a599a449b2cc0fc2e70f6db6da1d6fb716e45d5ad9e046d7b6532cf76c156c3734cd582cefa04ba
|
@@ -6,7 +6,6 @@ module Concurrent
|
|
6
6
|
class Abstract
|
7
7
|
include TypeCheck
|
8
8
|
include InternalDelegations
|
9
|
-
include Concern::Logging
|
10
9
|
|
11
10
|
attr_reader :core, :subsequent
|
12
11
|
|
@@ -42,7 +41,7 @@ module Concurrent
|
|
42
41
|
def reject_envelope(envelope)
|
43
42
|
envelope.reject! ActorTerminated.new(reference)
|
44
43
|
dead_letter_routing << envelope unless envelope.future
|
45
|
-
log
|
44
|
+
log(DEBUG) { "rejected #{envelope.message} from #{envelope.sender_path}"}
|
46
45
|
end
|
47
46
|
end
|
48
47
|
end
|
@@ -14,7 +14,7 @@ module Concurrent
|
|
14
14
|
result = pass envelope
|
15
15
|
if result != MESSAGE_PROCESSED && !envelope.future.nil?
|
16
16
|
envelope.future.success result
|
17
|
-
log
|
17
|
+
log(DEBUG) { "finished processing of #{envelope.message.inspect}"}
|
18
18
|
end
|
19
19
|
nil
|
20
20
|
rescue => error
|
@@ -91,7 +91,7 @@ module Concurrent
|
|
91
91
|
# @param [Envelope] envelope
|
92
92
|
def on_envelope(envelope)
|
93
93
|
schedule_execution do
|
94
|
-
log
|
94
|
+
log(DEBUG) { "was #{envelope.future ? 'asked' : 'told'} #{envelope.message.inspect} by #{envelope.sender}" }
|
95
95
|
process_envelope envelope
|
96
96
|
end
|
97
97
|
nil
|
@@ -128,7 +128,7 @@ module Concurrent
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def broadcast(public, event)
|
131
|
-
log
|
131
|
+
log(DEBUG) { "event: #{event.inspect} (#{public ? 'public' : 'private'})" }
|
132
132
|
@first_behaviour.on_event(public, event)
|
133
133
|
end
|
134
134
|
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jerry D'Antonio
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: concurrent-ruby
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.9.
|
21
|
+
version: 0.9.2
|
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: 0.9.
|
28
|
+
version: 0.9.2
|
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
|