motion-firebase 2.0.14 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/firebase/firebase.rb +5 -1
- data/lib/firebase/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3691ef599b9fdad62c09eb244c65e94ab633c610
|
4
|
+
data.tar.gz: cf699742ced08989afc9757f0d00c500b4b1070f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a06ad4faba724a00bf90147a7b8de55847615de8b5dc5e9c8db3d51e5f80e16e7ef08ea2e8edceb200ce14f2664c89155ebb83842a80bb459a41dc55075fd223
|
7
|
+
data.tar.gz: 130b95aa9976e104bb3a10db1542cf9fe8f3408074044f89502acb53bcbb655176d93a815bc989c8619f95436a5ecc8d38675e4083e856cb920127d8438613fd
|
data/README.md
CHANGED
@@ -122,10 +122,11 @@ SDK
|
|
122
122
|
```ruby
|
123
123
|
firebase.online!
|
124
124
|
firebase.offline!
|
125
|
-
firebase.
|
125
|
+
firebase.connected_state # returns a Firebase ref that changes value depending on connectivity
|
126
|
+
firebase.on_disconnect(value) # set the ref to `value` when disconnected
|
126
127
|
firebase.on_disconnect(value) { |error| 'completion block' }
|
127
|
-
firebase.on_disconnect(value, priority:priority)
|
128
|
-
firebase.on_disconnect(value, priority:priority) { |error| 'completion block' }
|
128
|
+
firebase.on_disconnect(value, priority: priority)
|
129
|
+
firebase.on_disconnect(value, priority: priority) { |error| 'completion block' }
|
129
130
|
firebase.on_disconnect(nil)
|
130
131
|
firebase.on_disconnect(nil) { |error| 'completion block' }
|
131
132
|
firebase.on_disconnect({ child: values })
|
@@ -156,6 +157,7 @@ SDK
|
|
156
157
|
end
|
157
158
|
# be a good citizen and turn off the listener later!
|
158
159
|
firebase.off(handle)
|
160
|
+
```
|
159
161
|
|
160
162
|
##### Transactions
|
161
163
|
|
data/lib/firebase/firebase.rb
CHANGED
data/lib/firebase/version.rb
CHANGED