Skip to content

Commit

Permalink
Add example to try and reproduce failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 17, 2024
1 parent 59eb4bc commit d151f47
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/pgfault/config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'pg'

run do |env|
connection = PG.connect(dbname: 'test')
connection.close

[200, {"Content-Type" => "text/plain"}, ["Hello, World!"]]
end
11 changes: 11 additions & 0 deletions examples/pgfault/falcon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

require 'pg'
require 'falcon/environment/rack'

connection = PG.connect(dbname: 'test')
pp connection
connection.close

service "hello.localhost" do
include Falcon::Environment::Rack
end
83 changes: 83 additions & 0 deletions examples/pgfault/gems.locked
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
GEM
remote: https://rubygems.org/
specs:
async (2.11.0)
console (~> 1.25, >= 1.25.2)
fiber-annotation
io-event (~> 1.5, >= 1.5.1)
timers (~> 4.1)
async-container (0.18.2)
async (~> 2.10)
async-http (0.66.3)
async (>= 2.10.2)
async-pool (>= 0.6.1)
io-endpoint (~> 0.10, >= 0.10.3)
io-stream (~> 0.4)
protocol-http (~> 0.26.0)
protocol-http1 (~> 0.19.0)
protocol-http2 (~> 0.17.0)
traces (>= 0.10.0)
async-http-cache (0.4.3)
async-http (~> 0.56)
async-pool (0.6.1)
async (>= 1.25)
async-service (0.12.0)
async
async-container (~> 0.16)
console (1.25.2)
fiber-annotation
fiber-local (~> 1.1)
json
falcon (0.47.6)
async
async-container (~> 0.18)
async-http (~> 0.66, >= 0.66.3)
async-http-cache (~> 0.4.0)
async-service (~> 0.10)
bundler
localhost (~> 1.1)
openssl (~> 3.0)
process-metrics (~> 0.2.0)
protocol-rack (~> 0.5)
samovar (~> 2.3)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
fiber-storage
fiber-storage (0.1.0)
io-endpoint (0.10.3)
io-event (1.5.1)
io-stream (0.4.0)
json (2.7.2)
localhost (1.3.1)
mapping (1.1.1)
openssl (3.2.0)
pg (1.5.6)
process-metrics (0.2.1)
console (~> 1.8)
samovar (~> 2.1)
protocol-hpack (1.4.3)
protocol-http (0.26.5)
protocol-http1 (0.19.1)
protocol-http (~> 0.22)
protocol-http2 (0.17.0)
protocol-hpack (~> 1.4)
protocol-http (~> 0.18)
protocol-rack (0.5.1)
protocol-http (~> 0.23)
rack (>= 1.0)
rack (3.0.11)
samovar (2.3.0)
console (~> 1.0)
mapping (~> 1.0)
timers (4.3.5)
traces (0.11.1)

PLATFORMS
arm64-darwin-22

DEPENDENCIES
falcon
pg

BUNDLED WITH
2.5.9
4 changes: 4 additions & 0 deletions examples/pgfault/gems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "pg"
gem "falcon"

0 comments on commit d151f47

Please sign in to comment.