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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4b763f68fe383a9c167343c4b7000a347c93f3d
4
- data.tar.gz: b77ffcf51dd0ea57b7dcb0ee68c18ab156a78b1a
3
+ metadata.gz: f1037a07921e73f33f2f3b1bb618a0f2215d8c22
4
+ data.tar.gz: 9be5a8d6d3baa1923806a2a7aac5dc18d57aeb9c
5
5
  SHA512:
6
- metadata.gz: c09f6a365107449700072aef7f5888b5b089f7885d5acf306ef386d2c8f1dae98856b471d53bb12da2c9f443e52160fcd7638bef126a96f9912b9f9918f776ce
7
- data.tar.gz: 6e890eea11f616bb026a97d4d6b9ac0cbdf27b9fc3551a675d6a0b2173fa2d4e4d3f7ed5656b8b3e28f2e65fe32f8d8195405129dc4ebbbdc561ba1649c3324e
6
+ metadata.gz: 8e9d9f66ee0ece5bf1daadc8193fbd01d9016b02ad27abe0491dd0611853fd0d18d21762ff61ffd59993012be93d12e8cb7aca46fd5613d4a51493e78926a77e
7
+ data.tar.gz: d46310e304bf6d012ef104110fe4911a46c8a42fbca37539a8125cfa1d8e07b8f1f0e8f1e2131ba1ca74d78cdc91380956d49c28eb069c8d3ef818734416de32
@@ -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
- long_description = self.get_description(content_for(node, 'ITEMNO'))
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'),
@@ -1,3 +1,3 @@
1
1
  module SportsSouth
2
- VERSION = '2.0.7'
2
+ VERSION = '2.0.8'
3
3
  end
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.7
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-10-17 00:00:00.000000000 Z
11
+ date: 2017-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri