vertex_client 0.6.1 → 0.6.2

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: 11ed8d014744d39407ca7e188da269f509f4f24daa20860fe18811f589909f64
4
- data.tar.gz: 20daf898b1aadeb787068d7d313145df258720b8168dde5772f5c9be63b2f86b
3
+ metadata.gz: 82c674e8ad961329ee8e150e93f1125a734dfece4f8a3e7bf0486c9bf9d03af5
4
+ data.tar.gz: 58e3660e3770a41fd5a45c72ad797c3160745da6109f6ef37731b574ff441e26
5
5
  SHA512:
6
- metadata.gz: b6732453d5d31302dfad3e8a67c2911d55e28f44a8f5b675eccb8634576f2fa649dcf54fccf5c41113618e0e8832016d53cc9c03ee491a7c8d0cc639ed2f38bc
7
- data.tar.gz: 75eb538e6aa4d3587ce7d19976fd0fbc7d8f1652e46aff650fe529aec196a62ccf2296b575e0d927efc8af97a239cb63ac849aec1796504139405314b2f3d49f
6
+ metadata.gz: dc170bf34f37a52629163e9e573a89a2ee318b6091a0f88690ef6e5f74319cdd3220edc6acc5f70f5dcf776b0c4ba450d0af138c44ed2becfed445d52f420405
7
+ data.tar.gz: 21efd5e2acb6f453d1e34f75de7b56879bb0bf1947be34f853e72a0847a21ffd85df6f8b7b4cadc07bd75d1a23726c9f01971c71a7e7c1a7cfc25651f82f5fe4
data/bin/setup CHANGED
@@ -5,6 +5,7 @@ cd "$(dirname "$0")/.."
5
5
  if [[ -z "$CI" ]]; then
6
6
  # Bundle each ruby version
7
7
  rm -rf Gemfile.lock
8
+ gem install wwtd
8
9
  wwtd --only-bundle
9
10
  else
10
11
  bundle --quiet
@@ -2,7 +2,14 @@ module VertexClient
2
2
  module Response
3
3
  class TaxArea < Base
4
4
  def tax_area_id
5
- @tax_area_id ||= @body[:tax_area_result][:@tax_area_id]
5
+ @tax_area_id ||= primary_result[:@tax_area_id]
6
+ end
7
+
8
+ private
9
+
10
+ def primary_result
11
+ return @body[:tax_area_result][0] if @body[:tax_area_result].is_a?(Array)
12
+ @body[:tax_area_result]
6
13
  end
7
14
  end
8
15
  end
@@ -1,3 +1,3 @@
1
1
  module VertexClient
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vertex_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Custom Ink
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-25 00:00:00.000000000 Z
11
+ date: 2019-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport