kandadaboggu-vote_fu 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,11 @@
1
+ 2010-02-20
2
+ ==========
3
+ * Changed the data-type of `vote` column in `votes` table to integer type.
4
+ * Added support for vote count caching at the `voteable` model.
5
+ * Added new method `votes_total` on `voteable` model to return the sum of +ve and -ve votes
6
+ * Optimized several methods in `voteable` model (`voters_who_voted`, `voted_by?`)
7
+ * Cleaned the code to use associations instead of direct SQL
8
+
1
9
  2009-02-11
2
10
  ==========
3
11
  * Merge in xlash's bugfix for PostgreSQL and his has\_karma patch for multi-model support.
@@ -113,7 +113,7 @@ module Juixe
113
113
  end
114
114
 
115
115
  def votes_total
116
- self.votes.sum(:vote)
116
+ respond_to?(:vote_counter_column) ? send(self.vote_counter_column) : self.votes.sum(:vote)
117
117
  end
118
118
 
119
119
  def voters_who_voted
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kandadaboggu-vote_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Jackson
@@ -17,7 +17,7 @@ date: 2010-02-20 00:00:00 -08:00
17
17
  default_executable:
18
18
  dependencies: []
19
19
 
20
- description: VoteFu provides the ability to have multiple voting entities on an arbitrary number of models in ActiveRecord.
20
+ description: Enhanced vote_fu with numerical voting and total vote caching.
21
21
  email: kandadaboggu@gmail.com
22
22
  executables: []
23
23
 
@@ -75,6 +75,6 @@ rubyforge_project:
75
75
  rubygems_version: 1.3.5
76
76
  signing_key:
77
77
  specification_version: 3
78
- summary: Voting for ActiveRecord with multiple vote sources and advanced features.
78
+ summary: Enhanced vote_fu with numerical voting and total vote caching.
79
79
  test_files: []
80
80