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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f94b98fa28192f78de9f32e05775735f2e659c6
4
- data.tar.gz: 1fca674f860768e5a5827e2795836daee559901a
3
+ metadata.gz: 82a48be0e2e60062a9c7f14d8e9faa635d977597
4
+ data.tar.gz: f688b640ae8720ef011108d7cafd4ff66d4d1aaf
5
5
  SHA512:
6
- metadata.gz: 18989b846921db24c7f69f3426128240a7b01b5322d82518ef82c05fad3456d5874cf06c80454f8e942a2c95bd891f50148b70f0874b40093de85b30007d7155
7
- data.tar.gz: ea50c12ae4fa8fb44f5898e04015da661bee8099ef329f596ae568ce152297db55f9ee28cf92c06f1a63a7f9acbc1e86d920f1a85129f2e16fd47a00fa32e783
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 `:dropbox_visilbility` option
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: 'public'
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] == "dropbox"
10
+ elsif options[:dropbox_credentials][:access_type]
11
11
  PublicUrlGenerator.new(storage, options)
12
12
  end
13
13
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "paperclip-dropbox"
5
- gem.version = "1.2.1"
5
+ gem.version = "1.2.2"
6
6
 
7
7
  gem.homepage = "https://github.com/janko-m/paperclip-dropbox"
8
8
  gem.description = %q{Extends Paperclip with Dropbox storage.}
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.1
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-03-02 00:00:00.000000000 Z
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.0
179
+ rubygems_version: 2.2.2
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Extends Paperclip with Dropbox storage.