carrierwave-dropbox 1.0.1 → 1.0.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: 036f4a9a7dee7e258052fa335167e80a85a0855c
4
- data.tar.gz: 773fa1295c62c022ae859947f2dcff55177ddc31
3
+ metadata.gz: 7d3d75272ba6234917e3597b28f5c9fbc7cb3a32
4
+ data.tar.gz: 0529a1e666dc7edb4e14aa92b4954f16282c90a5
5
5
  SHA512:
6
- metadata.gz: 69c72ce968ebeb2a17b8f63106b79cc4a1ca92195ada41b1f6e299bffb7f2b1da57830d2f0f3dd46acd9fb8f099275078d6afe55899d22210d8e70da4ec6dc12
7
- data.tar.gz: 2e19393057e6ce5a609198c2c2ef42715ac4834d8b7a8692c5b4fed7b072f015d0cea927b88b51edab0390b194428132eb06b8798143e8b2d32464d89837da22
6
+ metadata.gz: 2835fbf02770db21b1ffd9a5ecfdef168a51353bcf5bb5887be35359589a49493726a8744cb456b1307aebc3798d1ad0a251bd2ced706d50c8c8f08c947d9ef9
7
+ data.tar.gz: edd702790fccee11de7165e94a14aa60658f9f16128e89163605a0c59c0fb2d44a9d934d04129080048a96ed852f770a8b823f13a60b74510f67018e5a07fb2e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2 (August 3, 2013)
4
+
5
+ * Add a rescue block for `DropboxError` since CarrierWave is trying to
6
+ delete all specified versions of a file even if they do not exist.
7
+
3
8
  ## 1.0.1 (August 2, 2013)
4
9
 
5
10
  * Ensure resource edition works
data/README.md CHANGED
@@ -5,7 +5,8 @@ This gem allows you to easily upload your medias on Dropbox using the awesome
5
5
 
6
6
  ## Installation
7
7
 
8
- First, you have to create a [Dropbox app](https://www.dropbox.com/developers/apps). You can either create a "full dropbox" or "app folder" application. Please see
8
+ First, you have to create a [Dropbox app](https://www.dropbox.com/developers/apps).
9
+ You can either create a "full dropbox" or "app folder" application. Please see
9
10
  [this wiki](https://github.com/janko-m/paperclip-dropbox/wiki/Access-types) for
10
11
  further information and gotchas.
11
12
 
@@ -23,7 +24,7 @@ If you are using Rails, the Rake task is automatically loaded. Otherwise, if you
23
24
  aren't running a Rails application, first load the task in your `Rakefile`:
24
25
 
25
26
  ~~~ruby
26
- load "paperclip/dropbox/tasks.rake"
27
+ load "carrierwave/dropbox/tasks.rake"
27
28
  ~~~
28
29
 
29
30
  Then you have to run this task:
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Dropbox
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -59,7 +59,10 @@ module CarrierWave
59
59
 
60
60
  def delete
61
61
  path = "/Public/#{@path}" if @config[:access_type] == "dropbox"
62
- @client.file_delete(path)
62
+ begin
63
+ @client.file_delete(path)
64
+ rescue DropboxError
65
+ end
63
66
  end
64
67
  end
65
68
  end
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.1
4
+ version: 1.0.2
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-02 00:00:00.000000000 Z
11
+ date: 2013-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave