evt-component_host 0.2.0.7 → 0.2.0.8

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
  SHA256:
3
- metadata.gz: fa2b9d8b10973c0a676356d34daad9745fd06ee54ad3b636daa57632097a995a
4
- data.tar.gz: afce2f917c4a42f5b95daa315f3cf89ccaa804909cae11dccbc449f96bdb632f
3
+ metadata.gz: 7e2fbc4904111758389a92eb4ca4effafb7e4ca05e1c28e5bdcc0038bfc04589
4
+ data.tar.gz: 246e5231070df0fbde7021b0365f421928fe54344e00f277ee022025f05495ea
5
5
  SHA512:
6
- metadata.gz: 9e4f8010086b5746a024aa8ead55f7947768ed96c07685f45da21c5deec5d7fa69a62011436fb7a699689ed17c127ad146c7831965e47e41ac329ce2ee676235
7
- data.tar.gz: '0059bac8039e1a2b2962d5b4ab2f89397a6600cf5472bb71ee209a0b310f4f8718c3c70504e58cc3fb5b00b10c66759aa416c71323b4917e5f7a0e4b3c2f7efa'
6
+ metadata.gz: 1e9387bd584eedd5e46c854309eb8ebb953121a3cb80e0161ebb086737666eaa25bb494fe575817a91442936a88a226495472f9600df305b253210fe98f223a0
7
+ data.tar.gz: 3864c83b788904ae592361c7a48288bdc0b37e91fc9d89c1dbbba3204e9b36f4fc7f7db22f11136f2a30740a028168220ef6230c5e6504dec5a1f7632a3ff592
@@ -1,5 +1,5 @@
1
1
  module ComponentHost
2
- def self.start(component_name, &block)
2
+ def self.start(name, &block)
3
3
  logger = Log.get(self)
4
4
 
5
5
  host = Host.build
@@ -7,7 +7,7 @@ module ComponentHost
7
7
  host.instance_exec host, &block
8
8
 
9
9
  host.start do
10
- logger.info(tags: [:*, :component, :start, :lifecycle]) { "Started: #{component_name} (ProcessID: #{::Process.pid})" }
10
+ logger.info(tags: [:*, :component, :start, :lifecycle]) { "Started: #{name} (ProcessID: #{::Process.pid})" }
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  require 'component_host/controls/error'
2
- require 'component_host/controls/process_name'
2
+ require 'component_host/controls/name'
3
3
  require 'component_host/controls/start_component'
4
4
  require 'component_host/controls/start_component/actor_crashes'
5
5
  require 'component_host/controls/start_component/raises_error'
@@ -1,8 +1,8 @@
1
1
  module ComponentHost
2
2
  module Controls
3
- module ProcessName
3
+ module Name
4
4
  def self.example
5
- 'some-process'
5
+ 'some-name'
6
6
  end
7
7
  end
8
8
  end
@@ -15,7 +15,7 @@ module ComponentHost
15
15
  handle Actor::Messages::ActorCrashed do |msg|
16
16
  error = msg.error
17
17
 
18
- logger.error(tags: [:actor, :lifecycle, :stop, :crash]) { "Error raised (ErrorClass: #{error.class.name}, Actor: #{msg.actor.digest}, Message: #{error.message.inspect})" }
18
+ logger.error(tags: [:actor, :lifecycle, :stop, :crash]) { "Error raised (Error: #{error.class.name}, Actor: #{msg.actor.digest}, Message: #{error.message.inspect})" }
19
19
  end
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-component_host
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.7
4
+ version: 0.2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-23 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ntl-actor
@@ -104,7 +104,7 @@ files:
104
104
  - lib/component_host/component_host.rb
105
105
  - lib/component_host/controls.rb
106
106
  - lib/component_host/controls/error.rb
107
- - lib/component_host/controls/process_name.rb
107
+ - lib/component_host/controls/name.rb
108
108
  - lib/component_host/controls/start_component.rb
109
109
  - lib/component_host/controls/start_component/actor_crashes.rb
110
110
  - lib/component_host/controls/start_component/raises_error.rb