widgit_accounts_sdk 0.0.7 → 0.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.
- checksums.yaml +4 -4
- data/lib/widgit_accounts_sdk/client.rb +4 -5
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2cca68013dcd7b7be838ba5c23de0778245702eab8888660cd8a8581485773af
|
|
4
|
+
data.tar.gz: 11e8770755e0a99415186d52953d06a084d9fc3b27b504124ff988528a5f3499
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 876cc696d2f18c33c2a1a7391503219fc52ee19800fc257f2553c4189849c5c3df519265a56826a3c2021f2552e590146e8a723e619b5b79c62867ad41c32cdd
|
|
7
|
+
data.tar.gz: c85cfa7f0bd4809ce60fbb283692963a9be22efbd190248c7eec4a1f90c4b30f856afb1204cdbd6e69962a82045d0ddc8d98be1006217d8a98fcf7404ed12215
|
|
@@ -30,11 +30,10 @@ module WidgitAccountsSdk
|
|
|
30
30
|
return success.merge('exists' => response['exists'])
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
def invite(email,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
request_url
|
|
37
|
-
request_url += "&#{last_name.to_query(:last_name)}" if last_name
|
|
33
|
+
def invite(email, **options)
|
|
34
|
+
params = { email: email }.merge(options.compact)
|
|
35
|
+
query = params.to_query
|
|
36
|
+
request_url = "/api/v1/accounts/invite?#{query}"
|
|
38
37
|
response = request(request_url, :post)
|
|
39
38
|
return failed(response['error']) if response['status'] == 'failed'
|
|
40
39
|
return response
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: widgit_accounts_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stu Wright
|
|
8
8
|
- James Sherriff
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: jwt
|
|
@@ -34,10 +33,8 @@ files:
|
|
|
34
33
|
- lib/widgit_accounts_sdk.rb
|
|
35
34
|
- lib/widgit_accounts_sdk/client.rb
|
|
36
35
|
- lib/widgit_accounts_sdk/configuration.rb
|
|
37
|
-
homepage:
|
|
38
36
|
licenses: []
|
|
39
37
|
metadata: {}
|
|
40
|
-
post_install_message:
|
|
41
38
|
rdoc_options: []
|
|
42
39
|
require_paths:
|
|
43
40
|
- lib
|
|
@@ -52,8 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
52
49
|
- !ruby/object:Gem::Version
|
|
53
50
|
version: '0'
|
|
54
51
|
requirements: []
|
|
55
|
-
rubygems_version:
|
|
56
|
-
signing_key:
|
|
52
|
+
rubygems_version: 4.0.6
|
|
57
53
|
specification_version: 4
|
|
58
54
|
summary: Widgit Accounts API Client Ruby Gem
|
|
59
55
|
test_files: []
|