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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01d260aa5f3a40974d4449bdee362a1c43859c3210a6579b267c7a34fe5a86d0
4
- data.tar.gz: 4516a689f2d82fb5c0ed87e0274e75d6248a4436e9ffaecfa3050c27c02c97ac
3
+ metadata.gz: 1f042dc5397bf4d3dd4feb1c4e81dd04762b7716610f45f21a98270216312578
4
+ data.tar.gz: 3816c8b1d09e7553c2417df3f2acf5ab1fb4f86bdcc4da1609789f14e92c18bb
5
5
  SHA512:
6
- metadata.gz: 9d27b4a21996d7bd33b48c6836cfe4faa908398c3365b1a059a4cf10b6eb1f4bd43765dc4bef1c8d9818f8cc1adb9ca3972d84a02c9de7125aadd9743445c7b2
7
- data.tar.gz: 278d342dbc2a78e94264830885844b9caae2e9b3b8609649d2eb2841558c9cf5376eb308e06190f571ae467a4c69110ad3b5512436f011011e1572bccbabada9
6
+ metadata.gz: 71884048e70648f9c798a325ede602b9c29bc8577a61d117b89c50f90288f16911d13ffa91370272108f05c302fe39a8daac396fce5152ea52d81f5d7e634809
7
+ data.tar.gz: e27128fa0317013a99606d58a7704f44f74fb57e8964d7a22e9bd0b8493a71416033f27e5de21607259aef08995beb08c678fcb5e7c43315e1ce39a3ae50fde4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.3] - 2024-10-30
2
+
3
+ - Support path prefixes
4
+
1
5
  ## [0.0.2] - 2024-10-26
2
6
 
3
7
  - Make use of foobara-http-command-connector gem
@@ -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
@@ -1,5 +1,4 @@
1
1
  require "foobara/all"
2
- require "foobara/command_connectors"
3
2
  require "foobara/http_command_connector"
4
3
 
5
4
  module Foobara
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.2
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-26 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foobara