instant_quote 1.7.21 → 1.7.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +50 -44
- data/lib/instant_quote/connection_translators/iwoca.rb +2 -11
- data/lib/instant_quote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62afac47e88f6a0081bf3194e11949baacf153e299705461711a182d7fc68dce
|
4
|
+
data.tar.gz: d7c9a1854649370bf9e555f9de372df47a1c16755a131403f7ef75340ced090e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daec7768578601d6ec787f903226e01ff3b5dffc4e722adebefc528b6f4b68bfbb52821920d2cc6f65e76946c6d09f26addaf08e710f310c30b4bf02f03396d4
|
7
|
+
data.tar.gz: 9a6c1cbdc841e0edd601cdd1d1697ada57a34d5454b72cddcf61af9c75fa05bf8c1fede1126caa7235d54fe6f12f2879f429b670bd3a3cf8798cfe85eeba1318
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
instant_quote (1.7.
|
4
|
+
instant_quote (1.7.23)
|
5
5
|
activesupport
|
6
6
|
capital_on_tap (~> 1.0.1)
|
7
7
|
iwoca (~> 1.1.0)
|
@@ -13,7 +13,7 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activesupport (6.1.
|
16
|
+
activesupport (6.1.7.6)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
@@ -29,28 +29,29 @@ GEM
|
|
29
29
|
multi_json
|
30
30
|
rainbow
|
31
31
|
coderay (1.1.3)
|
32
|
-
concurrent-ruby (1.
|
32
|
+
concurrent-ruby (1.2.2)
|
33
33
|
crack (0.4.5)
|
34
34
|
rexml
|
35
|
-
diff-lcs (1.
|
36
|
-
docile (1.
|
37
|
-
dotenv (2.
|
35
|
+
diff-lcs (1.5.0)
|
36
|
+
docile (1.4.0)
|
37
|
+
dotenv (2.8.1)
|
38
38
|
faraday (2.7.10)
|
39
39
|
faraday-net_http (>= 2.0, < 3.1)
|
40
40
|
ruby2_keywords (>= 0.0.4)
|
41
41
|
faraday-net_http (3.0.2)
|
42
42
|
hashdiff (1.0.1)
|
43
|
-
i18n (1.
|
43
|
+
i18n (1.14.1)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
|
-
iwoca (1.1.
|
45
|
+
iwoca (1.1.3)
|
46
46
|
addressable
|
47
47
|
faraday (~> 2.7)
|
48
48
|
json-schema
|
49
49
|
rainbow
|
50
|
+
json (2.6.3)
|
50
51
|
json-schema (4.0.0)
|
51
52
|
addressable (>= 2.8)
|
52
53
|
method_source (1.0.0)
|
53
|
-
minitest (5.
|
54
|
+
minitest (5.19.0)
|
54
55
|
money (6.16.0)
|
55
56
|
i18n (>= 0.6.4, <= 2)
|
56
57
|
multi_json (1.15.0)
|
@@ -58,10 +59,11 @@ GEM
|
|
58
59
|
addressable
|
59
60
|
faraday (~> 2.7)
|
60
61
|
rainbow
|
61
|
-
parallel (1.
|
62
|
-
parser (3.
|
62
|
+
parallel (1.23.0)
|
63
|
+
parser (3.2.2.3)
|
63
64
|
ast (~> 2.4.1)
|
64
|
-
|
65
|
+
racc
|
66
|
+
phonelib (0.8.3)
|
65
67
|
pry (0.13.1)
|
66
68
|
coderay (~> 1.1)
|
67
69
|
method_source (~> 1.0)
|
@@ -69,59 +71,63 @@ GEM
|
|
69
71
|
byebug (~> 11.0)
|
70
72
|
pry (~> 0.13.0)
|
71
73
|
public_suffix (5.0.3)
|
74
|
+
racc (1.7.1)
|
72
75
|
rainbow (3.1.1)
|
73
76
|
rake (10.5.0)
|
74
|
-
regexp_parser (2.
|
75
|
-
rexml (3.2.
|
76
|
-
rspec (3.
|
77
|
-
rspec-core (~> 3.
|
78
|
-
rspec-expectations (~> 3.
|
79
|
-
rspec-mocks (~> 3.
|
80
|
-
rspec-core (3.
|
81
|
-
rspec-support (~> 3.
|
82
|
-
rspec-expectations (3.
|
77
|
+
regexp_parser (2.8.1)
|
78
|
+
rexml (3.2.6)
|
79
|
+
rspec (3.12.0)
|
80
|
+
rspec-core (~> 3.12.0)
|
81
|
+
rspec-expectations (~> 3.12.0)
|
82
|
+
rspec-mocks (~> 3.12.0)
|
83
|
+
rspec-core (3.12.2)
|
84
|
+
rspec-support (~> 3.12.0)
|
85
|
+
rspec-expectations (3.12.3)
|
83
86
|
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.
|
85
|
-
rspec-mocks (3.
|
87
|
+
rspec-support (~> 3.12.0)
|
88
|
+
rspec-mocks (3.12.6)
|
86
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
88
|
-
rspec-support (3.
|
89
|
-
rubocop (1.
|
90
|
+
rspec-support (~> 3.12.0)
|
91
|
+
rspec-support (3.12.1)
|
92
|
+
rubocop (1.50.2)
|
93
|
+
json (~> 2.3)
|
90
94
|
parallel (~> 1.10)
|
91
|
-
parser (>= 3.
|
95
|
+
parser (>= 3.2.0.0)
|
92
96
|
rainbow (>= 2.2.2, < 4.0)
|
93
97
|
regexp_parser (>= 1.8, < 3.0)
|
94
|
-
rexml
|
95
|
-
rubocop-ast (>= 1.
|
98
|
+
rexml (>= 3.2.5, < 4.0)
|
99
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
96
100
|
ruby-progressbar (~> 1.7)
|
97
|
-
unicode-display_width (>=
|
98
|
-
rubocop-ast (1.
|
99
|
-
parser (>= 2.
|
100
|
-
rubocop-
|
101
|
-
rubocop
|
102
|
-
rubocop-
|
101
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
102
|
+
rubocop-ast (1.29.0)
|
103
|
+
parser (>= 3.2.1.0)
|
104
|
+
rubocop-capybara (2.18.0)
|
105
|
+
rubocop (~> 1.41)
|
106
|
+
rubocop-rake (0.6.0)
|
103
107
|
rubocop (~> 1.0)
|
104
|
-
|
105
|
-
|
108
|
+
rubocop-rspec (2.20.0)
|
109
|
+
rubocop (~> 1.33)
|
110
|
+
rubocop-capybara (~> 2.17)
|
111
|
+
ruby-progressbar (1.13.0)
|
106
112
|
ruby2_keywords (0.0.5)
|
107
|
-
simplecov (0.
|
113
|
+
simplecov (0.22.0)
|
108
114
|
docile (~> 1.1)
|
109
115
|
simplecov-html (~> 0.11)
|
110
116
|
simplecov_json_formatter (~> 0.1)
|
111
117
|
simplecov-html (0.12.3)
|
112
|
-
simplecov_json_formatter (0.1.
|
113
|
-
tzinfo (2.0.
|
118
|
+
simplecov_json_formatter (0.1.4)
|
119
|
+
tzinfo (2.0.6)
|
114
120
|
concurrent-ruby (~> 1.0)
|
115
|
-
unicode-display_width (2.
|
116
|
-
webmock (3.
|
117
|
-
addressable (>= 2.
|
121
|
+
unicode-display_width (2.4.2)
|
122
|
+
webmock (3.19.1)
|
123
|
+
addressable (>= 2.8.0)
|
118
124
|
crack (>= 0.3.2)
|
119
125
|
hashdiff (>= 0.4.0, < 2.0.0)
|
120
126
|
youlend (1.1.4)
|
121
127
|
addressable
|
122
128
|
faraday (~> 2.7)
|
123
129
|
rainbow
|
124
|
-
zeitwerk (2.
|
130
|
+
zeitwerk (2.6.11)
|
125
131
|
|
126
132
|
PLATFORMS
|
127
133
|
ruby
|
@@ -8,13 +8,6 @@ module InstantQuote
|
|
8
8
|
data: {
|
9
9
|
company: company_information,
|
10
10
|
people: [person_information],
|
11
|
-
# requests: [
|
12
|
-
# amount: (application.amount_pennies / 100),
|
13
|
-
# duration: { amount: 12, unit: 'months' },
|
14
|
-
# purpose: application&.proceeds_purpose&.name,
|
15
|
-
# product_type: product_name,
|
16
|
-
# urgency: 'asap'
|
17
|
-
# ]
|
18
11
|
}
|
19
12
|
}
|
20
13
|
end
|
@@ -41,6 +34,7 @@ module InstantQuote
|
|
41
34
|
# rubocop:disable Metrics/AbcSize
|
42
35
|
def company_information
|
43
36
|
information = {
|
37
|
+
uid: SecureRandom.uuid,
|
44
38
|
registered_company_name: company.name,
|
45
39
|
industry: company.industry.name,
|
46
40
|
company_number: company.company_number.to_s,
|
@@ -111,14 +105,13 @@ module InstantQuote
|
|
111
105
|
residential_addresses: [person_residential_address],
|
112
106
|
privacy_policy: {
|
113
107
|
agreed: true,
|
114
|
-
|
108
|
+
valid_from: DateTime.current
|
115
109
|
}
|
116
110
|
}
|
117
111
|
end
|
118
112
|
|
119
113
|
def person_phone
|
120
114
|
{
|
121
|
-
uid: SecureRandom.uuid,
|
122
115
|
number: extra_info['applicant_phone_number'],
|
123
116
|
type: 'primary'
|
124
117
|
}
|
@@ -126,7 +119,6 @@ module InstantQuote
|
|
126
119
|
|
127
120
|
def person_email
|
128
121
|
{
|
129
|
-
uid: SecureRandom.uuid,
|
130
122
|
email: application&.primary_user&.email,
|
131
123
|
type: 'primary'
|
132
124
|
}
|
@@ -135,7 +127,6 @@ module InstantQuote
|
|
135
127
|
# rubocop:disable Naming/VariableNumber
|
136
128
|
def person_residential_address
|
137
129
|
{
|
138
|
-
uid: SecureRandom.uuid,
|
139
130
|
town: extra_info['applicant_town'],
|
140
131
|
street_line_1: extra_info['applicant_address_line_1'],
|
141
132
|
street_line_2: extra_info['applicant_address_line_2'] || '',
|