instant_quote 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/instant_quote/adapter.rb +4 -3
- data/lib/instant_quote/version.rb +1 -1
- 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: edd5b0a7322b6667c9679054b0936af7c0a9d214660643548174f71e4091c77d
|
|
4
|
+
data.tar.gz: 39fce6e706e835e09dcf032515230460a51dad2395531aa135eef25741b6dab0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d29a488db3b68c8988f26c8fd6ca326238be4037cfa06ea8e364887d4f599cbd4fc676e61d5ac2992a163eab0611b4939465fc628ad69e969b77d1716c58940
|
|
7
|
+
data.tar.gz: eb5c39b98bbe1ac402c96a33450019ee65bff24e16f420272ba7df8a0a4878170ab0c82d618ed44eb1a1f7a7d0c754934c1d96b1232416ac78e213a15cc99bb6
|
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.14)
|
|
5
5
|
activesupport
|
|
6
6
|
capital_on_tap
|
|
7
7
|
iwoca
|
|
@@ -52,7 +52,7 @@ GEM
|
|
|
52
52
|
faraday_middleware (1.0.0)
|
|
53
53
|
faraday (~> 1.0)
|
|
54
54
|
hashdiff (1.0.1)
|
|
55
|
-
i18n (1.8.
|
|
55
|
+
i18n (1.8.11)
|
|
56
56
|
concurrent-ruby (~> 1.0)
|
|
57
57
|
iwoca (1.0.0)
|
|
58
58
|
addressable
|
|
@@ -75,7 +75,7 @@ GEM
|
|
|
75
75
|
parallel (1.20.1)
|
|
76
76
|
parser (3.0.0.0)
|
|
77
77
|
ast (~> 2.4.1)
|
|
78
|
-
phonelib (0.6.
|
|
78
|
+
phonelib (0.6.53)
|
|
79
79
|
pry (0.13.1)
|
|
80
80
|
coderay (~> 1.1)
|
|
81
81
|
method_source (~> 1.0)
|
|
@@ -137,7 +137,7 @@ GEM
|
|
|
137
137
|
faraday_middleware
|
|
138
138
|
multi_json
|
|
139
139
|
rainbow
|
|
140
|
-
zeitwerk (2.
|
|
140
|
+
zeitwerk (2.5.1)
|
|
141
141
|
|
|
142
142
|
PLATFORMS
|
|
143
143
|
ruby
|
|
@@ -4,7 +4,7 @@ module InstantQuote
|
|
|
4
4
|
class Adapter
|
|
5
5
|
# This is one additional field that we always want to ask, since we're using it for phone
|
|
6
6
|
# validating the applicant.
|
|
7
|
-
|
|
7
|
+
DEFAULT_ADDITIONAL_FIELDS = [
|
|
8
8
|
{
|
|
9
9
|
name: 'applicant_phone_number',
|
|
10
10
|
label: 'Applicant mobile phone',
|
|
@@ -13,10 +13,11 @@ module InstantQuote
|
|
|
13
13
|
].freeze
|
|
14
14
|
|
|
15
15
|
def self.additional_fields(fields = [])
|
|
16
|
-
return (@additional_fields ||
|
|
16
|
+
return (@additional_fields || DEFAULT_ADDITIONAL_FIELDS) if fields.empty?
|
|
17
17
|
|
|
18
|
-
@additional_fields ||=
|
|
18
|
+
@additional_fields ||= DEFAULT_ADDITIONAL_FIELDS
|
|
19
19
|
@additional_fields += fields
|
|
20
|
+
@additional_fields.uniq! { |f| f[:name] }
|
|
20
21
|
end
|
|
21
22
|
|
|
22
23
|
def self.get_link(connection)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: instant_quote
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rikas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|