bill_hicks 2.0.9 → 2.0.10

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: 311a253d2608e8d5648758211a8455b7a700b082
4
- data.tar.gz: 94beb0521f23d3987f965b953265dfa7f7eadad9
3
+ metadata.gz: 5c54c9890ffaaf75a21d9b30829671d09ccf90db
4
+ data.tar.gz: c8ffad8f7a5f09531ca5ad51b1ea70a60b34a5e9
5
5
  SHA512:
6
- metadata.gz: 1ff8318e9afd8bbb3c4ec64182e3060d55723bd7c0ac41735c85198d8d6c984d009d49a420f488d5a6e9a3f94f98e08fb46f57f0edcee2e440ba3d3c1c6add73
7
- data.tar.gz: 6206211017a9fbf4a98d7874353c0a60e6bfc483fa11f1443bfdcf2e1ad1beb3713d3dc2da7747708535cfc08e88e7b9f6174b9c55b65a4a4792596ac58808c8
6
+ metadata.gz: ca947a13c194dcd26ed3e5573fb1d862df9aa0d0d4f999a8fac67f278f55abc6f6c63793f286cbf02487b3cd49f05bf730c3c9372ab6e718f0a6151e9ef3dc89
7
+ data.tar.gz: f9bd8cd9badd52de868150e1e907885a2ac529d455da1c377513458d789d3bca539730a8f2d34abf94073c4ea8034e4d50f4a152e3b73b6e1341996023e0d332
@@ -28,12 +28,12 @@ module BillHicks
28
28
 
29
29
  # Is the file a '855 Purchase Order Acknowledgement'?
30
30
  def ack?
31
- content.start_with?("ACK")
31
+ filename.downcase.start_with?("ack")
32
32
  end
33
33
 
34
34
  # Is the file a '856 Advance Shipping Notice'?
35
35
  def asn?
36
- content.start_with?("ASN")
36
+ filename.downcase.start_with?("asn")
37
37
  end
38
38
 
39
39
  # Use '#gettextfile' to read file contents as a string
@@ -42,6 +42,8 @@ module BillHicks
42
42
  connect(@credentials) do |ftp|
43
43
  ftp.chdir(BillHicks.config.full_response_dir)
44
44
  @content = ftp.gettextfile(@filename, nil)
45
+ ftp.close
46
+ @content
45
47
  end
46
48
  end
47
49
 
@@ -1,3 +1,3 @@
1
1
  module BillHicks
2
- VERSION = '2.0.9'.freeze
2
+ VERSION = '2.0.10'.freeze
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: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-03 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv