paperclipdropbox 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Paperclipdropbox
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -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.url ="#{@dropbox_public_url}#{user_id}#{@options.path}"
18
- @url = @options.url
19
- @path = @options.path
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
- file.close
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.7
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-01-09 00:00:00 Z
13
+ date: 2012-04-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paperclip