recommendable 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,11 @@ require 'dm-core'
2
2
 
3
3
  DataMapper::Model.append_extensions(Recommendable::Rater::ClassMethods)
4
4
  DataMapper::Model.append_extensions(Recommendable::Ratable::ClassMethods)
5
+
6
+ module Recommendable::Ratable::InstanceMethods
7
+ def recommendable?() self.class.recommendable? end
8
+ end
9
+
5
10
  DataMapper::Model.append_inclusions(Recommendable::Ratable::InstanceMethods)
6
11
 
7
12
  Recommendable.configure { |config| config.orm = :data_mapper }
@@ -2,6 +2,11 @@ require 'mongoid'
2
2
 
3
3
  Mongoid::Document::ClassMethods.send(:include, Recommendable::Rater::ClassMethods)
4
4
  Mongoid::Document::ClassMethods.send(:include, Recommendable::Ratable::ClassMethods)
5
+
6
+ module Recommendable::Ratable::InstanceMethods
7
+ def recommendable?() self.class.recommendable? end
8
+ end
9
+
5
10
  Mongoid::Document.send(:include, Recommendable::Ratable::InstanceMethods)
6
11
 
7
12
  Recommendable.configure { |config| config.orm = :mongoid }
@@ -1,7 +1,7 @@
1
1
  module Recommendable
2
2
  MAJOR = 2
3
3
  MINOR = 0
4
- PATCH = 1
4
+ PATCH = 2
5
5
  PRE = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join '.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recommendable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2013-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport