coletivo 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,9 +56,9 @@ module Coletivo
56
56
  end
57
57
 
58
58
  # e.g: [[5.35, "movie_2"], [2.0, "movie_4"]]
59
- guessed_rating_and_id = lambda { |item, item_data|
59
+ guessed_rating_and_id = Proc.new do |item, item_data|
60
60
  [item_data[:weighted_mean] / item_data[:total_similarity], item]
61
- }
61
+ end
62
62
 
63
63
  # DESC sorting by weighted mean of ratings
64
64
  data.collect(&guessed_rating_and_id).sort_by(&:first).reverse
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coletivo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Di\xC3\xB3genes Falc\xC3\xA3o"
@@ -15,12 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-20 00:00:00 -03:00
18
+ date: 2011-10-31 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- name: rails
24
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
@@ -34,9 +32,9 @@ dependencies:
34
32
  version: 3.0.7
35
33
  requirement: *id001
36
34
  type: :runtime
37
- - !ruby/object:Gem::Dependency
35
+ name: rails
38
36
  prerelease: false
39
- name: shoulda
37
+ - !ruby/object:Gem::Dependency
40
38
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
39
  none: false
42
40
  requirements:
@@ -51,9 +49,9 @@ dependencies:
51
49
  version: 3.0.0.beta2
52
50
  requirement: *id002
53
51
  type: :development
54
- - !ruby/object:Gem::Dependency
52
+ name: shoulda
55
53
  prerelease: false
56
- name: bundler
54
+ - !ruby/object:Gem::Dependency
57
55
  version_requirements: &id003 !ruby/object:Gem::Requirement
58
56
  none: false
59
57
  requirements:
@@ -67,9 +65,9 @@ dependencies:
67
65
  version: 1.0.14
68
66
  requirement: *id003
69
67
  type: :development
70
- - !ruby/object:Gem::Dependency
68
+ name: bundler
71
69
  prerelease: false
72
- name: jeweler
70
+ - !ruby/object:Gem::Dependency
73
71
  version_requirements: &id004 !ruby/object:Gem::Requirement
74
72
  none: false
75
73
  requirements:
@@ -83,9 +81,9 @@ dependencies:
83
81
  version: 1.6.2
84
82
  requirement: *id004
85
83
  type: :development
86
- - !ruby/object:Gem::Dependency
84
+ name: jeweler
87
85
  prerelease: false
88
- name: turn
86
+ - !ruby/object:Gem::Dependency
89
87
  version_requirements: &id005 !ruby/object:Gem::Requirement
90
88
  none: false
91
89
  requirements:
@@ -97,6 +95,22 @@ dependencies:
97
95
  version: "0"
98
96
  requirement: *id005
99
97
  type: :development
98
+ name: turn
99
+ prerelease: false
100
+ - !ruby/object:Gem::Dependency
101
+ version_requirements: &id006 !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ hash: 3
107
+ segments:
108
+ - 0
109
+ version: "0"
110
+ requirement: *id006
111
+ type: :development
112
+ name: sqlite3
113
+ prerelease: false
100
114
  description: An awesome, flexible, powerful, useful, tricky and liar Rails 3 recommendations engine.
101
115
  email: diogenes.araujo@gmail.com
102
116
  executables: []