- The attributes
estimate
andaverage
now is rounded by two decimal numbers; - The method
order_by_rating
now receives a hash parameter to avoid scope and so support Ruby 3.2;
- Officially Supports Postgres;
- Migrates the CI to GitHub Actions;
- This gem does not depends on
git
package anymore; - Makes this gem requires MFA for security;
- Adds coverage test;
- The method
rated?
now uses a better query;
- Same rate value hits DB to update metadata.
- Add option
where
to be able adds conditions onRating::Rate
.
- Order index keys of the template the same way Rails does the query;
- Limits the
_type
columns to avoid overflow bytes in DBs like MySQL < 5.7.
- Update Ruby to 2.6.5;
- Update ActiveRecord to the last version;
- Adds
unscoped_rating
option to calculate the rating by counting all resource records ignoring the scope.
- Support to configure
uniqueness
validation via YAML into Rating::Rate model; - Support multiple scopes via
extra_scopes
option.
- Reverts v0.6.0, since we need this validation because we cannot edit the Rate model by ourselves.
- The author's unique validations were removed to enable custom validations
- Adds
rating.yml
config to support changing the tables where Rating will write the data; - Adds
scoping
option to support generating zero-based rating via scope.
- Adds support to MySQL using decimal over float cast on calculations.
- Grows up the decimal precision to enable billion of records count.
- The
vote
method now can receivemetadata
to be persisted with vote data.
- Scope support to be possible rate item from a resource;
- Author model type where zero rating record is not generated on record creation.
- First release.