foobara-rack-connector 0.0.2 → 0.0.4

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: 2019b102c775b33b1162e8c5932b0e7c325f4040b62c044131789b63e05e849a
4
+ data.tar.gz: 731c604e23f4c79194d4e041c014bb0d6b3c24669736c75157b27bb36c229333
5
5
  SHA512:
6
- metadata.gz: 9d27b4a21996d7bd33b48c6836cfe4faa908398c3365b1a059a4cf10b6eb1f4bd43765dc4bef1c8d9818f8cc1adb9ca3972d84a02c9de7125aadd9743445c7b2
7
- data.tar.gz: 278d342dbc2a78e94264830885844b9caae2e9b3b8609649d2eb2841558c9cf5376eb308e06190f571ae467a4c69110ad3b5512436f011011e1572bccbabada9
6
+ metadata.gz: 61825f9ce8a772d87a64a4f43bb1866d79f087882a3232069b24fc1b2e266c08aceb791db385653848c42a86a7d3fbbb78b40f8870f0c210ffd80ae6de361c8c
7
+ data.tar.gz: 97ca7430daa78455ce8452165d358d8e41431caa10ca5ee635a1e06ee2d4e6fa5839199be3f8eeed5c284b9cc62126ba15187ca0fdcdde8b568ab8566e99379d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.4] - 2025-01-07
2
+
3
+ - Bump Ruby to 3.4.1
4
+
5
+ ## [0.0.3] - 2024-10-30
6
+
7
+ - Support path prefixes
8
+
1
9
  ## [0.0.2] - 2024-10-26
2
10
 
3
11
  - 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,13 @@
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-26 00:00:00.000000000 Z
10
+ date: 2025-01-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: foobara
@@ -89,7 +88,6 @@ metadata:
89
88
  source_code_uri: https://github.com/foobara/rack-connector
90
89
  changelog_uri: https://github.com/foobara/rack-connector/CHANGELOG.md
91
90
  rubygems_mfa_required: 'true'
92
- post_install_message:
93
91
  rdoc_options: []
94
92
  require_paths:
95
93
  - lib
@@ -97,15 +95,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
95
  requirements:
98
96
  - - ">="
99
97
  - !ruby/object:Gem::Version
100
- version: 3.2.2
98
+ version: 3.4.0
101
99
  required_rubygems_version: !ruby/object:Gem::Requirement
102
100
  requirements:
103
101
  - - ">="
104
102
  - !ruby/object:Gem::Version
105
103
  version: '0'
106
104
  requirements: []
107
- rubygems_version: 3.5.22
108
- signing_key:
105
+ rubygems_version: 3.6.2
109
106
  specification_version: 4
110
107
  summary: Exposes foobara commands and entities via rack interface.
111
108
  test_files: []