Releases: lucianghinda/simple-result
Releases · lucianghinda/simple-result
Fix homepage link for Rubygems
Bug fixes
- Fixed link to Homepage in gemspec
v0.3.0
[0.3.0] - 2025-01-09
Added
- Added
SimpleResult::Helpersmodule containingSuccess()andFailure()helper methods
Changed
- BREAKING CHANGE: Moved
Success()andFailure()helper methods from global scope toSimpleResult::Helpersmixin - Updated
llms.txtwith new usage patterns and migration guidance
Removed
- BREAKING CHANGE: Removed global
Success()andFailure()helper methods
Migration Guide
To continue using the Success() and Failure() helper methods, add include SimpleResult::Helpers to your classes:
# Before (v0.2.0)
class MyService
def call
Success('result')
end
end
# After (v0.3.0)
class MyService
include SimpleResult::Helpers
def call
Success('result')
end
endAlternatively, use the namespaced classes directly (no breaking change):
SimpleResult::Success.new('result')
SimpleResult::Failure.new(error: 'error')Full Changelog: v0.2.0...v0.3.0
0.2.0
[0.2.0]
Added
- Added
llms.txtfile with comprehensive usage guide for LLMs
Changed
- Reorganized tests into focused test files:
simple_result_test.rb: documentation-style tests for Success/Failure helperssimple_result_namespaced_test.rb: tests for SimpleResult::Success, SimpleResult::Failure, SimpleResult::Responsesimple_result_cases_test.rb: edge case tests for inspect and pretty_print methods
Full Changelog: https://github.com/lucianghinda/simple-result/commits/v0.2.0