mongoid-letsrate 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 074c706c0437cdd6bfa96e193dc8dd51981cd2df
4
- data.tar.gz: 29d5427cdb2961d846ccbf1ab67d701005a82b2a
3
+ metadata.gz: e6d5c3442fb72efc46c8756959bdd40334358b8a
4
+ data.tar.gz: 777daaa651b5f1df28a281795eca9123021d7f8d
5
5
  SHA512:
6
- metadata.gz: fb6a25a527a3e60c9b53ba5e6d0e0bd91e8a4da13f3764e440c76ec190e5cb82573182bb8eb5e39332b4123cc54369a368805272da17769bca3326cae5c979a0
7
- data.tar.gz: 6eb10ddea4bf364375473495850f19449c8c8122b90577cd04a13cd4a43a73a3702cd17f4a4ae0fcbbebb6b5cb2e4ea049e8e2f7a4c42af7d9cb0a01a5ada747
6
+ metadata.gz: 4a61a60e728375be269203a8f059a76045aa8b4bf6089814fe37044a21b91c4af6eb0caddb3c73112b89d7b4e0f08c4114f5205d65a379635fa2dd4316151ae9
7
+ data.tar.gz: a4c2aeb80476241cb7a9c1f82963db1d8b6bb1217a968ec067705fad240a4480266d36cd24670603a6c32fb4ef351bdb66b45e5e23deba501b53c1fd5491028d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-letsrate (1.0.11)
4
+ mongoid-letsrate (1.0.12)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -55,7 +55,7 @@ module Mongoid
55
55
  else
56
56
  a = average
57
57
  a.qty = rates.count
58
- a.avg = rates.average(:stars)
58
+ a.avg = average(:stars)
59
59
  a.save!(validate: false)
60
60
  end
61
61
  end
@@ -69,6 +69,7 @@ module Mongoid
69
69
  def letsrate_rater
70
70
  has_many :ratings_given, :class_name => 'Rate'
71
71
  belongs_to :rater
72
+ belongs_to :average
72
73
  end
73
74
 
74
75
  def letsrate_rateable
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Mongoid
3
3
  module Letsrate
4
- VERSION = '1.0.11'
4
+ VERSION = '1.0.12'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-letsrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Johann
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-14 00:00:00.000000000 Z
12
+ date: 2014-02-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Provides the best solution to add rating functionality to your models using mongoid.
15
15
  email: