isono 0.2.10 → 0.2.11

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ task :gem do
25
25
  s.executables = %w(cli)
26
26
 
27
27
  s.add_dependency "amqp", "0.7.4"
28
- s.add_dependency "eventmachine", "1.0.0.beta.3"
28
+ s.add_dependency "eventmachine", "1.0.0.beta.4"
29
29
  s.add_dependency "statemachine", ">= 1.0.0"
30
30
  s.add_dependency "log4r"
31
31
 
data/isono.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "isono"
5
- s.version = "0.2.10"
5
+ s.version = "0.2.11"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["axsh Ltd.", "Masahiro Fujiwara"]
9
- s.date = "2012-04-02"
9
+ s.date = "2012-04-23"
10
10
  s.email = ["dev@axsh.net", "m-fujiwara@axsh.net"]
11
11
  s.executables = ["cli"]
12
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"]
@@ -22,14 +22,14 @@ Gem::Specification.new do |s|
22
22
 
23
23
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
24
  s.add_runtime_dependency(%q<amqp>, ["= 0.7.4"])
25
- s.add_runtime_dependency(%q<eventmachine>, ["= 1.0.0.beta.3"])
25
+ s.add_runtime_dependency(%q<eventmachine>, ["= 1.0.0.beta.4"])
26
26
  s.add_runtime_dependency(%q<statemachine>, [">= 1.0.0"])
27
27
  s.add_runtime_dependency(%q<log4r>, [">= 0"])
28
28
  s.add_development_dependency(%q<bacon>, [">= 0"])
29
29
  s.add_development_dependency(%q<rake>, [">= 0"])
30
30
  else
31
31
  s.add_dependency(%q<amqp>, ["= 0.7.4"])
32
- s.add_dependency(%q<eventmachine>, ["= 1.0.0.beta.3"])
32
+ s.add_dependency(%q<eventmachine>, ["= 1.0.0.beta.4"])
33
33
  s.add_dependency(%q<statemachine>, [">= 1.0.0"])
34
34
  s.add_dependency(%q<log4r>, [">= 0"])
35
35
  s.add_dependency(%q<bacon>, [">= 0"])
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  end
38
38
  else
39
39
  s.add_dependency(%q<amqp>, ["= 0.7.4"])
40
- s.add_dependency(%q<eventmachine>, ["= 1.0.0.beta.3"])
40
+ s.add_dependency(%q<eventmachine>, ["= 1.0.0.beta.4"])
41
41
  s.add_dependency(%q<statemachine>, [">= 1.0.0"])
42
42
  s.add_dependency(%q<log4r>, [">= 0"])
43
43
  s.add_dependency(%q<bacon>, [">= 0"])
@@ -55,7 +55,7 @@ module Isono
55
55
  end
56
56
 
57
57
  def subscribe(evname, sender='#', receiver_id=node.node_id, &blk)
58
- @amq.queue("#{evname}-#{receiver_id}", {:exclusive=>true}).bind(
58
+ @amq.queue("#{evname}-#{receiver_id}",{:auto_delete=>true}).bind(
59
59
  AMQP_EXCHANGE, :key=>"#{evname}.#{sender}"
60
60
  ).subscribe { |data|
61
61
  data = Serializer.instance.unmarshal(data)
@@ -73,7 +73,7 @@ module Isono
73
73
 
74
74
  def unsubscribe(evname, receiver_id=node.node_id)
75
75
  EventMachine.schedule {
76
- q = @amq.queue("#{evname}-#{receiver_id}")
76
+ q = @amq.queue("#{evname}-#{receiver_id}",{:auto_delete=>true})
77
77
  q.unsubscribe
78
78
  }
79
79
  end
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.10'
4
+ VERSION='0.2.11'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-02 00:00:00.000000000Z
13
+ date: 2012-04-23 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: amqp
17
- requirement: &8105520 !ruby/object:Gem::Requirement
17
+ requirement: &7228680 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - =
@@ -22,21 +22,21 @@ dependencies:
22
22
  version: 0.7.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *8105520
25
+ version_requirements: *7228680
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: eventmachine
28
- requirement: &8104960 !ruby/object:Gem::Requirement
28
+ requirement: &7228160 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - =
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0.beta.3
33
+ version: 1.0.0.beta.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *8104960
36
+ version_requirements: *7228160
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: statemachine
39
- requirement: &8104320 !ruby/object:Gem::Requirement
39
+ requirement: &7227640 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *8104320
47
+ version_requirements: *7227640
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: log4r
50
- requirement: &8103200 !ruby/object:Gem::Requirement
50
+ requirement: &7227120 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *8103200
58
+ version_requirements: *7227120
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: bacon
61
- requirement: &8102720 !ruby/object:Gem::Requirement
61
+ requirement: &7226520 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: '0'
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *8102720
69
+ version_requirements: *7226520
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
- requirement: &8102220 !ruby/object:Gem::Requirement
72
+ requirement: &7225920 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *8102220
80
+ version_requirements: *7225920
81
81
  description:
82
82
  email:
83
83
  - dev@axsh.net