From 4d3895490d0790b5aa2ca5d3387836a4bc4e3788 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Mon, 4 Nov 2024 15:45:01 -0800 Subject: [PATCH] Depend on Rack ~> 3.1 instead of 2.2. --- rack-rdf.gemspec | 2 +- spec/rack_spec.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rack-rdf.gemspec b/rack-rdf.gemspec index ab52efa..2fb9a08 100755 --- a/rack-rdf.gemspec +++ b/rack-rdf.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 3.0' gem.requirements = [] gem.add_runtime_dependency 'rdf', '~> 3.3' - gem.add_runtime_dependency 'rack', '>= 2.2', '< 4' + gem.add_runtime_dependency 'rack', '~> 3.1' gem.add_development_dependency 'yard' , '~> 0.9' gem.add_development_dependency 'rspec', '~> 3.12' diff --git a/spec/rack_spec.rb b/spec/rack_spec.rb index 52027ee..e95e75d 100644 --- a/spec/rack_spec.rb +++ b/spec/rack_spec.rb @@ -96,6 +96,7 @@ def app expect(options).to include(:link) link = options[:link] expect(link).to eq %(; rel="self") + '' end get '/', {}, {"HTTP_ACCEPT" => 'application/n-triples', "HTTP_LINK" => %(; rel="self")} end @@ -115,6 +116,7 @@ def app expect(options).to include(:accept_params) accept_params = options[:accept_params] expect(accept_params).to include(profile: "http://www.w3.org/ns/json-ld#compacted http://example.org/white-listed") + '' end get '/', {}, {"HTTP_ACCEPT" => header} end