-
Changed required_ruby_version to >= 2.6.0
-
Fixed Month#next_month and Month#prev_month methods
-
Added functionality for parsing strings like '2014 JAN'
-
Added functionality for parsing strings like 'January 2014'
-
Removed Month.today method in favour of Month.now method
-
Added CHANGES.md to gem files
-
Fixed outdated changelog_uri
- Added optional YAML integration
This makes it possible to dump/load month objects to/from YAML as scalar values. For example:
require 'month/yaml'
puts YAML.dump([Month.today])
This functionality is not enabled by default, due to the use of Module#prepend.
-
Added Month#month alias for Month#number
-
Added Month#iso8601 alias for Month#to_s
-
Added Month#<< and Month#>> methods (@pboling)
-
Added Month.today method
-
Added Month.now method
- Fixed comparison with nil objects / ActiveRecord serialization
- Month objects are now frozen on initialization (@replaid, #4)
- Added step argument to Month#step and upto/downto methods (@jkr2255, #3)
-
Fixed fence-post error with addition (@fhwang, #2)
-
Added subtraction functionality for calculating number of months between two month objects (@aprikip, #1)
- New version!