From 382840ab4efa173949771b01d17421d82b62b606 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Thu, 26 Jun 2025 14:16:20 -0700 Subject: [PATCH 1/2] bump version --- Gemfile.lock | 2 +- lib/hooks/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ba9b921..10c52e8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - hooks-ruby (0.6.1) + hooks-ruby (0.6.2) dry-schema (~> 1.14, >= 1.14.1) grape (~> 2.3) puma (~> 6.6) diff --git a/lib/hooks/version.rb b/lib/hooks/version.rb index 1b75120..d5abc1a 100644 --- a/lib/hooks/version.rb +++ b/lib/hooks/version.rb @@ -4,5 +4,5 @@ module Hooks # Current version of the Hooks webhook framework # @return [String] The version string following semantic versioning - VERSION = "0.6.1".freeze + VERSION = "0.6.2".freeze end From 39c6a200e114896f353d178a4c6ea5fd25c52c13 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Thu, 26 Jun 2025 14:18:38 -0700 Subject: [PATCH 2/2] fix: ensure production mode is correctly set based on environment case --- lib/hooks/core/builder.rb | 1 + lib/hooks/core/config_loader.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hooks/core/builder.rb b/lib/hooks/core/builder.rb index ea5d460..7756a16 100644 --- a/lib/hooks/core/builder.rb +++ b/lib/hooks/core/builder.rb @@ -55,6 +55,7 @@ def build @log.info "starting hooks server v#{Hooks::VERSION}" @log.info "config: #{endpoints.size} endpoints loaded" @log.info "environment: #{config[:environment]}" + @log.info "production mode: #{config[:production]}" @log.info "available endpoints: #{endpoints.map { |e| e[:path] }.join(', ')}" # Build and return Grape API class diff --git a/lib/hooks/core/config_loader.rb b/lib/hooks/core/config_loader.rb index c04d8bd..e55ab91 100644 --- a/lib/hooks/core/config_loader.rb +++ b/lib/hooks/core/config_loader.rb @@ -69,7 +69,7 @@ def self.load(config_path: nil) # Convert string keys to symbols for consistency config = symbolize_keys(config) - if config[:environment] == "production" + if config[:environment].downcase == "production" config[:production] = true else config[:production] = false