anyfetch 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anyfetch/ftp.rb +6 -0
- data/lib/anyfetch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d583de7fd6f43d0eadb8b4a049039662498e3c5
|
4
|
+
data.tar.gz: 309874963cc3f0b929c120dc485aaccc58af18af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92321420e84c94699bc24878cc68ca7bc38c4f71be6cef7179e9d90d96f9f56dc9b8cfd5bba08f6d7ddfcad79d07cc99c5d69b032705b561dbc8dfea849b7bf6
|
7
|
+
data.tar.gz: aa204724fc61f97401a3d0316a09a77544d969e38e0129b438b60eb81c1cae616608c995606a5519a4a0288376f68da84f37e9b023e5b691896524c5e1bbaa3b
|
data/lib/anyfetch/ftp.rb
CHANGED
@@ -12,6 +12,12 @@ module Anyfetch
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def setup_auth
|
15
|
+
if @uri.user
|
16
|
+
# URI-encoded user must be passed to open-uri
|
17
|
+
# Rollback URI-encoding of user here
|
18
|
+
@uri.instance_variable_set "@user", URI.decode(@uri.user)
|
19
|
+
end
|
20
|
+
|
15
21
|
if @uri.password
|
16
22
|
# Rollback URI-encoding of password by open-uri lib
|
17
23
|
@uri.instance_variable_set "@password", URI.decode(@uri.password)
|
data/lib/anyfetch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anyfetch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Szajbe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocaine
|