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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/sftp_wrapper/curl.rb +6 -0
- data/lib/sftp_wrapper/errors.rb +3 -0
- data/lib/sftp_wrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 848f8d10fb40df4971a9a7412a69a66a8d12326dd89c7f0eb0d6a5c99241793c
|
4
|
+
data.tar.gz: e29e2545b9184221c475057e480dbb155e9d76495a2af1ce17f0306d33e66074
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/sftp_wrapper/curl.rb
CHANGED
@@ -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.
|
data/lib/sftp_wrapper/errors.rb
CHANGED
data/lib/sftp_wrapper/version.rb
CHANGED