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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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