Skip to content

Commit

Permalink
Merge branch 'master' into update-uri
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadium authored Dec 2, 2024
2 parents 1f46769 + 7481f31 commit 8406564
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
linzer (0.6.0)
ed25519 (~> 1.3, >= 1.3.0)
openssl (~> 3.0, >= 3.0.0)
rack (~> 3.0)
rack (>= 2.2, < 4.0)
starry (~> 0.2)
uri (~> 1.0, >= 1.0.2)

Expand All @@ -25,7 +25,7 @@ GEM
ast (~> 2.4.1)
racc
racc (1.7.3)
rack (3.0.11)
rack (3.1.8)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.0)
Expand Down
3 changes: 2 additions & 1 deletion lib/linzer/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def build(verb, uri = "/", params = {}, headers = {})
request_method = Rack.const_get(verb.upcase)
args = {
"REQUEST_METHOD" => request_method,
"PATH_INFO" => uri.to_str
"PATH_INFO" => uri.to_str,
"rack.input" => StringIO.new
}

Rack::Request.new(build_rack_env(headers).merge(args))
Expand Down
4 changes: 2 additions & 2 deletions linzer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "openssl", "~> 3.0", ">= 3.0.0"
spec.add_runtime_dependency "ed25519", "~> 1.3", ">= 1.3.0"
spec.add_runtime_dependency "starry", "~> 0.2"
spec.add_runtime_dependency "rack", "~> 3.0"
spec.add_runtime_dependency "rack", ">= 2.2", "< 4.0"
spec.add_runtime_dependency "uri", "~> 1.0", ">= 1.0.2"
end
end

0 comments on commit 8406564

Please sign in to comment.