instant_quote 1.7.29 → 1.7.31

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: 909beee5ce464d02860dd308450cce67e83eac2d62f0657209f1eac39c160c1e
4
- data.tar.gz: fb8d70ff32018f9cc144cbcd9db4430b781cba2bc38b5b93a6baa338337f75c7
3
+ metadata.gz: 9427b9b3f5d933dd039f07f6ccccc6b6c0efeb746415c360b6454a31e2988268
4
+ data.tar.gz: 637be19d103075d4acefaf072cb48933542a941c64be38fd424a1174a02d9e9b
5
5
  SHA512:
6
- metadata.gz: edb69faea949be905d2d112bdc97fd50c4252694b0feee1b396fad1ff340d822063343d2a3ab5c4a757ec95ba715bf5140d909b05e5738c5cdb5e3d06d1e2291
7
- data.tar.gz: 8ca5cb8aa26da747120ecca70777297fde443455f22131ea476ebf572b94898e9907f9f83a1400ab7d15d463731c369aa8eb66c57524d1b717caba518ec317e9
6
+ metadata.gz: 0c8b0e02ef19ea18274d19b0e7c2ed5219d4b5ed89d798f23ab81b398faf6687119f2bd6625beb1e4d93d74ffc44ab6019afa331ed54eaa97046dcf5691bda74
7
+ data.tar.gz: 4a7e5a37a70580e483fd89c71ae90c8cbd3490af2986a0657bf571164537c0560d588dfe6ff2d63f8857c8daf3d909251eae23f2acca6d849b5d638e617853af
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.7.29)
4
+ instant_quote (1.7.31)
5
5
  activesupport
6
6
  capital_on_tap (~> 1.0.1)
7
7
  iwoca (~> 1.1.0)
@@ -109,7 +109,12 @@ module InstantQuote
109
109
  end
110
110
 
111
111
  @status = @data[:status] if @data.key?(:status)
112
- @offers = @data[:offers] if @data.key?(:offers)
112
+
113
+ if @data.key?(:offers)
114
+ @offers = @data[:offers]
115
+ # For some reason sometimes the offers are nested in another key called 'offers'
116
+ @offers = @offers[:offers] if @offers.key?(:offers)
117
+ end
113
118
  end
114
119
 
115
120
  def pending?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.29'
4
+ VERSION = '1.7.31'
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.29
4
+ version: 1.7.31
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-12 00:00:00.000000000 Z
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport