couch_photo 1.0.0.beta.3 → 1.0.0.beta.4

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.3
1
+ 1.0.0.beta.4
@@ -51,6 +51,12 @@ module CouchPhoto
51
51
  end
52
52
  end
53
53
 
54
+ def custom_variation?
55
+ exists? &&
56
+ attachment_name != "variations/original.#{extension}" &&
57
+ @document.class.variations.variation_definitions[@variation_name.to_sym] == nil
58
+ end
59
+
54
60
  private
55
61
  def exists?
56
62
  !@document["_attachments"][attachment_name].nil?
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: 62196357
4
+ hash: 62196363
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 3
12
- version: 1.0.0.beta.3
11
+ - 4
12
+ version: 1.0.0.beta.4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Matt Parker