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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a3b78f7dce2948e4cb684345370e8383d9b179c
4
- data.tar.gz: d4ffa926ffbeaf4a33d06b3384a4cea42df04934
3
+ metadata.gz: e691a974bbd43a36db55136dfefc96376a18ee99
4
+ data.tar.gz: c2fab3e02530312a7ed81244bbeead41cd616281
5
5
  SHA512:
6
- metadata.gz: ff2aa5ea7845498b082ab4e21b912f58fad92bea079cbb273c0973e2c4999c1e467bdaf7d0cf749ca44b40d5143dfc298eefa68e3e9a89ca7b0f808240e9d211
7
- data.tar.gz: 777e75d09d3d2cd0962d601385bb6566bd77b4855f9ad3d56d49cafe485d3f5631772e5dd6b54969ee2a96ab898852207944d9e784f33063866023cc4ad348ee
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 DEBUG, "rejected #{envelope.message} from #{envelope.sender_path}"
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 DEBUG, "finished processing of #{envelope.message.inspect}"
17
+ log(DEBUG) { "finished processing of #{envelope.message.inspect}"}
18
18
  end
19
19
  nil
20
20
  rescue => error
@@ -24,7 +24,6 @@ module Concurrent
24
24
  class AbstractContext
25
25
  include TypeCheck
26
26
  include InternalDelegations
27
- include Concern::Logging
28
27
 
29
28
  attr_reader :core
30
29
 
@@ -91,7 +91,7 @@ module Concurrent
91
91
  # @param [Envelope] envelope
92
92
  def on_envelope(envelope)
93
93
  schedule_execution do
94
- log DEBUG, "was #{envelope.future ? 'asked' : 'told'} #{envelope.message.inspect} by #{envelope.sender}"
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 DEBUG, "event: #{event.inspect} (#{public ? 'public' : 'private'})"
131
+ log(DEBUG) { "event: #{event.inspect} (#{public ? 'public' : 'private'})" }
132
132
  @first_behaviour.on_event(public, event)
133
133
  end
134
134
 
@@ -2,7 +2,7 @@ module Concurrent
2
2
  module Actor
3
3
  class DefaultDeadLetterHandler < RestartingContext
4
4
  def on_message(dead_letter)
5
- log INFO, "got dead letter #{dead_letter.inspect}"
5
+ log(INFO) { "got dead letter #{dead_letter.inspect}"}
6
6
  end
7
7
  end
8
8
  end
@@ -2,6 +2,7 @@ module Concurrent
2
2
  module Actor
3
3
  module InternalDelegations
4
4
  include PublicDelegations
5
+ include Logger::Severity
5
6
 
6
7
  # @see Core#children
7
8
  def children
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.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-08-09 00:00:00.000000000 Z
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.1
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.1
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