couch_photo 1.0.0.beta.5 → 1.0.0.beta.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta.5
1
+ 1.0.0.beta.6
@@ -6,6 +6,15 @@ module CouchPhoto
6
6
  end
7
7
  end
8
8
 
9
+ def destroy
10
+ if custom_variation?
11
+ @document.delete_attachment attachment_name
12
+ @document.variations[@variation_name] = nil
13
+ else
14
+ raise "You may only delete custom variations"
15
+ end
16
+ end
17
+
9
18
  def extension
10
19
  if exists?
11
20
  @extension ||= File.extname(attachment_name).gsub(/\./, '')
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_photo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196361
4
+ hash: 62196367
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 5
12
- version: 1.0.0.beta.5
11
+ - 6
12
+ version: 1.0.0.beta.6
13
13
  platform: ruby
14
14
  authors:
15
15
  - Matt Parker