couch_photo 1.0.0.beta.2 → 1.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/couch_photo/couch_photo.rb +6 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.beta.
|
1
|
+
1.0.0.beta.3
|
@@ -44,9 +44,12 @@ module CouchPhoto
|
|
44
44
|
variations[variation_name].create_attachment File.read(filepath)
|
45
45
|
end
|
46
46
|
|
47
|
-
def load_custom_variation(
|
48
|
-
|
49
|
-
|
47
|
+
def load_custom_variation(options={})
|
48
|
+
raise "You must provide a :filename parameter" unless options[:filename]
|
49
|
+
raise "You must provide a :data parameter" unless options[:data]
|
50
|
+
|
51
|
+
variations[options[:filename]] = CouchPhoto::CustomVariation.new self, options[:filename]
|
52
|
+
variations[options[:filename]].create_attachment options[:data]
|
50
53
|
end
|
51
54
|
|
52
55
|
def original
|
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:
|
4
|
+
hash: 62196357
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 1.0.0.beta.
|
11
|
+
- 3
|
12
|
+
version: 1.0.0.beta.3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Matt Parker
|