- enhancements
- Parsing the
:at
option now initializes recurrence by the hour-minute-second - Support activesupport-5.2 (by @zokioki)
- Support ruby-2.5
- Support YAML.safe_load for Recurrence#to_yaml
- Parsing the
-
enhancements
- Adds the :exclude_end option can be used to determine whether :until value is included in the recurrence. Mimics the API to Ruby's Range.
- Support activesupport-5.1 (by @fauxparse)
- Support ruby-2.4
-
bug fixes
- Recurrence#to_json accepts arguments for JSON.dump
-
breaking changes
- Previously, the :between option served as a shorthand for :starts to :until. Now, when both :starts and :between are provided, the recurrence will behave as if anchored by the given :starts option, but filtered through the given :betweeen option.
- The :exclude_end option changes the default behavior of :until--when the timestamp of the interval matches the :until timestamp, it will be included by default unless the :exclude_end option is set to true.
- enhancements
- Alias
every
tofrequency
- Handle JSON and hashes in Recurrence serialization
- Handle blank and nil objects in Recurrence deserialization
- Alias
- enhancements
- Adds
Recurrence#include?
- Improved documentation
- Adds
- enhancements
- Add CI support for ActiveSupport 4.1, 4.2, 5.0 (by @phlipper)
- bug fixes
- Respect
ActiveSupport::TimeWithZone
objects for casting time objects (by @tconst)
- Respect
-
enhancements
- Support
Montrose.every(:second)
- Support
-
bug fixes
- Ensure
ActiveSupport::Duration
parts are used; fixes 'every 30 days' bug
- Ensure
- enhancements
- Respect configured time zone by using
Time.current
fromActiveSupport
- Adds
Montrose::Recurrence#to_json
method - Additional tests for utils methods (by @AlexWheeler)
- Respect configured time zone by using
- enhancements
- Adds
:except
option and chainable method to filter timestamps by date (by @thewatts)
- Adds
- bug fixes
- Fix recurrences when specifying both
:starts
and:at
by treating:starts
value like a date - Respect recurrence rules using multiple
:at
values - Using
Montrose.r
without any arguments no longer throwsArgumentError
- Fix recurrences when specifying both
- bug fixes
- Handle
Hash
inMontrose::Chainable
methods that support varargs
- Handle
- enhancements
- Adds
Montrose.r
method for starting a new recurrence - Adds
Chainable
alias methods including#starts
,#until
,#repeat
- README updates (by @thegcat)
- Adds
- bug fixes
- Handle
nil
inMontrose::Options
constructor
- Handle
- enhancements
- extend
Montrose::Schedule
api for building and adding recurrences - add more details to chainable docs
- merge default options at enumeration time for more consistent serialization
- extend
- bug fixes
- add missing
require "forwardable"
- add missing
- enhancements
- add better
#inspect
methods inRecurrence
andOptions
- use refinement to refactor Options internal arg merging
- support ruby 2.3.0 in travis builds
- add better
- initial release