diff --git a/grape-cache.gemspec b/grape-cache.gemspec index 64897c2..291931b 100644 --- a/grape-cache.gemspec +++ b/grape-cache.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency "digest-murmurhash", "~> 1.1" - spec.add_runtime_dependency "grape", "~> 0.18.0" + spec.add_runtime_dependency "grape", "~> 0.19.0" spec.add_development_dependency "bundler", "~> 1.6" spec.add_development_dependency "rake" diff --git a/lib/grape/cache/endpoint_cache_config.rb b/lib/grape/cache/endpoint_cache_config.rb index 0a57989..560cad4 100644 --- a/lib/grape/cache/endpoint_cache_config.rb +++ b/lib/grape/cache/endpoint_cache_config.rb @@ -58,7 +58,7 @@ def validate_cache(endpoint, middleware) private def cache_key_array(endpoint) - endpoint.declared(endpoint.params, {}, []) + endpoint.declared(endpoint.params) end def create_cache_key(endpoint) diff --git a/lib/grape/cache/patches.rb b/lib/grape/cache/patches.rb index 33b146c..b2b18c1 100644 --- a/lib/grape/cache/patches.rb +++ b/lib/grape/cache/patches.rb @@ -1,4 +1,4 @@ -# Updated for Grape 0.18 +# Updated for Grape 0.19 require 'grape'