isono 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/isono.gemspec CHANGED
@@ -1,21 +1,21 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{isono}
5
- s.version = "0.2.9"
4
+ s.name = "isono"
5
+ s.version = "0.2.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = [%q{axsh Ltd.}, %q{Masahiro Fujiwara}]
9
- s.date = %q{2011-09-20}
10
- s.email = [%q{dev@axsh.net}, %q{m-fujiwara@axsh.net}]
11
- s.executables = [%q{cli}]
12
- s.files = [%q{.gitignore}, %q{LICENSE}, %q{NOTICE}, %q{Rakefile}, %q{bin/cli}, %q{isono.gemspec}, %q{lib/ext/shellwords.rb}, %q{lib/isono.rb}, %q{lib/isono/amqp_client.rb}, %q{lib/isono/daemonize.rb}, %q{lib/isono/event_delegate_context.rb}, %q{lib/isono/event_observable.rb}, %q{lib/isono/logger.rb}, %q{lib/isono/manifest.rb}, %q{lib/isono/messaging_client.rb}, %q{lib/isono/models/event_log.rb}, %q{lib/isono/models/job_state.rb}, %q{lib/isono/models/node_state.rb}, %q{lib/isono/models/resource_instance.rb}, %q{lib/isono/node.rb}, %q{lib/isono/node_modules/base.rb}, %q{lib/isono/node_modules/data_store.rb}, %q{lib/isono/node_modules/event_channel.rb}, %q{lib/isono/node_modules/event_logger.rb}, %q{lib/isono/node_modules/job_channel.rb}, %q{lib/isono/node_modules/job_collector.rb}, %q{lib/isono/node_modules/job_worker.rb}, %q{lib/isono/node_modules/node_collector.rb}, %q{lib/isono/node_modules/node_heartbeat.rb}, %q{lib/isono/node_modules/rpc_channel.rb}, %q{lib/isono/rack.rb}, %q{lib/isono/rack/builder.rb}, %q{lib/isono/rack/data_store.rb}, %q{lib/isono/rack/job.rb}, %q{lib/isono/rack/map.rb}, %q{lib/isono/rack/object_method.rb}, %q{lib/isono/rack/proc.rb}, %q{lib/isono/rack/thread_pass.rb}, %q{lib/isono/resource_manifest.rb}, %q{lib/isono/runner/base.rb}, %q{lib/isono/runner/cli.rb}, %q{lib/isono/runner/rpc_server.rb}, %q{lib/isono/serializer.rb}, %q{lib/isono/thread_pool.rb}, %q{lib/isono/util.rb}, %q{lib/isono/version.rb}, %q{spec/amqp_client_spec.rb}, %q{spec/event_observable_spec.rb}, %q{spec/file_channel_spec.rb}, %q{spec/job_channel_spec.rb}, %q{spec/logger_spec.rb}, %q{spec/manifest_spec.rb}, %q{spec/node_spec.rb}, %q{spec/resource_loader_spec.rb}, %q{spec/rpc_channel_spec.rb}, %q{spec/spec_helper.rb}, %q{spec/thread_pool_spec.rb}, %q{spec/util_spec.rb}, %q{tasks/load_resource_manifest.rake}]
13
- s.homepage = %q{http://github.com/axsh/isono}
14
- s.require_paths = [%q{lib}]
8
+ s.authors = ["axsh Ltd.", "Masahiro Fujiwara"]
9
+ s.date = "2012-04-02"
10
+ s.email = ["dev@axsh.net", "m-fujiwara@axsh.net"]
11
+ s.executables = ["cli"]
12
+ s.files = [".gitignore", "LICENSE", "NOTICE", "Rakefile", "bin/cli", "isono.gemspec", "lib/ext/shellwords.rb", "lib/isono.rb", "lib/isono/amqp_client.rb", "lib/isono/daemonize.rb", "lib/isono/event_delegate_context.rb", "lib/isono/event_observable.rb", "lib/isono/logger.rb", "lib/isono/manifest.rb", "lib/isono/messaging_client.rb", "lib/isono/models/event_log.rb", "lib/isono/models/job_state.rb", "lib/isono/models/node_state.rb", "lib/isono/models/resource_instance.rb", "lib/isono/node.rb", "lib/isono/node_modules/base.rb", "lib/isono/node_modules/data_store.rb", "lib/isono/node_modules/event_channel.rb", "lib/isono/node_modules/event_logger.rb", "lib/isono/node_modules/job_channel.rb", "lib/isono/node_modules/job_collector.rb", "lib/isono/node_modules/job_worker.rb", "lib/isono/node_modules/node_collector.rb", "lib/isono/node_modules/node_heartbeat.rb", "lib/isono/node_modules/rpc_channel.rb", "lib/isono/rack.rb", "lib/isono/rack/builder.rb", "lib/isono/rack/data_store.rb", "lib/isono/rack/job.rb", "lib/isono/rack/map.rb", "lib/isono/rack/object_method.rb", "lib/isono/rack/proc.rb", "lib/isono/rack/thread_pass.rb", "lib/isono/resource_manifest.rb", "lib/isono/runner/base.rb", "lib/isono/runner/cli.rb", "lib/isono/runner/rpc_server.rb", "lib/isono/serializer.rb", "lib/isono/thread_pool.rb", "lib/isono/util.rb", "lib/isono/version.rb", "spec/amqp_client_spec.rb", "spec/event_observable_spec.rb", "spec/file_channel_spec.rb", "spec/job_channel_spec.rb", "spec/logger_spec.rb", "spec/manifest_spec.rb", "spec/node_spec.rb", "spec/resource_loader_spec.rb", "spec/rpc_channel_spec.rb", "spec/spec_helper.rb", "spec/thread_pool_spec.rb", "spec/util_spec.rb", "tasks/load_resource_manifest.rake"]
13
+ s.homepage = "http://github.com/axsh/isono"
14
+ s.require_paths = ["lib"]
15
15
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
16
- s.rubyforge_project = %q{isono}
17
- s.rubygems_version = %q{1.8.6}
18
- s.summary = %q{Messaging and agent fabric}
16
+ s.rubyforge_project = "isono"
17
+ s.rubygems_version = "1.8.10"
18
+ s.summary = "Messaging and agent fabric"
19
19
 
20
20
  if s.respond_to? :specification_version then
21
21
  s.specification_version = 3
@@ -62,7 +62,12 @@ module Isono
62
62
  rescue Exception => e
63
63
  job.process_event(:on_fail, e)
64
64
  if job.fail_cb
65
- job.fail_cb.arity == 1 ? job.fail_cb.call(e) : job.fail_cb.call
65
+ begin
66
+ job.fail_cb.arity == 1 ? job.fail_cb.call(e) : job.fail_cb.call
67
+ rescue Exception => e
68
+ logger.error("Failed to call the failure call back #{job.fail_cb}: #{job_id}: #{e}")
69
+ logger.error(e)
70
+ end
66
71
  end
67
72
  ensure
68
73
  Thread.current[JOB_CTX_KEY]=nil
data/lib/isono/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Isono
4
- VERSION='0.2.9'
4
+ VERSION='0.2.10'
5
5
  end
metadata CHANGED
@@ -1,126 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: isono
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.10
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 9
10
- version: 0.2.9
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - axsh Ltd.
14
9
  - Masahiro Fujiwara
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-09-20 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2012-04-02 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: amqp
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &8105520 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- hash: 11
30
- segments:
31
- - 0
32
- - 7
33
- - 4
19
+ requirements:
20
+ - - =
21
+ - !ruby/object:Gem::Version
34
22
  version: 0.7.4
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: eventmachine
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *8105520
26
+ - !ruby/object:Gem::Dependency
27
+ name: eventmachine
28
+ requirement: &8104960 !ruby/object:Gem::Requirement
41
29
  none: false
42
- requirements:
43
- - - "="
44
- - !ruby/object:Gem::Version
45
- hash: 62196357
46
- segments:
47
- - 1
48
- - 0
49
- - 0
50
- - beta
51
- - 3
30
+ requirements:
31
+ - - =
32
+ - !ruby/object:Gem::Version
52
33
  version: 1.0.0.beta.3
53
34
  type: :runtime
54
- version_requirements: *id002
55
- - !ruby/object:Gem::Dependency
56
- name: statemachine
57
35
  prerelease: false
58
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *8104960
37
+ - !ruby/object:Gem::Dependency
38
+ name: statemachine
39
+ requirement: &8104320 !ruby/object:Gem::Requirement
59
40
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- hash: 23
64
- segments:
65
- - 1
66
- - 0
67
- - 0
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
68
44
  version: 1.0.0
69
45
  type: :runtime
70
- version_requirements: *id003
71
- - !ruby/object:Gem::Dependency
72
- name: log4r
73
46
  prerelease: false
74
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *8104320
48
+ - !ruby/object:Gem::Dependency
49
+ name: log4r
50
+ requirement: &8103200 !ruby/object:Gem::Requirement
75
51
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 3
80
- segments:
81
- - 0
82
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
83
56
  type: :runtime
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: bacon
87
57
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *8103200
59
+ - !ruby/object:Gem::Dependency
60
+ name: bacon
61
+ requirement: &8102720 !ruby/object:Gem::Requirement
89
62
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
97
67
  type: :development
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
100
- name: rake
101
68
  prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *8102720
70
+ - !ruby/object:Gem::Dependency
71
+ name: rake
72
+ requirement: &8102220 !ruby/object:Gem::Requirement
103
73
  none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 3
108
- segments:
109
- - 0
110
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
111
78
  type: :development
112
- version_requirements: *id006
79
+ prerelease: false
80
+ version_requirements: *8102220
113
81
  description:
114
- email:
82
+ email:
115
83
  - dev@axsh.net
116
84
  - m-fujiwara@axsh.net
117
- executables:
85
+ executables:
118
86
  - cli
119
87
  extensions: []
120
-
121
88
  extra_rdoc_files: []
122
-
123
- files:
89
+ files:
124
90
  - .gitignore
125
91
  - LICENSE
126
92
  - NOTICE
@@ -182,38 +148,26 @@ files:
182
148
  - tasks/load_resource_manifest.rake
183
149
  homepage: http://github.com/axsh/isono
184
150
  licenses: []
185
-
186
151
  post_install_message:
187
152
  rdoc_options: []
188
-
189
- require_paths:
153
+ require_paths:
190
154
  - lib
191
- required_ruby_version: !ruby/object:Gem::Requirement
155
+ required_ruby_version: !ruby/object:Gem::Requirement
192
156
  none: false
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- hash: 57
197
- segments:
198
- - 1
199
- - 8
200
- - 7
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
201
160
  version: 1.8.7
202
- required_rubygems_version: !ruby/object:Gem::Requirement
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
162
  none: false
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- hash: 3
208
- segments:
209
- - 0
210
- version: "0"
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
211
167
  requirements: []
212
-
213
168
  rubyforge_project: isono
214
- rubygems_version: 1.8.6
169
+ rubygems_version: 1.8.10
215
170
  signing_key:
216
171
  specification_version: 3
217
172
  summary: Messaging and agent fabric
218
173
  test_files: []
219
-