rack 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: ef26a00e7db43ca467739ef2a8c4e7c598c424d8152e50ad4927a7698d560da6
4
- data.tar.gz: '04810cccaca82d6e19425498db464d90a778b5d8ae496693d5f8dd4686c92c3a'
2
+ SHA1:
3
+ metadata.gz: 67795fcdb4d1f94c31a5d36ab7d5c617132674e9
4
+ data.tar.gz: 28f1d6b5f728c8b766752a023b5c7c2c0b6014f6
5
5
  SHA512:
6
- metadata.gz: 429a51a2a7fcbaf5e80ab067e9df1bd59891754d9239b2cbe33379cddbf2ab774f49c715db6113d13ab7a6530d564fa47fd8a3a63b4fcc9151e5dce0f8e83f1a
7
- data.tar.gz: d97fe3a8782e0025e55a6ae555185be9e4bf9af9e0eb2976a3f0286567b2f757d323eb069bc1886789f872cad6120aab41c64d9977d5a904de60e3e90ad6c41c
6
+ metadata.gz: 13a96a15f60371cbfc1986593a92f099f14eefbfcc6d8833f7bd124ef87797f4f2ea443e5c35aeec1486c73cee4511098544d79b4e9d24f3b44a53f20cac13a3
7
+ data.tar.gz: 9cf9fda3a38fdc8bad2e5be1110b2f13c40a1999d6a9c8ea07f61b76b330f6d5f9cbee96bc751c5b54dc0c0376fbc1aa360f60240c7bd103b2ce2f6d725dd2bf
@@ -228,7 +228,7 @@ You are also welcome to join the #rack channel on irc.freenode.net.
228
228
 
229
229
  The Rack Core Team, consisting of
230
230
 
231
- * Christian Neukirchen (chneukirchen[https://github.com/chneukirchen])
231
+ * Leah Neukirchen (chneukirchen[https://github.com/chneukirchen])
232
232
  * James Tucker (raggi[https://github.com/raggi])
233
233
  * Josh Peek (josh[https://github.com/josh])
234
234
  * José Valim (josevalim[https://github.com/josevalim])
@@ -300,5 +300,3 @@ Official Rack repositories:: <https://github.com/rack>
300
300
  Rack Bug Tracking:: <https://github.com/rack/rack/issues>
301
301
  rack-devel mailing list:: <https://groups.google.com/group/rack-devel>
302
302
  Rack's Rubyforge project:: <http://rubyforge.org/projects/rack>
303
-
304
- Christian Neukirchen:: <http://chneukirchen.org/>
data/SPEC CHANGED
@@ -60,8 +60,8 @@ below.
60
60
  the presence or absence of the
61
61
  appropriate HTTP header in the
62
62
  request. See
63
- <a href="https://tools.ietf.org/html/rfc3875#section-4.1.18">
64
- RFC3875 section 4.1.18</a> for
63
+ {https://tools.ietf.org/html/rfc3875#section-4.1.18
64
+ RFC3875 section 4.1.18} for
65
65
  specific behavior.
66
66
  In addition to this, the Rack environment must include these
67
67
  Rack-specific variables:
@@ -98,13 +98,12 @@ Rack-specific variables:
98
98
  Additional environment specifications have approved to
99
99
  standardized middleware APIs. None of these are required to
100
100
  be implemented by the server.
101
- <tt>rack.session</tt>:: A hash like interface for storing
102
- request session data.
101
+ <tt>rack.session</tt>:: A hash like interface for storing request session data.
103
102
  The store must implement:
104
- store(key, value) (aliased as []=);
105
- fetch(key, default = nil) (aliased as []);
106
- delete(key);
107
- clear;
103
+ store(key, value) (aliased as []=);
104
+ fetch(key, default = nil) (aliased as []);
105
+ delete(key);
106
+ clear;
108
107
  <tt>rack.logger</tt>:: A common object interface for logging messages.
109
108
  The object must implement:
110
109
  info(message, &block)
@@ -18,7 +18,7 @@ module Rack
18
18
  VERSION.join(".")
19
19
  end
20
20
 
21
- RELEASE = "2.0.4"
21
+ RELEASE = "2.0.5"
22
22
 
23
23
  # Return the Rack release as a dotted string.
24
24
  def self.release
@@ -26,7 +26,11 @@ module Rack
26
26
  req = Request.new(env)
27
27
  method = method_override_param(req) ||
28
28
  env[HTTP_METHOD_OVERRIDE_HEADER]
29
- method.to_s.upcase
29
+ begin
30
+ method.to_s.upcase
31
+ rescue ArgumentError
32
+ env[RACK_ERRORS].puts "Invalid string for method"
33
+ end
30
34
  end
31
35
 
32
36
  private
@@ -23,8 +23,8 @@ EOF
23
23
  s.extra_rdoc_files = ['README.rdoc', 'HISTORY.md']
24
24
  s.test_files = Dir['test/spec_*.rb']
25
25
 
26
- s.author = 'Christian Neukirchen'
27
- s.email = 'chneukirchen@gmail.com'
26
+ s.author = 'Leah Neukirchen'
27
+ s.email = 'leah@vuxu.org'
28
28
  s.homepage = 'https://rack.github.io/'
29
29
  s.required_ruby_version = '>= 2.2.2'
30
30
 
@@ -17,6 +17,20 @@ describe Rack::MethodOverride do
17
17
  env["REQUEST_METHOD"].must_equal "GET"
18
18
  end
19
19
 
20
+ it "sets rack.errors for invalid UTF8 _method values" do
21
+ errors = StringIO.new
22
+ env = Rack::MockRequest.env_for("/",
23
+ :method => "POST",
24
+ :input => "_method=\xBF".b,
25
+ Rack::RACK_ERRORS => errors)
26
+
27
+ app.call env
28
+
29
+ errors.rewind
30
+ errors.read.must_equal "Invalid string for method\n"
31
+ env["REQUEST_METHOD"].must_equal "POST"
32
+ end
33
+
20
34
  it "modify REQUEST_METHOD for POST requests when _method parameter is set" do
21
35
  env = Rack::MockRequest.env_for("/", :method => "POST", :input => "_method=put")
22
36
  app.call env
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
- - Christian Neukirchen
7
+ - Leah Neukirchen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -60,7 +60,7 @@ description: |
60
60
  middleware) into a single method call.
61
61
 
62
62
  Also see https://rack.github.io/.
63
- email: chneukirchen@gmail.com
63
+ email: leah@vuxu.org
64
64
  executables:
65
65
  - rackup
66
66
  extensions: []
@@ -275,59 +275,59 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.7.3
278
+ rubygems_version: 2.6.13
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: a modular Ruby webserver interface
282
282
  test_files:
283
- - test/spec_multipart.rb
283
+ - test/spec_auth_basic.rb
284
+ - test/spec_auth_digest.rb
285
+ - test/spec_body_proxy.rb
286
+ - test/spec_builder.rb
287
+ - test/spec_cascade.rb
288
+ - test/spec_cgi.rb
289
+ - test/spec_chunked.rb
290
+ - test/spec_common_logger.rb
291
+ - test/spec_conditional_get.rb
292
+ - test/spec_config.rb
293
+ - test/spec_content_length.rb
294
+ - test/spec_content_type.rb
284
295
  - test/spec_deflater.rb
285
- - test/spec_static.rb
286
- - test/spec_session_cookie.rb
287
- - test/spec_session_pool.rb
296
+ - test/spec_directory.rb
288
297
  - test/spec_etag.rb
289
- - test/spec_version.rb
298
+ - test/spec_events.rb
299
+ - test/spec_fastcgi.rb
300
+ - test/spec_file.rb
290
301
  - test/spec_handler.rb
291
- - test/spec_thin.rb
292
- - test/spec_session_abstract_id.rb
293
- - test/spec_mime.rb
294
- - test/spec_recursive.rb
295
- - test/spec_null_logger.rb
302
+ - test/spec_head.rb
303
+ - test/spec_lint.rb
304
+ - test/spec_lobster.rb
305
+ - test/spec_lock.rb
306
+ - test/spec_logger.rb
296
307
  - test/spec_media_type.rb
297
- - test/spec_cgi.rb
298
308
  - test/spec_method_override.rb
299
- - test/spec_content_type.rb
300
- - test/spec_session_abstract_session_hash.rb
309
+ - test/spec_mime.rb
310
+ - test/spec_mock.rb
311
+ - test/spec_multipart.rb
312
+ - test/spec_null_logger.rb
313
+ - test/spec_recursive.rb
301
314
  - test/spec_request.rb
302
- - test/spec_chunked.rb
303
- - test/spec_show_exceptions.rb
315
+ - test/spec_response.rb
316
+ - test/spec_rewindable_input.rb
304
317
  - test/spec_runtime.rb
305
- - test/spec_fastcgi.rb
306
- - test/spec_common_logger.rb
307
- - test/spec_builder.rb
308
- - test/spec_config.rb
309
- - test/spec_utils.rb
310
318
  - test/spec_sendfile.rb
311
- - test/spec_lobster.rb
312
- - test/spec_lint.rb
313
- - test/spec_conditional_get.rb
314
- - test/spec_tempfile_reaper.rb
315
- - test/spec_mock.rb
316
319
  - test/spec_server.rb
317
- - test/spec_directory.rb
318
- - test/spec_webrick.rb
319
- - test/spec_response.rb
320
- - test/spec_file.rb
320
+ - test/spec_session_abstract_id.rb
321
+ - test/spec_session_abstract_session_hash.rb
322
+ - test/spec_session_cookie.rb
323
+ - test/spec_session_memcache.rb
324
+ - test/spec_session_pool.rb
325
+ - test/spec_show_exceptions.rb
321
326
  - test/spec_show_status.rb
322
- - test/spec_body_proxy.rb
323
- - test/spec_logger.rb
324
- - test/spec_auth_digest.rb
327
+ - test/spec_static.rb
328
+ - test/spec_tempfile_reaper.rb
329
+ - test/spec_thin.rb
325
330
  - test/spec_urlmap.rb
326
- - test/spec_events.rb
327
- - test/spec_cascade.rb
328
- - test/spec_auth_basic.rb
329
- - test/spec_head.rb
330
- - test/spec_lock.rb
331
- - test/spec_rewindable_input.rb
332
- - test/spec_session_memcache.rb
333
- - test/spec_content_length.rb
331
+ - test/spec_utils.rb
332
+ - test/spec_version.rb
333
+ - test/spec_webrick.rb