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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 379cdc4a60bd58eb90c5a127d5e2399c75b73e84
4
- data.tar.gz: 503e25e465a6b8cd9a57bc97ec3494162aee2a1b
3
+ metadata.gz: 18a025d06e590e81b0f5797deea45a2cbac0f137
4
+ data.tar.gz: 7714a3ab0800a74514ba529221076eef384d23fe
5
5
  SHA512:
6
- metadata.gz: 5bb4603aa45f03de6a41c85b56a57427d51ed77fa72655eb2f63c90a5f87ef131fce5353ab3b45208b54e4064340215a0ab2d86c9172cd1b52fdd7f8cc93d956
7
- data.tar.gz: 7dce216fc1bc15b8bebe46f1c61ba9e679ea30c1b4f506f84e978f5b2abacaafb81c2172e04425598c0737f2aeb996cef124354e6df6c6573c5700a5a1393644
6
+ metadata.gz: cc52e39c7da4f26c09dae40fe358b4f753fabddb4236b57ec48028c3fc422ca81e6d52b819f566f0d9a82acc1ae6c82956dd07317b23d5ac2b9865fa999b2fe3
7
+ data.tar.gz: 8614176ec1b08b439b9779cf707e7710edd84748c07b54632784d81b31bc11596c3cf1df70a4e51bb9797e6cd5fca650e80d51662c5d403ac1092692d09b214a
@@ -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
- # CATALOG_FILENAME = 'billhickscatalog.csv'
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
- STDOUT.puts "-- DEBUG: #{self.class}: #{lines.inspect}"
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 = {}
@@ -1,3 +1,3 @@
1
1
  module BillHicks
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler