paperclip-dropbox 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/paperclip/storage/dropbox/generator_factory.rb +1 -1
- data/paperclip-dropbox.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a48be0e2e60062a9c7f14d8e9faa635d977597
|
4
|
+
data.tar.gz: f688b640ae8720ef011108d7cafd4ff66d4d1aaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4c2d9339e53b4eb35e7ec6da664a381a37dabb636065534e59c404fd7e7983599e8db9489b2e5da6e10e967ffc6dc0eccb4f8ebc61d3ff1615eb4f9a971e060
|
7
|
+
data.tar.gz: 56014bbbd22588a2cab44275f895ac04ff38310dd00235d836084b05d23e3435230d9fc486dba4defba0ba6da6a7b9a9120c5f3b8dee8c8bf9174eb31f856065
|
data/README.md
CHANGED
@@ -105,7 +105,7 @@ end
|
|
105
105
|
|
106
106
|
In Rails you don't need to specify it.
|
107
107
|
|
108
|
-
### The `:
|
108
|
+
### The `:dropbox_visibility` option
|
109
109
|
This is a string "public" (default) or "private".
|
110
110
|
- "public" - Files will be placed in your "Public" directory in dropbox and will the public urls will be used to access the files (not http request required to get a url for the file)
|
111
111
|
- "private" - Files can be placed in any dropbox directory (set your :path attachment option) and private, expiring urls (4 hours) will be generated each time you access this file. Private can only be used with the 'dropbox' access type.
|
@@ -115,7 +115,7 @@ class User < ActiveRecord::Base
|
|
115
115
|
has_attached_file :avatar,
|
116
116
|
:storage => :dropbox,
|
117
117
|
:dropbox_credentials => Rails.root.join("config/dropbox.yml"),
|
118
|
-
:dropbox_visibility
|
118
|
+
:dropbox_visibility => 'public'
|
119
119
|
end
|
120
120
|
```
|
121
121
|
|
@@ -7,7 +7,7 @@ module Paperclip
|
|
7
7
|
def self.build_url_generator(storage, options)
|
8
8
|
if options[:dropbox_credentials][:access_type] == "app_folder" || options[:dropbox_visibility] == "private"
|
9
9
|
PrivateUrlGenerator.new(storage, options)
|
10
|
-
elsif options[:dropbox_credentials][:access_type]
|
10
|
+
elsif options[:dropbox_credentials][:access_type]
|
11
11
|
PublicUrlGenerator.new(storage, options)
|
12
12
|
end
|
13
13
|
end
|
data/paperclip-dropbox.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-dropbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paperclip
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.2.
|
179
|
+
rubygems_version: 2.2.2
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Extends Paperclip with Dropbox storage.
|