lib/roda.rb in roda-3.0.0 vs lib/roda.rb in roda-3.1.0

- old
+ new

@@ -223,17 +223,10 @@ def route(&block) @route_block = block build_rack_app end - def thread_safe_cache - # :nocov: - RodaPlugins.warn "Roda.thread_safe_cache is deprecated and will be removed from Roda 3.1." - RodaCache.new - # :nocov: - end - # Add a middleware to use for the rack application. Must be # called before calling #route to have an effect. Example: # # Roda.use Rack::Session::Cookie, secret: ENV['secret'] def use(*args, &block) @@ -893,18 +886,9 @@ if type.is_a?(Array) type.any?{|t| match_method(t)} else type.to_s.upcase == @env["REQUEST_METHOD"] end - end - - # Whether string matchers are used verbatim, without handling - # placeholders via colons. - def placeholder_string_matcher? - # :nocov: - RodaPlugins.warn "Roda::RodaRequest.placeholder_string_matcher? is deprecated and will be removed from Roda 3.1." - false - # :nocov: end # Handle an unsupported matcher. def unsupported_matcher(matcher) raise RodaError, "unsupported matcher: #{matcher.inspect}"