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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c2c56f331496212a5db817c28a67e157431bcdc9
4
- data.tar.gz: 3841f2186edb306d81f5a05700758eaccb300553
2
+ SHA256:
3
+ metadata.gz: c6f634532f563e0b00eb6045e7865f32bf88b23981087b51c144961b7b876622
4
+ data.tar.gz: 5876a712fb46e83ec0c36bbc2db4527ffe60b9d094591c85c3de7ee445dafb9a
5
5
  SHA512:
6
- metadata.gz: d0b340f1df24a3687cd0e3d30f3520d6187e3c09aa5e727c3128101ae2da67c6444e143ed24f56038dcdb134e4407ade9657b8c6ce68453c9acffd79ae60e2c9
7
- data.tar.gz: 4ba0c179d1be98d398ad4f55862a346f14fdab3fa62a1dad1721da4edb9aa4afea1ce2cd1ce97b517307dd8e6ce752f28716479c975b455d77eaf08ea81fd8a1
6
+ metadata.gz: 877999dcdfb883a007cfa81989a40e394e95960c92efa87eded7f5b09b226b31d287fa17941f813413d5a3e0a02b448d4295b34e538c8f7739b230fca55ec285
7
+ data.tar.gz: 8c3cb09419af7583bb2ecafa7f47925c900cec0024b5705e5d9c09214947f2cbda2f957bdfbd7d2c7175b73de65159726a9b3737be4f74fdb3d4f2ffbf89c9cf
@@ -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', '>= 0.14.0', '< 1.0'
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'
@@ -13,7 +13,8 @@
13
13
  end
14
14
 
15
15
  DEFAULT_HEADERS = {
16
- 'Allow' => "GET"
16
+ 'Allow' => 'GET',
17
+ 'X-Content-Type-Options' => 'nosniff',
17
18
  }.freeze
18
19
 
19
20
  # Headers for error responses that denote an invalid or
@@ -1,3 +1,3 @@
1
1
  class ImageVise
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
@@ -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.0
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: 2019-05-20 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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
- rubyforge_project:
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