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 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', :git => 'git://github.com/matteodepalo/popstar.git'`
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
@@ -1 +1 @@
1
- PopularityRules.new
1
+ PopularityRules.instance
@@ -1,5 +1,9 @@
1
1
  module Popstar
2
2
  module Popularity
3
+ def self.included(base)
4
+ base.send :include, Singleton
5
+ end
6
+
3
7
  def popularity_for(target, &block)
4
8
  RuleGroup.new(target, &block)
5
9
  end
@@ -1,3 +1,3 @@
1
1
  module Popstar
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3.3"
3
3
  end
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.2
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-06 00:00:00.000000000 Z
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: 161942556043864234
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: 161942556043864234
137
+ hash: -2780434342361511103
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 1.8.24