spree_gtm 0.0.16 → 0.0.17

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
  SHA1:
3
- metadata.gz: 6010901756c84ae6efbc143e4fe3d959318097b6
4
- data.tar.gz: 6b717477df0af90035ad6b8149218ba33a2fc79e
3
+ metadata.gz: 3a7404e716898491d4a4ce04510ad1ebdcfe446d
4
+ data.tar.gz: 718c5445376067a13645e70db56359322a81dd7a
5
5
  SHA512:
6
- metadata.gz: defc3d3ff745c7b6234c1868bb0ff957f50b244a2847a7ba7bff6912e7695c7bce4dbb7e0d6e6f6fad7033167ae9fd9a6c7cef1e2bb52c07632fd67677b191f8
7
- data.tar.gz: 1785fc210d949cf6c03ec653152d806b6d9638427cd38ebb400723519514d7a860dede0c408befe40531e3d1b74547954ad2d2697d0758d59fb7427307f7697c
6
+ metadata.gz: 6e0cc62fee75f5b83bd9189966bd6a370505d881d073917013b64bdbf8327d136f863d5873375a5d7141add1775e55108d29e9ee57fad9548810e6f88556fea2
7
+ data.tar.gz: b0555398884097fc2ed7057c6e1766a4943291d0acad2d93378e5442764d7f38f7baab9de441175ec4995e2dde1e236bf7c96ae2084e61fa0e27c8d89d19df1e
@@ -16,7 +16,7 @@
16
16
  dataLayer.push({'transactionEmail': '<%= @order.email %>'});
17
17
  <% end %>
18
18
 
19
- <% if current_page?('/cart') and !@order.present? %>
19
+ <% if current_page?('/cart') and @order.number.nill? %>
20
20
  dataLayer.push({'cart': [
21
21
  <%=raw @order.line_items.map { |line_item| "{ 'sku': '#{h line_item.variant.sku}',
22
22
  'name': '#{h line_item.variant.product.name}',
data/spree_gtm.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_gtm'
5
- s.version = '0.0.16'
5
+ s.version = '0.0.17'
6
6
  s.summary = 'some summary here'
7
7
  s.description = 'some gem description here'
8
8
  s.required_ruby_version = '>= 2.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_gtm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav O. Pogrebnyak