bill_hicks 1.1.6 → 1.1.7

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: 14cbdf2a7909f74d9e9ed220ace8f62588810be0
4
- data.tar.gz: 20119ac538fe4debcadf6aae3914b8faf80742d4
3
+ metadata.gz: 227c3b12bc97276a05b09bcfe7004f83abb720f8
4
+ data.tar.gz: c459f27aa2750b11f68f813e395faee26785c686
5
5
  SHA512:
6
- metadata.gz: 72d2ea4bafa8cf965a4729f4fe65e88bd1d8999cbfa83f19d33f87f22c5ea26ff43e4ee0f4be79c61c389fb9b0452565cb246f6f171a88e715d075c235a2be15
7
- data.tar.gz: c226b034bb5293c34ad7f76cffa70d7cfdc7d4c898536a2d7c349ed79f005d8191f72ac638817c192069c444892e3047be3969945b0c0dcb9f57f47de67ba173
6
+ metadata.gz: 7b46c49702738a03d2b01e9dfd01591e63eb931912b6b91757d24912dae948579c91ed6b9481c494f5e613dc611f8f7c6665c2b0a3bf670c237af6eb2ce938d3
7
+ data.tar.gz: 0aa943587a314fc01c6175741d67c5cafd8576c868b62447e0c8126266974b6606f6f222acfe589b70daa7ed0f375b90ee90b3af430793d53e8ec62b80c574fd
@@ -70,9 +70,9 @@ module BillHicks
70
70
  temp_csv_file = Tempfile.new
71
71
 
72
72
  ftp.chdir(BillHicks.config.top_level_dir)
73
- ftp.gettextfile(CATALOG_FILENAME, temp_csv_file.path)
73
+ ftp.getbinaryfile(CATALOG_FILENAME, temp_csv_file.path)
74
74
 
75
- SmarterCSV.process(temp_csv_file, { :chunk_size => size }) do |chunk|
75
+ SmarterCSV.process(temp_csv_file, { :chunk_size => size, :force_utf8 => true, :convert_values_to_numeric => false }) do |chunk|
76
76
  yield(chunk)
77
77
  end
78
78
 
@@ -56,9 +56,9 @@ module BillHicks
56
56
  temp_csv_file = Tempfile.new
57
57
 
58
58
  ftp.chdir(BillHicks.config.top_level_dir)
59
- ftp.gettextfile(INVENTORY_FILENAME, temp_csv_file.path)
59
+ ftp.getbinaryfile(INVENTORY_FILENAME, temp_csv_file.path)
60
60
 
61
- SmarterCSV.process(temp_csv_file, { :chunk_size => size }) do |chunk|
61
+ SmarterCSV.process(temp_csv_file, { :chunk_size => size, :force_utf8 => true, :convert_values_to_numeric => false }) do |chunk|
62
62
  yield(chunk)
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module BillHicks
2
- VERSION = '1.1.6'
2
+ VERSION = '1.1.7'
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: 1.1.6
4
+ version: 1.1.7
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-03-22 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv