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 30be120 commit 9aa005d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rack-linkeddata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |gem|
gem.requirements = []
gem.add_runtime_dependency 'linkeddata', '~> 3.3'
gem.add_runtime_dependency 'rack-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 @@ -99,6 +99,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 @@ -118,6 +119,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 9aa005d

Please sign in to comment.