paperclipdropbox 0.0.2 → 0.0.3

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.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ .rvmrc
data/README.rdoc CHANGED
@@ -4,6 +4,18 @@ Dropbox storage support for paperclip file attachment plugin.
4
4
 
5
5
  == Install
6
6
 
7
+ === Rails 3
8
+
9
+ You can let bundler install Paperclip Dropbox Plugin by adding this line to your application's Gemfile:
10
+
11
+ gem 'paperclipdropbox'
12
+
13
+ And then execute:
14
+
15
+ bundle install
16
+
17
+ Or install it yourself as:
18
+
7
19
  gem install paperclipdropbox
8
20
 
9
21
 
@@ -14,8 +26,6 @@ Create the file config/paperclipdropbox.yml:
14
26
  development:
15
27
  dropbox_user: user_email
16
28
  dropbox_password: user_password
17
- dropbox_key: developer_app_key
18
- dropbox_secret: developer_app_secret
19
29
 
20
30
  test:
21
31
  ...
@@ -33,8 +43,4 @@ In your model:
33
43
  end
34
44
 
35
45
 
36
- You can add the path option to the config/paperclipdropbox.yml file for ease of use.
37
-
38
-
39
- Till I have a production dropbox key/secret you will need to create your own via dropbox.
40
- The developer key will only allow access to the developers dropbox and nothing else.
46
+ You can add the path option to the config/paperclipdropbox.yml file for ease of use.
@@ -1,3 +1,3 @@
1
1
  module Paperclipdropbox
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -11,8 +11,8 @@ module Paperclip
11
11
 
12
12
  @dropbox_user = @options[:dropbox_user]
13
13
  @dropbox_password = @options[:dropbox_password]
14
- @dropbox_key = @options[:dropbox_key]
15
- @dropbox_secret = @options[:dropbox_secret]
14
+ @dropbox_key = '8ti7qntpcysl91j'
15
+ @dropbox_secret = 'i0tshr4cpd1pa4e'
16
16
  @dropbox_public_url = @options[:dropbox_public_url] || "http://dl.dropbox.com/u/"
17
17
  @options.merge!( :url => "#{@dropbox_public_url}#{user_id}#{@options[:path]}" )
18
18
  @url = @options[:url]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: paperclipdropbox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
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: 2011-05-03 00:00:00 Z
13
+ date: 2011-05-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paperclip