cuboid 0.2.5 → 0.2.7

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: d3b544e8f6eb34d19ba08d26c263435e34321ab174d86ce09da67b4b9651924d
4
- data.tar.gz: eb9be57eccb9429514f04c66f36337669a9865d2f634d118eabe38d853ad5980
3
+ metadata.gz: 33b30a28b95616b82ce8411a70d89f633e62c3a6aa8cd8abdae23a35be7390c4
4
+ data.tar.gz: 53805b38187b3f4614cb57b7251d7d12610a8bb6333e150b0a92519601ce4bb7
5
5
  SHA512:
6
- metadata.gz: ab705216690f6891f9530f1252ea6d782208f9707d4b1d6d6e75435489c6c1d6927f699662810f7daffc5dd726ecd0cef00817e4e11b75660699ac7886ab66ee
7
- data.tar.gz: 134eaeefd0742c2de4cf22cbe9c7f805d5efb752a9194f737b393b51e1f4354241c2704de27a328fa45b37883c91182134964f495f4038c82e1cd0e89f3b052f
6
+ metadata.gz: 95dc682c7a959d4dcbde434e18257e290c8cb4583f7c368cfc3fb3c99f9135e595bd0bb3d5649d15fedef0727df24a9f0b6c24a11b8a2367fa879051f8a34a8c
7
+ data.tar.gz: a7884cdbbd71934faa9de21d809dd09000475dcf3c1c4b6799950b558562c229be1673319f6ab4aecc947e13bc3202bf80983adab476067743aaef6777e39151
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.2.7
2
+
3
+ * `RPC::Server::Agent::Node#unplug` -- Use Raktr iterator.
4
+
5
+ # 0.2.6
6
+
7
+ * `Application.serializer` now defaults to JSON for REST API compatibility.
8
+
1
9
  # 0.2.5
2
10
 
3
11
  * `RPC::Server::Services::Base` => `RPC::Server::Instance::Service`
@@ -153,7 +153,9 @@ class Application
153
153
 
154
154
  def serializer
155
155
  @serializer ||= nil
156
- @serializer || RPC::Serializer
156
+
157
+ # Default to JSON for REST API compatibility.
158
+ @serializer || JSON
157
159
  end
158
160
 
159
161
  def validate_options_with( handler )
@@ -76,8 +76,8 @@ class Server::Agent::Node
76
76
  end
77
77
 
78
78
  def unplug
79
- @peers.each do |peer|
80
- connect_to_peer( peer ).remove_peer( @url ) {}
79
+ Raktr.global.create_iterator( @peers, 20 ).each do |peer, iterator|
80
+ connect_to_peer( peer ).remove_peer( @url ) { iterator.next }
81
81
  end
82
82
 
83
83
  @peers.clear
data/lib/version CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuboid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tasos Laskos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-24 00:00:00.000000000 Z
11
+ date: 2023-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print