motion-firebase 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b49f9074f37291c00795b4ed33fbab27deeecbf2
|
4
|
+
data.tar.gz: 4fa67fa918245f368ff988a1e171053c5dbb6daa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e99275961e0ae3f5474d78096ad1d2998af0ebbbc6ff632e12a9de0232d35b0370d4aeb008aac8f4c57ebde0ef92d5afc0a90dda367bb98192f6e4a50f65077e
|
7
|
+
data.tar.gz: 944f876006c8e162ec0354ae4b223274f28e6f2445df10e812b41c201dac293274845aa37bf62bed1c64bf92b6401e3fd7860d0e1f340fb84853194c251917ba
|
data/README.md
CHANGED
@@ -180,6 +180,10 @@ firebase.query(first: value)
|
|
180
180
|
firebase.query(first: value, on: :added) do |snapshot|
|
181
181
|
end
|
182
182
|
|
183
|
+
# create a listener that only is executed once by providing a block and :once value
|
184
|
+
firebase.query(first: value, once: :value) do |snapshot|
|
185
|
+
end
|
186
|
+
|
183
187
|
firebase.query(last: value)
|
184
188
|
# => firebase.queryLimitedToLast(value)
|
185
189
|
|
data/lib/firebase/fquery.rb
CHANGED
@@ -132,9 +132,14 @@ class FQuery
|
|
132
132
|
end
|
133
133
|
|
134
134
|
if block
|
135
|
-
event_type = options.fetch(:on, FEventTypeValue)
|
135
|
+
event_type = options.fetch(:once, options.fetch(:on, FEventTypeValue))
|
136
136
|
event_type = Firebase.convert_event_type(event_type)
|
137
|
-
|
137
|
+
|
138
|
+
if options.key?(:once)
|
139
|
+
return fb_query.observeSingleEventOfType(event_type, withBlock: block)
|
140
|
+
else
|
141
|
+
return fb_query.observeEventType(event_type, withBlock: block)
|
142
|
+
end
|
138
143
|
else
|
139
144
|
fb_query
|
140
145
|
end
|
data/lib/firebase/version.rb
CHANGED
Binary file
|
Binary file
|
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: 3.2.
|
4
|
+
version: 3.2.1
|
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:
|
11
|
+
date: 2016-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
Adds more rubyesque methods to the built-in classes.
|
@@ -18,6 +18,8 @@ executables: []
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
+
- README.md
|
22
|
+
- lib/firebase-auth/firebase_simple_login.rb
|
21
23
|
- lib/firebase/fdata_snapshot.rb
|
22
24
|
- lib/firebase/firebase.rb
|
23
25
|
- lib/firebase/firebase_auth.rb
|
@@ -26,7 +28,6 @@ files:
|
|
26
28
|
- lib/firebase/firebase_twitter_helper.rb
|
27
29
|
- lib/firebase/fquery.rb
|
28
30
|
- lib/firebase/version.rb
|
29
|
-
- lib/firebase-auth/firebase_simple_login.rb
|
30
31
|
- lib/motion-firebase-auth.rb
|
31
32
|
- lib/motion-firebase.rb
|
32
33
|
- lib/vendor/Firebase.framework/Firebase
|
@@ -35,16 +36,15 @@ files:
|
|
35
36
|
- lib/vendor/Firebase.framework/Headers/FConfig.h
|
36
37
|
- lib/vendor/Firebase.framework/Headers/FDataSnapshot.h
|
37
38
|
- lib/vendor/Firebase.framework/Headers/FEventType.h
|
38
|
-
- lib/vendor/Firebase.framework/Headers/Firebase.h
|
39
|
-
- lib/vendor/Firebase.framework/Headers/FirebaseApp.h
|
40
|
-
- lib/vendor/Firebase.framework/Headers/FirebaseServerValue.h
|
41
39
|
- lib/vendor/Firebase.framework/Headers/FMutableData.h
|
42
40
|
- lib/vendor/Firebase.framework/Headers/FQuery.h
|
43
41
|
- lib/vendor/Firebase.framework/Headers/FTransactionResult.h
|
42
|
+
- lib/vendor/Firebase.framework/Headers/Firebase.h
|
43
|
+
- lib/vendor/Firebase.framework/Headers/FirebaseApp.h
|
44
|
+
- lib/vendor/Firebase.framework/Headers/FirebaseServerValue.h
|
44
45
|
- lib/vendor/Firebase.framework/Info.plist
|
45
46
|
- lib/vendor/Firebase.framework/Modules/module.modulemap
|
46
47
|
- lib/vendor/Firebase.framework/NOTICE
|
47
|
-
- README.md
|
48
48
|
homepage: https://github.com/colinta/motion-firebase
|
49
49
|
licenses:
|
50
50
|
- BSD
|
@@ -55,17 +55,17 @@ require_paths:
|
|
55
55
|
- lib
|
56
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.
|
68
|
+
rubygems_version: 2.4.5.1
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: A RubyMotion wrapper for the Firebase iOS SDK
|