activerecord-reputation-system 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +177 -0
- data/README.md +255 -0
- data/Rakefile +20 -0
- data/lib/generators/reputation_system/reputation_system_generator.rb +35 -0
- data/lib/generators/reputation_system/templates/create_reputation_system.rb +59 -0
- data/lib/models/rs_evaluation.rb +52 -0
- data/lib/models/rs_reputation.rb +181 -0
- data/lib/models/rs_reputation_message.rb +46 -0
- data/lib/reputation_system.rb +28 -0
- data/lib/reputation_system/base.rb +70 -0
- data/lib/reputation_system/evaluation.rb +88 -0
- data/lib/reputation_system/network.rb +222 -0
- data/lib/reputation_system/normalization.rb +50 -0
- data/lib/reputation_system/query.rb +102 -0
- data/lib/reputation_system/reputation.rb +39 -0
- data/lib/reputation_system/scope.rb +37 -0
- data/lib/reputation_system/version.rb +19 -0
- data/spec/models/rs_evaluation_spec.rb +44 -0
- data/spec/models/rs_reputation_message_spec.rb +47 -0
- data/spec/models/rs_reputation_spec.rb +101 -0
- data/spec/reputation_system/base_spec.rb +68 -0
- data/spec/reputation_system/evaluation_spec.rb +289 -0
- data/spec/reputation_system/network_spec.rb +27 -0
- data/spec/reputation_system/normalization_spec.rb +68 -0
- data/spec/reputation_system/query_spec.rb +183 -0
- data/spec/reputation_system/reputation_spec.rb +119 -0
- data/spec/reputation_system/scope_spec.rb +43 -0
- data/spec/spec_helper.rb +190 -0
- metadata +168 -0
metadata
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activerecord-reputation-system
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Katsuya Noguchi
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2012-05-17 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activerecord
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :development
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rake
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
- 8
|
42
|
+
- 7
|
43
|
+
version: 0.8.7
|
44
|
+
type: :development
|
45
|
+
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
prerelease: false
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 2
|
55
|
+
- 8
|
56
|
+
version: "2.8"
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id003
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rdoc
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
68
|
+
version: "0"
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id004
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: database_cleaner
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
- 7
|
81
|
+
- 1
|
82
|
+
version: 0.7.1
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id005
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: sqlite3
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ~>
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
segments:
|
93
|
+
- 1
|
94
|
+
- 3
|
95
|
+
- 5
|
96
|
+
version: 1.3.5
|
97
|
+
type: :development
|
98
|
+
version_requirements: *id006
|
99
|
+
description: ActiveRecord Reputation System gem allows rails apps to compute and publish reputation scores for active record models.
|
100
|
+
email:
|
101
|
+
- katsuya@twitter.com
|
102
|
+
executables: []
|
103
|
+
|
104
|
+
extensions: []
|
105
|
+
|
106
|
+
extra_rdoc_files: []
|
107
|
+
|
108
|
+
files:
|
109
|
+
- LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- lib/generators/reputation_system/reputation_system_generator.rb
|
113
|
+
- lib/generators/reputation_system/templates/create_reputation_system.rb
|
114
|
+
- lib/models/rs_evaluation.rb
|
115
|
+
- lib/models/rs_reputation.rb
|
116
|
+
- lib/models/rs_reputation_message.rb
|
117
|
+
- lib/reputation_system/base.rb
|
118
|
+
- lib/reputation_system/evaluation.rb
|
119
|
+
- lib/reputation_system/network.rb
|
120
|
+
- lib/reputation_system/normalization.rb
|
121
|
+
- lib/reputation_system/query.rb
|
122
|
+
- lib/reputation_system/reputation.rb
|
123
|
+
- lib/reputation_system/scope.rb
|
124
|
+
- lib/reputation_system/version.rb
|
125
|
+
- lib/reputation_system.rb
|
126
|
+
- spec/models/rs_evaluation_spec.rb
|
127
|
+
- spec/models/rs_reputation_message_spec.rb
|
128
|
+
- spec/models/rs_reputation_spec.rb
|
129
|
+
- spec/reputation_system/base_spec.rb
|
130
|
+
- spec/reputation_system/evaluation_spec.rb
|
131
|
+
- spec/reputation_system/network_spec.rb
|
132
|
+
- spec/reputation_system/normalization_spec.rb
|
133
|
+
- spec/reputation_system/query_spec.rb
|
134
|
+
- spec/reputation_system/reputation_spec.rb
|
135
|
+
- spec/reputation_system/scope_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
has_rdoc: true
|
138
|
+
homepage: https://github.com/twitter/activerecord-reputation-system
|
139
|
+
licenses: []
|
140
|
+
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
segments:
|
151
|
+
- 0
|
152
|
+
version: "0"
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
segments:
|
158
|
+
- 0
|
159
|
+
version: "0"
|
160
|
+
requirements: []
|
161
|
+
|
162
|
+
rubyforge_project:
|
163
|
+
rubygems_version: 1.3.6
|
164
|
+
signing_key:
|
165
|
+
specification_version: 3
|
166
|
+
summary: ActiveRecord Reputation System gem allows rails apps to compute and publish reputation scores for active record models
|
167
|
+
test_files: []
|
168
|
+
|