motion-firebase 2.0.13 → 2.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/firebase/firebase.rb +7 -7
- data/lib/firebase/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: 6b64d014fb4ea9562f6db2cddc02d031630da000
|
4
|
+
data.tar.gz: 0c7d997132fee6155e375229534bd72468825e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8c67ccd1d005a4548a85af51d3c3904464f13e701e23c935161e4d600ba956471114f9cf20d474d77f220cfa5e96890fc9978ce7a18275552025833501e462
|
7
|
+
data.tar.gz: 0dc0dd8e5cf908a797e280b5324b84ab86178d5ebc76233b1729e68655bce6502cb950c005c9caa9e7e5a1bf30f2cffe51c33dfeac76341c4c9abe9443289f4a
|
data/lib/firebase/firebase.rb
CHANGED
@@ -6,15 +6,15 @@ class Firebase
|
|
6
6
|
|
7
7
|
def self.convert_event_type(event_type)
|
8
8
|
case event_type
|
9
|
-
when :child_added, :added
|
9
|
+
when :child_added, :added, FEventTypeChildAdded
|
10
10
|
return FEventTypeChildAdded
|
11
|
-
when :child_moved, :moved
|
12
|
-
FEventTypeChildMoved
|
13
|
-
when :child_changed, :changed
|
11
|
+
when :child_moved, :moved, FEventTypeChildMoved
|
12
|
+
return FEventTypeChildMoved
|
13
|
+
when :child_changed, :changed, FEventTypeChildChanged
|
14
14
|
return FEventTypeChildChanged
|
15
|
-
when :child_removed, :removed
|
15
|
+
when :child_removed, :removed, FEventTypeChildRemoved
|
16
16
|
return FEventTypeChildRemoved
|
17
|
-
when :value
|
17
|
+
when :value, FEventTypeValue
|
18
18
|
return FEventTypeValue
|
19
19
|
else
|
20
20
|
NSLog("Unknown event type #{event_type.inspect}")
|
@@ -192,7 +192,7 @@ class Firebase
|
|
192
192
|
onDisconnectSetValue(value, withCompletionBlock: and_then)
|
193
193
|
end
|
194
194
|
else
|
195
|
-
if value
|
195
|
+
if value.nil?
|
196
196
|
onDisconnectRemoveValue
|
197
197
|
elsif NSDictionary === value
|
198
198
|
onDisconnectUpdateChildValues(value)
|
data/lib/firebase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-firebase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|