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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d3d75272ba6234917e3597b28f5c9fbc7cb3a32
4
- data.tar.gz: 0529a1e666dc7edb4e14aa92b4954f16282c90a5
3
+ metadata.gz: 817fba19ab4660033d5c98bb2367080b6ce96df3
4
+ data.tar.gz: 01812beaf06fac8cf12230b3ca6fa6757e0bfcd4
5
5
  SHA512:
6
- metadata.gz: 2835fbf02770db21b1ffd9a5ecfdef168a51353bcf5bb5887be35359589a49493726a8744cb456b1307aebc3798d1ad0a251bd2ced706d50c8c8f08c947d9ef9
7
- data.tar.gz: edd702790fccee11de7165e94a14aa60658f9f16128e89163605a0c59c0fb2d44a9d934d04129080048a96ed852f770a8b823f13a60b74510f67018e5a07fb2e
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
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in carrierwave-dropbox.gemspec
4
4
  gemspec
5
+
6
+ gem 'rubyzip', require: 'zip/zip'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Dropbox
3
- VERSION = "1.0.2"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -54,7 +54,11 @@ module CarrierWave
54
54
 
55
55
  def url
56
56
  user_id, path = @config[:user_id], @path
57
- "https://dl.dropboxusercontent.com/u/#{user_id}/#{path}"
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.2
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-08-03 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
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: '0'
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: '0'
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.3
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: