foobara-rack-connector 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/foobara/command_connectors/http/rack/request.rb +3 -2
- data/lib/foobara/rack_connector.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f042dc5397bf4d3dd4feb1c4e81dd04762b7716610f45f21a98270216312578
|
4
|
+
data.tar.gz: 3816c8b1d09e7553c2417df3f2acf5ab1fb4f86bdcc4da1609789f14e92c18bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71884048e70648f9c798a325ede602b9c29bc8577a61d117b89c50f90288f16911d13ffa91370272108f05c302fe39a8daac396fce5152ea52d81f5d7e634809
|
7
|
+
data.tar.gz: e27128fa0317013a99606d58a7704f44f74fb57e8964d7a22e9bd0b8493a71416033f27e5de21607259aef08995beb08c678fcb5e7c43315e1ce39a3ae50fde4
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,7 @@ module Foobara
|
|
5
5
|
class Request < Http::Request
|
6
6
|
attr_accessor :env
|
7
7
|
|
8
|
-
def initialize(env)
|
8
|
+
def initialize(env, prefix: nil)
|
9
9
|
self.env = env
|
10
10
|
|
11
11
|
scheme = if env["HTTP_X_FORWARDED_PROTO"] == "https" || env["HTTPS"] == "on"
|
@@ -25,7 +25,8 @@ module Foobara
|
|
25
25
|
body: env["rack.input"]&.read || "",
|
26
26
|
headers: env.select { |s| s.start_with?("HTTP_") },
|
27
27
|
cookies: env["HTTP_COOKIE"],
|
28
|
-
remote_ip: env["REMOTE_ADDR"]
|
28
|
+
remote_ip: env["REMOTE_ADDR"],
|
29
|
+
prefix:
|
29
30
|
)
|
30
31
|
end
|
31
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-rack-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|