is_rateable 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/is_rateable.gemspec +1 -1
- data/lib/is_rateable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cacf75857fb169b5a451217c907216a376c22b9
|
|
4
|
+
data.tar.gz: ed563dfbe246777073cb28c79c62e468021f31a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)/}) }
|
data/lib/is_rateable/version.rb
CHANGED
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.
|
|
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: {}
|