widgit_accounts_sdk 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/widgit_accounts_sdk/client.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e86d598f05cce8432a51cfcbe65cb94c8778c47cd64105fb0e4d31447fbaf9f5
|
4
|
+
data.tar.gz: c3d709020421e239a22e157a3a3dd1e382ad27ac78b74d49bf5fa89c15c7edbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03db3def928738a18e1f0690a1673a3bd19a8bb9160a5449986ff65cbdb17590e609c7fde5b657bc7276fb51adda7740b16cca37a31357742133a2da9a5597e1
|
7
|
+
data.tar.gz: 203f35427c3ad47ddac74e1ff34077c3a1195a7316406d500d95898015520c244268c9f2522c2dec300787ee6636a94a3ee6bec2629b5918e8f81bca4a309701
|
@@ -30,6 +30,7 @@ module WidgitAccountsSdk
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def invite(email, first_name = nil, last_name = nil)
|
33
|
+
email = CGI.escape email # URL encode the string, for things like plus forwarding which get converted to spaces
|
33
34
|
request_url = "/api/v1/accounts/invite?#{email.to_query(:email)}"
|
34
35
|
request_url += "&#{first_name.to_query(:first_name)}" if first_name
|
35
36
|
request_url += "&#{last_name.to_query(:last_name)}" if last_name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stu Wright
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby client for interacting with the Widgit Accounts API
|
15
15
|
email: james.sherriff@widgit.com
|