super_good-solidus_taxjar 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/lib/super_good/solidus_taxjar.rb +1 -1
- data/lib/super_good/solidus_taxjar/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 045cc30a313283d465e1252ef957dc484d780e4dcf9eae06263dd9dd1e95f5d7
|
4
|
+
data.tar.gz: fb605130f6c7602f31c4bea0604183df3e77c166bbaad1b7391a7f51ad7e0cff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c25108f00d39800dad1bb3d217b71d929e64ce4bf5713f414fa40878b89fc814f5fdac5abdb7e897aebc5fa937edcf84e4e9d25122c2c82dba36427fa968c605
|
7
|
+
data.tar.gz: 06a05cb7a0fdbbbb15c3472353219f0f7db544be35c2d3f5c00dae8537d67e869789b141d526b991365d3af90c19e903cedfc85966fecffae19661f13eae2778
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## v0.15.0
|
6
|
+
|
7
|
+
- Made sure cache key is a string, instead of a giant nested hash/array structure that probably won't get interpreted by Rails well. Still not happy with the caching behaviour, but it's configurable.
|
8
|
+
|
5
9
|
## v0.14.0
|
6
10
|
|
7
11
|
- Added `SuperGood::SolidusTaxJar.taxable_order_check` option which can be set to a proc that receives the order and will prevent actual tax calculation from occurring if it returns false. If your app has introduced a method like `Spree::Order#complimentary?`, you could avoid trying to compute taxes on complimentary orders by doing the following in an initializer:
|
@@ -24,7 +24,7 @@ module SuperGood
|
|
24
24
|
end
|
25
25
|
|
26
26
|
self.cache_duration = 3.hours
|
27
|
-
self.cache_key = ->(order) { APIParams.order_params(order) }
|
27
|
+
self.cache_key = ->(order) { APIParams.order_params(order).to_json }
|
28
28
|
self.discount_calculator = ::SuperGood::SolidusTaxJar::DiscountCalculator
|
29
29
|
self.exception_handler = ->(e) {
|
30
30
|
Rails.logger.error "An error occurred while fetching TaxJar tax rates - #{e}: #{e.message}"
|
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.
|
4
|
+
version: 0.15.0
|
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-
|
11
|
+
date: 2019-06-25 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
|
-
|
198
|
-
rubygems_version: 2.6.14.3
|
197
|
+
rubygems_version: 3.0.3
|
199
198
|
signing_key:
|
200
199
|
specification_version: 4
|
201
200
|
summary: Support for using TaxJar to handle tax calculations in Solidus
|