forked from dementrock/voteable_mongo
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
17 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,9 @@ | ||
== rs-1.1.0 | ||
* fixes for mongoid 5 | ||
|
||
== rs-1.0.0 | ||
* Forked gem | ||
* drop mongomapper | ||
* Support mongoid 3 and 4 | ||
* Add Travis-ci | ||
|
||
== 0.9.3 | ||
* Support mongoid ~> 2.0, mongo_mapper ~> 0.9 | ||
|
||
== 0.9.2 | ||
* Replace votee_type to votee_class | ||
* Bug fixes | ||
|
||
== 0.9.1 | ||
* Update gem description | ||
|
||
== 0.9.0 | ||
* Add MongoMapper support | ||
* Simplify voting algorithm | ||
* vote / revote / unvote always return voteable object (votee) | ||
* Tasks module bug fixes | ||
|
||
== 0.8.1 | ||
* Fix gem release bug | ||
|
||
== 0.8.0 | ||
* Rename to voteable_mongo to support other MongoDB Object-Document Mappers like MongoMapper | ||
* Minor fixes and refactoring | ||
|
||
== 0.7.4 | ||
* Add Votee#up_voters(VoterClass), Votee#down_voters(VoterClass), Votee#voters(VoterClass) | ||
* Add Voter scopes: Voter.up_voted_for(votee), Voter.down_voted_for(votee), Voter.voted_for(votee) | ||
* Add voteable ..., :index => true options | ||
* Optimization on unvote and revote validations | ||
* Fix for :up & :down points are nil in rake tasks | ||
|
||
== 0.7.3 | ||
* Add :return_votee => true option to vote function to warranty always return voteable object | ||
* Add Votee.voted?, Votee.up_voted?, Votee.down_voted? | ||
* Update parent for ManyToMany relationship | ||
* Refactor | ||
|
||
== 0.7.2 | ||
* Use Collection#find_and_modify to retrieve updated votes data and parent_ids (don't need an extra query to get parent_ids) | ||
|
||
== 0.7.1 | ||
* Add votee#voted_by?(voter or voter_id) | ||
* Better doc | ||
* Refactor & cleanup source code | ||
|
||
== 0.7.0 | ||
* Use readable field names (up, down, up_count, down_count, count, point) instead of very short field names (u, d, uc, dc, c, p) | ||
|
||
== 0.6.4 | ||
* Drop Voter#votees, Voter#up_votees, Voter#down_votees in favor of Votee#voted_by(voter), Votee#up_voted_by(voter), Votee#down_voted_by(voter) scopes | ||
|
||
== 0.6.3 | ||
* Add rake db:mongoid:voteable:migrate_old_votes to migrate vote data created by version < 0.6.0 to new vote data storage | ||
|
||
== 0.6.2 | ||
* Fix bug: use before_create instead of after_after_initialize | ||
|
||
== 0.6.1 | ||
* Set counters and point to 0 for uninitialized voteable objects in order sort and query | ||
|
||
== 0.6.0 | ||
* Minimize vote data store (using short field names votes.u, votes.d, votes.c ...) | ||
* Add Voter#up_votees, Voter#down_votees | ||
* Remove index and scope from statistic module. User have to add indexes and scopes manually (see https://github.com/vinova/simple_qa/blob/master/app/models/question.rb) | ||
* Bug fixes | ||
|
||
== 0.5.0 | ||
* Rename vote_point to voteable | ||
|
||
== 0.4.5 | ||
* Can use rake db:mongoid:voteable:remake_stats in Rails apps | ||
* Use mongoid 2.0.0 | ||
|
||
== 0.4.4 | ||
* Add up_votes_count, down_votes_count | ||
* Re-generate vote statistic data (counters and point) | ||
|
||
== 0.4.3 | ||
* Wrap vote data in voteable namespace (voteable.up_voters_id, voteable.down_voters_ids, voteable.votes_count ...) | ||
|
||
== 0.4.2 | ||
* Bug fixes | ||
|
||
== 0.4.0 | ||
* Can unvote | ||
|
||
== 0.3.5 | ||
* Use mongoid 2.0.0.rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module VoteableMongo | ||
VERSION = '1.0.2' | ||
VERSION = '1.1.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters