Skip to content

Commit

Permalink
Depend on Rack ~> 3.1 instead of 2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Nov 4, 2024
1 parent bf7cc42 commit 4d38954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rack-rdf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions spec/rack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def app
expect(options).to include(:link)
link = options[:link]
expect(link).to eq %(<foo>; rel="self")
''
end
get '/', {}, {"HTTP_ACCEPT" => 'application/n-triples', "HTTP_LINK" => %(<foo>; rel="self")}
end
Expand All @@ -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
Expand Down

0 comments on commit 4d38954

Please sign in to comment.