claude_hooks 0.1.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8eb1adbb7a091ea436fa56940baf40407eb2d0f148760d7f1c470d4577794744
4
+ data.tar.gz: cf79657245bd18e98ba407d49d49b4fe539fd7feb4be4daa46c4cee00e5ea1a7
5
+ SHA512:
6
+ metadata.gz: c0303fbf858d8869ff0a326ce5031193f684cd6ca76d1fce9657b52439f1a789b06cbdcdf161663478b65e35455f5d9e756bd595eeb1e065d47be6e8936782e1
7
+ data.tar.gz: 8a134f14432693883b43576f7c66b9e9e68acd4f0c97e10be1ad91893a2e8f1d25cc30445d41afd087a923272105e32bb0df110f4834d3930c275d4afc263181
data/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2025-08-17
9
+
10
+ ### Added
11
+ - Initial release of claude_hooks gem
12
+ - Ruby DSL framework for creating Claude Code hooks
13
+ - Support for all 8 hook types: UserPromptSubmit, PreToolUse, PostToolUse, Notification, Stop, SubagentStop, PreCompact, SessionStart
14
+ - Environment-based configuration with `RUBY_CLAUDE_HOOKS_` prefix
15
+ - Session-based logging system
16
+ - Intelligent output merging for multiple hook scripts
17
+ - Comprehensive API for each hook type
18
+ - Examples directory with working hook scripts
19
+ - Zero-configuration setup with smart defaults
20
+
21
+ ### Changed
22
+ - Migrated from local file-based configuration to gem-based distribution
23
+ - Updated all hook classes to use `ClaudeHooks::` namespace
24
+ - Replaced `ClaudeConfig::ConfigLoader` with `ClaudeHooks::Configuration`
25
+ - Moved `SessionLogger` to `ClaudeHooks::Logger`
26
+
27
+ ### Migration Notes
28
+ - Update `require_relative` statements to `require 'claude_hooks'`
29
+ - Change hook class inheritance from `HookTypes::Base` to `ClaudeHooks::Base`
30
+ - Replace specific hook classes: `UserPromptSubmitHook` → `ClaudeHooks::UserPromptSubmit`, etc.
31
+ - Set environment variables with `RUBY_CLAUDE_HOOKS_` prefix instead of relying on config file