sftp_wrapper 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: e165201ad7f2d7cb97746ca0f0e13f4796a1a7fd254ef07158bd7f49837969fd
4
- data.tar.gz: 982118802dc86453fc18d0fb927e5cf0673308e2d2c6b232f188ec32accaec48
3
+ metadata.gz: 848f8d10fb40df4971a9a7412a69a66a8d12326dd89c7f0eb0d6a5c99241793c
4
+ data.tar.gz: e29e2545b9184221c475057e480dbb155e9d76495a2af1ce17f0306d33e66074
5
5
  SHA512:
6
- metadata.gz: 2a59acb94542d3c88e1685fc986a14864e0c62e57c17e354b828e46eec7fdab4226fe71c3fa109cd742a69665f419dec049d259e9d49876a223a8489fbceb225
7
- data.tar.gz: 8af2ef626911b7ec3fbcdb66b6686e3e22e0c2eb36a79c2c9176eee97489f4665aa761761f132930553c08b6ed22a2f30ff0f2b56e6609f31623b65f25f06a6e
6
+ metadata.gz: ad441b625087990122907698d5aba13375c53d99a2aff3d76275abcee35e36998dce3fa47961ffaa20758384abf729d7812e3d845219afaa2f0f8ed84fc7d7ed
7
+ data.tar.gz: a2efc0eb4c933d4bedee4c5ec1a246cb2f57365731f39e39445750dfb1172ef5dcd5d8e0e0b205454a433308aa694b5c738068f653378695cb62a4dc801e03f4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  Changelog
2
2
  ====
3
3
 
4
+ [v0.2.1](https://github.com/koshigoe/sftp_wrapper/releases/tag/v0.2.1)
5
+ ----
6
+
7
+ ### Enhancements
8
+
9
+ - [#2](https://github.com/koshigoe/sftp_wrapper/pull/2) handle more `curl` errors.
10
+
11
+
4
12
  [v0.2.0](https://github.com/koshigoe/sftp_wrapper/releases/tag/v0.2.0)
5
13
  ----
6
14
 
@@ -11,10 +11,16 @@ module SftpWrapper
11
11
 
12
12
  # lookup table of curl errors.
13
13
  CURL_ERRORS = {
14
+ # Couldn't resolve proxy. The given proxy host could not be resolved.
15
+ 5 => SftpWrapper::Errors::ConnectionError,
16
+ # Couldn't resolve host. The given remote host was not resolved.
17
+ 6 => SftpWrapper::Errors::ConnectionError,
14
18
  # Failed to connect to host.
15
19
  7 => SftpWrapper::Errors::ConnectionError,
16
20
  # The user name, password, or similar was not accepted and curl failed to log in.
17
21
  67 => SftpWrapper::Errors::AuthenticationFailure,
22
+ # The resource referenced in the URL does not exist.
23
+ 78 => SftpWrapper::Errors::ResourceNotExist,
18
24
  }.freeze
19
25
 
20
26
  # Initialize SFTP wrapper.
@@ -17,5 +17,8 @@ module SftpWrapper
17
17
 
18
18
  # Command failed.
19
19
  class CommandError < Error; end
20
+
21
+ # Resource does not exist.
22
+ class ResourceNotExist < Error; end
20
23
  end
21
24
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module SftpWrapper
4
4
  # version number.
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sftp_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka SUZUKI