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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15478ff3663d6382b4e1f120a5001bf37b409b04264633d3117eb2552edbbb35
4
- data.tar.gz: dd43fe57fd3d5b7c653e5ceec0fd84450ac1954c05bb13551a86d37859ff21bc
3
+ metadata.gz: 6901c0d7ddd3721dad5180561591839eef81be7755ce8694110a62a0d6d90a61
4
+ data.tar.gz: d2ba2b2fd016c39e091b45bce1b0170d2e8295dbd50d3d001b3a47ff0c2c5594
5
5
  SHA512:
6
- metadata.gz: 0f0c7cd06fecd8d03b76f3292425dbfbfa399c07f2cfa2b3226db8cb475c16e8344f5b08bc8f25a88eec0e2001677d5526229db84bdc9607fe62a98e9adbef3e
7
- data.tar.gz: 457aa918e91715c0cbb9ed0a6541df8b4e3fb81fbd982def4c0d27a90a6d2be34639df8e78f5a12ed64bd495d4c54d28027abf8d490474c980265844a697a537
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 }.split('/').last
16
- invoice_file = get_file(invoice_filename, 'invoices')
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|
@@ -1,3 +1,3 @@
1
1
  module SportsmansSupply
2
- VERSION = '1.0.2-pre'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
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.2.pre.pre
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-13 00:00:00.000000000 Z
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: 1.3.1
109
+ version: '0'
110
110
  requirements: []
111
111
  rubygems_version: 3.0.9
112
112
  signing_key: