couch_photo 1.0.0.beta.7 → 1.0.0.beta.8

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.7
1
+ 1.0.0.beta.8
@@ -12,9 +12,12 @@ module CouchPhoto
12
12
  @document.create_attachment :name => attachment_name, :file => FakeFile.new(@data)
13
13
  end
14
14
 
15
- private
16
15
  def attachment_name
17
16
  "variations/#{@variation_name}"
18
17
  end
18
+
19
+ def variation_filename
20
+ @variation_name
21
+ end
19
22
  end
20
23
  end
@@ -70,6 +70,18 @@ module CouchPhoto
70
70
  @document
71
71
  end
72
72
 
73
+ def variation_name
74
+ @variation_name
75
+ end
76
+
77
+ def variation_filename
78
+ "#{@variation_name}.#{@document.original.extension}"
79
+ end
80
+
81
+ def attachment_name
82
+ "variations/#{variation_filename}"
83
+ end
84
+
73
85
  private
74
86
  def exists?
75
87
  !@document["_attachments"][attachment_name].nil?
@@ -81,9 +93,6 @@ module CouchPhoto
81
93
  end
82
94
  end
83
95
 
84
- def attachment_name
85
- "variations/#{@variation_name}.#{@document.original.extension}"
86
- end
87
96
  end
88
97
  end
89
98
 
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: 62196365
4
+ hash: 62196371
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 7
12
- version: 1.0.0.beta.7
11
+ - 8
12
+ version: 1.0.0.beta.8
13
13
  platform: ruby
14
14
  authors:
15
15
  - Matt Parker