recommendable 1.1.5 → 1.1.6

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.
data/CHANGELOG.markdown CHANGED
@@ -1,8 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 1.1.5 (Current version)
4
+ 1.1.6 (Current version)
5
5
  -----------------------
6
+ * Minor code cleanup for my benefit
7
+
8
+ 1.1.5
9
+ -----
6
10
  * Fix #47, a problem where models could not recommend themselves
7
11
 
8
12
  1.1.4
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.6)
13
- actionpack (= 3.2.6)
12
+ actionmailer (3.2.7)
13
+ actionpack (= 3.2.7)
14
14
  mail (~> 2.4.4)
15
- actionpack (3.2.6)
16
- activemodel (= 3.2.6)
17
- activesupport (= 3.2.6)
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.1)
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.6)
26
- activesupport (= 3.2.6)
25
+ activemodel (3.2.7)
26
+ activesupport (= 3.2.7)
27
27
  builder (~> 3.0.0)
28
- activerecord (3.2.6)
29
- activemodel (= 3.2.6)
30
- activesupport (= 3.2.6)
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.6)
34
- activemodel (= 3.2.6)
35
- activesupport (= 3.2.6)
36
- activesupport (3.2.6)
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.0)
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.2.0)
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.6)
65
- actionmailer (= 3.2.6)
66
- actionpack (= 3.2.6)
67
- activerecord (= 3.2.6)
68
- activeresource (= 3.2.6)
69
- activesupport (= 3.2.6)
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.6)
72
- railties (3.2.6)
73
- actionpack (= 3.2.6)
74
- activesupport (= 3.2.6)
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.0.1)
84
- shoulda-context (~> 1.0.0)
85
- shoulda-matchers (~> 1.0.0)
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.0.0)
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
- # This is just until apotonick merges my change into his published gem. I promise.
33
- define_hook :before_like
34
- define_hook :after_like
35
- define_hook :before_unlike
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 }
@@ -1,7 +1,7 @@
1
1
  module Recommendable
2
2
  MAJOR = 1
3
3
  MINOR = 1
4
- PATCH = 5
4
+ PATCH = 6
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join '.'
7
7
  end
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_dependency 'rails', '>= 3.0.0'
27
27
  s.add_dependency 'redis', '>= 2.2.0'
28
- s.add_dependency 'hooks'
28
+ s.add_dependency 'hooks', '>= 0.2.1'
29
29
  end
30
30
 
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.5
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-07-30 00:00:00.000000000 Z
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: '0'
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: '0'
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