apache_image_resizer 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to apache_image_resizer version 0.0.5
5
+ This documentation refers to apache_image_resizer version 0.0.6
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -70,6 +70,8 @@ module Apache
70
70
  DEFAULT_PROXY_CACHE = 'proxy_cache'
71
71
  DEFAULT_FORMAT = 'jpeg:'
72
72
 
73
+ MIME_RE = %r{\Aimage/}i
74
+
73
75
  dimension_pattern = %q{\d+(?:\.\d+)?}
74
76
 
75
77
  DIRECTIVES_RE = %r{
@@ -191,7 +193,7 @@ module Apache
191
193
 
192
194
  begin
193
195
  URI.get_redirect(source) { |res|
194
- if res.is_a?(Net::HTTPSuccess)
196
+ if res.is_a?(Net::HTTPSuccess) && res.content_type =~ MIME_RE
195
197
  content = res.body.untaint
196
198
 
197
199
  mkdir_for(cache)
@@ -6,7 +6,7 @@ module Apache
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 0
9
- TINY = 5
9
+ TINY = 6
10
10
 
11
11
  class << self
12
12
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apache_image_resizer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jens Wille
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-28 00:00:00 Z
18
+ date: 2012-04-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rmagick
@@ -101,14 +101,14 @@ licenses: []
101
101
 
102
102
  post_install_message:
103
103
  rdoc_options:
104
- - --title
105
- - apache_image_resizer Application documentation (v0.0.5)
106
- - --line-numbers
104
+ - --charset
105
+ - UTF-8
107
106
  - --main
108
107
  - README
108
+ - --title
109
+ - apache_image_resizer Application documentation (v0.0.6)
110
+ - --line-numbers
109
111
  - --all
110
- - --charset
111
- - UTF-8
112
112
  require_paths:
113
113
  - lib
114
114
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  requirements: []
133
133
 
134
134
  rubyforge_project:
135
- rubygems_version: 1.8.11
135
+ rubygems_version: 1.8.21
136
136
  signing_key:
137
137
  specification_version: 3
138
138
  summary: Apache module providing image resizing functionality.