incognia_api 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +10 -4
- data/lib/incognia/api.rb +5 -3
- data/lib/incognia/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8091ced0819f517cbe35df392b7f51d7943403f0b6053e97226c5dcb91cf7f5d
|
4
|
+
data.tar.gz: 07732b958841e661ab36548eabc14d4f55895fec5997f40b2e7f4c654d746eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd76587fcc7ca3edb6cd011cd8df4d8546d60deaf7026cd2de4241ffccfdafbf288c425627cd437385439ea675269e26e84178233444db02def82c2df2871ee1
|
7
|
+
data.tar.gz: 6a65cf592482f88de479b5c60233f592e3bfc1ccfe5982e2fb3f37d56285b76d1f3dda133737c03ae771476192708b117632d8813fe3e08f2dd2647883de71c8
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
incognia_api (0.
|
4
|
+
incognia_api (0.2.0)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
|
@@ -13,19 +13,25 @@ GEM
|
|
13
13
|
crack (0.4.5)
|
14
14
|
rexml
|
15
15
|
diff-lcs (1.4.4)
|
16
|
-
faraday (1.
|
16
|
+
faraday (1.7.1)
|
17
17
|
faraday-em_http (~> 1.0)
|
18
18
|
faraday-em_synchrony (~> 1.0)
|
19
19
|
faraday-excon (~> 1.1)
|
20
|
+
faraday-httpclient (~> 1.0.1)
|
20
21
|
faraday-net_http (~> 1.0)
|
21
22
|
faraday-net_http_persistent (~> 1.1)
|
23
|
+
faraday-patron (~> 1.0)
|
24
|
+
faraday-rack (~> 1.0)
|
22
25
|
multipart-post (>= 1.2, < 3)
|
23
26
|
ruby2_keywords (>= 0.0.4)
|
24
27
|
faraday-em_http (1.0.0)
|
25
28
|
faraday-em_synchrony (1.0.0)
|
26
29
|
faraday-excon (1.1.0)
|
30
|
+
faraday-httpclient (1.0.1)
|
27
31
|
faraday-net_http (1.0.1)
|
28
|
-
faraday-net_http_persistent (1.
|
32
|
+
faraday-net_http_persistent (1.2.0)
|
33
|
+
faraday-patron (1.0.0)
|
34
|
+
faraday-rack (1.0.0)
|
29
35
|
faraday_middleware (1.0.0)
|
30
36
|
faraday (~> 1.0)
|
31
37
|
hashdiff (1.0.1)
|
@@ -46,7 +52,7 @@ GEM
|
|
46
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
53
|
rspec-support (~> 3.10.0)
|
48
54
|
rspec-support (3.10.2)
|
49
|
-
ruby2_keywords (0.0.
|
55
|
+
ruby2_keywords (0.0.5)
|
50
56
|
timecop (0.9.4)
|
51
57
|
webmock (3.14.0)
|
52
58
|
addressable (>= 2.8.0)
|
data/lib/incognia/api.rb
CHANGED
@@ -15,12 +15,14 @@ module Incognia
|
|
15
15
|
host: "https://api.incognia.com/api")
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
def register_signup(installation_id:, address: nil)
|
19
|
+
params = { installation_id: installation_id }
|
20
|
+
params.merge!(address.to_hash) if address
|
21
|
+
|
19
22
|
response = connection.request(
|
20
23
|
:post,
|
21
24
|
'v2/onboarding/signups',
|
22
|
-
|
23
|
-
**address.to_hash
|
25
|
+
params
|
24
26
|
)
|
25
27
|
|
26
28
|
SignupAssessment.from_hash(response.body) if response.success?
|
data/lib/incognia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: incognia_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Cavalcanti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
91
|
+
rubygems_version: 3.1.6
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Official Ruby lib for communicating with Incognia API
|