instant_quote 1.7.30 → 1.7.32

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: 5e378f88afb60fc4375ff831bfface6efa8ed1d87cfa95078ac6ea82886c0537
4
- data.tar.gz: e5d3106d56d34ce1ec62e8a98982cad963154e0a85c78c91af5f57cf75781b84
3
+ metadata.gz: b89114408b133206dcb9136cccad24a21ed90b1b239b2324c233e4d1aff84e3e
4
+ data.tar.gz: 55eda56d1077300fc64b3404eabb8fe05b0bd738bbe683bd82ea178bb7e51b5c
5
5
  SHA512:
6
- metadata.gz: 83b3fea6ccb1a5727a0ba87a2a52596a3ad302e7f8a9c76fe81b165bf5f613129e561765022c99c3c72f9b575053c30a38bcaa4ee0ce52936697fb1ac0cb56c1
7
- data.tar.gz: bb81f685834b6d5e32f3df5c894328466b935a02f18d800eeb6da7ef4f76f33784633753ef54dcdeddcbfa058fcedad4a6666dac404d84a3e4adb0ebbbb8f789
6
+ metadata.gz: 38b94dfd0b8edef75403c5456e42e1b5724d9dd1fbc1c1868d4d21936da662071ee6eb61072c9e649a68ec45e5e766cb639b96e15ee9bcd0355416005969e37c
7
+ data.tar.gz: 1c358d5ff8e0eecee9cd108c8a590e44a167631db8d43357eb3ea28a10cd3330aae0d89dfdb30a3e46f1b2b459be17eafbd425ceae88ec28db97bba8bb6058b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.7.30)
4
+ instant_quote (1.7.32)
5
5
  activesupport
6
6
  capital_on_tap (~> 1.0.1)
7
7
  iwoca (~> 1.1.0)
@@ -109,8 +109,13 @@ module InstantQuote
109
109
  end
110
110
 
111
111
  @status = @data[:status] if @data.key?(:status)
112
- @offers = @data[:offers] if @data.key?(:offers)
113
- @offers = @offers[:offers] if @offers.key?(:offers) # for some reason
112
+
113
+ if @data.key?(:offers)
114
+ @offers = @data[:offers]
115
+
116
+ # For some reason sometimes the offers are nested in another key called 'offers'
117
+ @offers = @offers[:offers] if @offers.is_a?(Hash) && @offers.key?(:offers)
118
+ end
114
119
  end
115
120
 
116
121
  def pending?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.30'
4
+ VERSION = '1.7.32'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instant_quote
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.30
4
+ version: 1.7.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas