paperclipdropbox 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -42,8 +42,8 @@ In your model:
42
42
  Create the file config/paperclipdropbox.yml:
43
43
 
44
44
  development:
45
- dropbox_key: user_email
46
- dropbox_secret: user_password
45
+ dropbox_key: dropbox_developer_key <--- This are not required unless you are modding the gem
46
+ dropbox_secret: dropbox_developer_secret <--- This are not required unless you are modding the gem
47
47
  path: "/:attachment/:attachment/:id/:style/:filename"
48
48
 
49
49
  test:
@@ -11,8 +11,9 @@ module Paperclip
11
11
  require "dropbox"
12
12
  base.instance_eval do
13
13
 
14
- @dropbox_key = '8ti7qntpcysl91j'
15
- @dropbox_secret = 'i0tshr4cpd1pa4e'
14
+ @dropbox_key = @options[:dropbox_key] || '8ti7qntpcysl91j'
15
+ @dropbox_secret = @options[:dropbox_secret] || 'i0tshr4cpd1pa4e'
16
+
16
17
  @dropbox_public_url = "http://dl.dropbox.com/u/"
17
18
  @options[:url] ="#{@dropbox_public_url}#{user_id}#{@options[:path]}"
18
19
  @url = @options[:url]
@@ -1,3 +1,3 @@
1
1
  module Paperclipdropbox
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paperclipdropbox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.8
5
+ version: 1.0.9
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-04-06 00:00:00 Z
13
+ date: 2012-07-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paperclip