bill_hicks 0.2.1 → 0.2.2
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 +0 -7
- 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: cbae56f3c12ad2cdd106414eb844183939c1b247
|
4
|
+
data.tar.gz: 14ef1d1a11211f29edb2022d7eb54794fab5aae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65862430456703f1a6aae57757c0ea9af0ab6bba92664eb79e188239394da4ea1aec53e0baa0729604aaf5b1df9f98f19db7dadb5e23086fff188c9f09ba1003
|
7
|
+
data.tar.gz: b0b7aac2904172780ac42eb08a228a625677fa21959a2eb33f6be56487e3499829710dd684ac909dd080c59b2c39ad2de412de19b71849f8608c29dac24b3a6d
|
data/lib/bill_hicks/catalog.rb
CHANGED
@@ -18,9 +18,7 @@ module BillHicks
|
|
18
18
|
# }
|
19
19
|
class Catalog < Base
|
20
20
|
|
21
|
-
# FIXME: Change this back to the normal filename as soon as they fix the headers in this file.
|
22
21
|
CATALOG_FILENAME = 'billhickscatalog.csv'
|
23
|
-
# CATALOG_FILENAME = 'billhickscatalog-fixed.csv'
|
24
22
|
|
25
23
|
|
26
24
|
def initialize(options = {})
|
@@ -42,11 +40,6 @@ module BillHicks
|
|
42
40
|
|
43
41
|
lines = ftp.gettextfile(CATALOG_FILENAME, nil)
|
44
42
|
|
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')
|
49
|
-
|
50
43
|
CSV.parse(lines, headers: :first_row) do |row|
|
51
44
|
row_hash = {}
|
52
45
|
|
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.2
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|