spree_google_merchant_feed 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6fedad81fac72b814ef49704e3238d7757f18278c14266fc5c6b82c7d632ed0
4
- data.tar.gz: cd6fcb8295803a8a9be6bdf6dc1df4931598b1dd5c3d70bf4360ebd2c3098dec
3
+ metadata.gz: 9aea153905343d1615273856fb85121a6e091ab94032cc9444f8d5d18316b157
4
+ data.tar.gz: ed52d1540219b29b26c56941df706c728111b942611a213050043ba2194a5faf
5
5
  SHA512:
6
- metadata.gz: 8bfd24f144298c5026dd5aabc9cebdcca60e817815aa2ecd2d333304a833e8095d64099a15ce0f41ce574fdda1cbf4c2516ada2a080b73648c3f9ed06169c3a0
7
- data.tar.gz: 1ab4bf7f1d16cf8e8f8316c9ae97488f06266f7d2f4c95043e133f4597a8a20f1d31a83cdf75aaab3be0f89695e460aff840addf9e76f6d4a9253cf886bc5cef
6
+ metadata.gz: 249343c8df000f25cbcf2b41f23cb703cc80255547cba98acaf43ac61801e75b2532378d064ab62f72c4413b07077b778922edb435308ece149f2c3ff25e2529
7
+ data.tar.gz: 0fe8d5bb8466c2e9185d919228c9bc90530a4a94e902b5d659cb8b609f1a971bdb879e9e2da839e829056bd70bbc07e98140e8d3e9b5a7a144c284dcf236f5bf
@@ -24,16 +24,18 @@ xml.rss version: "2.0", "xmlns:g" => "http://base.google.com/ns/1.0" do
24
24
  xml.tag! "g:availability_date", product.available_on.strftime("%Y-%m-%dT%H:%M%z") if product.available_on?
25
25
  xml.tag! "g:expiration_date", product.discontinue_on.strftime("%Y-%m-%dT%H:%M%z") if product.discontinue_on?
26
26
  xml.tag! "g:price", format('%.2f', product.display_amount.to_d) + " " + current_currency
27
-
27
+
28
28
  # Product category
29
29
  xml.tag! "g:product_type", product_breadcrumb_taxons(product).map(&:name).join(' > ')
30
30
 
31
31
  # Product identifiers
32
32
  xml.tag! "g:brand", product.brand.name if product.brand.present?
33
- xml.tag! "g:gtin", product.sku
34
33
 
35
34
  # Detailed product description
36
- xml.tag! "g:product_weight", "#{product.weight}#{product.weight_unit}" if product.weight.present?
35
+ xml.tag! "g:product_weight", "#{product.weight} #{product.weight_unit}" if product.weight.present?
36
+
37
+ # Shipping
38
+ xml.tag! "g:shipping_weight", "#{product.weight} #{product.weight_unit}" if product.weight.present?
37
39
  end
38
40
  end
39
41
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeGoogleMerchantFeed
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
 
4
4
  def gem_version
5
5
  Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_google_merchant_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OlympusOne
@@ -103,10 +103,10 @@ licenses:
103
103
  - MIT
104
104
  metadata:
105
105
  bug_tracker_uri: https://github.com/olympusone/spree_google_merchant_feed/issues
106
- changelog_uri: https://github.com/olympusone/spree_google_merchant_feed/releases/tag/v1.0.0
106
+ changelog_uri: https://github.com/olympusone/spree_google_merchant_feed/releases/tag/v1.0.1
107
107
  documentation_uri: https://github.com/olympusone/spree_google_merchant_feed
108
108
  homepage_uri: https://github.com/olympusone/spree_google_merchant_feed
109
- source_code_uri: https://github.com/olympusone/spree_google_merchant_feed/tree/v1.0.0
109
+ source_code_uri: https://github.com/olympusone/spree_google_merchant_feed/tree/v1.0.1
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib