instant_quote 1.7.26 → 1.7.28

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: 1ec6c6b54ad7fcbae1c051dbcbbedcca488e333be4cc43d8e1fa9ae59e922718
4
- data.tar.gz: 67d0eb7cfe1010ef0453a3432600c9d1fae69c9c2e415883cc3d4a3feeae9d8e
3
+ metadata.gz: 584c0cc9a84109dbc9591e8b87959a2a4ade0b6362f7d15033107bf57d02a698
4
+ data.tar.gz: a523501aec83fee0da738249ad3b54d00dd3c2788e3f4babed80eee2d3c9eaf0
5
5
  SHA512:
6
- metadata.gz: 53b0606d174db814c57a5807b7dc6dccbf6a2db024b7e13e430eb4d1dea25f02a334b10a4b5b29cbcd23a881453ea73f794d9ff68c1ab558cf417516a96f4743
7
- data.tar.gz: 4501ff4205734159be5c0007b2b6eb78067f89caabcda9d777c4ca4817e988ea4b9e91c00284676777b64d7616d4f10875f35454a0a8be5af24dbc7cb7d70bfb
6
+ metadata.gz: 56b95ebaea5f6cd5ac881ab1333d97b4128ee33e71e98436e7db9dc562fb93e09510f08bc27267b9b818b77feeba178f555790e266d0ff68deed031fdab43f9d
7
+ data.tar.gz: e1aa7386c6becf37555c303a00b346f08e78fddcf4961071a9dbade5a512acb6b0ffed134642440597a8c1630b964b6983af7c7e00f7cd5856c89d8423ce6272
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.7.26)
4
+ instant_quote (1.7.28)
5
5
  activesupport
6
6
  capital_on_tap (~> 1.0.1)
7
7
  iwoca (~> 1.1.0)
@@ -103,7 +103,7 @@ module InstantQuote
103
103
  @data = @data.dig(:data) if @data.key?(:data)
104
104
 
105
105
  # It's a v1 JSON response, so we need to translate it to v2 first!
106
- if @data.key?(:state_key)
106
+ if @data.key?(:state_key) || @data.key?(:approval_status)
107
107
  puts "Translating v1 JSON to v2..."
108
108
  @data = DecisionParsers::IwocaV2Translator.translate(@data)
109
109
  end
@@ -177,7 +177,7 @@ module InstantQuote
177
177
  end
178
178
 
179
179
  def first_offer
180
- @offers.dig(:offers)&.first
180
+ @offers&.first
181
181
  end
182
182
 
183
183
  def status_included?(status, status_keys)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.26'
4
+ VERSION = '1.7.28'
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.26
4
+ version: 1.7.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport