Skip to content

Releases: lucianghinda/simple-result

Fix homepage link for Rubygems

20 Jun 03:36

Choose a tag to compare

Bug fixes

  • Fixed link to Homepage in gemspec

v0.3.0

09 Jun 10:13

Choose a tag to compare

[0.3.0] - 2025-01-09

Added

  • Added SimpleResult::Helpers module containing Success() and Failure() helper methods

Changed

  • BREAKING CHANGE: Moved Success() and Failure() helper methods from global scope to SimpleResult::Helpers mixin
  • Updated llms.txt with new usage patterns and migration guidance

Removed

  • BREAKING CHANGE: Removed global Success() and Failure() 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
end

Alternatively, 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

09 Jun 04:05

Choose a tag to compare

[0.2.0]

Added

  • Added llms.txt file with comprehensive usage guide for LLMs

Changed

  • Reorganized tests into focused test files:
    • simple_result_test.rb: documentation-style tests for Success/Failure helpers
    • simple_result_namespaced_test.rb: tests for SimpleResult::Success, SimpleResult::Failure, SimpleResult::Response
    • simple_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