rallio 0.6.3 → 0.6.4
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.
- checksums.yaml +4 -4
- data/lib/rallio/user.rb +6 -6
- data/lib/rallio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72401feeba4bc2a106d24ef8b590f7a02ae4b41a
|
4
|
+
data.tar.gz: 81352da10c0f271d46d3d883c0e0bd75f097675c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8351b059b8f06f16dd84121e31ee883b79c8d81e97fd6c15d0008e2171e03e2fbd6410bc79f423015e532b0e622ff2c257ffd760e0f477ca00dc44d903f6b45f
|
7
|
+
data.tar.gz: 3e06c82a466fdd5f68c87852c481dca0441b1a134bbe7d66d29404be0e62eb219561ce5f60d9b8b58189b49269815043aa0c5b09e5de6b067f9eec499b4df86b
|
data/lib/rallio/user.rb
CHANGED
@@ -33,11 +33,8 @@ module Rallio
|
|
33
33
|
# @option user [String] :email unique email address
|
34
34
|
# @option user [String] :first_name
|
35
35
|
# @option user [String] :last_name
|
36
|
-
# @param params [Hash] optional uri params sent with request
|
37
|
-
# @option params [String] :connect_account_id account id to display social
|
38
|
-
# connections for
|
39
36
|
# @return [Rallio::User] user object that was just created
|
40
|
-
def self.create(user
|
37
|
+
def self.create(user:)
|
41
38
|
response = self.post('/users', headers: app_credentials, body: { user: user })
|
42
39
|
new response.parsed_response['user']
|
43
40
|
end
|
@@ -45,9 +42,12 @@ module Rallio
|
|
45
42
|
# Creates new single signon for user to be redirected to.
|
46
43
|
# @see Rallio::SignOnToken
|
47
44
|
#
|
45
|
+
# @param params [Hash] optional uri params sent with request
|
46
|
+
# @option params [String] :connect_account_id account id to display social
|
47
|
+
# connections for
|
48
48
|
# @return [Rallio::SignOnToken]
|
49
|
-
def sign_on_token
|
50
|
-
SignOnToken.create(user_id: id)
|
49
|
+
def sign_on_token(params: {})
|
50
|
+
SignOnToken.create(user_id: id, params: params)
|
51
51
|
end
|
52
52
|
|
53
53
|
# Creates or returns the API access token for user.
|
data/lib/rallio/version.rb
CHANGED