motion-firebase 3.1.5 → 3.1.6
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_auth.rb +6 -2
- data/lib/firebase/fquery.rb +1 -1
- data/lib/firebase/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad48aa1a6d29f907d2eba40e0ae2ef2e962fe402
|
4
|
+
data.tar.gz: 4d70ae0ac685cb45c848a752e21c1c338f746b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b26db823daea7e84e4e0d01506e4afc7e8bf4905c65e75f9a1e4ddd6164bc6cd4386226779731d1e2e5525c558b4a49d366bfadba6b18d437ec646c309d8954
|
7
|
+
data.tar.gz: 6d3c80897fa9b8278bf28485828455b4105253e024dfcf273bb0fa008ab76c60689b52a34f74ff4ac3e046d82d4fc40500d45caec3e0f9fee7b94d64d0cf03c8
|
@@ -74,7 +74,11 @@ class Firebase
|
|
74
74
|
email = credentials[:email]
|
75
75
|
password = credentials[:password]
|
76
76
|
begin
|
77
|
-
|
77
|
+
if block && block.arity == 2
|
78
|
+
createUser(email, password: password, withValueCompletionBlock: block)
|
79
|
+
else
|
80
|
+
createUser(email, password: password, withCompletionBlock: block)
|
81
|
+
end
|
78
82
|
rescue RuntimeError => e
|
79
83
|
block.call(e, nil)
|
80
84
|
end
|
@@ -89,7 +93,7 @@ class Firebase
|
|
89
93
|
email = credentials[:email]
|
90
94
|
password = credentials[:password]
|
91
95
|
begin
|
92
|
-
|
96
|
+
createUser(email, password: password, withCompletionBlock: -> (error) do
|
93
97
|
if error
|
94
98
|
block.call(error, nil)
|
95
99
|
else
|
data/lib/firebase/fquery.rb
CHANGED
@@ -134,7 +134,7 @@ class FQuery
|
|
134
134
|
if block
|
135
135
|
event_type = options.fetch(:on, FEventTypeValue)
|
136
136
|
event_type = Firebase.convert_event_type(event_type)
|
137
|
-
return fb_query.observeEventType(event_type, withBlock:
|
137
|
+
return fb_query.observeEventType(event_type, withBlock: block)
|
138
138
|
else
|
139
139
|
fb_query
|
140
140
|
end
|
data/lib/firebase/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-firebase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.6
|
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: 2015-05-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rspec
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
11
|
+
date: 2015-05-15 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: |
|
28
14
|
Adds more rubyesque methods to the built-in classes.
|
29
15
|
email:
|