bill_hicks 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bill_hicks/catalog.rb +6 -3
- data/lib/bill_hicks/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: 18a025d06e590e81b0f5797deea45a2cbac0f137
|
4
|
+
data.tar.gz: 7714a3ab0800a74514ba529221076eef384d23fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc52e39c7da4f26c09dae40fe358b4f753fabddb4236b57ec48028c3fc422ca81e6d52b819f566f0d9a82acc1ae6c82956dd07317b23d5ac2b9865fa999b2fe3
|
7
|
+
data.tar.gz: 8614176ec1b08b439b9779cf707e7710edd84748c07b54632784d81b31bc11596c3cf1df70a4e51bb9797e6cd5fca650e80d51662c5d403ac1092692d09b214a
|
data/lib/bill_hicks/catalog.rb
CHANGED
@@ -19,8 +19,8 @@ module BillHicks
|
|
19
19
|
class Catalog < Base
|
20
20
|
|
21
21
|
# FIXME: Change this back to the normal filename as soon as they fix the headers in this file.
|
22
|
-
|
23
|
-
CATALOG_FILENAME = 'billhickscatalog-fixed.csv'
|
22
|
+
CATALOG_FILENAME = 'billhickscatalog.csv'
|
23
|
+
# CATALOG_FILENAME = 'billhickscatalog-fixed.csv'
|
24
24
|
|
25
25
|
|
26
26
|
def initialize(options = {})
|
@@ -42,7 +42,10 @@ module BillHicks
|
|
42
42
|
|
43
43
|
lines = ftp.gettextfile(CATALOG_FILENAME, nil)
|
44
44
|
|
45
|
-
|
45
|
+
# HACK: Their CSV header line has ' + ' in there for some reason, so strip that out.
|
46
|
+
lines_array = lines.split('\n')
|
47
|
+
lines_array.first.gsub!(' + ', '')
|
48
|
+
lines = lines_array.join('\n')
|
46
49
|
|
47
50
|
CSV.parse(lines, headers: :first_row) do |row|
|
48
51
|
row_hash = {}
|
data/lib/bill_hicks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bill_hicks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|