Releases: moneybird/active-date-range
Releases · moneybird/active-date-range
Release list
v.0.4.1
What's Changed
- set .ruby-version to 3.4.7 by @vindia-mb in #20
- Resolve gemspec warnings by @vindia-mb in #21
Full Changelog: v0.4.0...v0.4.1
v.0.4.0
What's Changed
- Introduce
#current?to check if the period overlays the current date by @edwinv in #12 - update to ruby 3.4 by @vindia-mb in #13
- add
#stretch_to_end_of_monthby @vindia-mb in #17 - add
#exceeds?by @vindia-mb in #18 - add
.from_date_and_durationin 9db6d80 - allow
parseto receive anilparameter and returnnilin 61889af
New Contributors
- @vindia-mb made their first contribution in #13
Full Changelog: v0.3.2...v0.4.0
v0.3.2
v0.3.0
-
include?now behaves likecover?for better performanceEdwin Vlieg
-
Add intersection support:
date_range.intersection(other_date_range) # => DateRangeEdwin Vlieg
-
Add support for boundless ranges:
date_range = DateRange.parse('202101..') date_range.boundless? # => true date_range.in_groups_of(:month) # => Enumerator::Lazy Model.where(date: date_range) # => SQL "WHERE date >= 2021-01-01"Edwin Vlieg
-
Add ActiveModel type for date range:
attribute :period, :date_rangeEdwin Vlieg
v0.2.0
v0.1.0
Initial release of the ActiveDateRange gem. Contains an import of the value object from the internal implementation at Moneybird. We've been using this implementation in production for many years, therefore this release is not marked as a pre-release.