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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa08203e7e3a6205c1b29b68c1b5ab89607c2dc4
4
- data.tar.gz: 91183398da4e9f58f902f08f54b5b41ddc6cc28e
3
+ metadata.gz: ad48aa1a6d29f907d2eba40e0ae2ef2e962fe402
4
+ data.tar.gz: 4d70ae0ac685cb45c848a752e21c1c338f746b54
5
5
  SHA512:
6
- metadata.gz: 15c24514bf29671c631a2e39aae0b51fc3acad0fbc8f46a2d5ea56f32cf6374796637bab66b249e2cd19976a605a57becbcdd608356792e5ed8f70101d7da905
7
- data.tar.gz: 03982007f2ad1877664cabae71332909aed38b5d32c6fd2ce2354e876dc93ecaebdbe11fc09f9136754b555f5aa6bc8f87e6658237134466aafbf01de4c2e763
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
- createUserWithEmail(email, password: password, withCompletionBlock: block)
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
- createUserWithEmail(email, password: password, withCompletionBlock: -> (error) do
96
+ createUser(email, password: password, withCompletionBlock: -> (error) do
93
97
  if error
94
98
  block.call(error, nil)
95
99
  else
@@ -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: and_then)
137
+ return fb_query.observeEventType(event_type, withBlock: block)
138
138
  else
139
139
  fb_query
140
140
  end
@@ -1,6 +1,6 @@
1
1
  module Motion
2
2
  module Firebase
3
- Version = '3.1.5' # motion-firebase gem version
3
+ Version = '3.1.6' # motion-firebase gem version
4
4
  SdkVersion = '2.2.1' # firebase framework version
5
5
  end
6
6
  end
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.5
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-01 00:00:00.000000000 Z
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: