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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eb3f0cd63a0319c016e88eea0d86fd5892271befa4a28b8c5d8870c21cd27bb
4
- data.tar.gz: 8439dfd8d7cefe7ee1b7d0c91687d8f062b8809afb7a76798e52de2c792c520a
3
+ metadata.gz: 8091ced0819f517cbe35df392b7f51d7943403f0b6053e97226c5dcb91cf7f5d
4
+ data.tar.gz: 07732b958841e661ab36548eabc14d4f55895fec5997f40b2e7f4c654d746eac
5
5
  SHA512:
6
- metadata.gz: 88e070f8841a1410117cd527139be05ee19b8e73aea4d1190642f107f97dc181a086b56cbe1c0bfab2bc833d7a0000500b66fc2ce6a3c57b9b0d9e9d58979640
7
- data.tar.gz: e7d396d6623a7b2f0965e6b430faa5d5aa28d22b137949a2b24c6956840f85787906d6739f342004381cb593f614af8ec5596443e64277a71e6aaf84a994df00
6
+ metadata.gz: bd76587fcc7ca3edb6cd011cd8df4d8546d60deaf7026cd2de4241ffccfdafbf288c425627cd437385439ea675269e26e84178233444db02def82c2df2871ee1
7
+ data.tar.gz: 6a65cf592482f88de479b5c60233f592e3bfc1ccfe5982e2fb3f37d56285b76d1f3dda133737c03ae771476192708b117632d8813fe3e08f2dd2647883de71c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2022-05-06
4
+
5
+ - Allow registering signups without address
6
+
3
7
  ## [0.1.0] - 2021-05-28
4
8
 
5
9
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incognia_api (0.1.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.4.2)
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.1.0)
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.4)
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
- def register_signup(installation_id:, address: )
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
- installation_id: installation_id,
23
- **address.to_hash
25
+ params
24
26
  )
25
27
 
26
28
  SignupAssessment.from_hash(response.body) if response.success?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Incognia
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.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-04-22 00:00:00.000000000 Z
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.2.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