iwoca 0.1.1 → 1.0.1

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: 28c09a7f39cfbccac200c2364732571fefb76bbd15075cb55f8d4cd4f54f6fa6
4
- data.tar.gz: c83e499656cc228d678c0c87f6193ebfc9284bcd24ed5a2bbd2fbe1fc71ce87c
3
+ metadata.gz: ce9c1834255a98ef839610f8ccff91efab04f9942b219470de6c769e7bb52a20
4
+ data.tar.gz: 37479cab8d5dfefd64be30fd339d7dad18ac8d039b985ffeb3fb7ebe36c3b48b
5
5
  SHA512:
6
- metadata.gz: c26ed6b74ecd8170cde23793ff30090a9f6f7282eba04239eef257135df9eb1ebd991298bbf31a858a64c59782caa2e6c501f086b0c15d3c0842f5f412a43684
7
- data.tar.gz: 4f2727be130b63f88f600a7e272fe34c36ff6c90f3dd4c538cf126640f3d7d48a559c5bd54544fd20c27fb2e30a4f24c9c74d755692d5f33f277dc753f7daba6
6
+ metadata.gz: d645e2d9948fe267fcce8e6f706de979b8a17127dd66b9e2acb5f77262b9ba77f7d99556f86bf0b10939ec19a24b61d6728502bca53a63d822c2b008c72fd647
7
+ data.tar.gz: d7ab10d7dbcc0c792c68e2b03cccae40c9ff6e71d3fa23d3fe556ce886f66c8618e40407eb4e27ab2aabb976787e07f51094936898972521a82376815481d998
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 3.1.2
data/Gemfile CHANGED
@@ -4,3 +4,15 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in iwoca.gemspec
6
6
  gemspec
7
+
8
+ # Development dependencies
9
+ gem 'dotenv'
10
+ gem 'faker'
11
+ gem 'pry-byebug'
12
+ gem 'rake'
13
+ gem 'rspec'
14
+ gem 'rubocop'
15
+ gem 'rubocop-rspec'
16
+ gem 'simplecov'
17
+ gem 'vcr'
18
+ gem 'webmock'
data/Gemfile.lock CHANGED
@@ -1,86 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iwoca (0.1.1)
4
+ iwoca (1.0.1)
5
5
  addressable
6
- faraday
7
- faraday_middleware
8
- multi_json
6
+ faraday (~> 2.7)
9
7
  rainbow
10
8
 
11
9
  GEM
12
10
  remote: https://rubygems.org/
13
11
  specs:
14
- addressable (2.7.0)
15
- public_suffix (>= 2.0.2, < 5.0)
16
- ast (2.4.0)
17
- byebug (11.1.0)
18
- coderay (1.1.2)
19
- concurrent-ruby (1.1.5)
20
- crack (0.4.3)
21
- safe_yaml (~> 1.0.0)
22
- diff-lcs (1.3)
23
- docile (1.3.2)
24
- dotenv (2.7.5)
25
- faker (2.10.1)
26
- i18n (>= 1.6, < 2)
27
- faraday (0.17.3)
28
- multipart-post (>= 1.2, < 3)
29
- faraday_middleware (0.14.0)
30
- faraday (>= 0.7.4, < 1.0)
31
- hashdiff (1.0.0)
32
- i18n (1.8.2)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
+ ast (2.4.2)
15
+ byebug (11.1.3)
16
+ coderay (1.1.3)
17
+ concurrent-ruby (1.2.2)
18
+ crack (0.4.5)
19
+ rexml
20
+ diff-lcs (1.5.0)
21
+ docile (1.4.0)
22
+ dotenv (2.8.1)
23
+ faker (3.1.1)
24
+ i18n (>= 1.8.11, < 2)
25
+ faraday (2.7.4)
26
+ faraday-net_http (>= 2.0, < 3.1)
27
+ ruby2_keywords (>= 0.0.4)
28
+ faraday-net_http (3.0.2)
29
+ hashdiff (1.0.1)
30
+ i18n (1.12.0)
33
31
  concurrent-ruby (~> 1.0)
34
- jaro_winkler (1.5.4)
35
- json (2.3.0)
36
- method_source (0.9.2)
37
- multi_json (1.14.1)
38
- multipart-post (2.1.1)
39
- parallel (1.19.1)
40
- parser (2.7.0.2)
41
- ast (~> 2.4.0)
42
- pry (0.12.2)
43
- coderay (~> 1.1.0)
44
- method_source (~> 0.9.0)
45
- pry-byebug (3.7.0)
32
+ json (2.6.3)
33
+ method_source (1.0.0)
34
+ parallel (1.22.1)
35
+ parser (3.2.1.0)
36
+ ast (~> 2.4.1)
37
+ pry (0.14.2)
38
+ coderay (~> 1.1)
39
+ method_source (~> 1.0)
40
+ pry-byebug (3.10.1)
46
41
  byebug (~> 11.0)
47
- pry (~> 0.10)
48
- public_suffix (4.0.3)
49
- rainbow (3.0.0)
50
- rake (10.5.0)
51
- rspec (3.9.0)
52
- rspec-core (~> 3.9.0)
53
- rspec-expectations (~> 3.9.0)
54
- rspec-mocks (~> 3.9.0)
55
- rspec-core (3.9.1)
56
- rspec-support (~> 3.9.1)
57
- rspec-expectations (3.9.0)
42
+ pry (>= 0.13, < 0.15)
43
+ public_suffix (5.0.1)
44
+ rainbow (3.1.1)
45
+ rake (13.0.6)
46
+ regexp_parser (2.7.0)
47
+ rexml (3.2.5)
48
+ rspec (3.12.0)
49
+ rspec-core (~> 3.12.0)
50
+ rspec-expectations (~> 3.12.0)
51
+ rspec-mocks (~> 3.12.0)
52
+ rspec-core (3.12.1)
53
+ rspec-support (~> 3.12.0)
54
+ rspec-expectations (3.12.2)
58
55
  diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.9.0)
60
- rspec-mocks (3.9.1)
56
+ rspec-support (~> 3.12.0)
57
+ rspec-mocks (3.12.3)
61
58
  diff-lcs (>= 1.2.0, < 2.0)
62
- rspec-support (~> 3.9.0)
63
- rspec-support (3.9.2)
64
- rubocop (0.79.0)
65
- jaro_winkler (~> 1.5.1)
59
+ rspec-support (~> 3.12.0)
60
+ rspec-support (3.12.0)
61
+ rubocop (1.47.0)
62
+ json (~> 2.3)
66
63
  parallel (~> 1.10)
67
- parser (>= 2.7.0.1)
64
+ parser (>= 3.2.0.0)
68
65
  rainbow (>= 2.2.2, < 4.0)
66
+ regexp_parser (>= 1.8, < 3.0)
67
+ rexml (>= 3.2.5, < 4.0)
68
+ rubocop-ast (>= 1.26.0, < 2.0)
69
69
  ruby-progressbar (~> 1.7)
70
- unicode-display_width (>= 1.4.0, < 1.7)
71
- rubocop-rspec (1.37.1)
72
- rubocop (>= 0.68.1)
73
- ruby-progressbar (1.10.1)
74
- safe_yaml (1.0.5)
75
- simplecov (0.17.1)
70
+ unicode-display_width (>= 2.4.0, < 3.0)
71
+ rubocop-ast (1.27.0)
72
+ parser (>= 3.2.1.0)
73
+ rubocop-capybara (2.17.1)
74
+ rubocop (~> 1.41)
75
+ rubocop-rspec (2.18.1)
76
+ rubocop (~> 1.33)
77
+ rubocop-capybara (~> 2.17)
78
+ ruby-progressbar (1.12.0)
79
+ ruby2_keywords (0.0.5)
80
+ simplecov (0.22.0)
76
81
  docile (~> 1.1)
77
- json (>= 1.8, < 3)
78
- simplecov-html (~> 0.10.0)
79
- simplecov-html (0.10.2)
80
- unicode-display_width (1.6.1)
81
- vcr (5.0.0)
82
- webmock (3.8.0)
83
- addressable (>= 2.3.6)
82
+ simplecov-html (~> 0.11)
83
+ simplecov_json_formatter (~> 0.1)
84
+ simplecov-html (0.12.3)
85
+ simplecov_json_formatter (0.1.4)
86
+ unicode-display_width (2.4.2)
87
+ vcr (6.1.0)
88
+ webmock (3.18.1)
89
+ addressable (>= 2.8.0)
84
90
  crack (>= 0.3.2)
85
91
  hashdiff (>= 0.4.0, < 2.0.0)
86
92
 
@@ -88,13 +94,12 @@ PLATFORMS
88
94
  ruby
89
95
 
90
96
  DEPENDENCIES
91
- bundler
92
97
  dotenv
93
98
  faker
94
99
  iwoca!
95
100
  pry-byebug
96
- rake (~> 10.0)
97
- rspec (~> 3.0)
101
+ rake
102
+ rspec
98
103
  rubocop
99
104
  rubocop-rspec
100
105
  simplecov
@@ -102,4 +107,4 @@ DEPENDENCIES
102
107
  webmock
103
108
 
104
109
  BUNDLED WITH
105
- 2.0.2
110
+ 2.4.7
data/README.md CHANGED
@@ -67,6 +67,38 @@ response.data #=> { login_link: 'http://login_link' }
67
67
 
68
68
  ## Development
69
69
 
70
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
70
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run
71
+ the tests. You can also run `bin/console` for an interactive prompt that will allow you to
72
+ experiment.
71
73
 
72
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74
+ Please refer to iwoca's documentation on how to test different states (we do have recorded VCR
75
+ responses, but if something changes on their side we need to update). The documentation is here:
76
+ https://developer.iwoca.co.uk/lending-api-v1/testing-your-integration/core-test-data.
77
+
78
+ In `spec/data` we have the stored customer data that will return a 'approved' state. Use this to
79
+ generate valid state keys and follow their instructions to generate the other states.
80
+
81
+ ### Webhook
82
+
83
+ Iwoca webhook will target this address:
84
+ https://dev-finpointdev.pagekite.me/fast_lender_webhooks/iwoca_event
85
+
86
+ How to install:
87
+
88
+ $ curl -O https://pagekite.net/pk/pagekite.py
89
+ $ chmod +x pagekite.py
90
+ $ sudo mv -f pagekite.py /usr/local/bin (replace with the name of your directory)
91
+
92
+ How to run:
93
+
94
+ ./pagekite.py 3000 dev-finpointdev.pagekite.me
95
+
96
+ pagekite.net details:
97
+
98
+ * u: hello@finpoint.co.uk
99
+ * p: fckx7989
100
+
101
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new
102
+ version, update the version number in `version.rb`, and then run `bundle exec rake release`, which
103
+ will create a git tag for the version, push git commits and tags, and push the `.gem` file
104
+ to [rubygems.org](https://rubygems.org).
data/iwoca.gemspec CHANGED
@@ -27,20 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ['lib']
28
28
 
29
29
  spec.add_dependency 'addressable'
30
- spec.add_dependency 'faraday'
31
- spec.add_dependency 'faraday_middleware'
32
- spec.add_dependency 'multi_json'
30
+ spec.add_dependency 'faraday', '~> 2.7'
33
31
  spec.add_dependency 'rainbow'
34
-
35
- spec.add_development_dependency 'bundler'
36
- spec.add_development_dependency 'dotenv'
37
- spec.add_development_dependency 'faker'
38
- spec.add_development_dependency 'pry-byebug'
39
- spec.add_development_dependency 'rake', '~> 10.0'
40
- spec.add_development_dependency 'rspec', '~> 3.0'
41
- spec.add_development_dependency 'rubocop'
42
- spec.add_development_dependency 'rubocop-rspec'
43
- spec.add_development_dependency 'simplecov'
44
- spec.add_development_dependency 'vcr'
45
- spec.add_development_dependency 'webmock'
46
32
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware'
5
4
  require 'rainbow'
6
5
  require 'addressable'
7
6
 
@@ -60,7 +59,6 @@ module Iwoca
60
59
  conn.headers['Authorization'] = "Token #{token}" unless token.to_s.empty?
61
60
  conn.headers['Content-Type'] = 'application/json'
62
61
  conn.headers['User-Agent'] = "ruby-iwoca-#{VERSION}"
63
- conn.use FaradayMiddleware::ParseJson
64
62
  conn.response :json, parser_options: { symbolize_names: true }
65
63
  conn.response :logger if Iwoca.configuration.debug?
66
64
  conn.adapter Faraday.default_adapter
@@ -13,7 +13,7 @@ module Iwoca
13
13
  first_name: Faker::Name.first_name,
14
14
  last_name: Faker::Name.last_name,
15
15
  email: Faker::Internet.email,
16
- phone: Faker::PhoneNumber.phone_number_with_country_code,
16
+ phone: Faker::PhoneNumber.phone_number,
17
17
  address: Faker::Address.street_address,
18
18
  date_of_birth: Faker::Date.birthday(min_age: 23, max_age: 65),
19
19
  city: Faker::Address.city,
data/lib/iwoca/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Iwoca
4
- VERSION = '0.1.1'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/a16011ce-16c2-4581-b3d6-8b48e8db118b/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:52:51 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - a16011ce-16c2-4581-b3d6-8b48e8db118b
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:52:51 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=f6b3893f-33ef-4f94-90b4-e30d6b294b4f; expires=Fri, 29-Jan-2021
56
+ 10:52:51 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4ytYMZzAAlA/ekAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "decision_made"}, "approval_status": {"status": "approved", "approved": {"min_credit":
66
+ 1.0, "max_credit": 10000.0, "interval": "1m", "duration": 12, "rate_structures":
67
+ [{"effective_on_day": 0, "rates": [{"max_principal": 10000.0, "rate": 0.0535}]}],
68
+ "time_out": "2019-11-10T00:00:00Z", "top_up_allowed": false}}, "approval_requirements":
69
+ [{"type": "cc", "status": "required"}, {"type": "bus_cc", "status": "required"},
70
+ {"type": "dir_guarantor", "status": "required"}, {"type": "enhanced_security_check",
71
+ "status": "pending"}], "funding_requirements": [{"status": "required", "type":
72
+ "fraud"}, {"type": "docs", "status": "required"}, {"type": "enhanced_security_check",
73
+ "status": "pending"}], "available_credit": 10000.0}}'
74
+ http_version:
75
+ recorded_at: Thu, 30 Jan 2020 10:52:51 GMT
76
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/12369240-4803-49e3-89cd-526aa0dbf8a9/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:54:28 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - 12369240-4803-49e3-89cd-526aa0dbf8a9
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:54:28 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=691ed440-8ca7-47d4-90e9-1b38e9fc58c0; expires=Fri, 29-Jan-2021
56
+ 10:54:28 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4yteQZzAAlA/ewAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "decision_made"}, "approval_status": {"status": "declined"}, "approval_requirements":
66
+ [{"type": "cc", "status": "required"}, {"type": "bus_cc", "status": "required"},
67
+ {"type": "dir_guarantor", "status": "required"}, {"type": "enhanced_security_check",
68
+ "status": "pending"}], "funding_requirements": [{"status": "required", "type":
69
+ "fraud"}, {"type": "docs", "status": "required"}, {"type": "enhanced_security_check",
70
+ "status": "pending"}]}}'
71
+ http_version:
72
+ recorded_at: Thu, 30 Jan 2020 10:54:28 GMT
73
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/1acd6198-df68-421a-8108-f7cec4902c00/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:38:13 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - 1acd6198-df68-421a-8108-f7cec4902c00
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:38:13 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=831256d8-1bda-4969-ab4f-3188a4bd07c9; expires=Fri, 29-Jan-2021
56
+ 10:38:13 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4yshUZzAAlA/cRAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "no_decision_possible"}, "approval_requirements": [{"type": "cc", "status":
66
+ "required"}, {"type": "bus_cc", "status": "required"}, {"type": "dir_guarantor",
67
+ "status": "required"}, {"type": "enhanced_security_check", "status": "pending"}],
68
+ "funding_requirements": [{"status": "required", "type": "fraud"}, {"type":
69
+ "docs", "status": "required"}, {"type": "enhanced_security_check", "status":
70
+ "pending"}]}}'
71
+ http_version:
72
+ recorded_at: Thu, 30 Jan 2020 10:38:13 GMT
73
+ recorded_with: VCR 5.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iwoca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -28,44 +28,16 @@ dependencies:
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: multi_json
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
31
+ - - "~>"
60
32
  - !ruby/object:Gem::Version
61
- version: '0'
33
+ version: '2.7'
62
34
  type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
- - - ">="
38
+ - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: '0'
40
+ version: '2.7'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: rainbow
71
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,160 +52,6 @@ dependencies:
80
52
  - - ">="
81
53
  - !ruby/object:Gem::Version
82
54
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: dotenv
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: faker
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: pry-byebug
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: rake
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '10.0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '10.0'
153
- - !ruby/object:Gem::Dependency
154
- name: rspec
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '3.0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '3.0'
167
- - !ruby/object:Gem::Dependency
168
- name: rubocop
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: rubocop-rspec
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: simplecov
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: vcr
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: webmock
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - ">="
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
55
  description: Iwoca API wrapper
238
56
  email:
239
57
  - oterosantos@gmail.com
@@ -266,7 +84,10 @@ files:
266
84
  - vcr_cassettes/create_customer_invalid.yml
267
85
  - vcr_cassettes/create_customer_no_auth.yml
268
86
  - vcr_cassettes/create_customer_valid.yml
87
+ - vcr_cassettes/credit_facility_status_approved.yml
88
+ - vcr_cassettes/credit_facility_status_declined.yml
269
89
  - vcr_cassettes/credit_facility_status_invalid.yml
90
+ - vcr_cassettes/credit_facility_status_no_decision_possible.yml
270
91
  - vcr_cassettes/credit_facility_status_valid.yml
271
92
  - vcr_cassettes/login_link_invalid.yml
272
93
  - vcr_cassettes/login_link_valid.yml
@@ -274,7 +95,7 @@ homepage: https://www.iwoca.com
274
95
  licenses: []
275
96
  metadata:
276
97
  homepage_uri: https://www.iwoca.com
277
- post_install_message:
98
+ post_install_message:
278
99
  rdoc_options: []
279
100
  require_paths:
280
101
  - lib
@@ -289,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
110
  - !ruby/object:Gem::Version
290
111
  version: '0'
291
112
  requirements: []
292
- rubygems_version: 3.0.3
293
- signing_key:
113
+ rubygems_version: 3.3.7
114
+ signing_key:
294
115
  specification_version: 4
295
116
  summary: Iwoca API wrapper
296
117
  test_files: []