sports_south 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sports_south/catalog.rb +8 -3
- data/lib/sports_south/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1037a07921e73f33f2f3b1bb618a0f2215d8c22
|
4
|
+
data.tar.gz: 9be5a8d6d3baa1923806a2a7aac5dc18d57aeb9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9d9f66ee0ece5bf1daadc8193fbd01d9016b02ad27abe0491dd0611853fd0d18d21762ff61ffd59993012be93d12e8cb7aca46fd5613d4a51493e78926a77e
|
7
|
+
data.tar.gz: d46310e304bf6d012ef104110fe4911a46c8a42fbca37539a8125cfa1d8e07b8f1f0e8f1e2131ba1ca74d78cdc91380956d49c28eb069c8d3ef818734416de32
|
data/lib/sports_south/catalog.rb
CHANGED
@@ -68,7 +68,7 @@ module SportsSouth
|
|
68
68
|
|
69
69
|
chunker.reset!
|
70
70
|
else
|
71
|
-
chunker.add(map_hash(item))
|
71
|
+
chunker.add(map_hash(item, @options[:full_product].present?))
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -92,10 +92,15 @@ module SportsSouth
|
|
92
92
|
|
93
93
|
protected
|
94
94
|
|
95
|
-
def map_hash(node)
|
95
|
+
def map_hash(node, full_product = false)
|
96
96
|
category = @categories.find { |category| category[:category_id] == content_for(node, 'CATID') }
|
97
97
|
brand = @brands.find { |brand| brand[:brand_id] == content_for(node, 'ITBRDNO') }
|
98
|
-
|
98
|
+
|
99
|
+
if full_product
|
100
|
+
long_description = self.get_description(content_for(node, 'ITEMNO'))
|
101
|
+
else
|
102
|
+
nil
|
103
|
+
end
|
99
104
|
|
100
105
|
{
|
101
106
|
name: content_for(node, 'IDESC'),
|
data/lib/sports_south/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sports_south
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|