Skip to content

Releases: wbotelhos/rating

v1.0.0

04 Mar 22:54
ecb2f73
Compare
Choose a tag to compare

Break Changes

  • The attributes estimate and average 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;

v0.12.0

08 Aug 22:21
Compare
Choose a tag to compare

News

  • Officially Supports Postgres;

Updates

  • Migrates the CI to GitHub Actions;
  • This gem does not depend on git package anymore;
  • Makes this gem requires MFA for security;
  • Adds coverage test;
  • The method rated? now uses a better query;

v0.11.0

08 Aug 22:18
Compare
Choose a tag to compare

Updates

  • Same rate value hits DB to update metadata.

v0.10.0

08 Aug 22:17
Compare
Choose a tag to compare

News

  • Add option where to be able adds conditions on Rating::Rate.

v0.9.0

08 Aug 22:17
Compare
Choose a tag to compare

News

  • 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.

Updates

  • Update Ruby to 2.6.5;
  • Update ActiveRecord to the last version;

v0.8.0

08 Aug 22:17
Compare
Choose a tag to compare

News

  • Adds unscoped_rating option to calculate the rating by counting all resource records ignoring the scope.

v0.7.0

08 Aug 22:17
Compare
Choose a tag to compare

News

  • Support to configure uniqueness validation via YAML into Rating::Rate model;
  • Support multiple scopes via extra_scopes option.

Updates

  • Reverts v0.6.0, since we need this validation because we cannot edit the Rate model by ourselves.

v0.6.0

08 Aug 22:16
Compare
Choose a tag to compare

Updates

  • The author's unique validations were removed to enable custom validations

v0.5.0

08 Aug 22:16
Compare
Choose a tag to compare

News

  • 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.

Updates

  • The migration was separated in two to improve troubleshooting. #1 by iondrimba

v0.4.0

08 Aug 22:14
Compare
Choose a tag to compare

News

  • Adds support to MySQL using decimal over float cast on calculations.

Updates

  • Grows up the decimal precision to enable billion of records count.