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 +4 -4
- data/app/models/spree/product_decorator.rb +3 -2
- data/spree_winkelstraat.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49883fd0c61e0df142cc55cdb7489968f9eeff936848dad274d47aac0b44b0ca
|
4
|
+
data.tar.gz: 691b500792a34cbf139b9d5e09b026be91b63ba6337b989c6a872e1248a19308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/spree_winkelstraat.gemspec
CHANGED
@@ -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.
|
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'
|