motion-firebase 2.1.1 → 2.1.2

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: 462cf224fbc812e69ec3498d851a16bbaae89bdb
4
- data.tar.gz: f130d9fb2a5c7305a12667d2b888bdf6a9b6ead5
3
+ metadata.gz: 78276c2196abbe8398566bf30137c0c42e8f2f52
4
+ data.tar.gz: 92ee30e049a2a51197f100c3547c70114b10393c
5
5
  SHA512:
6
- metadata.gz: 7f768c0dc015ff1c31a8d0791a68dddf160f29777dc973a19e82811da234c9b1f519251343de644010b49b080fef99cab61f6f31584029f3a515effe6f6ada0a
7
- data.tar.gz: 04593e1ab7fbfa2c0f786047fb6c6cb4d79a5478f15bc9127a530836b180a478e4a6f2625aa5565840914ee4915eb00f7bc2f088923889012c0e517c5d6d3845
6
+ metadata.gz: 4a7bf6295406f0a09a28e4a8cc1b902c4fec45fc779365ea7bdce70aa1fb35f04c23f121ba6730052612b93f980ffafe6d54790af0cff9299bd5a6a951acd908
7
+ data.tar.gz: 3accf0bdf142ab8ccdf52fb4886f44205a6a7cb5cc435988dab5efe46c392f18b9ad9bcfc35227448af7318d7821af48f774c2797e6c6e0d61a7a08f42544c44
@@ -35,20 +35,28 @@ class Firebase
35
35
 
36
36
  # @example
37
37
  # firebase = Firebase.new('http://..../')
38
- # firebase.auth('secretkey', completion: ->{}, disconnect:{})
38
+ # firebase.auth('secretkey') do
39
+ # # connected
40
+ # end
41
+ # firebase.auth('secretkey', disconnect: ->{}) do
42
+ # # connected
43
+ # end
44
+ # firebase.auth('secretkey', completion: ->{}, disconnect: ->{})
39
45
  # # => firebase.authWithCredential(credential)
40
46
  def auth(credential, options={}, &and_then)
41
- and_then = and_then || options[:completion]
47
+ and_then ||= options[:completion]
42
48
  disconnect_block = options[:disconnect]
43
49
  authWithCredential(credential, withCompletionBlock: and_then, withCancelBlock: disconnect_block)
44
50
  return self
45
51
  end
46
52
 
53
+ alias_method :old_unauth, :unauth
54
+
47
55
  def unauth(&block)
48
- if block
56
+ if block_given?
49
57
  unauthWithCompletionBlock(block)
50
58
  else
51
- super()
59
+ old_unauth
52
60
  end
53
61
  end
54
62
 
@@ -78,13 +86,13 @@ class Firebase
78
86
  completion_block = options[:completion]
79
87
  with_local_events = options[:local]
80
88
  if with_local_events.nil?
81
- if completion_block
89
+ if block_given?
82
90
  runTransactionBlock(transaction, andCompletionBlock: completion_block)
83
91
  else
84
92
  runTransactionBlock(transaction)
85
93
  end
86
94
  else
87
- if completion_block
95
+ if block_given?
88
96
  runTransactionBlock(transaction, andCompletionBlock: completion_block, withLocalEvents: with_local_events)
89
97
  else
90
98
  runTransactionBlock(transaction, withLocalEvents: with_local_events)
@@ -117,7 +125,7 @@ class Firebase
117
125
  end
118
126
 
119
127
  def clear!(&and_then)
120
- if and_then
128
+ if block_given?
121
129
  removeValueWithCompletionBlock(and_then)
122
130
  else
123
131
  removeValue
@@ -142,7 +150,7 @@ class Firebase
142
150
  end
143
151
 
144
152
  def set(value, &and_then)
145
- if and_then
153
+ if block_given?
146
154
  setValue(value, withCompletionBlock: and_then)
147
155
  else
148
156
  setValue(value)
@@ -155,7 +163,7 @@ class Firebase
155
163
  end
156
164
 
157
165
  def priority(value, &and_then)
158
- if and_then
166
+ if block_given?
159
167
  setPriority(value, withCompletionBlock: and_then)
160
168
  else
161
169
  setPriority(value)
@@ -164,7 +172,7 @@ class Firebase
164
172
  end
165
173
 
166
174
  def set(value, priority: priority, &and_then)
167
- if and_then
175
+ if block_given?
168
176
  setValue(value, andPriority: priority, withCompletionBlock: and_then)
169
177
  else
170
178
  setValue(value, andPriority: priority)
@@ -173,7 +181,7 @@ class Firebase
173
181
  end
174
182
 
175
183
  def update(values, &and_then)
176
- if and_then
184
+ if block_given?
177
185
  updateChildValues(values, withCompletionBlock: and_then)
178
186
  else
179
187
  updateChildValues(values)
@@ -182,7 +190,7 @@ class Firebase
182
190
  end
183
191
 
184
192
  def cancel_disconnect(&and_then)
185
- if and_then
193
+ if block_given?
186
194
  cancelDisconnectOperationsWithCompletionBlock(and_then)
187
195
  else
188
196
  cancelDisconnectOperations
@@ -196,7 +204,7 @@ class Firebase
196
204
  end
197
205
 
198
206
  def on_disconnect(value, &and_then)
199
- if and_then
207
+ if block_given?
200
208
  if value.nil?
201
209
  onDisconnectRemoveValueWithCompletionBlock(and_then)
202
210
  elsif NSDictionary === value
@@ -217,7 +225,7 @@ class Firebase
217
225
  end
218
226
 
219
227
  def on_disconnect(value, priority: priority, &and_then)
220
- if and_then
228
+ if block_given?
221
229
  onDisconnectSetValue(value, andPriority: priority, withCompletionBlock: and_then)
222
230
  else
223
231
  onDisconnectSetValue(value, andPriority: priority)
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Firebase
3
- Version = '2.1.1'
3
+ Version = '2.1.2'
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@
14
14
  <retval declared_type='NSEnumerator*' type='@'/>
15
15
  </method>
16
16
  <method selector='childrenCount'>
17
- <retval declared_type='NSUInteger' type='I' type64='Q'/>
17
+ <retval declared_type='NSUInteger' type='I'/>
18
18
  </method>
19
19
  <method selector='hasChild:'>
20
20
  <arg declared_type='NSString*' index='0' name='childPathString' type='@'/>
@@ -64,7 +64,7 @@
64
64
  <retval declared_type='NSEnumerator*' type='@'/>
65
65
  </method>
66
66
  <method selector='childrenCount'>
67
- <retval declared_type='NSUInteger' type='I' type64='Q'/>
67
+ <retval declared_type='NSUInteger' type='I'/>
68
68
  </method>
69
69
  <method selector='hasChildAtPath:'>
70
70
  <arg declared_type='NSString*' index='0' name='path' type='@'/>
@@ -106,7 +106,7 @@
106
106
  <arg declared_type='NSString*' type='@'/>
107
107
  <retval declared_type='void' type='v'/>
108
108
  </arg>
109
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
109
+ <retval declared_type='FirebaseHandle' type='I'/>
110
110
  </method>
111
111
  <method selector='observeEventType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
112
112
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -119,7 +119,7 @@
119
119
  <arg declared_type='NSError*' type='@'/>
120
120
  <retval declared_type='void' type='v'/>
121
121
  </arg>
122
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
122
+ <retval declared_type='FirebaseHandle' type='I'/>
123
123
  </method>
124
124
  <method selector='observeEventType:withBlock:'>
125
125
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -127,7 +127,7 @@
127
127
  <arg declared_type='FDataSnapshot*' type='@'/>
128
128
  <retval declared_type='void' type='v'/>
129
129
  </arg>
130
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
130
+ <retval declared_type='FirebaseHandle' type='I'/>
131
131
  </method>
132
132
  <method selector='observeEventType:withBlock:withCancelBlock:'>
133
133
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -139,7 +139,7 @@
139
139
  <arg declared_type='NSError*' type='@'/>
140
140
  <retval declared_type='void' type='v'/>
141
141
  </arg>
142
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
142
+ <retval declared_type='FirebaseHandle' type='I'/>
143
143
  </method>
144
144
  <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:'>
145
145
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -193,7 +193,7 @@
193
193
  <retval declared_type='FQuery*' type='@'/>
194
194
  </method>
195
195
  <method selector='queryLimitedToNumberOfChildren:'>
196
- <arg declared_type='NSUInteger' index='0' name='limit' type='I' type64='Q'/>
196
+ <arg declared_type='NSUInteger' index='0' name='limit' type='I'/>
197
197
  <retval declared_type='FQuery*' type='@'/>
198
198
  </method>
199
199
  <method selector='queryStartingAtPriority:'>
@@ -209,7 +209,7 @@
209
209
  <retval declared_type='void' type='v'/>
210
210
  </method>
211
211
  <method selector='removeObserverWithHandle:'>
212
- <arg declared_type='FirebaseHandle' index='0' name='handle' type='I' type64='Q'/>
212
+ <arg declared_type='FirebaseHandle' index='0' name='handle' type='I'/>
213
213
  <retval declared_type='void' type='v'/>
214
214
  </method>
215
215
  </class>
@@ -277,7 +277,7 @@
277
277
  <arg declared_type='NSString*' type='@'/>
278
278
  <retval declared_type='void' type='v'/>
279
279
  </arg>
280
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
280
+ <retval declared_type='FirebaseHandle' type='I'/>
281
281
  </method>
282
282
  <method selector='observeEventType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
283
283
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -290,7 +290,7 @@
290
290
  <arg declared_type='NSError*' type='@'/>
291
291
  <retval declared_type='void' type='v'/>
292
292
  </arg>
293
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
293
+ <retval declared_type='FirebaseHandle' type='I'/>
294
294
  </method>
295
295
  <method selector='observeEventType:withBlock:'>
296
296
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -298,7 +298,7 @@
298
298
  <arg declared_type='FDataSnapshot*' type='@'/>
299
299
  <retval declared_type='void' type='v'/>
300
300
  </arg>
301
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
301
+ <retval declared_type='FirebaseHandle' type='I'/>
302
302
  </method>
303
303
  <method selector='observeEventType:withBlock:withCancelBlock:'>
304
304
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -310,7 +310,7 @@
310
310
  <arg declared_type='NSError*' type='@'/>
311
311
  <retval declared_type='void' type='v'/>
312
312
  </arg>
313
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
313
+ <retval declared_type='FirebaseHandle' type='I'/>
314
314
  </method>
315
315
  <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:'>
316
316
  <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
@@ -419,7 +419,7 @@
419
419
  <retval declared_type='FQuery*' type='@'/>
420
420
  </method>
421
421
  <method selector='queryLimitedToNumberOfChildren:'>
422
- <arg declared_type='NSUInteger' index='0' name='limit' type='I' type64='Q'/>
422
+ <arg declared_type='NSUInteger' index='0' name='limit' type='I'/>
423
423
  <retval declared_type='FQuery*' type='@'/>
424
424
  </method>
425
425
  <method selector='queryStartingAtPriority:'>
@@ -435,7 +435,7 @@
435
435
  <retval declared_type='void' type='v'/>
436
436
  </method>
437
437
  <method selector='removeObserverWithHandle:'>
438
- <arg declared_type='FirebaseHandle' index='0' name='handle' type='I' type64='Q'/>
438
+ <arg declared_type='FirebaseHandle' index='0' name='handle' type='I'/>
439
439
  <retval declared_type='void' type='v'/>
440
440
  </method>
441
441
  <method selector='removeValue'>
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.1.1
4
+ version: 2.1.2
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-06-05 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -39,7 +39,6 @@ files:
39
39
  - lib/firebase-auth/firebase_simple_login.rb
40
40
  - lib/motion-firebase-auth.rb
41
41
  - lib/motion-firebase.rb
42
- - lib/vendor/Firebase.framework/build-iPhoneOS/Firebase.framework.bridgesupport
43
42
  - lib/vendor/Firebase.framework/build-iPhoneSimulator/Firebase.framework.bridgesupport
44
43
  - lib/vendor/Firebase.framework/build-MacOSX/Firebase.framework.bridgesupport
45
44
  - lib/vendor/Firebase.framework/Firebase
@@ -1,582 +0,0 @@
1
- <?xml version='1.0'?>
2
- <signatures version='1.0'>
3
- <enum name='FEventTypeChildAdded' value='0'/>
4
- <enum name='FEventTypeChildChanged' value='2'/>
5
- <enum name='FEventTypeChildMoved' value='3'/>
6
- <enum name='FEventTypeChildRemoved' value='1'/>
7
- <enum name='FEventTypeValue' value='4'/>
8
- <class name='FDataSnapshot'>
9
- <method selector='childSnapshotForPath:'>
10
- <arg declared_type='NSString*' index='0' name='childPathString' type='@'/>
11
- <retval declared_type='FDataSnapshot*' type='@'/>
12
- </method>
13
- <method selector='children'>
14
- <retval declared_type='NSEnumerator*' type='@'/>
15
- </method>
16
- <method selector='childrenCount'>
17
- <retval declared_type='NSUInteger' type='I' type64='Q'/>
18
- </method>
19
- <method selector='hasChild:'>
20
- <arg declared_type='NSString*' index='0' name='childPathString' type='@'/>
21
- <retval declared_type='BOOL' type='B'/>
22
- </method>
23
- <method selector='hasChildren'>
24
- <retval declared_type='BOOL' type='B'/>
25
- </method>
26
- <method selector='name'>
27
- <retval declared_type='NSString*' type='@'/>
28
- </method>
29
- <method selector='priority'>
30
- <retval declared_type='id' type='@'/>
31
- </method>
32
- <method selector='ref'>
33
- <retval declared_type='Firebase*' type='@'/>
34
- </method>
35
- <method selector='setChildren:'>
36
- <arg declared_type='NSEnumerator*' index='0' name='children' type='@'/>
37
- <retval declared_type='void' type='v'/>
38
- </method>
39
- <method selector='setName:'>
40
- <arg declared_type='NSString*' index='0' name='name' type='@'/>
41
- <retval declared_type='void' type='v'/>
42
- </method>
43
- <method selector='setPriority:'>
44
- <arg declared_type='id' index='0' name='priority' type='@'/>
45
- <retval declared_type='void' type='v'/>
46
- </method>
47
- <method selector='setValue:'>
48
- <arg declared_type='id' index='0' name='value' type='@'/>
49
- <retval declared_type='void' type='v'/>
50
- </method>
51
- <method selector='value'>
52
- <retval declared_type='id' type='@'/>
53
- </method>
54
- <method selector='valueInExportFormat'>
55
- <retval declared_type='id' type='@'/>
56
- </method>
57
- </class>
58
- <class name='FMutableData'>
59
- <method selector='childDataByAppendingPath:'>
60
- <arg declared_type='NSString*' index='0' name='path' type='@'/>
61
- <retval declared_type='FMutableData*' type='@'/>
62
- </method>
63
- <method selector='children'>
64
- <retval declared_type='NSEnumerator*' type='@'/>
65
- </method>
66
- <method selector='childrenCount'>
67
- <retval declared_type='NSUInteger' type='I' type64='Q'/>
68
- </method>
69
- <method selector='hasChildAtPath:'>
70
- <arg declared_type='NSString*' index='0' name='path' type='@'/>
71
- <retval declared_type='BOOL' type='B'/>
72
- </method>
73
- <method selector='hasChildren'>
74
- <retval declared_type='BOOL' type='B'/>
75
- </method>
76
- <method selector='name'>
77
- <retval declared_type='NSString*' type='@'/>
78
- </method>
79
- <method selector='parent'>
80
- <retval declared_type='FMutableData*' type='@'/>
81
- </method>
82
- <method selector='priority'>
83
- <retval declared_type='id' type='@'/>
84
- </method>
85
- <method selector='setParent:'>
86
- <arg declared_type='FMutableData*' index='0' name='parent' type='@'/>
87
- <retval declared_type='void' type='v'/>
88
- </method>
89
- <method selector='setPriority:'>
90
- <arg declared_type='id' index='0' name='priority' type='@'/>
91
- <retval declared_type='void' type='v'/>
92
- </method>
93
- <method selector='setValue:'>
94
- <arg declared_type='id' index='0' name='value' type='@'/>
95
- <retval declared_type='void' type='v'/>
96
- </method>
97
- <method selector='value'>
98
- <retval declared_type='id' type='@'/>
99
- </method>
100
- </class>
101
- <class name='FQuery'>
102
- <method selector='observeEventType:andPreviousSiblingNameWithBlock:'>
103
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
104
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
105
- <arg declared_type='FDataSnapshot*' type='@'/>
106
- <arg declared_type='NSString*' type='@'/>
107
- <retval declared_type='void' type='v'/>
108
- </arg>
109
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
110
- </method>
111
- <method selector='observeEventType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
112
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
113
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
114
- <arg declared_type='FDataSnapshot*' type='@'/>
115
- <arg declared_type='NSString*' type='@'/>
116
- <retval declared_type='void' type='v'/>
117
- </arg>
118
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
119
- <arg declared_type='NSError*' type='@'/>
120
- <retval declared_type='void' type='v'/>
121
- </arg>
122
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
123
- </method>
124
- <method selector='observeEventType:withBlock:'>
125
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
126
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
127
- <arg declared_type='FDataSnapshot*' type='@'/>
128
- <retval declared_type='void' type='v'/>
129
- </arg>
130
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
131
- </method>
132
- <method selector='observeEventType:withBlock:withCancelBlock:'>
133
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
134
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
135
- <arg declared_type='FDataSnapshot*' type='@'/>
136
- <retval declared_type='void' type='v'/>
137
- </arg>
138
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
139
- <arg declared_type='NSError*' type='@'/>
140
- <retval declared_type='void' type='v'/>
141
- </arg>
142
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
143
- </method>
144
- <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:'>
145
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
146
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
147
- <arg declared_type='FDataSnapshot*' type='@'/>
148
- <arg declared_type='NSString*' type='@'/>
149
- <retval declared_type='void' type='v'/>
150
- </arg>
151
- <retval declared_type='void' type='v'/>
152
- </method>
153
- <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
154
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
155
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
156
- <arg declared_type='FDataSnapshot*' type='@'/>
157
- <arg declared_type='NSString*' type='@'/>
158
- <retval declared_type='void' type='v'/>
159
- </arg>
160
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
161
- <arg declared_type='NSError*' type='@'/>
162
- <retval declared_type='void' type='v'/>
163
- </arg>
164
- <retval declared_type='void' type='v'/>
165
- </method>
166
- <method selector='observeSingleEventOfType:withBlock:'>
167
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
168
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
169
- <arg declared_type='FDataSnapshot*' type='@'/>
170
- <retval declared_type='void' type='v'/>
171
- </arg>
172
- <retval declared_type='void' type='v'/>
173
- </method>
174
- <method selector='observeSingleEventOfType:withBlock:withCancelBlock:'>
175
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
176
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
177
- <arg declared_type='FDataSnapshot*' type='@'/>
178
- <retval declared_type='void' type='v'/>
179
- </arg>
180
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
181
- <arg declared_type='NSError*' type='@'/>
182
- <retval declared_type='void' type='v'/>
183
- </arg>
184
- <retval declared_type='void' type='v'/>
185
- </method>
186
- <method selector='queryEndingAtPriority:'>
187
- <arg declared_type='id' index='0' name='endPriority' type='@'/>
188
- <retval declared_type='FQuery*' type='@'/>
189
- </method>
190
- <method selector='queryEndingAtPriority:andChildName:'>
191
- <arg declared_type='id' index='0' name='endPriority' type='@'/>
192
- <arg declared_type='NSString*' index='1' name='childName' type='@'/>
193
- <retval declared_type='FQuery*' type='@'/>
194
- </method>
195
- <method selector='queryLimitedToNumberOfChildren:'>
196
- <arg declared_type='NSUInteger' index='0' name='limit' type='I' type64='Q'/>
197
- <retval declared_type='FQuery*' type='@'/>
198
- </method>
199
- <method selector='queryStartingAtPriority:'>
200
- <arg declared_type='id' index='0' name='startPriority' type='@'/>
201
- <retval declared_type='FQuery*' type='@'/>
202
- </method>
203
- <method selector='queryStartingAtPriority:andChildName:'>
204
- <arg declared_type='id' index='0' name='startPriority' type='@'/>
205
- <arg declared_type='NSString*' index='1' name='childName' type='@'/>
206
- <retval declared_type='FQuery*' type='@'/>
207
- </method>
208
- <method selector='removeAllObservers'>
209
- <retval declared_type='void' type='v'/>
210
- </method>
211
- <method selector='removeObserverWithHandle:'>
212
- <arg declared_type='FirebaseHandle' index='0' name='handle' type='I' type64='Q'/>
213
- <retval declared_type='void' type='v'/>
214
- </method>
215
- </class>
216
- <class name='FTransactionResult'>
217
- <method class_method='true' selector='abort'>
218
- <retval declared_type='FTransactionResult*' type='@'/>
219
- </method>
220
- <method class_method='true' selector='successWithValue:'>
221
- <arg declared_type='FMutableData*' index='0' name='value' type='@'/>
222
- <retval declared_type='FTransactionResult*' type='@'/>
223
- </method>
224
- </class>
225
- <class name='Firebase'>
226
- <method selector='authWithCredential:withCompletionBlock:withCancelBlock:'>
227
- <arg declared_type='NSString*' index='0' name='credential' type='@'/>
228
- <arg declared_type='void (^)(NSError *, id)' function_pointer='true' index='1' name='block' type='@?'>
229
- <arg declared_type='NSError*' type='@'/>
230
- <arg declared_type='id' type='@'/>
231
- <retval declared_type='void' type='v'/>
232
- </arg>
233
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
234
- <arg declared_type='NSError*' type='@'/>
235
- <retval declared_type='void' type='v'/>
236
- </arg>
237
- <retval declared_type='void' type='v'/>
238
- </method>
239
- <method selector='cancelDisconnectOperations'>
240
- <retval declared_type='void' type='v'/>
241
- </method>
242
- <method selector='cancelDisconnectOperationsWithCompletionBlock:'>
243
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='0' name='block' type='@?'>
244
- <arg declared_type='NSError*' type='@'/>
245
- <arg declared_type='Firebase*' type='@'/>
246
- <retval declared_type='void' type='v'/>
247
- </arg>
248
- <retval declared_type='void' type='v'/>
249
- </method>
250
- <method selector='childByAppendingPath:'>
251
- <arg declared_type='NSString*' index='0' name='pathString' type='@'/>
252
- <retval declared_type='Firebase*' type='@'/>
253
- </method>
254
- <method selector='childByAutoId'>
255
- <retval declared_type='Firebase*' type='@'/>
256
- </method>
257
- <method selector='description'>
258
- <retval declared_type='NSString*' type='@'/>
259
- </method>
260
- <method class_method='true' selector='goOffline'>
261
- <retval declared_type='void' type='v'/>
262
- </method>
263
- <method class_method='true' selector='goOnline'>
264
- <retval declared_type='void' type='v'/>
265
- </method>
266
- <method selector='initWithUrl:'>
267
- <arg declared_type='NSString*' index='0' name='url' type='@'/>
268
- <retval declared_type='id' type='@'/>
269
- </method>
270
- <method selector='name'>
271
- <retval declared_type='NSString*' type='@'/>
272
- </method>
273
- <method selector='observeEventType:andPreviousSiblingNameWithBlock:'>
274
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
275
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
276
- <arg declared_type='FDataSnapshot*' type='@'/>
277
- <arg declared_type='NSString*' type='@'/>
278
- <retval declared_type='void' type='v'/>
279
- </arg>
280
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
281
- </method>
282
- <method selector='observeEventType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
283
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
284
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
285
- <arg declared_type='FDataSnapshot*' type='@'/>
286
- <arg declared_type='NSString*' type='@'/>
287
- <retval declared_type='void' type='v'/>
288
- </arg>
289
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
290
- <arg declared_type='NSError*' type='@'/>
291
- <retval declared_type='void' type='v'/>
292
- </arg>
293
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
294
- </method>
295
- <method selector='observeEventType:withBlock:'>
296
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
297
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
298
- <arg declared_type='FDataSnapshot*' type='@'/>
299
- <retval declared_type='void' type='v'/>
300
- </arg>
301
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
302
- </method>
303
- <method selector='observeEventType:withBlock:withCancelBlock:'>
304
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
305
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
306
- <arg declared_type='FDataSnapshot*' type='@'/>
307
- <retval declared_type='void' type='v'/>
308
- </arg>
309
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
310
- <arg declared_type='NSError*' type='@'/>
311
- <retval declared_type='void' type='v'/>
312
- </arg>
313
- <retval declared_type='FirebaseHandle' type='I' type64='Q'/>
314
- </method>
315
- <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:'>
316
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
317
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
318
- <arg declared_type='FDataSnapshot*' type='@'/>
319
- <arg declared_type='NSString*' type='@'/>
320
- <retval declared_type='void' type='v'/>
321
- </arg>
322
- <retval declared_type='void' type='v'/>
323
- </method>
324
- <method selector='observeSingleEventOfType:andPreviousSiblingNameWithBlock:withCancelBlock:'>
325
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
326
- <arg declared_type='void (^)(FDataSnapshot *, NSString *)' function_pointer='true' index='1' name='block' type='@?'>
327
- <arg declared_type='FDataSnapshot*' type='@'/>
328
- <arg declared_type='NSString*' type='@'/>
329
- <retval declared_type='void' type='v'/>
330
- </arg>
331
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
332
- <arg declared_type='NSError*' type='@'/>
333
- <retval declared_type='void' type='v'/>
334
- </arg>
335
- <retval declared_type='void' type='v'/>
336
- </method>
337
- <method selector='observeSingleEventOfType:withBlock:'>
338
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
339
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
340
- <arg declared_type='FDataSnapshot*' type='@'/>
341
- <retval declared_type='void' type='v'/>
342
- </arg>
343
- <retval declared_type='void' type='v'/>
344
- </method>
345
- <method selector='observeSingleEventOfType:withBlock:withCancelBlock:'>
346
- <arg declared_type='FEventType' index='0' name='eventType' type='i'/>
347
- <arg declared_type='void (^)(FDataSnapshot *)' function_pointer='true' index='1' name='block' type='@?'>
348
- <arg declared_type='FDataSnapshot*' type='@'/>
349
- <retval declared_type='void' type='v'/>
350
- </arg>
351
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='2' name='cancelBlock' type='@?'>
352
- <arg declared_type='NSError*' type='@'/>
353
- <retval declared_type='void' type='v'/>
354
- </arg>
355
- <retval declared_type='void' type='v'/>
356
- </method>
357
- <method selector='onDisconnectRemoveValue'>
358
- <retval declared_type='void' type='v'/>
359
- </method>
360
- <method selector='onDisconnectRemoveValueWithCompletionBlock:'>
361
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='0' name='block' type='@?'>
362
- <arg declared_type='NSError*' type='@'/>
363
- <arg declared_type='Firebase*' type='@'/>
364
- <retval declared_type='void' type='v'/>
365
- </arg>
366
- <retval declared_type='void' type='v'/>
367
- </method>
368
- <method selector='onDisconnectSetValue:'>
369
- <arg declared_type='id' index='0' name='value' type='@'/>
370
- <retval declared_type='void' type='v'/>
371
- </method>
372
- <method selector='onDisconnectSetValue:andPriority:'>
373
- <arg declared_type='id' index='0' name='value' type='@'/>
374
- <arg declared_type='id' index='1' name='priority' type='@'/>
375
- <retval declared_type='void' type='v'/>
376
- </method>
377
- <method selector='onDisconnectSetValue:andPriority:withCompletionBlock:'>
378
- <arg declared_type='id' index='0' name='value' type='@'/>
379
- <arg declared_type='id' index='1' name='priority' type='@'/>
380
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='2' name='block' type='@?'>
381
- <arg declared_type='NSError*' type='@'/>
382
- <arg declared_type='Firebase*' type='@'/>
383
- <retval declared_type='void' type='v'/>
384
- </arg>
385
- <retval declared_type='void' type='v'/>
386
- </method>
387
- <method selector='onDisconnectSetValue:withCompletionBlock:'>
388
- <arg declared_type='id' index='0' name='value' type='@'/>
389
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='1' name='block' type='@?'>
390
- <arg declared_type='NSError*' type='@'/>
391
- <arg declared_type='Firebase*' type='@'/>
392
- <retval declared_type='void' type='v'/>
393
- </arg>
394
- <retval declared_type='void' type='v'/>
395
- </method>
396
- <method selector='onDisconnectUpdateChildValues:'>
397
- <arg declared_type='NSDictionary*' index='0' name='values' type='@'/>
398
- <retval declared_type='void' type='v'/>
399
- </method>
400
- <method selector='onDisconnectUpdateChildValues:withCompletionBlock:'>
401
- <arg declared_type='NSDictionary*' index='0' name='values' type='@'/>
402
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='1' name='block' type='@?'>
403
- <arg declared_type='NSError*' type='@'/>
404
- <arg declared_type='Firebase*' type='@'/>
405
- <retval declared_type='void' type='v'/>
406
- </arg>
407
- <retval declared_type='void' type='v'/>
408
- </method>
409
- <method selector='parent'>
410
- <retval declared_type='Firebase*' type='@'/>
411
- </method>
412
- <method selector='queryEndingAtPriority:'>
413
- <arg declared_type='id' index='0' name='endPriority' type='@'/>
414
- <retval declared_type='FQuery*' type='@'/>
415
- </method>
416
- <method selector='queryEndingAtPriority:andChildName:'>
417
- <arg declared_type='id' index='0' name='endPriority' type='@'/>
418
- <arg declared_type='NSString*' index='1' name='childName' type='@'/>
419
- <retval declared_type='FQuery*' type='@'/>
420
- </method>
421
- <method selector='queryLimitedToNumberOfChildren:'>
422
- <arg declared_type='NSUInteger' index='0' name='limit' type='I' type64='Q'/>
423
- <retval declared_type='FQuery*' type='@'/>
424
- </method>
425
- <method selector='queryStartingAtPriority:'>
426
- <arg declared_type='id' index='0' name='startPriority' type='@'/>
427
- <retval declared_type='FQuery*' type='@'/>
428
- </method>
429
- <method selector='queryStartingAtPriority:andChildName:'>
430
- <arg declared_type='id' index='0' name='startPriority' type='@'/>
431
- <arg declared_type='NSString*' index='1' name='childName' type='@'/>
432
- <retval declared_type='FQuery*' type='@'/>
433
- </method>
434
- <method selector='removeAllObservers'>
435
- <retval declared_type='void' type='v'/>
436
- </method>
437
- <method selector='removeObserverWithHandle:'>
438
- <arg declared_type='FirebaseHandle' index='0' name='handle' type='I' type64='Q'/>
439
- <retval declared_type='void' type='v'/>
440
- </method>
441
- <method selector='removeValue'>
442
- <retval declared_type='void' type='v'/>
443
- </method>
444
- <method selector='removeValueWithCompletionBlock:'>
445
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='0' name='block' type='@?'>
446
- <arg declared_type='NSError*' type='@'/>
447
- <arg declared_type='Firebase*' type='@'/>
448
- <retval declared_type='void' type='v'/>
449
- </arg>
450
- <retval declared_type='void' type='v'/>
451
- </method>
452
- <method selector='root'>
453
- <retval declared_type='Firebase*' type='@'/>
454
- </method>
455
- <method selector='runTransactionBlock:'>
456
- <arg declared_type='FTransactionResult *(^)(FMutableData *)' function_pointer='true' index='0' name='block' type='@?'>
457
- <arg declared_type='FMutableData*' type='@'/>
458
- <retval declared_type='FTransactionResult*' type='@'/>
459
- </arg>
460
- <retval declared_type='void' type='v'/>
461
- </method>
462
- <method selector='runTransactionBlock:andCompletionBlock:'>
463
- <arg declared_type='FTransactionResult *(^)(FMutableData *)' function_pointer='true' index='0' name='block' type='@?'>
464
- <arg declared_type='FMutableData*' type='@'/>
465
- <retval declared_type='FTransactionResult*' type='@'/>
466
- </arg>
467
- <arg declared_type='void (^)(NSError *, BOOL, FDataSnapshot *)' function_pointer='true' index='1' name='completionBlock' type='@?'>
468
- <arg declared_type='NSError*' type='@'/>
469
- <arg declared_type='BOOL' type='B'/>
470
- <arg declared_type='FDataSnapshot*' type='@'/>
471
- <retval declared_type='void' type='v'/>
472
- </arg>
473
- <retval declared_type='void' type='v'/>
474
- </method>
475
- <method selector='runTransactionBlock:andCompletionBlock:withLocalEvents:'>
476
- <arg declared_type='FTransactionResult *(^)(FMutableData *)' function_pointer='true' index='0' name='block' type='@?'>
477
- <arg declared_type='FMutableData*' type='@'/>
478
- <retval declared_type='FTransactionResult*' type='@'/>
479
- </arg>
480
- <arg declared_type='void (^)(NSError *, BOOL, FDataSnapshot *)' function_pointer='true' index='1' name='completionBlock' type='@?'>
481
- <arg declared_type='NSError*' type='@'/>
482
- <arg declared_type='BOOL' type='B'/>
483
- <arg declared_type='FDataSnapshot*' type='@'/>
484
- <retval declared_type='void' type='v'/>
485
- </arg>
486
- <arg declared_type='BOOL' index='2' name='localEvents' type='B'/>
487
- <retval declared_type='void' type='v'/>
488
- </method>
489
- <method class_method='true' selector='sdkVersion'>
490
- <retval declared_type='NSString*' type='@'/>
491
- </method>
492
- <method class_method='true' selector='setDispatchQueue:'>
493
- <arg declared_type='dispatch_queue_t' index='0' name='queue' type='@'/>
494
- <retval declared_type='void' type='v'/>
495
- </method>
496
- <method class_method='true' selector='setLoggingEnabled:'>
497
- <arg declared_type='BOOL' index='0' name='enabled' type='B'/>
498
- <retval declared_type='void' type='v'/>
499
- </method>
500
- <method selector='setName:'>
501
- <arg declared_type='NSString*' index='0' name='name' type='@'/>
502
- <retval declared_type='void' type='v'/>
503
- </method>
504
- <method class_method='true' selector='setOption:to:'>
505
- <arg declared_type='NSString*' index='0' name='option' type='@'/>
506
- <arg declared_type='id' index='1' name='value' type='@'/>
507
- <retval declared_type='void' type='v'/>
508
- </method>
509
- <method selector='setParent:'>
510
- <arg declared_type='Firebase*' index='0' name='parent' type='@'/>
511
- <retval declared_type='void' type='v'/>
512
- </method>
513
- <method selector='setPriority:'>
514
- <arg declared_type='id' index='0' name='priority' type='@'/>
515
- <retval declared_type='void' type='v'/>
516
- </method>
517
- <method selector='setPriority:withCompletionBlock:'>
518
- <arg declared_type='id' index='0' name='priority' type='@'/>
519
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='1' name='block' type='@?'>
520
- <arg declared_type='NSError*' type='@'/>
521
- <arg declared_type='Firebase*' type='@'/>
522
- <retval declared_type='void' type='v'/>
523
- </arg>
524
- <retval declared_type='void' type='v'/>
525
- </method>
526
- <method selector='setRoot:'>
527
- <arg declared_type='Firebase*' index='0' name='root' type='@'/>
528
- <retval declared_type='void' type='v'/>
529
- </method>
530
- <method selector='setValue:'>
531
- <arg declared_type='id' index='0' name='value' type='@'/>
532
- <retval declared_type='void' type='v'/>
533
- </method>
534
- <method selector='setValue:andPriority:'>
535
- <arg declared_type='id' index='0' name='value' type='@'/>
536
- <arg declared_type='id' index='1' name='priority' type='@'/>
537
- <retval declared_type='void' type='v'/>
538
- </method>
539
- <method selector='setValue:andPriority:withCompletionBlock:'>
540
- <arg declared_type='id' index='0' name='value' type='@'/>
541
- <arg declared_type='id' index='1' name='priority' type='@'/>
542
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='2' name='block' type='@?'>
543
- <arg declared_type='NSError*' type='@'/>
544
- <arg declared_type='Firebase*' type='@'/>
545
- <retval declared_type='void' type='v'/>
546
- </arg>
547
- <retval declared_type='void' type='v'/>
548
- </method>
549
- <method selector='setValue:withCompletionBlock:'>
550
- <arg declared_type='id' index='0' name='value' type='@'/>
551
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='1' name='block' type='@?'>
552
- <arg declared_type='NSError*' type='@'/>
553
- <arg declared_type='Firebase*' type='@'/>
554
- <retval declared_type='void' type='v'/>
555
- </arg>
556
- <retval declared_type='void' type='v'/>
557
- </method>
558
- <method selector='unauth'>
559
- <retval declared_type='void' type='v'/>
560
- </method>
561
- <method selector='unauthWithCompletionBlock:'>
562
- <arg declared_type='void (^)(NSError *)' function_pointer='true' index='0' name='block' type='@?'>
563
- <arg declared_type='NSError*' type='@'/>
564
- <retval declared_type='void' type='v'/>
565
- </arg>
566
- <retval declared_type='void' type='v'/>
567
- </method>
568
- <method selector='updateChildValues:'>
569
- <arg declared_type='NSDictionary*' index='0' name='values' type='@'/>
570
- <retval declared_type='void' type='v'/>
571
- </method>
572
- <method selector='updateChildValues:withCompletionBlock:'>
573
- <arg declared_type='NSDictionary*' index='0' name='values' type='@'/>
574
- <arg declared_type='void (^)(NSError *, Firebase *)' function_pointer='true' index='1' name='block' type='@?'>
575
- <arg declared_type='NSError*' type='@'/>
576
- <arg declared_type='Firebase*' type='@'/>
577
- <retval declared_type='void' type='v'/>
578
- </arg>
579
- <retval declared_type='void' type='v'/>
580
- </method>
581
- </class>
582
- </signatures>