foobara-rack-connector 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25473dde6a6f830d467860e5dde09dd06e860762e3f6c0e35cbfb06e93dcb4b2
4
- data.tar.gz: f11ae97ed3312ccce396fd935feab014c8b7a6846d7779b75555cd1d211eaa04
3
+ metadata.gz: 4eabee68f36c2d26b26768e112457db8e621dcd5b1f3e3693e973ef829397f92
4
+ data.tar.gz: 92f3400c21d98e9cb4f542e505c8af5908889df641a43e9ed6d4a9bb7c98fcbc
5
5
  SHA512:
6
- metadata.gz: 6b99dae61381a6c93bc3164b112d627b4cd4fbc3ef01d7b40c8134af5769404d933c17648a1eae0f7420d7d932defd7373688eafe68472f509c7fa37edc7a8c7
7
- data.tar.gz: '0939b8bcb78b8a7e76e2af9354e092bd2a4b6db9d963ed06280c969e31b0279deb67f300ca7b033489cd3ca5197095a7963aec73a61f66d0193a73da39af90f4'
6
+ metadata.gz: f1fd8cde714d34c8d9d94f832482d5aff4c16f4533affafa6f2a475eb72bb140fe570124d934d577b1b9f2e7245ee99bac5a6ef28e539bf76cacc36788328711
7
+ data.tar.gz: 17d0eb4ce05d2ac1adbd56605ccd3822dd992cb7c9e1f4e2df898a04051168180bfe0bbab678be4322f43ff2242829cf5704eae70d9dcc56d711d1f313a1d196
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.8] - 2025-04-17
2
+
3
+ - Add a #run_puma convenience method for demos
4
+
5
+ ## [0.0.6] - 2025-04-15
6
+
7
+ - Make headers a standard downcased form for now instead of mixed-casing
8
+
1
9
  ## [0.0.5] - 2025-03-29
2
10
 
3
11
  - Store cookies on request as a hash
@@ -0,0 +1,18 @@
1
+ module Foobara
2
+ module CommandConnectors
3
+ class Http < Foobara::CommandConnector
4
+ class Rack < Http
5
+ # Just a convenience method for demos. In real projects use rackup/config.ru
6
+ # or set it all up with `foob g rack-connector`
7
+ def run_puma
8
+ # :nocov:
9
+ require "puma"
10
+ require "rack/handler/puma"
11
+
12
+ ::Rack::Handler::Puma.run(self)
13
+ # :nocov:
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-rack-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -63,6 +63,7 @@ files:
63
63
  - LICENSE-MIT.txt
64
64
  - LICENSE.txt
65
65
  - README.md
66
+ - lib/foobara/command_connectors/http/puma_runner.rb
66
67
  - lib/foobara/command_connectors/http/rack.rb
67
68
  - lib/foobara/command_connectors/http/rack/request.rb
68
69
  - lib/foobara/rack_connector.rb