carrierwave-dropbox 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +2 -0
- data/carrierwave-dropbox.gemspec +2 -2
- data/lib/carrierwave/dropbox/version.rb +1 -1
- data/lib/carrierwave/storage/dropbox.rb +5 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 817fba19ab4660033d5c98bb2367080b6ce96df3
|
4
|
+
data.tar.gz: 01812beaf06fac8cf12230b3ca6fa6757e0bfcd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d60fde55923067f1beaccf1d7ee533ab14a3be78355d81db7f20fc79dc923a658e875c174c1bb8f7c275b7fa60d9f72d3d14277cf38b4bc60b6c9c6bd8f0407
|
7
|
+
data.tar.gz: 72e8aa3563e803504c41548c7341f263a4573a447931d5ea1322a03ecde2456a92968ae64b74c3b67a42b4bb9434f74581e5f2a78f62e5f2e0e8a7eb20f10989
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.1.0 (September 22, 2013)
|
4
|
+
|
5
|
+
* Make the gem working with "app_folder" applications.
|
6
|
+
|
7
|
+
Correct the returned URL for applications which are not "dropbox" ones
|
8
|
+
since they are not only accessible publicly.
|
9
|
+
|
10
|
+
Resolve #1
|
11
|
+
|
3
12
|
## 1.0.2 (August 3, 2013)
|
4
13
|
|
5
14
|
* Add a rescue block for `DropboxError` since CarrierWave is trying to
|
data/Gemfile
CHANGED
data/carrierwave-dropbox.gemspec
CHANGED
@@ -23,10 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "capybara", "~> 2.0"
|
26
|
+
spec.add_development_dependency "capybara", "~> 2.1.0"
|
27
27
|
spec.add_development_dependency "rspec", "~> 2.14"
|
28
28
|
spec.add_development_dependency "sqlite3"
|
29
29
|
spec.add_development_dependency "mini_magick"
|
30
|
-
spec.add_development_dependency "selenium-webdriver"
|
30
|
+
spec.add_development_dependency "selenium-webdriver", "~> 2.35.1"
|
31
31
|
spec.add_development_dependency "rails", ">= 3.2.14", "< 5.0"
|
32
32
|
end
|
@@ -54,7 +54,11 @@ module CarrierWave
|
|
54
54
|
|
55
55
|
def url
|
56
56
|
user_id, path = @config[:user_id], @path
|
57
|
-
"
|
57
|
+
if @config[:access_type] == "dropbox"
|
58
|
+
"https://dl.dropboxusercontent.com/u/#{user_id}/#{path}"
|
59
|
+
else
|
60
|
+
@client.media(path)["url"]
|
61
|
+
end
|
58
62
|
end
|
59
63
|
|
60
64
|
def delete
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-dropbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Dupret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.1.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.1.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: selenium-webdriver
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ~>
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 2.35.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ~>
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 2.35.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
version: '0'
|
251
251
|
requirements: []
|
252
252
|
rubyforge_project:
|
253
|
-
rubygems_version: 2.0.
|
253
|
+
rubygems_version: 2.0.6
|
254
254
|
signing_key:
|
255
255
|
specification_version: 4
|
256
256
|
summary: Dropbox integration for CarrierWave
|
@@ -308,3 +308,4 @@ test_files:
|
|
308
308
|
- spec/fixtures/rails.png
|
309
309
|
- spec/fixtures/ruby.png
|
310
310
|
- spec/spec_helper.rb
|
311
|
+
has_rdoc:
|