sportsmans-supply 1.0.2.pre.pre → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportsmans-supply/invoice.rb +4 -2
- data/lib/sportsmans-supply/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6901c0d7ddd3721dad5180561591839eef81be7755ce8694110a62a0d6d90a61
|
4
|
+
data.tar.gz: d2ba2b2fd016c39e091b45bce1b0170d2e8295dbd50d3d001b3a47ff0c2c5594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 056db2a41b8559ae6bdee61f1077ac1b20740406555b0eca26240b8e5d4af58d18f7a3673e8db321746e5dc432ae9279a9cef6c8d4ac963d357394e0f35d354d
|
7
|
+
data.tar.gz: 2b02c4507ad68f94a9c5090cc41f97cef3a31702fd272ff17ba59cef483fb2e0803bf59f766081b29fd23e93d38ae5892992d1896f34c330e3cbdf1d88e2c1eb
|
@@ -12,9 +12,11 @@ module SportsmansSupply
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def all
|
15
|
-
invoice_filename = connect(@options) { |ftp| ftp.nlst('/invoices/invoices*.csv').last }
|
16
|
-
|
15
|
+
invoice_filename = connect(@options) { |ftp| ftp.nlst('/invoices/invoices*.csv').last }&.split('/')&.last
|
16
|
+
|
17
|
+
return {} if invoice_filename.nil?
|
17
18
|
|
19
|
+
invoice_file = get_file(invoice_filename, 'invoices')
|
18
20
|
invoice_data = []
|
19
21
|
|
20
22
|
File.open(invoice_file).each_with_index do |row, i|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportsmans-supply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Dill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -104,9 +104,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubygems_version: 3.0.9
|
112
112
|
signing_key:
|