recommendable 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +5 -1
- data/Gemfile.lock +33 -32
- data/lib/recommendable/acts_as_recommended_to.rb +4 -17
- data/lib/recommendable/version.rb +1 -1
- data/recommendable.gemspec +1 -1
- metadata +4 -4
data/CHANGELOG.markdown
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,45 +2,45 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
recommendable (1.1.5)
|
5
|
-
hooks
|
5
|
+
hooks (>= 0.2.1)
|
6
6
|
rails (>= 3.0.0)
|
7
7
|
redis (>= 2.2.0)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actionmailer (3.2.
|
13
|
-
actionpack (= 3.2.
|
12
|
+
actionmailer (3.2.7)
|
13
|
+
actionpack (= 3.2.7)
|
14
14
|
mail (~> 2.4.4)
|
15
|
-
actionpack (3.2.
|
16
|
-
activemodel (= 3.2.
|
17
|
-
activesupport (= 3.2.
|
15
|
+
actionpack (3.2.7)
|
16
|
+
activemodel (= 3.2.7)
|
17
|
+
activesupport (= 3.2.7)
|
18
18
|
builder (~> 3.0.0)
|
19
19
|
erubis (~> 2.7.0)
|
20
|
-
journey (~> 1.0.
|
20
|
+
journey (~> 1.0.4)
|
21
21
|
rack (~> 1.4.0)
|
22
22
|
rack-cache (~> 1.2)
|
23
23
|
rack-test (~> 0.6.1)
|
24
24
|
sprockets (~> 2.1.3)
|
25
|
-
activemodel (3.2.
|
26
|
-
activesupport (= 3.2.
|
25
|
+
activemodel (3.2.7)
|
26
|
+
activesupport (= 3.2.7)
|
27
27
|
builder (~> 3.0.0)
|
28
|
-
activerecord (3.2.
|
29
|
-
activemodel (= 3.2.
|
30
|
-
activesupport (= 3.2.
|
28
|
+
activerecord (3.2.7)
|
29
|
+
activemodel (= 3.2.7)
|
30
|
+
activesupport (= 3.2.7)
|
31
31
|
arel (~> 3.0.2)
|
32
32
|
tzinfo (~> 0.3.29)
|
33
|
-
activeresource (3.2.
|
34
|
-
activemodel (= 3.2.
|
35
|
-
activesupport (= 3.2.
|
36
|
-
activesupport (3.2.
|
33
|
+
activeresource (3.2.7)
|
34
|
+
activemodel (= 3.2.7)
|
35
|
+
activesupport (= 3.2.7)
|
36
|
+
activesupport (3.2.7)
|
37
37
|
i18n (~> 0.6)
|
38
38
|
multi_json (~> 1.0)
|
39
39
|
arel (3.0.2)
|
40
40
|
builder (3.0.0)
|
41
41
|
erubis (2.7.0)
|
42
42
|
hike (1.2.1)
|
43
|
-
hooks (0.2.
|
43
|
+
hooks (0.2.1)
|
44
44
|
i18n (0.6.0)
|
45
45
|
journey (1.0.4)
|
46
46
|
json (1.7.4)
|
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
mime-types (1.19)
|
52
52
|
miniskirt (1.1.1)
|
53
53
|
activesupport (>= 2.2)
|
54
|
-
minitest (3.
|
54
|
+
minitest (3.3.0)
|
55
55
|
multi_json (1.3.6)
|
56
56
|
polyglot (0.3.3)
|
57
57
|
rack (1.4.1)
|
@@ -61,17 +61,17 @@ GEM
|
|
61
61
|
rack
|
62
62
|
rack-test (0.6.1)
|
63
63
|
rack (>= 1.0)
|
64
|
-
rails (3.2.
|
65
|
-
actionmailer (= 3.2.
|
66
|
-
actionpack (= 3.2.
|
67
|
-
activerecord (= 3.2.
|
68
|
-
activeresource (= 3.2.
|
69
|
-
activesupport (= 3.2.
|
64
|
+
rails (3.2.7)
|
65
|
+
actionmailer (= 3.2.7)
|
66
|
+
actionpack (= 3.2.7)
|
67
|
+
activerecord (= 3.2.7)
|
68
|
+
activeresource (= 3.2.7)
|
69
|
+
activesupport (= 3.2.7)
|
70
70
|
bundler (~> 1.0)
|
71
|
-
railties (= 3.2.
|
72
|
-
railties (3.2.
|
73
|
-
actionpack (= 3.2.
|
74
|
-
activesupport (= 3.2.
|
71
|
+
railties (= 3.2.7)
|
72
|
+
railties (3.2.7)
|
73
|
+
actionpack (= 3.2.7)
|
74
|
+
activesupport (= 3.2.7)
|
75
75
|
rack-ssl (~> 1.3.2)
|
76
76
|
rake (>= 0.8.7)
|
77
77
|
rdoc (~> 3.4)
|
@@ -80,11 +80,12 @@ GEM
|
|
80
80
|
rdoc (3.12)
|
81
81
|
json (~> 1.4)
|
82
82
|
redis (3.0.1)
|
83
|
-
shoulda (3.
|
84
|
-
shoulda-context (~> 1.0
|
85
|
-
shoulda-matchers (~> 1.
|
83
|
+
shoulda (3.1.1)
|
84
|
+
shoulda-context (~> 1.0)
|
85
|
+
shoulda-matchers (~> 1.2)
|
86
86
|
shoulda-context (1.0.0)
|
87
|
-
shoulda-matchers (1.
|
87
|
+
shoulda-matchers (1.2.0)
|
88
|
+
activesupport (>= 3.0.0)
|
88
89
|
sprockets (2.1.3)
|
89
90
|
hike (~> 1.2)
|
90
91
|
rack (~> 1.0)
|
@@ -29,23 +29,10 @@ module Recommendable
|
|
29
29
|
|
30
30
|
before_destroy :remove_from_similarities, :remove_recommendations
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
define_hook :after_unlike
|
37
|
-
define_hook :before_dislike
|
38
|
-
define_hook :after_dislike
|
39
|
-
define_hook :before_undislike
|
40
|
-
define_hook :after_undislike
|
41
|
-
define_hook :before_stash
|
42
|
-
define_hook :after_stash
|
43
|
-
define_hook :before_unstash
|
44
|
-
define_hook :after_unstash
|
45
|
-
define_hook :before_ignore
|
46
|
-
define_hook :after_ignore
|
47
|
-
define_hook :before_unignore
|
48
|
-
define_hook :after_unignore
|
32
|
+
define_hooks :before_like, :after_like, :before_unlike, :after_unlike,
|
33
|
+
:before_dislike, :after_dislike, :before_undislike, :after_undislike,
|
34
|
+
:before_stash, :after_stash, :before_unstash, :after_unstash,
|
35
|
+
:before_ignore, :after_ignore, :before_unignore, :after_unignore
|
49
36
|
|
50
37
|
%w(like dislike ignore).each do |action|
|
51
38
|
send "before_#{action}", lambda { |obj| completely_unrecommend obj }
|
data/recommendable.gemspec
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.6
|
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-
|
12
|
+
date: 2012-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|
@@ -146,7 +146,7 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - ! '>='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: 0.2.1
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,7 @@ dependencies:
|
|
154
154
|
requirements:
|
155
155
|
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: 0.2.1
|
158
158
|
description: Allow a model (typically User) to Like and/or Dislike models in your
|
159
159
|
app. Generate recommendations quickly using redis.
|
160
160
|
email: david@davidcelis.com
|