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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee95e33a4d74875095dd510623500145b7cd5af0c7727ec0a56232fc5e28260f
4
- data.tar.gz: 4aa8d3e0484bcd27da118d86ba8b36ea87b9d198d9287fc6d14caac61ae041fe
3
+ metadata.gz: 2a1dfcc57a6bae5c2e5bd01f7e6165218220f04258ac8fab3ab256b685454bb6
4
+ data.tar.gz: 724dbe5463d5bf223ef9652e566b448f38a4270d0131446e302236685ba43710
5
5
  SHA512:
6
- metadata.gz: 10192508ea9438ef5bdd8c5c9b4c522cec0ec5b8e76e8584d21756e87b5560579172141ea11f02b5920c33fcc4d10aa8d9ad9d2d86dabe36585a859be74321e2
7
- data.tar.gz: 33a76e31f51eaad74c9a91db2b1e2427dfeae29614acfb31e21cb7c7ac4c8d5f997a4f249f79e2f08e176d2ab8fa1eb0a8bfcbb429218d5a8f7ebf9e3179482c
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
@@ -4,5 +4,5 @@
4
4
  module Hooks
5
5
  # Current version of the Hooks webhook framework
6
6
  # @return [String] The version string following semantic versioning
7
- VERSION = "0.0.7".freeze
7
+ VERSION = "0.1.0".freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooks-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - github