super_good-solidus_taxjar 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/super_good/solidus_taxjar/version.rb +1 -1
- data/lib/super_good/solidus_taxjar.rb +1 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16994c7ead4373f228cc02f8de0b91ff952643c9440548fa8e290317c17746b0
|
4
|
+
data.tar.gz: b6deaf9489b43eb4c55c39749cc0d34a16d5a1a05e199f98da64f158e1cbef29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 552b806398f647d3e88722f63e2afea3b12675d9b5965f4290135e57b8f7718dfe0a559c551aeb894fce57037b384973872a58a7192f0099588ad9944ea02e6d
|
7
|
+
data.tar.gz: 819fa390ee35cb504650b1312611187a98bd7cc40579c87f3634c66a5e6202d585f111967cf8a61013a4195adf557dce19b0ceb16071ec593344edf0aae4208e
|
data/CHANGELOG.md
CHANGED
@@ -22,15 +22,7 @@ module SuperGood
|
|
22
22
|
end
|
23
23
|
|
24
24
|
self.cache_duration = 3.hours
|
25
|
-
self.cache_key = ->(order) {
|
26
|
-
APIParams.order_params(order).transform_values do |value|
|
27
|
-
case value
|
28
|
-
when Array, Hash then value.hash
|
29
|
-
else
|
30
|
-
value
|
31
|
-
end
|
32
|
-
end
|
33
|
-
}
|
25
|
+
self.cache_key = ->(order) { APIParams.order_params(order) }
|
34
26
|
self.discount_calculator = ::SuperGood::SolidusTaxJar::DiscountCalculator
|
35
27
|
self.exception_handler = ->(e) {
|
36
28
|
Rails.logger.error "An error occurred while fetching TaxJar tax rates - #{e}: #{e.message}"
|