lib/roda.rb in roda-3.41.0 vs lib/roda.rb in roda-3.42.0
- old
+ new
@@ -290,10 +290,13 @@
self::RodaResponse.send(:include, plugin::ResponseMethods) if defined?(plugin::ResponseMethods)
self::RodaResponse.extend(plugin::ResponseClassMethods) if defined?(plugin::ResponseClassMethods)
plugin.configure(self, *args, &block) if plugin.respond_to?(:configure)
@app = nil
end
+ # :nocov:
+ ruby2_keywords(:plugin) if respond_to?(:ruby2_keywords, true)
+ # :nocov:
# Setup routing tree for the current Roda application, and build the
# underlying rack application using the stored middleware. Requires
# a block, which is yielded the request. By convention, the block
# argument should be named +r+. Example:
@@ -325,9 +328,12 @@
# Roda.use Rack::ShowExceptions
def use(*args, &block)
@middleware << [args, block].freeze
@app = nil
end
+ # :nocov:
+ ruby2_keywords(:use) if respond_to?(:ruby2_keywords, true)
+ # :nocov:
private
# Return the number of required argument, optional arguments,
# whether the callable accepts any additional arguments,