paperclipdropbox 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/paperclipdropbox/version.rb +1 -1
- data/lib/paperclipdropbox.rb +5 -4
- metadata +2 -2
data/lib/paperclipdropbox.rb
CHANGED
@@ -14,9 +14,9 @@ module Paperclip
|
|
14
14
|
@dropbox_key = '8ti7qntpcysl91j'
|
15
15
|
@dropbox_secret = 'i0tshr4cpd1pa4e'
|
16
16
|
@dropbox_public_url = "http://dl.dropbox.com/u/"
|
17
|
-
@options
|
18
|
-
@url = @options
|
19
|
-
@path = @options
|
17
|
+
@options[:url] ="#{@dropbox_public_url}#{user_id}#{@options[:path]}"
|
18
|
+
@url = @options[:url]
|
19
|
+
@path = @options[:path]
|
20
20
|
log("Starting up DropBox Storage")
|
21
21
|
end
|
22
22
|
end
|
@@ -42,7 +42,8 @@ module Paperclip
|
|
42
42
|
log("[paperclip] Writing files #{@queued_for_write.count}")
|
43
43
|
@queued_for_write.each do |style, file|
|
44
44
|
log("[paperclip] Writing files for ") if respond_to?(:log)
|
45
|
-
|
45
|
+
# Error --> undefined method close for #<Paperclip::
|
46
|
+
# file.close
|
46
47
|
dropbox_session.upload(file.path, "/Public#{File.dirname(path(style))}", :as=> File.basename(path(style)))
|
47
48
|
end
|
48
49
|
@queued_for_write = {}
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: paperclipdropbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paul Ketelle
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-04-06 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: paperclip
|