lib/cuba.rb in cuba-4.0.1 vs lib/cuba.rb in cuba-4.0.3
- old
+ new
@@ -8,11 +8,11 @@
SEGMENT = "([^\\/]+)".freeze
DEFAULT = "text/html; charset=utf-8".freeze
REGEXES = Hash.new { |h, pattern| h[pattern] = /\A\/(#{pattern})(\/|\z)/ }
class Response
- LOCATION = "Location".freeze
+ LOCATION = "location".freeze
module ContentType
HTML = "text/html".freeze # :nodoc:
TEXT = "text/plain".freeze # :nodoc:
JSON = "application/json".freeze # :nodoc:
@@ -89,11 +89,11 @@
def self.app
@app ||= Rack::Builder.new
end
- def self.use(middleware, *args, &block)
- app.use(middleware, *args, &block)
+ def self.use(middleware, *args, **kwargs, &block)
+ app.use(middleware, *args, **kwargs, &block)
end
def self.define(&block)
app.run new(&block)
end