photocopier 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/photocopier/ftp.rb +1 -0
- data/lib/photocopier/ftp/session.rb +2 -2
- data/lib/photocopier/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: '085c7869289f7443bb01eb0a291dd0803fe2384d'
|
4
|
+
data.tar.gz: df261e02593759ad019f81b4ef72c148b4c9b4f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c87d862023c0dba8dbc1653e4d6af89bbfca4e9ba8e35fb7df22cc44ec62fcd2685f462c3c2ec5331fbcead235ea40f394235a8f74a0ff41e359b679f9353174
|
7
|
+
data.tar.gz: 6b0ba476ca5131d4305d2da3409566b394f7fbf318228509bd710931529041571ab80a7c0e954417c9087cee83c2f1b69741704339182f47344e92e94f119e14
|
data/lib/photocopier/ftp.rb
CHANGED
@@ -50,6 +50,7 @@ module Photocopier
|
|
50
50
|
local = Shellwords.escape(local)
|
51
51
|
command = [
|
52
52
|
"set ftp:list-options -a",
|
53
|
+
"set ftp:passive-mode #{options[:passive] || 'false'}",
|
53
54
|
"set cmd:fail-exit true",
|
54
55
|
"open -p #{port || inferred_port} #{remote_ftp_url}",
|
55
56
|
"find -d 1 #{remote} || mkdir -p #{remote}",
|
@@ -16,9 +16,9 @@ module Photocopier
|
|
16
16
|
options[:host],
|
17
17
|
username: options[:user],
|
18
18
|
password: options[:password],
|
19
|
-
port: options[:port] || 21
|
19
|
+
port: options[:port] || 21,
|
20
|
+
passive: options[:passive] || false
|
20
21
|
)
|
21
|
-
@session.passive = options[:passive] if options.key?(:passive)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
data/lib/photocopier/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: photocopier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-08-
|
13
|
+
date: 2018-08-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|