ddp-server 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ddp/server/protocol/data.rb +3 -5
- data/lib/ddp/server/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: bea09aff73c8b4d3a6c902f7655876a21b3fa0b3
|
4
|
+
data.tar.gz: a1bc3ea64efe95e99ddc72234d3ae93252783280
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc1f4362a5f92a148e69286d764544fb6858d16d0a956c46f442b62a6aaa36a84c32d1941391d608d758aa05acfbcb934e816642f8b9ffee3d5df0a7068554ca
|
7
|
+
data.tar.gz: 7be2fd599ddd69981021393f8b0c896042a36c8892232790d89d52eb66a6b8341e40197c2c0f582996350068cefeff507e7dffbf5c8d2daeb91fbde8ee8ffd6f
|
@@ -30,13 +30,11 @@ module DDP
|
|
30
30
|
|
31
31
|
def subscription_update(id, old_value, new_value)
|
32
32
|
subscription_name = @subscriptions[id].name
|
33
|
-
new_value_id = new_value['id']
|
34
|
-
old_value_id = old_value['id']
|
35
33
|
|
36
|
-
return send_added(subscription_name,
|
37
|
-
return send_removed(subscription_name,
|
34
|
+
return send_added(subscription_name, new_value['id'], new_value) if old_value.nil?
|
35
|
+
return send_removed(subscription_name, old_value['id']) if new_value.nil?
|
38
36
|
|
39
|
-
send_changed(subscription_name,
|
37
|
+
send_changed(subscription_name, old_value['id'], new_value, old_value.keys - new_value.keys)
|
40
38
|
end
|
41
39
|
|
42
40
|
def handle_unsub(id)
|
data/lib/ddp/server/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddp-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tinco Andringa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|