motion-firebase 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,22 @@ class FirebaseAuthClient
42
42
  changePasswordForEmail(email, oldPassword:old_password, newPassword:new_password, completionBlock:block)
43
43
  end
44
44
 
45
+ def login_facebook(credentials, &block)
46
+ app_id = credentials[:app_id]
47
+ raise "app_id is required in #{__method__}" unless app_id
48
+ permissions = credentials[:permissions]
49
+ raise "permissions is required in #{__method__}" unless permissions
50
+ loginToFacebookAppWithId(app_id, permissions:permissions, withCompletionBlock:block)
51
+ end
52
+
53
+ def login_to_twitter(credentials, &block)
54
+ app_id = credentials[:app_id]
55
+ raise "app_id is required in #{__method__}" unless app_id
56
+ on_multiple = credentials[:on_multiple]
57
+ raise "on_multiple is required in #{__method__}" unless on_multiple
58
+ loginToTwitterAppWithId(app_id, multipleAccountsHandler:on_multiple, withCompletionBlock:block)
59
+ end
60
+
45
61
  def inspect
46
62
  "#<#{self.class}:0x#{self.object_id.to_s(16)}>"
47
63
  end
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Firebase
3
- Version = '1.0.7'
3
+ Version = '1.0.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-firebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: