dcell 0.16.0.pre → 0.16.0

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: 76c6ddb022ba1fe11553c5084c44a1af7d3fe8cc
4
- data.tar.gz: f76bb4999f6faa64a174978fbdd95c7ea0643cba
3
+ metadata.gz: 9999eedc6fc4f7c1debdedd7e1018cc7cec0ed15
4
+ data.tar.gz: 9aa0515298bd46ed83766af9ce7e8e5b96ba924a
5
5
  SHA512:
6
- metadata.gz: aa4e828cf3f476c8c59bb06d21560b0f53f9cbb8c5bd8c2d11a7be405d3915be663abfe0d005cda2ee8c55128bb8b1c14a77f7e290b302e80f18d7dc6dad7106
7
- data.tar.gz: 86b574d65c3950407b7ce560306d8071c0718668d244bb0ac36ee01e8ab15c676e353377be32d944d8d49f6d019075d6544aa89dbaa37b5ab90d242b71f7b6c0
6
+ metadata.gz: 3af037c3b4a032cf8ded2086f538aa57f71168370e0a11f01c54a1eaa4b587d42782d7ff2a16a2a4f2c7af9ae7b82e3c8ee0a2148e3c2ad6ffb181d096598a16
7
+ data.tar.gz: 866b10be6c0dea652423187a43df0eaa2794f79db7db9ee6de599d7f0e93db80db9bd012270d754a044fd9383cfbf50ec3a73d88d06d529ca78394976f2d3c95
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
+ 0.16.0 (2014-09-04)
2
+ -------------------
3
+ * Timeouts for cell discovery
4
+ * Update Explorer to use new Reel API
5
+
1
6
  0.15.0 (2013-09-04)
2
- -----------------------
7
+ -------------------
3
8
  * Tracking release for Celluloid 0.15
4
9
  * Use the celluloid-redis gem with the Redis adapter
5
10
 
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_runtime_dependency "celluloid", ">= 0.15.0"
21
- gem.add_runtime_dependency "celluloid-zmq", ">= 0.15.0"
20
+ gem.add_runtime_dependency "celluloid", ">= 0.16.0"
21
+ gem.add_runtime_dependency "celluloid-zmq", ">= 0.16.0"
22
22
  gem.add_runtime_dependency "reel"
23
23
  gem.add_runtime_dependency "celluloid-redis"
24
24
  gem.add_runtime_dependency "redis-namespace"
@@ -33,7 +33,7 @@ module Celluloid
33
33
  case mailbox
34
34
  when ::DCell::MailboxProxy
35
35
  actor = ::DCell::Actor.new(mailbox)
36
- ::DCell::ActorProxy.new actor
36
+ ::DCell::ActorProxy.new actor, mailbox
37
37
  when ::Celluloid::Mailbox
38
38
  actor = find_actor(mailbox)
39
39
  ::Celluloid::ActorProxy.new(actor)
@@ -6,7 +6,7 @@ require 'erb'
6
6
  module DCell
7
7
  # Web UI for DCell
8
8
  # TODO: rewrite this entire thing with less hax
9
- class Explorer < Reel::Server
9
+ class Explorer < Reel::Server::HTTP
10
10
  ASSET_ROOT = Pathname.new File.expand_path("../../../explorer", __FILE__)
11
11
 
12
12
  def initialize(host = "127.0.0.1", port = 7778)
@@ -7,6 +7,8 @@ module DCell
7
7
 
8
8
  finalizer :shutdown
9
9
 
10
+ NODE_DISCOVERY_TIMEOUT = 5
11
+
10
12
  # FSM
11
13
  default_state :disconnected
12
14
  state :shutdown
@@ -70,10 +72,11 @@ module DCell
70
72
  request = Message::Find.new(Thread.mailbox, name)
71
73
  send_message request
72
74
 
73
- response = receive do |msg|
75
+ response = receive(NODE_DISCOVERY_TIMEOUT) do |msg|
74
76
  msg.respond_to?(:request_id) && msg.request_id == request.id
75
77
  end
76
78
 
79
+ return nil if response.nil?
77
80
  abort response.value if response.is_a? ErrorResponse
78
81
  response.value
79
82
  end
@@ -1,3 +1,3 @@
1
1
  module DCell
2
- VERSION = "0.16.0.pre"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0.pre
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-29 00:00:00.000000000 Z
11
+ date: 2014-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.15.0
19
+ version: 0.16.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.15.0
26
+ version: 0.16.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: celluloid-zmq
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.15.0
33
+ version: 0.16.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.15.0
40
+ version: 0.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: reel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -194,12 +194,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">"
197
+ - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 1.3.1
199
+ version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 2.2.0
202
+ rubygems_version: 2.2.2
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: An asynchronous distributed object framework based on Celluloid