brew vendor-gems: commit updates.
This commit is contained in:
parent
bc8c45d388
commit
62653c3714
@ -65,7 +65,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/parlour-8.0.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/patchelf-1.3.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.6.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/pry-0.14.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rack-2.2.3.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rack-2.2.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unparser-0.6.4/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rbi-0.0.14/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-15/2.6.0-static/rdiscount-2.2.0.2"
|
||||
|
||||
@ -26,6 +26,8 @@ module Rack
|
||||
def call(env)
|
||||
status, headers, body = @app.call(env)
|
||||
|
||||
headers = Utils::HeaderHash[headers]
|
||||
|
||||
if etag_status?(status) && etag_body?(body) && !skip_caching?(headers)
|
||||
original_body = body
|
||||
digest, new_body = digest_body(body)
|
||||
@ -48,10 +48,10 @@ module Rack
|
||||
|
||||
## and returns an Array of exactly three values:
|
||||
ary = @app.call(env)
|
||||
assert("response #{ary.inspect} is not an Array , but #{ary.class}") {
|
||||
assert("response is not an Array, but #{ary.class}") {
|
||||
ary.kind_of? Array
|
||||
}
|
||||
assert("response array #{ary.inspect} has #{ary.size} elements instead of 3") {
|
||||
assert("response array has #{ary.size} elements instead of 3") {
|
||||
ary.size == 3
|
||||
}
|
||||
|
||||
@ -16,6 +16,10 @@ module Rack
|
||||
# sequence.
|
||||
class InvalidParameterError < ArgumentError; end
|
||||
|
||||
# ParamsTooDeepError is the error that is raised when params are recursively
|
||||
# nested over the specified limit.
|
||||
class ParamsTooDeepError < RangeError; end
|
||||
|
||||
def self.make_default(key_space_limit, param_depth_limit)
|
||||
new Params, key_space_limit, param_depth_limit
|
||||
end
|
||||
@ -81,7 +85,7 @@ module Rack
|
||||
# the structural types represented by two different parameter names are in
|
||||
# conflict, a ParameterTypeError is raised.
|
||||
def normalize_params(params, name, v, depth)
|
||||
raise RangeError if depth <= 0
|
||||
raise ParamsTooDeepError if depth <= 0
|
||||
|
||||
name =~ %r(\A[\[\]]*([^\[\]]+)\]*)
|
||||
k = $1 || ''
|
||||
@ -168,7 +172,7 @@ module Rack
|
||||
|
||||
def []=(key, value)
|
||||
@size += key.size if key && !@params.key?(key)
|
||||
raise RangeError, 'exceeded available parameter key space' if @size > @limit
|
||||
raise ParamsTooDeepError, 'exceeded available parameter key space' if @size > @limit
|
||||
@params[key] = value
|
||||
end
|
||||
|
||||
@ -22,6 +22,9 @@ module Rack
|
||||
COMMON_SEP = QueryParser::COMMON_SEP
|
||||
KeySpaceConstrainedParams = QueryParser::Params
|
||||
|
||||
RFC2822_DAY_NAME = [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat' ]
|
||||
RFC2822_MONTH_NAME = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ]
|
||||
|
||||
class << self
|
||||
attr_accessor :default_query_parser
|
||||
end
|
||||
@ -327,8 +330,8 @@ module Rack
|
||||
# weekday and month.
|
||||
#
|
||||
def rfc2109(time)
|
||||
wday = Time::RFC2822_DAY_NAME[time.wday]
|
||||
mon = Time::RFC2822_MONTH_NAME[time.mon - 1]
|
||||
wday = RFC2822_DAY_NAME[time.wday]
|
||||
mon = RFC2822_MONTH_NAME[time.mon - 1]
|
||||
time.strftime("#{wday}, %d-#{mon}-%Y %H:%M:%S GMT")
|
||||
end
|
||||
|
||||
@ -20,7 +20,7 @@ module Rack
|
||||
VERSION.join(".")
|
||||
end
|
||||
|
||||
RELEASE = "2.2.3.1"
|
||||
RELEASE = "2.2.4"
|
||||
|
||||
# Return the Rack release as a dotted string.
|
||||
def self.release
|
||||
Loading…
x
Reference in New Issue
Block a user