hooks-ruby 0.0.7 → 0.1.0
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 +4 -4
- data/README.md +2 -2
- data/lib/hooks/core/config_loader.rb +1 -1
- data/lib/hooks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1dfcc57a6bae5c2e5bd01f7e6165218220f04258ac8fab3ab256b685454bb6
|
4
|
+
data.tar.gz: 724dbe5463d5bf223ef9652e566b448f38a4270d0131446e302236685ba43710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21c5cce4267f7d5209e495415c90b21375686e1f8d65d9d2080d3d3aa2677344a48cbc1167e4e83bff6a27223e6f12d891a6416ad122b54ee0d36832dd08311
|
7
|
+
data.tar.gz: 8b0fd57ee957d8eb8d58d3556f7f4ab145a7eb5cac82286c2cefd439a77bc28f6e03abe38484154b308b59b3b30e69bd749fec968fe053ebb0b4f9560ae0eb17
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ Here is a very high-level overview of how Hooks works:
|
|
42
42
|
health_path: /health
|
43
43
|
version_path: /version
|
44
44
|
|
45
|
-
environment: development
|
45
|
+
environment: development # will be overridden by the RACK_ENV environment variable if set
|
46
46
|
```
|
47
47
|
|
48
48
|
2. Then in your `config/endpoints` directory, you can define all your webhook endpoints in separate files. Here is an example of a simple endpoint configuration file:
|
@@ -196,7 +196,7 @@ health_path: /health
|
|
196
196
|
version_path: /version
|
197
197
|
|
198
198
|
# Runtime behavior
|
199
|
-
environment: development # or production
|
199
|
+
environment: development # or production (will be overridden by the RACK_ENV environment variable if set)
|
200
200
|
```
|
201
201
|
|
202
202
|
#### 2. Create your endpoint configurations
|
@@ -16,7 +16,7 @@ module Hooks
|
|
16
16
|
root_path: "/webhooks",
|
17
17
|
health_path: "/health",
|
18
18
|
version_path: "/version",
|
19
|
-
environment: "production",
|
19
|
+
environment: ENV.fetch("RACK_ENV", "production"),
|
20
20
|
production: true,
|
21
21
|
endpoints_dir: "./config/endpoints",
|
22
22
|
use_catchall_route: false,
|
data/lib/hooks/version.rb
CHANGED