peplum 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peplum/application/services/shared_hash.rb +5 -3
- data/lib/peplum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cbd03ad31260b2a970bf3b4d3955a9b5a3aa9f8b8bbbffe5b49c1b07fdca539
|
4
|
+
data.tar.gz: cb85849f3733ba341a32aaf2628a5216df125f0fe686b035765c8584e4ad8d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24cc90e163171f3a1ce7622ffef358015a8e3cea47293be4f9be814589196057d1e44213c7c9a4d7b77e3fed5476cddc9f10d1edac3b2155b9cc339e94527dad
|
7
|
+
data.tar.gz: efd88627c08d5b5048dd0940366e54f48c20c170dbe22749719574b09626e326909cda7abf730d85e145cff5173403631e4061f32ba23227498c2fdfecd56ea7
|
@@ -4,7 +4,9 @@ module Services
|
|
4
4
|
|
5
5
|
class SharedHash
|
6
6
|
|
7
|
-
def initialize
|
7
|
+
def initialize(*)
|
8
|
+
super
|
9
|
+
|
8
10
|
@hash = {}
|
9
11
|
|
10
12
|
@on_set_cb = {}
|
@@ -23,7 +25,7 @@ class SharedHash
|
|
23
25
|
|
24
26
|
if broadcast
|
25
27
|
each_peer do |peer|
|
26
|
-
peer.
|
28
|
+
peer.send( name ).set( k, v, false )
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
@@ -38,7 +40,7 @@ class SharedHash
|
|
38
40
|
|
39
41
|
if broadcast
|
40
42
|
each_peer do |_, peer|
|
41
|
-
peer.
|
43
|
+
peer.send( name ).delete( k, false )
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
data/lib/peplum/version.rb
CHANGED