flowcommerce_spree 0.0.18 → 0.0.19

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: a58357f2f4891679ea1b21bf15603d6d61964e1a07d3d4c5259b834207be4605
4
- data.tar.gz: 16f2b8a0ba784bfeb3685178f0efe12fbd3ddd963d4e7058c84397f7b4d3ac5f
3
+ metadata.gz: 3a818d7d94ee9e8fa767079ae2553e7d9c707b488c4c442ce9a57e217dd94a3f
4
+ data.tar.gz: 72f1daf2d3ccbad727ef67b36757457b35c77dd4de77e841345edc2538e66577
5
5
  SHA512:
6
- metadata.gz: 4fe235560e3132fcd9ed90d4b3e6577af09817f59a79564ad41b2a60477d08158e7fe52ed67eaea28749af87e59c192a5c98c16f360ea48d810dc97396a4fdde
7
- data.tar.gz: 0beb3883f44c1b08f520e3a94490b03e960c87fa8be7c41f38399ddbc4ff3db9801e3f47adca93056d6e4e9b2b86c773dfcc670bad6b3954a41279ab6ac472a5
6
+ metadata.gz: b13a78323e67a21361d34a7779a1699830df83c04dea839b623004c0bdd4792b904e0b06a470bb340c0d46adf9aeed9f9117a17002e3d11ee268c38a029cc57a
7
+ data.tar.gz: b217a92590b3b515bfb9ae2afc82ec8cb3bef6809f00c3ec20a052c9cfb605e190e442cdd545f2355d8891f3ce37358b3fd7f25758b57d0ac05f8cf96903bd29
@@ -26,8 +26,8 @@ module Spree
26
26
 
27
27
  attrs_to_update = {}
28
28
 
29
- # Update last_ip_address only for a new request_id
30
- attrs_to_update = { last_ip_address: ip_address } if @request_id != request_id
29
+ # Update last_ip_address only when last_ip_address is different.
30
+ attrs_to_update = { last_ip_address: ip_address } if @current_order.last_ip_address != ip_address
31
31
 
32
32
  # :meta is a jsonb column costly to update every time, especially with all the flow.io data, that's why
33
33
  # here it is updated only if no zone_id there was inside :meta
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FlowcommerceSpree
4
- VERSION = '0.0.18'
4
+ VERSION = '0.0.19'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce_spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurel Branzeanu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-01 00:00:00.000000000 Z
12
+ date: 2021-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_model_serializers
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.0.3
288
+ rubygems_version: 3.0.8
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: Integration of Spree with Flow API