popstar 0.0.2 → 0.0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +11 -2
- data/config/initializers/boot.rb +1 -1
- data/lib/popstar/popularity.rb +4 -0
- data/lib/popstar/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Popularity system for your Rails models.
|
|
8
8
|
|
9
9
|
Put this in your gemfile:
|
10
10
|
|
11
|
-
`gem 'popstar'
|
11
|
+
`gem 'popstar'`
|
12
12
|
|
13
13
|
## Usage
|
14
14
|
|
@@ -39,4 +39,13 @@ class PopularityRules
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
42
|
-
```
|
42
|
+
```
|
43
|
+
|
44
|
+
## Supported ORMS
|
45
|
+
|
46
|
+
- Mongoid
|
47
|
+
|
48
|
+
## TODO
|
49
|
+
|
50
|
+
- Add support for ActiveRecord
|
51
|
+
- Add rake tasks to migrate popular models after defining rules
|
data/config/initializers/boot.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
PopularityRules.
|
1
|
+
PopularityRules.instance
|
data/lib/popstar/popularity.rb
CHANGED
data/lib/popstar/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popstar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-07-
|
13
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
segments:
|
127
127
|
- 0
|
128
|
-
hash:
|
128
|
+
hash: -2780434342361511103
|
129
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
segments:
|
136
136
|
- 0
|
137
|
-
hash:
|
137
|
+
hash: -2780434342361511103
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
140
|
rubygems_version: 1.8.24
|