Skip to content

Add complete Ruby gem implementation with TypeScript improvements#2

Merged
rfievet merged 1 commit intomasterfrom
feature/complete-ruby-implementation
Aug 3, 2025
Merged

Add complete Ruby gem implementation with TypeScript improvements#2
rfievet merged 1 commit intomasterfrom
feature/complete-ruby-implementation

Conversation

@rfievet
Copy link
Copy Markdown
Owner

@rfievet rfievet commented Aug 3, 2025

Ruby Implementation:

  • Complete Ruby gem with garde_fou package name
  • Multiple calling patterns: call(), [], protect()
  • GuardedClient mixin for class-level protection
  • Comprehensive RSpec test suite (30 tests)
  • Ruby-idiomatic API design
  • Release automation scripts
  • Full documentation and examples

TypeScript Improvements:

  • Python-like callable syntax: guard(fn, args)
  • Both direct call and explicit method patterns
  • Enhanced test coverage (22 tests)
  • Updated documentation with both calling patterns
  • Real-world usage examples

Features:

  • Call counting with configurable limits
  • Duplicate call detection
  • Flexible violation handlers (warn/raise/custom)
  • JSON/YAML configuration support
  • Cross-language API consistency

All three implementations (Python, TypeScript, Ruby) now have feature parity with language-specific optimizations.

Ruby Implementation:
- Complete Ruby gem with garde_fou package name
- Multiple calling patterns: call(), [], protect()
- GuardedClient mixin for class-level protection
- Comprehensive RSpec test suite (30 tests)
- Ruby-idiomatic API design
- Release automation scripts
- Full documentation and examples

TypeScript Improvements:
- Python-like callable syntax: guard(fn, args)
- Both direct call and explicit method patterns
- Enhanced test coverage (22 tests)
- Updated documentation with both calling patterns
- Real-world usage examples

Features:
- Call counting with configurable limits
- Duplicate call detection
- Flexible violation handlers (warn/raise/custom)
- JSON/YAML configuration support
- Cross-language API consistency

All three implementations (Python, TypeScript, Ruby) now have
feature parity with language-specific optimizations.
@rfievet rfievet merged commit e616786 into master Aug 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant