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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d5a638e0feb5aeef60cdfbe670b9a6e48c6f10563139491f991b72dafb4e285
4
- data.tar.gz: b613670eb939dccaacfa3a4c1704599242da8d11cb006fd2b6f8758fe8d4748f
3
+ metadata.gz: edd5b0a7322b6667c9679054b0936af7c0a9d214660643548174f71e4091c77d
4
+ data.tar.gz: 39fce6e706e835e09dcf032515230460a51dad2395531aa135eef25741b6dab0
5
5
  SHA512:
6
- metadata.gz: 1f5c7211f3fc4f4ff66926f8073964231cffc62f2e50e59ff104c1f57503a97727524cea45d4b90771aff88eacad6b2e514b33857678ddc2bbe6918381c851c1
7
- data.tar.gz: 3d3edba56ad6c702c7607c25eb8c717ecd6b92fc9e153224bd075750d5b2b5f3cecfbe3da5632ea1aee57a76090ac1790f59e409c1c08afdd96a9dda835509d2
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.13)
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.10)
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.50)
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.4.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
- DEFAULT_ADDIONAL_FIELDS = [
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 || DEFAULT_ADDIONAL_FIELDS) if fields.empty?
16
+ return (@additional_fields || DEFAULT_ADDITIONAL_FIELDS) if fields.empty?
17
17
 
18
- @additional_fields ||= DEFAULT_ADDIONAL_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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.13'
4
+ VERSION = '1.7.14'
5
5
  end
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.13
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: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler