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 +4 -4
- data/lib/bill_hicks/response_file.rb +4 -2
- 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: 5c54c9890ffaaf75a21d9b30829671d09ccf90db
|
4
|
+
data.tar.gz: c8ffad8f7a5f09531ca5ad51b1ea70a60b34a5e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
|
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: 2.0.
|
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-
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: smarter_csv
|