seapig-server 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/seapig-server +2 -2
- data/lib/seapig/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26da727b4e61d1544cdaa389bc3f518163f6b5c9
|
|
4
|
+
data.tar.gz: 213ea20302a34b0d6e7c628eccb41bef973cad3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 430a61c256dcc1cafcdff881488f318edea8b1739ca0aefb848122a3d9711affb4d14b14650dcb1892ed5e86a673c8c7e3f64ba281a0fc3a9df5ec2d71e959a4
|
|
7
|
+
data.tar.gz: 818047817d947900e460a66bccafbe92bf40523024ed4c19cd9b7478cbc3b2265048bb903459522c347005a23b7aa683608e69079ec334d44123d328813d57da
|
data/bin/seapig-server
CHANGED
|
@@ -65,7 +65,7 @@ class SeapigObject
|
|
|
65
65
|
|
|
66
66
|
def self.gc
|
|
67
67
|
used_object_ids = Set.new
|
|
68
|
-
Client.all.each { |client| used_object_ids << client.producing if client.producing } #objects currently being produced
|
|
68
|
+
Client.all.each { |client| used_object_ids << client.producing.id if client.producing } #objects currently being produced
|
|
69
69
|
Client.all.each { |client| used_object_ids.merge(client.consumes.map { |object| object.id }) } #objects with direct consuments (no pattern matching)
|
|
70
70
|
@@objects_by_id.values.each { |object| used_object_ids << object.id if Client.all.find { |client| client.produces.include?(object.id) } and Client.all.find { |client| client.consumes.find { |consumed| consumed.id.starexp? and object.id =~ consumed.id.starexp } } } #objects having producers AND wildcard consuments
|
|
71
71
|
@@objects_by_id.values.each { |object| object.version.keys.each { |key| used_object_ids << key } if object.version.kind_of?(Hash) } # objects that others depend on
|
|
@@ -127,7 +127,7 @@ class SeapigObject
|
|
|
127
127
|
old_version: old_version,
|
|
128
128
|
new_version: @version,
|
|
129
129
|
patch: (patch or JsonDiff.generate(old_object, @object)))
|
|
130
|
-
puts "Sending %8iB %s to "%[json.size, self.id, client.id]
|
|
130
|
+
puts "Sending %8iB %s to %s"%[json.size, self.id, client.id]
|
|
131
131
|
client.socket.send json
|
|
132
132
|
end
|
|
133
133
|
|
data/lib/seapig/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: seapig-server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yunta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: websocket-eventmachine-server
|