mugshot 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mugshot/application.rb +1 -1
- data/spec/mugshot/application_spec.rb +0 -6
- metadata +11 -11
data/lib/mugshot/application.rb
CHANGED
@@ -35,12 +35,6 @@ describe Mugshot::Application do
|
|
35
35
|
@storage.stub!(:read).with("image_id").and_return(@image)
|
36
36
|
end
|
37
37
|
|
38
|
-
it "should convert image to format" do
|
39
|
-
@image.should_receive(:to_blob).with(:format => :jpg)
|
40
|
-
perform_get
|
41
|
-
last_response.content_type == "image/jpg"
|
42
|
-
end
|
43
|
-
|
44
38
|
it "should destroy image" do
|
45
39
|
@image.should_receive(:destroy!)
|
46
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mugshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Cain\xC3\xA3 Nunes"
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2010-02-
|
15
|
+
date: 2010-02-04 00:00:00 -02:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
@@ -137,21 +137,21 @@ signing_key:
|
|
137
137
|
specification_version: 3
|
138
138
|
summary: Dead simple image server
|
139
139
|
test_files:
|
140
|
-
- spec/
|
141
|
-
- spec/mugshot/application_spec.rb
|
140
|
+
- spec/test.html
|
142
141
|
- spec/mugshot/fs_storage_spec.rb
|
143
|
-
- spec/mugshot/image_spec.rb
|
144
142
|
- spec/mugshot/proxy_spec.rb
|
145
|
-
- spec/
|
143
|
+
- spec/mugshot/image_spec.rb
|
144
|
+
- spec/mugshot/application_spec.rb
|
146
145
|
- spec/spec_helper.rb
|
147
|
-
- spec/test.
|
148
|
-
-
|
146
|
+
- spec/files/test.jpg
|
147
|
+
- spec/spec.opts
|
149
148
|
- features/retrieve_resized_image.feature
|
149
|
+
- features/crop_image.feature
|
150
150
|
- features/retrieve_resized_image_keeping_aspect_ratio.feature
|
151
|
-
- features/step_definitions/all_steps.rb
|
152
151
|
- features/support/env.rb
|
153
|
-
- features/support/files/test.200x.jpg
|
154
152
|
- features/support/files/test.200x200.jpg
|
155
153
|
- features/support/files/test.crop.300x200.jpg
|
156
|
-
- features/support/files/test.jpg
|
157
154
|
- features/support/files/test.x200.jpg
|
155
|
+
- features/support/files/test.jpg
|
156
|
+
- features/support/files/test.200x.jpg
|
157
|
+
- features/step_definitions/all_steps.rb
|