spree_winkelstraat 3.1.0.20 → 3.1.0.21

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: 474c043df609e402e78963ae719e3f3df6f234f5c50929ed67c1c888f601b394
4
- data.tar.gz: 14d6b9d2860666f9f800eb75026e66050cd74f0be0c3fc0ab89a4e4c4fbd2d6d
3
+ metadata.gz: 49883fd0c61e0df142cc55cdb7489968f9eeff936848dad274d47aac0b44b0ca
4
+ data.tar.gz: 691b500792a34cbf139b9d5e09b026be91b63ba6337b989c6a872e1248a19308
5
5
  SHA512:
6
- metadata.gz: cb308272b9596335d80f130a38cf15303fb3c6878ceed9d22f4836c47c2264beec9b09518d40b27350c7f667a29c647078676002ad10e53449e96f9fa952381d
7
- data.tar.gz: acf83a91851d735b9a75ecd0c32cb33db19fa63fe643aeb4bc7912907eb7317a898378ac8b9f7da874ed75532c159fb1d49449eed8c8ef69131d10cccbd7765b
6
+ metadata.gz: c3413ef3c25f2a9c0d345a392e44ee780d23c90cbadeec64e520275e228c0e26f75e77806d862a56c3ceb011acd9c1988a34da130e8619b0320845c6fa3786c8
7
+ data.tar.gz: f1d35cf8a6488c1adf810531199bab44a5f04dba7b60d3847952744a0f556b51798b97315f804b474842a614b49ab13a017fa3a3b64b0da434c0ef7ffea31ff5
@@ -90,11 +90,12 @@ Spree::Product.class_eval do
90
90
  nil, #'Omvang',
91
91
  variant.product.taxons.where(taxonomy: season_taxonomy).first.try(:name), # 'Seizoen',Afbeeldingen
92
92
  nil, #'Carry over',
93
- *(variant.images.any? ? variant.images : variant.product.master.images).first(10).map do |image|
93
+ *(array = (variant.images.any? ? variant.images : variant.product.master.images).first(10).map do |image|
94
94
  uri = URI.join(IMG_HOST, image.attachment(:original))
95
95
  uri.query = URI.encode_www_form [['fm', 'jpg'], ['w', '1280'], ['h', '1920'], ['fit', 'clamp']]
96
96
  uri.to_s
97
- end,
97
+ end
98
+ array.fill(nil, array.size..9)),
98
99
  *Spree::StockLocation.all.map {|sl| sl.count_on_hand(variant) || 0 }
99
100
  ]
100
101
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_winkelstraat'
5
- s.version = '3.1.0.20'
5
+ s.version = '3.1.0.21'
6
6
  s.summary = 'Winkelstraat.nl connection'
7
7
  s.description = 'Connect your spree shop to winkelstraat.nl'
8
8
  s.required_ruby_version = '>= 2.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_winkelstraat
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.20
4
+ version: 3.1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Oudhaarlem