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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a82704376f8b817673d0c0565ec13285644b4317a9b303615c82584aebb226a
4
- data.tar.gz: 0f033f36b7a588b8363af52917ccb58bc95379f3be780dd1f78a5f512bf082db
3
+ metadata.gz: 16994c7ead4373f228cc02f8de0b91ff952643c9440548fa8e290317c17746b0
4
+ data.tar.gz: b6deaf9489b43eb4c55c39749cc0d34a16d5a1a05e199f98da64f158e1cbef29
5
5
  SHA512:
6
- metadata.gz: 695e4267b668489ad5c0a9f9a18000093cdb94e5ae53be5cfc95ea7024ea25dc8cb5a291404dfafd634942bd921524da94d05341f624cdf484c31193026daa70
7
- data.tar.gz: 4aa9373711d1d614f0a188db24fffe4f329d43b069677d272aff3b2caf82a9eb4e3333a90d3b64a90d5931104fad8952673628c371aad34a270335935089bd96
6
+ metadata.gz: 552b806398f647d3e88722f63e2afea3b12675d9b5965f4290135e57b8f7718dfe0a559c551aeb894fce57037b384973872a58a7192f0099588ad9944ea02e6d
7
+ data.tar.gz: 819fa390ee35cb504650b1312611187a98bd7cc40579c87f3634c66a5e6202d585f111967cf8a61013a4195adf557dce19b0ceb16071ec593344edf0aae4208e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## v0.9.1
6
+
7
+ - Fixed unreliable default cache key implementation.
8
+
5
9
  ## v0.9.0
6
10
 
7
11
  - Made response cache key and cache duration configurable.
@@ -1,5 +1,5 @@
1
1
  module SuperGood
2
2
  module SolidusTaxJar
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  end
5
5
  end
@@ -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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_good-solidus_taxjar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Norman