image_vise 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/image_vise.gemspec +2 -2
- data/lib/image_vise/render_engine.rb +2 -1
- data/lib/image_vise/version.rb +1 -1
- data/spec/image_vise/render_engine_spec.rb +4 -0
- metadata +7 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c6f634532f563e0b00eb6045e7865f32bf88b23981087b51c144961b7b876622
|
4
|
+
data.tar.gz: 5876a712fb46e83ec0c36bbc2db4527ffe60b9d094591c85c3de7ee445dafb9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 877999dcdfb883a007cfa81989a40e394e95960c92efa87eded7f5b09b226b31d287fa17941f813413d5a3e0a02b448d4295b34e538c8f7739b230fca55ec285
|
7
|
+
data.tar.gz: 8c3cb09419af7583bb2ecafa7f47925c900cec0024b5705e5d9c09214947f2cbda2f957bdfbd7d2c7175b73de65159726a9b3737be4f74fdb3d4f2ffbf89c9cf
|
data/image_vise.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
else
|
22
22
|
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
spec.files = `git ls-files -z`.split("\x0")
|
26
26
|
spec.bindir = "exe"
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency 'rmagick', '~> 3'
|
32
32
|
spec.add_dependency 'ks'
|
33
33
|
spec.add_dependency 'rack', '>= 1', '< 3'
|
34
|
-
spec.add_dependency 'format_parser', '
|
34
|
+
spec.add_dependency 'format_parser', '~> 0.24.0'
|
35
35
|
spec.add_dependency 'measurometer', '~> 1'
|
36
36
|
|
37
37
|
spec.add_development_dependency 'magic_bytes', '~> 1'
|
data/lib/image_vise/version.rb
CHANGED
@@ -110,6 +110,8 @@ describe ImageVise::RenderEngine do
|
|
110
110
|
expect(last_response.headers['Cache-Control']).to match(/public/)
|
111
111
|
|
112
112
|
expect(last_response.headers['Content-Type']).to eq('application/json')
|
113
|
+
expect(last_response['X-Content-Type-Options']).to eq('nosniff')
|
114
|
+
|
113
115
|
parsed = JSON.load(last_response.body)
|
114
116
|
expect(parsed['errors'].to_s).to include("Unfortunate upstream response")
|
115
117
|
end
|
@@ -182,6 +184,8 @@ describe ImageVise::RenderEngine do
|
|
182
184
|
expect(last_response.status).to eq(200)
|
183
185
|
|
184
186
|
expect(last_response.headers['Content-Type']).to eq('image/jpeg')
|
187
|
+
expect(last_response['X-Content-Type-Options']).to eq('nosniff')
|
188
|
+
|
185
189
|
expect(last_response.headers).to have_key('Content-Length')
|
186
190
|
parsed_image = Magick::Image.from_blob(last_response.body)[0]
|
187
191
|
expect(parsed_image.columns).to eq(10)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_vise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: patron
|
@@ -76,22 +76,16 @@ dependencies:
|
|
76
76
|
name: format_parser
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 0.14.0
|
82
|
-
- - "<"
|
79
|
+
- - "~>"
|
83
80
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
81
|
+
version: 0.24.0
|
85
82
|
type: :runtime
|
86
83
|
prerelease: false
|
87
84
|
version_requirements: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
|
-
- - "
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: 0.14.0
|
92
|
-
- - "<"
|
86
|
+
- - "~>"
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
88
|
+
version: 0.24.0
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: measurometer
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -323,8 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
323
317
|
- !ruby/object:Gem::Version
|
324
318
|
version: '0'
|
325
319
|
requirements: []
|
326
|
-
|
327
|
-
rubygems_version: 2.6.11
|
320
|
+
rubygems_version: 3.0.3
|
328
321
|
signing_key:
|
329
322
|
specification_version: 4
|
330
323
|
summary: Runtime thumbnailing proxy
|