Skip to content

Commit e8a3a3b

Browse files
committed
release: add Rack application skeleton of webhook auto signer
GitHub: GH-43 In this PR, we set up a rack application skeleton of webhook auto signer. At the following PRs, we will implement the logic.
1 parent c704067 commit e8a3a3b

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Gemfile.lock
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "rack"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require "pathname"
2+
3+
base_dir = Pathname(__FILE__).dirname
4+
lib_dir = base_dir + "lib"
5+
6+
$LOAD_PATH.unshift(lib_dir.to_s)
7+
8+
require "webhook-signer"
9+
10+
run WebhookSigner::App.new
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "webhook-signer/app"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module WebhookSigner
2+
class App
3+
def call(env)
4+
[200, {}, ["Hello Webhook Signer"]]
5+
end
6+
end
7+
end

0 commit comments

Comments
 (0)