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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1f220ca20168dca281ded7c0803634fa68d8e11f3a7c0dd7788118cec6fe7fc
4
- data.tar.gz: bbeced073857b5b5092b42fa1dc6fbe5c0674e3b8670ae775881629c31151d62
3
+ metadata.gz: 72d1b5fca962a3f83993a065eb6205ccf773a20a637e0e5664f9ccb08310052c
4
+ data.tar.gz: ee93e405842c73a81a969b111744e4a9e5aaeaa1942fa65f2a7ed5a0c7b19c1f
5
5
  SHA512:
6
- metadata.gz: 8ba4e7f855c56885e27716536692461774305c06925a4c1877760ef3cd2e8c0e56bf96f04c8d88445e5bc08a96a822a8a7e54fa54585ed73f23a3ede1a04288b
7
- data.tar.gz: d6b86229e50509bc8d397a6320018570e12c654def6bf3ba137c2f5478370cb1d010c0e770ddf65857ae9571ab5859257e23e236916728039864ab077d339382
6
+ metadata.gz: 0ea2670b32301ef2ba6708ae16ff1b9b47fb67d43707e3ba89cb03fe5b68aade298036ca3dd9ab863bcbae8a4e45e7916ba47fb63ffdbcbcb4837337db528561
7
+ data.tar.gz: 441f27f5b5441a4cbd10fc5e2f9bf6674568b6a62e64438ef0cd2d6ed81df2940293390f81321766214098fb084425d83c8da73b1fee16af51b5d1726055300c
@@ -3,6 +3,7 @@ dist: trusty
3
3
  language: ruby
4
4
  env:
5
5
  - DB=mysql
6
+ - DB=postgres
6
7
  gemfile:
7
8
  - gemfiles/spree_3_2.gemfile
8
9
  - gemfiles/spree_3_5.gemfile
@@ -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)
@@ -10,7 +10,7 @@ module SpreeChannable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 22
13
+ TINY = 23
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
16
16
  end
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.22
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: 2019-08-21 00:00:00.000000000 Z
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.6
461
+ rubygems_version: 3.0.8
462
462
  signing_key:
463
463
  specification_version: 4
464
464
  summary: Spree Channable