spree_channable 0.0.23 → 0.0.24

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: 72d1b5fca962a3f83993a065eb6205ccf773a20a637e0e5664f9ccb08310052c
4
- data.tar.gz: ee93e405842c73a81a969b111744e4a9e5aaeaa1942fa65f2a7ed5a0c7b19c1f
3
+ metadata.gz: dc9c2656e64669ba4dc682e4795b6f1995ae856ef6bee7f5ca13dc2c19a392e4
4
+ data.tar.gz: e4742daa04b7a220cecc3d4b117477b3ecc4705936cc95e111055afb7eef3b4c
5
5
  SHA512:
6
- metadata.gz: 0ea2670b32301ef2ba6708ae16ff1b9b47fb67d43707e3ba89cb03fe5b68aade298036ca3dd9ab863bcbae8a4e45e7916ba47fb63ffdbcbcb4837337db528561
7
- data.tar.gz: 441f27f5b5441a4cbd10fc5e2f9bf6674568b6a62e64438ef0cd2d6ed81df2940293390f81321766214098fb084425d83c8da73b1fee16af51b5d1726055300c
6
+ metadata.gz: 8e32189df7664ff793ecf80ef23c809d7b3e2b5d71c173dc80a771be5dcad2ca9370a756341f78cf13101bb064c18d9e035931f71fd8ad381fd212c9810c29da
7
+ data.tar.gz: 97dbd912ba55f4d97e4a0bf6f3bd0f854c10dd023098eb97438b221dba2c24c516d32029adc0af67f95db278a94a406b3ce42ad9b02ed214ecdcfb9b9051fe08
@@ -43,7 +43,6 @@ module Spree
43
43
 
44
44
  end
45
45
  end
46
-
47
46
  builder.to_xml
48
47
  end
49
48
  end
@@ -51,7 +50,7 @@ module Spree
51
50
 
52
51
 
53
52
  def to_channable_variant_xml
54
- (variants.any? ? variants : variants_including_master).active.map do |variant|
53
+ (variants.any? ? variants : variants_including_master).active.uniq.map do |variant|
55
54
  variant.to_channable_feed_entry
56
55
  end
57
56
  end
@@ -99,7 +98,7 @@ module Spree
99
98
  xml.options_text variant.options_text
100
99
  (xml.image_link URI.join(::SpreeChannable.configuration.image_host, variant.get_images.first.attachment.url(:large)).to_s) unless variant.get_images.empty?
101
100
  xml.images do
102
- get_images.each do |image|
101
+ variant.get_images.each do |image|
103
102
  xml.image URI.join(::SpreeChannable.configuration.image_host, image.attachment.url(:large)).to_s
104
103
  end
105
104
  end
@@ -10,7 +10,7 @@ module SpreeChannable
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 23
13
+ TINY = 24
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.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Oudhaarlem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-17 00:00:00.000000000 Z
11
+ date: 2020-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails