- Added
minute_of_hour
- Added limited support for SQLite
- Fixed
current: false - Fixed
lastwithgroup_by_quarter - Raise
ArgumentErrorwhenlastoption is not supported
- Better support for date columns with
time_zone: false - Better date range handling for
rangeoption
- Fixed
group_by_periodwith associations - Fixed
week_startoption for enumerables
- Added support for Redshift
- Fix for infinite loop in certain cases for Rails 5
Breaking changes
Dateobjects are now returned for day, week, month, quarter, and year by default. Usedates: falsefor the previous behavior, or change this globally withGroupdate.dates = false.- Array and hash methods no longer return the entire series by default. Use
series: truefor the previous behavior. - The
series: falseoption now returns the correct types and order, and plays nicely with other options.
- All tests green with
mysqlgem - Added support for decimal day start
- Added
datesoption to return dates for day, week, month, quarter, and year
- Added
group_by_quarter - Added
default_valueoption - Accept symbol for
formatoption - Raise
ArgumentErrorif no field specified - Added support for ActiveRecord 5 beta
- Added
group_by_periodmethod - Added
currentoption - Raise
ArgumentErrorif no block given to enumerable
- Added localization
- Added
carry_forwardoption - Added
series: falseoption for arrays and hashes - Fixed issue w/ Brasilia Summer Time
- Fixed issues w/ ActiveRecord 4.2
- Raise error when ActiveRecord::Base.default_timezone is not
:utc - Added
day_of_month - Added
month_of_year - Do not quote column name
- Fixed ActiveRecord 3 associations
- Added support for arrays and hashes
- Fixed format option with multiple groups
- Better error message if time zone support is missing for MySQL
- Added last option
- Added format option
- Added multiple groups
- Added order
- Subsequent methods no longer modify relation
- Implemented respond_to?
- where, joins, and includes no longer need to be before the group_by method
- Use time zone instead of UTC for results
- Returns entire series by default
- Added day_start option
- Better interface
- Added global time_zone option
- Added global week_start option
- Fixed bug with NULL values and series
- Fixed deprecation warning when used with will_paginate
- Fixed bug with DateTime series
- Added :start option for custom week start for group_by_week
- Fixed series for Rails < 3.2 and MySQL
- First major release