spree_channable 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/app/models/spree/product_decorator.rb +8 -3
- data/lib/spree_channable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d1b5fca962a3f83993a065eb6205ccf773a20a637e0e5664f9ccb08310052c
|
4
|
+
data.tar.gz: ee93e405842c73a81a969b111744e4a9e5aaeaa1942fa65f2a7ed5a0c7b19c1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea2670b32301ef2ba6708ae16ff1b9b47fb67d43707e3ba89cb03fe5b68aade298036ca3dd9ab863bcbae8a4e45e7916ba47fb63ffdbcbcb4837337db528561
|
7
|
+
data.tar.gz: 441f27f5b5441a4cbd10fc5e2f9bf6674568b6a62e64438ef0cd2d6ed81df2940293390f81321766214098fb084425d83c8da73b1fee16af51b5d1726055300c
|
data/.travis.yml
CHANGED
@@ -51,7 +51,7 @@ module Spree
|
|
51
51
|
|
52
52
|
|
53
53
|
def to_channable_variant_xml
|
54
|
-
variants.active.map do |variant|
|
54
|
+
(variants.any? ? variants : variants_including_master).active.map do |variant|
|
55
55
|
variant.to_channable_feed_entry
|
56
56
|
end
|
57
57
|
end
|
@@ -92,12 +92,17 @@ module Spree
|
|
92
92
|
xml.material property('material') || 'Not set'
|
93
93
|
|
94
94
|
xml.variants do
|
95
|
-
variants.each do |variant|
|
95
|
+
(variants.any? ? variants : variants_including_master).each do |variant|
|
96
96
|
xml.variant do
|
97
97
|
xml.id variant.id
|
98
98
|
xml.product_id id
|
99
99
|
xml.options_text variant.options_text
|
100
100
|
(xml.image_link URI.join(::SpreeChannable.configuration.image_host, variant.get_images.first.attachment.url(:large)).to_s) unless variant.get_images.empty?
|
101
|
+
xml.images do
|
102
|
+
get_images.each do |image|
|
103
|
+
xml.image URI.join(::SpreeChannable.configuration.image_host, image.attachment.url(:large)).to_s
|
104
|
+
end
|
105
|
+
end
|
101
106
|
|
102
107
|
xml.availability variant.can_supply?
|
103
108
|
xml.stock variant.total_on_hand
|
@@ -132,4 +137,4 @@ module Spree
|
|
132
137
|
end
|
133
138
|
end
|
134
139
|
|
135
|
-
Spree::Product.prepend(Spree::SpreeChannable::ProductDecorator)
|
140
|
+
Spree::Product.prepend(Spree::SpreeChannable::ProductDecorator)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_channable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabian Oudhaarlem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -458,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
458
458
|
version: '0'
|
459
459
|
requirements:
|
460
460
|
- none
|
461
|
-
rubygems_version: 3.0.
|
461
|
+
rubygems_version: 3.0.8
|
462
462
|
signing_key:
|
463
463
|
specification_version: 4
|
464
464
|
summary: Spree Channable
|