rallio 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rallio/sign_on_token.rb +2 -2
- data/lib/rallio/user.rb +4 -1
- 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: 7de2ae60e004154bd4c92f678464965fdf0eca29
|
4
|
+
data.tar.gz: 293a8bbb355c404d3b12e192614c9b157a9cf566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a16e12baaf53cae8c64f7a54e77b3e79447246df4a6fec01accca1c42a21b3e75268b839fe49783f193623557d22c97ed8520bd29640833d683a6ed92f2ba08
|
7
|
+
data.tar.gz: eb4a3496e30031fc3bb47922d2c16fe87f8a0af43a44d29a94dd8b26fd97d24d6e951d130108203ad4e75afe2a5fe944c0725d33d4793498ea5deb58f29a5424
|
data/lib/rallio/sign_on_token.rb
CHANGED
@@ -16,8 +16,8 @@ module Rallio
|
|
16
16
|
#
|
17
17
|
# @param user_id [Integer]
|
18
18
|
# @return [Rallio::SignOnToken]
|
19
|
-
def self.create(user_id:)
|
20
|
-
response = self.post("/users/#{user_id}/sign_on_tokens", headers: app_credentials)
|
19
|
+
def self.create(user_id:, params: {})
|
20
|
+
response = self.post("/users/#{user_id}/sign_on_tokens", headers: app_credentials, params: params)
|
21
21
|
new response.parsed_response['sign_on_token']
|
22
22
|
end
|
23
23
|
end
|
data/lib/rallio/user.rb
CHANGED
@@ -33,8 +33,11 @@ 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
|
36
39
|
# @return [Rallio::User] user object that was just created
|
37
|
-
def self.create(user:)
|
40
|
+
def self.create(user:, params: {})
|
38
41
|
response = self.post('/users', headers: app_credentials, body: { user: user })
|
39
42
|
new response.parsed_response['user']
|
40
43
|
end
|
data/lib/rallio/version.rb
CHANGED