super_good-solidus_taxjar 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: 6563c176335daae605e2b63add3f10d670509486f31de788687b3fadfce537c0
4
- data.tar.gz: 391562433aaa5a9a91be498f91c7b9dbaec899dc793ad37c942b4a7d809ead59
3
+ metadata.gz: 3bd45137c03f2ef0e98fc82b6c1e3e9685fa42b22560caf432ed428ae5ce9a3d
4
+ data.tar.gz: f7686d33b2d6f34d50a5f5e3307192ee7dbe1bb31c4276886fea695662d1e244
5
5
  SHA512:
6
- metadata.gz: 6de73f35b8304608e370039d5e5c9d4f62ee21f756cee5ef68df8ed17b48b5c612b74e88014bcdc36ebe8eaee02670e27f118b2ab8b2e78f8e2b85a3f10a524a
7
- data.tar.gz: ec6978c44dfc0cd05a9d4683ef66c50b773bc4599f173776dca589833a6da6c5c76816d1b486fa620597c785d5734c63f9337ea58a713d3b8f78de7d6a2f630f
6
+ metadata.gz: 844f20af4104c36eefc4c95dd4771a5b73a770ad41cfa23b08e9765e8d3dd362b8690caeb96fdab7689bccd42000067bc920ef996964cec477220db225f98fd6
7
+ data.tar.gz: 2a39bf8402ebba2397ff0a9467754fdfc94b23d7e9b443021ab36eda7ccc6531f0fc6d3a5ff5582e2d012ca1a3db229e7dccd1caca540bb3c31bca89cf35ec6d
data/CHANGELOG.md CHANGED
@@ -1,7 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.2
4
+
5
+ - Fixed issued where orders without tax address would cause errors because `Spree::Order#tax_address` will return a `Spree::Tax::TaxLocation` when called on an order without a tax address. `Spree::Tax::TaxLocation` isn't enough like a real address and this was causing exceptions.
6
+
7
+ To fix this `SuperGood::SolidusTaxJar#incomplete_address?` was updated to treat `Spree::Tax::TaxLocation`s as "incomplete". (Thanks to [@JuanCrg90](https://github.com/JuanCrg90)!)
8
+
3
9
  ## v0.6.1
4
10
 
11
+ **Warning**: v0.6.1 has a critical bug and should not be used.
12
+
5
13
  - Stopped using the deprecated method `Spree::Address#empty?` in favour of simply checking that we have all of the fields on the address required for doing a TaxJar lookup.
6
14
 
7
15
  ## v0.6.0
@@ -152,6 +152,8 @@ module SuperGood
152
152
  end
153
153
 
154
154
  def incomplete_address?(tax_address)
155
+ return true if tax_address.is_a?(Spree::Tax::TaxLocation)
156
+
155
157
  [
156
158
  tax_address.address1,
157
159
  tax_address.city,
@@ -1,5 +1,5 @@
1
1
  module SuperGood
2
2
  module SolidusTaxJar
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_good-solidus_taxjar
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
  - Jared Norman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-12 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -194,8 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubyforge_project:
198
- rubygems_version: 2.7.6
197
+ rubygems_version: 3.0.1
199
198
  signing_key:
200
199
  specification_version: 4
201
200
  summary: Support for using TaxJar to handle tax calculations in Solidus