Skip to content

Commit 7fd6100

Browse files
authored
Merge pull request #69 from github/production-fixes
config:production setting fixes
2 parents d2c451e + 39c6a20 commit 7fd6100

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
hooks-ruby (0.6.1)
4+
hooks-ruby (0.6.2)
55
dry-schema (~> 1.14, >= 1.14.1)
66
grape (~> 2.3)
77
puma (~> 6.6)

lib/hooks/core/builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def build
5555
@log.info "starting hooks server v#{Hooks::VERSION}"
5656
@log.info "config: #{endpoints.size} endpoints loaded"
5757
@log.info "environment: #{config[:environment]}"
58+
@log.info "production mode: #{config[:production]}"
5859
@log.info "available endpoints: #{endpoints.map { |e| e[:path] }.join(', ')}"
5960

6061
# Build and return Grape API class

lib/hooks/core/config_loader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def self.load(config_path: nil)
6969
# Convert string keys to symbols for consistency
7070
config = symbolize_keys(config)
7171

72-
if config[:environment] == "production"
72+
if config[:environment].downcase == "production"
7373
config[:production] = true
7474
else
7575
config[:production] = false

lib/hooks/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
module Hooks
55
# Current version of the Hooks webhook framework
66
# @return [String] The version string following semantic versioning
7-
VERSION = "0.6.1".freeze
7+
VERSION = "0.6.2".freeze
88
end

0 commit comments

Comments
 (0)