diff options
author | Josh Soref <2119212+jsoref@users.noreply.github.com> | 2022-05-24 23:28:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 15:28:16 +1200 |
commit | f587034d9d2c9a8964cf6a30b32ef264b3375c6b (patch) | |
tree | bb4cb3cf673dc838af7f8c1962441c7904d1d172 | |
parent | a7747ec32e9971649257e838b0b49b9588945107 (diff) | |
download | rack-f587034d9d2c9a8964cf6a30b32ef264b3375c6b.tar.gz |
Fix various spelling issues. (#1897)
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | lib/rack/deflater.rb | 2 | ||||
-rw-r--r-- | lib/rack/response.rb | 4 | ||||
-rw-r--r-- | test/spec_deflater.rb | 2 | ||||
-rw-r--r-- | test/spec_multipart.rb | 2 | ||||
-rw-r--r-- | test/spec_show_exceptions.rb | 4 |
7 files changed, 11 insertions, 11 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 76585f8a..b53eab7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ All notable changes to this project will be documented in this file. For info on - Remove `rack.multithread`/`rack.multiprocess`/`rack.run_once`. These variables generally come too late to be useful. ([#1720](https://github.com/rack/rack/pull/1720), [@ioquatix], [@jeremyevans])) - Remove deprecated Rack::Request::SCHEME_WHITELIST. ([@jeremyevans]) -- Remove internal cookie deletion using pattern matching, there are very few pratical cases where it would be useful and browsers handle it correctly without us doing anything special. ([#1844](https://github.com/rack/rack/pull/1844), [@ioquatix]) +- Remove internal cookie deletion using pattern matching, there are very few practical cases where it would be useful and browsers handle it correctly without us doing anything special. ([#1844](https://github.com/rack/rack/pull/1844), [@ioquatix]) ### Added @@ -32,7 +32,7 @@ All notable changes to this project will be documented in this file. For info on - `Rack::Utils#set_cookie_header` now supports `escape_key: false` to avoid key escaping. ([@jeremyevans]) - `Rack::RewindableInput` supports size. ([@ahorek](https://github.com/ahorek)) - `Rack::RewindableInput::Middleware` added for making `rack.input` rewindable. ([@jeremyevans]) -- The RFC 7239 Forwarded header is now supported and considered by default when looking for information on forwarding, falling back to the the X-Forwarded-* headers. `Rack::Request.forwarded_priority` accessor has been added for configuring the priority of which header to check. ([#1423](https://github.com/rack/rack/issues/1423), [@jeremyevans]) +- The RFC 7239 Forwarded header is now supported and considered by default when looking for information on forwarding, falling back to the X-Forwarded-* headers. `Rack::Request.forwarded_priority` accessor has been added for configuring the priority of which header to check. ([#1423](https://github.com/rack/rack/issues/1423), [@jeremyevans]) - Allow response headers to contain array of values. ([#1598](https://github.com/rack/rack/issues/1598), [@ioquatix]) ### Changed @@ -645,7 +645,7 @@ Items below this line are from the previously maintained HISTORY.md and NEWS.md - Moved Auth::OpenID to rack-contrib. - SPEC change that relaxes Lint slightly to allow subclasses of the required types - - SPEC change to document rack.input binary mode in greator detail + - SPEC change to document rack.input binary mode in greater detail - SPEC define optional rack.logger specification - File servers support X-Cascade header - Imported Config middleware diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d517f78..b0bf9ab6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ Rack is work of [hundreds of contributors](https://github.com/rack/rack/graphs/c #### Fork the Project -Fork the [project on Github](https://github.com/rack/rack) and check out your copy. +Fork the [project on GitHub](https://github.com/rack/rack) and check out your copy. ``` git clone https://github.com/contributor/rack.git diff --git a/lib/rack/deflater.rb b/lib/rack/deflater.rb index 7752d17e..8e18e160 100644 --- a/lib/rack/deflater.rb +++ b/lib/rack/deflater.rb @@ -118,7 +118,7 @@ module Rack gzip.close end - # Call the block passed to #each with the the gzipped data. + # Call the block passed to #each with the gzipped data. def write(data) @writer.call(data) end diff --git a/lib/rack/response.rb b/lib/rack/response.rb index d621587c..2b7057a2 100644 --- a/lib/rack/response.rb +++ b/lib/rack/response.rb @@ -48,8 +48,8 @@ module Rack # construct a buffered response object containing using that string as the # initial contents of the buffer. # - # Otherwise it is expected +body+ conforms to the normal requiremnets of a - # Rack repsonse body, typically implementing one of +each+ (enumerable + # Otherwise it is expected +body+ conforms to the normal requirements of a + # Rack response body, typically implementing one of +each+ (enumerable # body) or +call+ (streaming body). # # The +status+ defaults to +200+ which is the "OK" HTTP status code. You diff --git a/test/spec_deflater.rb b/test/spec_deflater.rb index ed22c1fb..6cac22ac 100644 --- a/test/spec_deflater.rb +++ b/test/spec_deflater.rb @@ -31,7 +31,7 @@ describe Rack::Deflater do # # [expected_status] expected response status, e.g. 200, 304 # [expected_body] expected response body - # [accept_encoing] what Accept-Encoding header to send and expect, e.g. + # [accept_encoding] what Accept-Encoding header to send and expect, e.g. # 'deflate' - accepts and expects deflate encoding in response # { 'gzip' => nil } - accepts gzip but expects no encoding in response # [options] hash of request options, i.e. diff --git a/test/spec_multipart.rb b/test/spec_multipart.rb index 8a214111..1510b2a2 100644 --- a/test/spec_multipart.rb +++ b/test/spec_multipart.rb @@ -193,7 +193,7 @@ describe Rack::Multipart do Timeout::timeout(10) { Rack::Multipart.parse_multipart(env) } end - it 'raises an EOF error on content-length mistmatch' do + it 'raises an EOF error on content-length mismatch' do env = Rack::MockRequest.env_for("/", multipart_fixture(:empty)) env['rack.input'] = StringIO.new assert_raises(EOFError) do diff --git a/test/spec_show_exceptions.rb b/test/spec_show_exceptions.rb index d0fdf0fd..64c5bc19 100644 --- a/test/spec_show_exceptions.rb +++ b/test/spec_show_exceptions.rb @@ -37,7 +37,7 @@ describe Rack::ShowExceptions do req = Rack::MockRequest.new( show_exceptions( - lambda{|env| raise RuntimeError, "foo", ["nonexistant.rb:2:in `a': adf (RuntimeError)", "bad-backtrace"] } + lambda{|env| raise RuntimeError, "foo", ["nonexistent.rb:2:in `a': adf (RuntimeError)", "bad-backtrace"] } )) res = req.get("/", "HTTP_ACCEPT" => "text/html") @@ -49,7 +49,7 @@ describe Rack::ShowExceptions do assert_includes(res.body, 'ShowExceptions') assert_includes(res.body, 'No GET data') assert_includes(res.body, 'No POST data') - assert_includes(res.body, 'nonexistant.rb') + assert_includes(res.body, 'nonexistent.rb') refute_includes(res.body, 'bad-backtrace') end |