spree_google_merchant_feed 1.0.0 → 1.0.2

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: 186ebbc9c94341502db4d64f5742c3f900b4941fd61377f35f0a97c879a1c5f8
4
+ data.tar.gz: 2f2d772266e3ca2afb405472f0fa429a606122d38db732ea83731a552414762f
5
5
  SHA512:
6
- metadata.gz: 8bfd24f144298c5026dd5aabc9cebdcca60e817815aa2ecd2d333304a833e8095d64099a15ce0f41ce574fdda1cbf4c2516ada2a080b73648c3f9ed06169c3a0
7
- data.tar.gz: 1ab4bf7f1d16cf8e8f8316c9ae97488f06266f7d2f4c95043e133f4597a8a20f1d31a83cdf75aaab3be0f89695e460aff840addf9e76f6d4a9253cf886bc5cef
6
+ metadata.gz: 7dac397af976901c58de85925db45b7cb0538ff92f96ae8660ca17ad3bd960813f0e14bc054affd9279f69cb2a833047ebfc87669c4a07822f75930f27a018a3
7
+ data.tar.gz: 997b4eb67187ecd5a5e28b17169bd37fb6a9c82e09c3078ebab1c170d5bd258cb994428b206dc1baf2a8fa80488867ae5d76f21ab90203eafee5481fccc2c1bf
@@ -24,16 +24,19 @@ 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
+ xml.tag! "g:unit_pricing_measure", "#{product.weight}#{product.weight_unit}" if product.weight.present?
28
+
28
29
  # Product category
29
30
  xml.tag! "g:product_type", product_breadcrumb_taxons(product).map(&:name).join(' > ')
30
31
 
31
32
  # Product identifiers
32
33
  xml.tag! "g:brand", product.brand.name if product.brand.present?
33
- xml.tag! "g:gtin", product.sku
34
34
 
35
35
  # Detailed product description
36
- xml.tag! "g:product_weight", "#{product.weight}#{product.weight_unit}" if product.weight.present?
36
+ xml.tag! "g:product_weight", "#{product.weight} #{product.weight_unit}" if product.weight.present?
37
+
38
+ # Shipping
39
+ xml.tag! "g:shipping_weight", "#{product.weight} #{product.weight_unit}" if product.weight.present?
37
40
  end
38
41
  end
39
42
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeGoogleMerchantFeed
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.2'.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.2
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.2
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.2
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib