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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe28258c1acdf5d8d4df43797af2e9aba6caa0c7
4
- data.tar.gz: 74c440f9de5e9a88e8ac19b984d6a6243c26b322
3
+ metadata.gz: '085c7869289f7443bb01eb0a291dd0803fe2384d'
4
+ data.tar.gz: df261e02593759ad019f81b4ef72c148b4c9b4f2
5
5
  SHA512:
6
- metadata.gz: 5903bd46b9b8482cc096ee1cf0a0288b43b713de0f3a424105e90ff4c030883df1b4f4ddff362457a502eae0ca0d6456f26bb6444357bed7cee039eabca0c7e0
7
- data.tar.gz: 6a23c0082771c02b510db93d23e458b36812548bf50ef3c7afdc0787bb20b624b37a4a61fec43b2bbe9f6430df22659e0f469cb4de5bdf22c6c8e41c042822f6
6
+ metadata.gz: c87d862023c0dba8dbc1653e4d6af89bbfca4e9ba8e35fb7df22cc44ec62fcd2685f462c3c2ec5331fbcead235ea40f394235a8f74a0ff41e359b679f9353174
7
+ data.tar.gz: 6b0ba476ca5131d4305d2da3409566b394f7fbf318228509bd710931529041571ab80a7c0e954417c9087cee83c2f1b69741704339182f47344e92e94f119e14
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_litterla: true
2
2
 
3
3
  module Photocopier
4
- VERSION = "1.3.0".freeze
4
+ VERSION = "1.3.1".freeze
5
5
  end
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.0
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-01 00:00:00.000000000 Z
13
+ date: 2018-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport