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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 076edfb752053738642c74b55f3eb144366a84a1
4
- data.tar.gz: df6a3685e1768ebeb40b81c49937a0d4a77b2c78
2
+ SHA256:
3
+ metadata.gz: 045cc30a313283d465e1252ef957dc484d780e4dcf9eae06263dd9dd1e95f5d7
4
+ data.tar.gz: fb605130f6c7602f31c4bea0604183df3e77c166bbaad1b7391a7f51ad7e0cff
5
5
  SHA512:
6
- metadata.gz: 7bfa9842b3f6f60857f13951e689ed7b07476f777d3bdbd2ca9668df7f19765b023e41bb0fb796e917d805028fc0d42f51c3a9946d7ea8d1ac66b1212ee673d8
7
- data.tar.gz: dc7f6169b651982fb217d48ec800acdd0f926542c71f74dbcc07e064526dbe1fa9568f159e146484057b60930118f10831645a5018036fb1be1a3fed2a0da778
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}"
@@ -1,5 +1,5 @@
1
1
  module SuperGood
2
2
  module SolidusTaxJar
3
- VERSION = "0.14.0"
3
+ VERSION = "0.15.0"
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.14.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-05-28 00:00:00.000000000 Z
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
- rubyforge_project:
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