is_rateable 0.1.2 → 0.1.3

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: a87025a3114712390ec3fffeb66ce2562f277733
4
- data.tar.gz: 5a9b7689cfbc64ec52049f9c6e56f2a51b7e8b4e
3
+ metadata.gz: 5cacf75857fb169b5a451217c907216a376c22b9
4
+ data.tar.gz: ed563dfbe246777073cb28c79c62e468021f31a9
5
5
  SHA512:
6
- metadata.gz: da2c9a365a9b9f752532cd76cd1c614ef1d97fec6c5f7a16e756353680a64f8538a827a7f26b7e82f64f57b70552267a60ef6fbd4308e7ae77e9ebaf7b339b66
7
- data.tar.gz: 61deee07dce8e9c364da262c253a7e926eaed10e7aabd9eeedfa90137812642fab3998990cd70c1d358505321718d9cf16d372fc1aec3f2eb45529fff29a76fa
6
+ metadata.gz: 0707cd528f170a9d8d44afe01e1f18a39bf912ebc534851b7676d200b451594d41b0c565a56f5106543fd377c23075cf54fbd8266436c81ccfcda745ea2dfd84
7
+ data.tar.gz: 8fd01f8552e7186d08240e563ca9b405ea1db4456903538eb1181a66c1abf19698385a53a4206b77b85117f5df02cab6006bc0952f27e1bc6664723ec235223d
data/README.md CHANGED
@@ -109,13 +109,22 @@ This shows the average of all ratings applied to an object. Rounded to the neare
109
109
 
110
110
  ### Viewing Raters
111
111
 
112
- **Has the object rated anything?:
112
+ **Has the object rated anything?:**
113
113
 
114
114
  ```ruby
115
115
  @user.rated_any?
116
116
  => true
117
117
  ```
118
118
 
119
+ **All Ratings that an object as given to another object:**
120
+
121
+ Ratings that an object has applied to another object are stored as `rater_ratings`.
122
+
123
+ ```ruby
124
+ @user.rater_ratings
125
+ => ActiveRecord::Association: []
126
+ ```
127
+
119
128
  ## Development
120
129
 
121
130
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
data/is_rateable.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.summary = '5 star ratings for your Rails models'
16
16
  spec.description = 'Allow any model to become rateable by any other model in your rails app.'
17
- spec.homepage = "https://github.com/Papercloud/is_rateable."
17
+ spec.homepage = "https://github.com/Papercloud/is_rateable"
18
18
  spec.license = "MIT"
19
19
 
20
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -1,3 +1,3 @@
1
1
  module IsRateable
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: is_rateable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman
@@ -84,7 +84,7 @@ files:
84
84
  - lib/is_rateable/acts_as_rater.rb
85
85
  - lib/is_rateable/engine.rb
86
86
  - lib/is_rateable/version.rb
87
- homepage: https://github.com/Papercloud/is_rateable.
87
+ homepage: https://github.com/Papercloud/is_rateable
88
88
  licenses:
89
89
  - MIT
90
90
  metadata: {}