olek-paperclipftp 0.1.0.4 → 0.1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/paperclipftp.rb +3 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0.4
1
+ 0.1.0.5
data/lib/paperclipftp.rb CHANGED
@@ -6,13 +6,15 @@ module Paperclip
6
6
  base.instance_eval do
7
7
  @ftp_credentials = parse_credentials(@options[:ftp_credentials])
8
8
  @passive_mode = !!@options[:ftp_passive_mode]
9
+ @debug_mode = !!@options[:ftp_debug_mode]
9
10
  end
10
11
  end
11
12
 
12
13
  def ftp
13
14
  if @ftp.nil? || @ftp.closed?
14
15
  @ftp = Net::FTP.new(@ftp_credentials[:host], @ftp_credentials[:username], @ftp_credentials[:password])
15
- @ftp.passive = @ftp_passive_mode
16
+ @ftp.passive = @passive_mode
17
+ @ftp.debug_mode = @debug_mode
16
18
  end
17
19
  @ftp
18
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: olek-paperclipftp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
4
+ hash: 77
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
9
  - 0
10
- - 4
11
- version: 0.1.0.4
10
+ - 5
11
+ version: 0.1.0.5
12
12
  platform: ruby
13
13
  authors:
14
14
  - Damian Caruso