mge_wholesale 3.1.0 → 3.1.1

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: fbebb0dfe087167de9ec8ce78571e8bfe128ab31
4
- data.tar.gz: b073aef3d68b8b17af1e29de66bae087157fefbb
3
+ metadata.gz: 54bffed1bab8c51fa07cc900c0f2a35d0cff9d0c
4
+ data.tar.gz: 5752172334e12e402983baab47ef6447542ba93a
5
5
  SHA512:
6
- metadata.gz: 5aca7dfed8100237dfd50d616f59efa7e2dcd2c4f5de5f6fe86823f78182d15d510c9e20ad4fdc25836f089d8f61006024c19ff0be7fdfbfd0b8b149ec7478f6
7
- data.tar.gz: b8f437d4d4163c9d5cb2eeed64ff097ed5ef38ecf812a1f141dd616cc85039e2460743f5b8b1912d1b1be5d0dc92aaa4c71be21324019e0bc28cc3144166519e
6
+ metadata.gz: ca0980f4ac686de3d796c707adc0924e97a8a502ab984a67f5775a8c323186e33ac2bae3e03dd3b8759a1d0b9c81633ad9b4b672ab007c4e8e6f8a2ebac54cf2
7
+ data.tar.gz: 3567afb109669346fb3f6d44ef4dd1c2e518152677726fa4c021645d595e7192ec19f45483c277adc68f689136b2e596e8ce617cdab22b6dbbc28a03bfa4a218
data/lib/mge_wholesale.rb CHANGED
@@ -18,6 +18,7 @@ require 'mge_wholesale/user'
18
18
  module MgeWholesale
19
19
  class InvalidOrder < StandardError; end
20
20
  class NotAuthenticated < StandardError; end
21
+ class FileOrDirectoryNotFound < StandardError; end
21
22
 
22
23
  class << self
23
24
  attr_accessor :config
@@ -13,8 +13,13 @@ module MgeWholesale
13
13
  ftp.close
14
14
  end
15
15
  end
16
- rescue Net::FTPPermError
17
- raise MgeWholesale::NotAuthenticated
16
+ rescue Net::FTPPermError => e
17
+ raise case
18
+ when e.message =~ /no such file or directory/i
19
+ MgeWholesale::FileOrDirectoryNotFound
20
+ else
21
+ MgeWholesale::NotAuthenticated
22
+ end
18
23
  end
19
24
 
20
25
  protected
@@ -1,3 +1,3 @@
1
1
  module MgeWholesale
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mge_wholesale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Ebling
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri