cuboid 0.2.6 → 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: 16117ddd8bcfeb196beb164a425a2a42643a121ba8b511f5f78ed193b177c858
4
- data.tar.gz: 9553e538510f8b9f1262c7d11cac98dffca53e1989d0d2dabc56e201bd555a63
3
+ metadata.gz: 33b30a28b95616b82ce8411a70d89f633e62c3a6aa8cd8abdae23a35be7390c4
4
+ data.tar.gz: 53805b38187b3f4614cb57b7251d7d12610a8bb6333e150b0a92519601ce4bb7
5
5
  SHA512:
6
- metadata.gz: b3af03cb62af997478c66ae905e43c1a10efc7971833dd12cd8d46e964cdfa7469578d8ed86c02117448a91beff5020a1418872e6d9a117638289c77969331aa
7
- data.tar.gz: c16194307cd888377f2a9030de4c7540d1c15bd5458e696f11c3b417f38ca08ed0c956eb6e41d328d4afa5b10bd3652e2e2b6d30990d7136924c6d14e2e82598
6
+ metadata.gz: 95dc682c7a959d4dcbde434e18257e290c8cb4583f7c368cfc3fb3c99f9135e595bd0bb3d5649d15fedef0727df24a9f0b6c24a11b8a2367fa879051f8a34a8c
7
+ data.tar.gz: a7884cdbbd71934faa9de21d809dd09000475dcf3c1c4b6799950b558562c229be1673319f6ab4aecc947e13bc3202bf80983adab476067743aaef6777e39151
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.7
2
+
3
+ * `RPC::Server::Agent::Node#unplug` -- Use Raktr iterator.
4
+
1
5
  # 0.2.6
2
6
 
3
7
  * `Application.serializer` now defaults to JSON for REST API compatibility.
@@ -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.6
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.6
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-26 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