mugshot 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,6 @@ class Mugshot::Application < Sinatra::Base
62
62
  def send_image(image, format)
63
63
  content_type format
64
64
  response['Content-Disposition'] = 'inline'
65
- image.to_blob(:format => format)
65
+ image.to_blob
66
66
  end
67
67
  end
@@ -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.0
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-03 00:00:00 -02:00
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/files/test.jpg
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/spec.opts
143
+ - spec/mugshot/image_spec.rb
144
+ - spec/mugshot/application_spec.rb
146
145
  - spec/spec_helper.rb
147
- - spec/test.html
148
- - features/crop_image.feature
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