pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-rack www/ruby-rack: update to 2.2.2

branches:  trunk
changeset: 413505:ad665d2ce121
user:      taca <>
date:      Fri Mar 20 16:19:33 2020 +0000

www/ruby-rack: update to 2.2.2

Update ruby-rack to 2.2.2.

## [2.2.2] - 2020-02-11

### Fixed

- Fix incorrect `Rack::Request#host` value. ([#1591](, [@ioquatix](
- Revert `Rack::Handler::Thin` implementation. ([#1583](, [@jeremyevans](
- Double assignment is still needed to prevent an "unused variable" warning. ([#1589](, [@kamipo](
- Fix to handle same_site option for session pool. ([#1587](, [@kamipo](

## [2.2.1] - 2020-02-09

### Fixed

- Rework `Rack::Request#ip` to handle empty `forwarded_for`. ([#1577](, [@ioquatix](

## [2.2.0] - 2020-02-08

### SPEC Changes

- `rack.session` request environment entry must respond to `to_hash` and return unfrozen Hash. ([@jeremyevans](
- Request environment cannot be frozen. ([@jeremyevans](
- CGI values in the request environment with non-ASCII characters must use ASCII-8BIT encoding. ([@jeremyevans](
- Improve SPEC/lint relating to SERVER_NAME, SERVER_PORT and HTTP_HOST. ([#1561](, [@ioquatix](

### Added

- `rackup` supports multiple `-r` options and will require all arguments. ([@jeremyevans](
- `Server` supports an array of paths to require for the `:require` option. ([@khotta](
- `Files` supports multipart range requests. ([@fatkodima](
- `Multipart::UploadedFile` supports an IO-like object instead of using the filesystem, using `:filename` and `:io` options. ([@jeremyevans](
- `Multipart::UploadedFile` supports keyword arguments `:path`, `:content_type`, and `:binary` in addition to positional arguments. ([@jeremyevans](
- `Static` supports a `:cascade` option for calling the app if there is no matching file. ([@jeremyevans](
- `Session::Abstract::SessionHash#dig`. ([@jeremyevans](
- `Response.[]` and `MockResponse.[]` for creating instances using status, headers, and body. ([@ioquatix](
- Convenient cache and content type methods for `Rack::Response`. ([#1555](, [@ioquatix](

### Changed

- `Request#params` no longer rescues EOFError. ([@jeremyevans](
- `Directory` uses a streaming approach, significantly improving time to first byte for large directories. ([@jeremyevans](
- `Directory` no longer includes a Parent directory link in the root directory index. ([@jeremyevans](
- `QueryParser#parse_nested_query` uses original backtrace when reraising exception with new class. ([@jeremyevans](
- `ConditionalGet` follows RFC 7232 precedence if both If-None-Match and If-Modified-Since headers are provided. ([@jeremyevans](
- `.ru` files supports the `frozen-string-literal` magic comment. ([@eregon](
- Rely on autoload to load constants instead of requiring internal files, make sure to require 'rack' and not just 'rack/...'. ([@jeremyevans](
- `Etag` will continue sending ETag even if the response should not be cached. ([@henm](
- `Request#host_with_port` no longer includes a colon for a missing or empty port. ([@AlexWayfer](
- All handlers uses keywords arguments instead of an options hash argument. ([@ioquatix](
- `Files` handling of range requests no longer return a body that supports `to_path`, to ensure range requests are handled correctly. ([@jeremyevans](
- `Multipart::Generator` only includes `Content-Length` for files with paths, and `Content-Disposition` `filename` if the `UploadedFile` instance has one. 
- `Request#ssl?` is true for the `wss` scheme (secure websockets). ([@jeremyevans](
- `Rack::HeaderHash` is memoized by default. ([#1549](, [@ioquatix](
- `Rack::Directory` allow directory traversal inside root directory. ([#1417](, [@ThomasSevestre](
- Sort encodings by server preference. ([#1184](, [@ioquatix](, [@wjordan](
- Rework host/hostname/authority implementation in `Rack::Request`. `#host` and `#host_with_port` have been changed to correctly return IPv6 addresses formatted with square brackets, as defined by 
[RFC3986]( ([#1561](, [@ioquatix](
- `Rack::Builder` parsing options on first `#\` line is deprecated. ([#1574](, [@ioquatix](

### Removed

- `Directory#path` as it was not used and always returned nil. ([@jeremyevans](
- `BodyProxy#each` as it was only needed to work around a bug in Ruby <1.9.3. ([@jeremyevans](
- `URLMap::INFINITY` and `URLMap::NEGATIVE_INFINITY`, in favor of `Float::INFINITY`. ([@ch1c0t](
- Deprecation of `Rack::File`. It will be deprecated again in rack 2.2 or 3.0. ([@rafaelfranca](
- Support for Ruby 2.2 as it is well past EOL. ([@ioquatix](
- Remove `Rack::Files#response_body` as the implementation was broken. ([#1153](, [@ioquatix](
- Remove `SERVER_ADDR` which was never part of the original SPEC. ([#1573](, [@ioquatix](

### Fixed

- `Directory` correctly handles root paths containing glob metacharacters. ([@jeremyevans](
- `Cascade` uses a new response object for each call if initialized with no apps. ([@jeremyevans](
- `BodyProxy` correctly delegates keyword arguments to the body object on Ruby 2.7+. ([@jeremyevans](
- `BodyProxy#method` correctly handles methods delegated to the body object. ([@jeremyevans](
- `Request#host` and `Request#host_with_port` handle IPv6 addresses correctly. ([@AlexWayfer](
- `Lint` checks when response hijacking that `rack.hijack` is called with a valid object. ([@jeremyevans](
- `Response#write` correctly updates `Content-Length` if initialized with a body. ([@jeremyevans](
- `CommonLogger` includes `SCRIPT_NAME` when logging. ([@Erol](
- `Utils.parse_nested_query` correctly handles empty queries, using an empty instance of the params class instead of a hash. ([@jeremyevans](
- `Directory` correctly escapes paths in links. ([@yous](
- `Request#delete_cookie` and related `Utils` methods handle `:domain` and `:path` options in same call. ([@jeremyevans](
- `Request#delete_cookie` and related `Utils` methods do an exact match on `:domain` and `:path` options. ([@jeremyevans](
- `Static` no longer adds headers when a gzipped file request has a 304 response. ([@chooh](
- `ContentLength` sets `Content-Length` response header even for bodies not responding to `to_ary`. ([@jeremyevans](
- Thin handler supports options passed directly to `Thin::Controllers::Controller`. ([@jeremyevans](
- WEBrick handler no longer ignores `:BindAddress` option. ([@jeremyevans](
- `ShowExceptions` handles invalid POST data. ([@jeremyevans](
- Basic authentication requires a password, even if the password is empty. ([@jeremyevans](
- `Lint` checks response is array with 3 elements, per SPEC. ([@jeremyevans](
- Support for using `:SSLEnable` option when using WEBrick handler. (Gregor Melhorn)
- Close response body after buffering it when buffering. ([@ioquatix](
- Only accept `;` as delimiter when parsing cookies. ([@mrageh](
- `Utils::HeaderHash#clear` clears the name mapping as well. ([@raxoft](
- Support for passing `nil` ``, which notably fixes Rails' current `ActiveStorage::FileServer` implementation. ([@ioquatix](

### Documentation

- CHANGELOG updates. ([@aupajo](
- Added [CONTRIBUTING]( ([@dblock](

## [2.1.2] - 2020-01-27

- Fix multipart parser for some files to prevent denial of service ([@aiomaster](
- Fix `Rack::Builder#use` with keyword arguments ([@kamipo](
- Skip deflating in Rack::Deflater if Content-Length is 0 ([@jeremyevans](
- Remove `SessionHash#transform_keys`, no longer needed ([@pavel](
- Add to_hash to wrap Hash and Session classes ([@oleh-demyanyuk](
- Handle case where session id key is requested but missing ([@jeremyevans](

## [2.1.1] - 2020-01-12

- Remove `Rack::Chunked` from `Rack::Server` default middleware. ([#1475](, [@ioquatix](

## 2.1.0

_Note: There are many unreleased changes in Rack (`master` is around 300 commits ahead of `2-0-stable`), and below is not an exhaustive list. If you would like to help out and document some of the 
unreleased changes, PRs are welcome._

### Added

- Add support for `SameSite=None` cookie value. ([@hennikul](
- Add trailer headers. ([@eileencodes](
- Add MIME Types for video streaming. ([@styd](
- Add MIME Type for WASM. ([@buildrtech](
- Add `Early Hints(103)` to status codes. ([@egtra](
- Add `Too Early(425)` to status codes. ([@y-yagi]((
- Add `Bandwidth Limit Exceeded(509)` to status codes. ([@CJKinni](
- Add method for custom `ip_filter`. ([@svcastaneda](
- Add boot-time profiling capabilities to `rackup`. ([@tenderlove](
- Add multi mapping support for `X-Accel-Mappings` header. ([@yoshuki](
- Add `sync: false` option to `Rack::Deflater`. (Eric Wong)
- Add `Builder#freeze_app` to freeze application and all middleware instances. ([@jeremyevans](
- Add API to extract cookies from `Rack::MockResponse`. ([@petercline](

### Changed

- Don't propagate nil values from middleware. ([@ioquatix](
- Lazily initialize the response body and only buffer it if required. ([@ioquatix](
- Fix deflater zlib buffer errors on empty body part. ([@felixbuenemann](
- Set `X-Accel-Redirect` to percent-encoded path. ([@diskkid](
- Remove unnecessary buffer growing when parsing multipart. ([@tainoe](
- Expand the root path in `Rack::Static` upon initialization. ([@rosenfeld](
- Make `ShowExceptions` work with binary data. ([@axyjo](
- Use buffer string when parsing multipart requests. ([@janko-m](
- Support optional UTF-8 Byte Order Mark (BOM) in ([@mikegee](
- Handle `X-Forwarded-For` with optional port. ([@dpritchett](
- Use `Time#httpdate` format for Expires, as proposed by RFC 7231. ([@nanaya](
- Make `Utils.status_code` raise an error when the status symbol is invalid instead of `500`. ([@adambutler](
- Rename `Request::SCHEME_WHITELIST` to `Request::ALLOWED_SCHEMES`.
- Make `Multipart::Parser.get_filename` accept files with `+` in their name. ([@lucaskanashiro](
- Add Falcon to the default handler fallbacks. ([@ioquatix](
- Update codebase to avoid string mutations in preparation for `frozen_string_literals`. ([@pat](
- Change `MockRequest#env_for` to rely on the input optionally responding to `#size` instead of `#length`. ([@janko](
- Rename `Rack::File` -> `Rack::Files` and add deprecation notice. ([@postmodern](

### Removed

- Remove `to_ary` from Response ([@tenderlove](
- Deprecate `Rack::Session::Memcache` in favor of `Rack::Session::Dalli` from dalli gem ([@fatkodima](

### Documentation

- Update broken example in `Session::Abstract::ID` documentation. ([tonytonyjan](
- Add Padrino to the list of frameworks implmenting Rack. ([@wikimatze](
- Remove Mongrel from the suggested server options in the help output. ([@tricknotes](
- Replace `` and `` with ``. ([@twitnithegirl](
- Backfill `` from 2.0.1 to 2.0.7 releases. ([@drenmi](

## [2.0.8] - 2019-12-08

- [[CVE-2019-16782](] Prevent timing attacks targeted at session ID lookup. BREAKING CHANGE: Session ID is now a SessionId instance instead of a 
String. ([@tenderlove](, [@rafaelfranca](


 www/ruby-rack/Makefile |    4 +-
 www/ruby-rack/PLIST    |  123 +++---------------------------------------------
 www/ruby-rack/distinfo |   10 +-
 3 files changed, 15 insertions(+), 122 deletions(-)

diffs (179 lines):

diff -r f995293995aa -r ad665d2ce121 www/ruby-rack/Makefile
--- a/www/ruby-rack/Makefile    Fri Mar 20 16:12:03 2020 +0000
+++ b/www/ruby-rack/Makefile    Fri Mar 20 16:19:33 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2020/01/18 23:35:45 rillig Exp $
+# $NetBSD: Makefile,v 1.28 2020/03/20 16:19:33 taca Exp $
-DISTNAME=      rack-2.0.6
+DISTNAME=      rack-2.2.2
diff -r f995293995aa -r ad665d2ce121 www/ruby-rack/PLIST
--- a/www/ruby-rack/PLIST       Fri Mar 20 16:12:03 2020 +0000
+++ b/www/ruby-rack/PLIST       Fri Mar 20 16:19:33 2020 +0000
@@ -1,11 +1,12 @@
-@comment $NetBSD: PLIST,v 1.18 2017/06/04 15:10:09 taca Exp $
+@comment $NetBSD: PLIST,v 1.19 2020/03/20 16:19:33 taca Exp $
@@ -31,11 +32,13 @@
@@ -76,116 +79,6 @@
diff -r f995293995aa -r ad665d2ce121 www/ruby-rack/distinfo
--- a/www/ruby-rack/distinfo    Fri Mar 20 16:12:03 2020 +0000
+++ b/www/ruby-rack/distinfo    Fri Mar 20 16:19:33 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.23 2019/02/03 15:51:31 taca Exp $
+$NetBSD: distinfo,v 1.24 2020/03/20 16:19:33 taca Exp $
-SHA1 (rack-2.0.6.gem) = b15267e1f94e69238a00a6f1bd48fb7683c03a78
-RMD160 (rack-2.0.6.gem) = 6ef84180289c6fb8e4f0bebb778879578084b7b8
-SHA512 (rack-2.0.6.gem) = f1b93bbd16b7e44423c0977444183d9685e3c82e806304f304620731e5b4590920dcc363026277aa4b9ee0a2151c54570be341dcb9265517c7315ca4a504ef22
-Size (rack-2.0.6.gem) = 255488 bytes
+SHA1 (rack-2.2.2.gem) = ee6605164c9ee810ddf29f3bb23dc1bbc67b4de9
+RMD160 (rack-2.2.2.gem) = 4f096b37bcca1144f9d4840f41b2b3d05867d37d
+SHA512 (rack-2.2.2.gem) = 10cb4744a7f4ad90c63de7f0472a4d43c8973cd3352b766e2e36619b24c0196e230efecfb6256861e74e5e5ee89472baf43f8a70b24440127a20c7552da9af3d
+Size (rack-2.2.2.gem) = 151040 bytes

Home | Main Index | Thread Index | Old Index