mongoid_rateable 0.3.3 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.github/FUNDING.yml +13 -0
- data/.ruby-version +1 -0
- data/.travis.yml +24 -1
- data/Appraisals +23 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +9 -8
- data/{README.rdoc → README.md} +49 -35
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/gemfiles/mongoid_3.gemfile +16 -0
- data/gemfiles/mongoid_3.gemfile.lock +116 -0
- data/gemfiles/mongoid_4.gemfile +16 -0
- data/gemfiles/mongoid_4.gemfile.lock +127 -0
- data/gemfiles/mongoid_5.gemfile +16 -0
- data/gemfiles/mongoid_5.gemfile.lock +129 -0
- data/gemfiles/mongoid_6.gemfile +16 -0
- data/gemfiles/mongoid_6.gemfile.lock +125 -0
- data/gemfiles/mongoid_7.gemfile +16 -0
- data/gemfiles/mongoid_7.gemfile.lock +125 -0
- data/gemfiles/mongoid_8.gemfile +16 -0
- data/gemfiles/mongoid_8.gemfile.lock +139 -0
- data/lib/mongoid_rateable/rateable.rb +21 -12
- data/lib/mongoid_rateable/rating.rb +1 -1
- data/lib/mongoid_rateable.rb +0 -1
- data/mongoid_rateable.gemspec +43 -47
- data/spec/models/post.rb +1 -0
- data/spec/models/user.rb +1 -0
- data/spec/rateable_spec.rb +40 -36
- data/spec/spec_helper.rb +21 -13
- data/spec/support/database_cleaner.rb +36 -0
- metadata +90 -43
- data/.rvmrc +0 -2
- data/Gemfile.lock +0 -85
- data/lib/mongoid_rateable/version.rb +0 -3
metadata
CHANGED
@@ -1,137 +1,184 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_rateable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Petr Savichev (proton)
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jeweler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.1.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.1.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.7'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: yard
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 3.0.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 3.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: appraisal
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
109
116
|
- !ruby/object:Gem::Version
|
110
117
|
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: database_cleaner-mongoid
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.0'
|
132
|
+
- - ">="
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: 2.0.1
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '2.0'
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 2.0.1
|
111
145
|
description: Provides fields and methods for the rating manipulation on Mongoid documents.
|
112
146
|
email: psavichev@gmail.com
|
113
147
|
executables: []
|
114
148
|
extensions: []
|
115
149
|
extra_rdoc_files:
|
150
|
+
- CHANGELOG.md
|
116
151
|
- LICENSE.txt
|
117
|
-
- README.
|
152
|
+
- README.md
|
118
153
|
- TODO
|
119
154
|
files:
|
120
|
-
- .
|
121
|
-
- .
|
122
|
-
- .
|
155
|
+
- ".github/FUNDING.yml"
|
156
|
+
- ".rspec"
|
157
|
+
- ".ruby-version"
|
158
|
+
- ".travis.yml"
|
159
|
+
- Appraisals
|
123
160
|
- CHANGELOG.md
|
124
161
|
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
162
|
- LICENSE.txt
|
127
|
-
- README.
|
163
|
+
- README.md
|
128
164
|
- Rakefile
|
129
165
|
- TODO
|
130
166
|
- VERSION
|
167
|
+
- gemfiles/mongoid_3.gemfile
|
168
|
+
- gemfiles/mongoid_3.gemfile.lock
|
169
|
+
- gemfiles/mongoid_4.gemfile
|
170
|
+
- gemfiles/mongoid_4.gemfile.lock
|
171
|
+
- gemfiles/mongoid_5.gemfile
|
172
|
+
- gemfiles/mongoid_5.gemfile.lock
|
173
|
+
- gemfiles/mongoid_6.gemfile
|
174
|
+
- gemfiles/mongoid_6.gemfile.lock
|
175
|
+
- gemfiles/mongoid_7.gemfile
|
176
|
+
- gemfiles/mongoid_7.gemfile.lock
|
177
|
+
- gemfiles/mongoid_8.gemfile
|
178
|
+
- gemfiles/mongoid_8.gemfile.lock
|
131
179
|
- lib/mongoid_rateable.rb
|
132
180
|
- lib/mongoid_rateable/rateable.rb
|
133
181
|
- lib/mongoid_rateable/rating.rb
|
134
|
-
- lib/mongoid_rateable/version.rb
|
135
182
|
- mongoid_rateable.gemspec
|
136
183
|
- spec/models/article.rb
|
137
184
|
- spec/models/comment.rb
|
@@ -139,28 +186,28 @@ files:
|
|
139
186
|
- spec/models/user.rb
|
140
187
|
- spec/rateable_spec.rb
|
141
188
|
- spec/spec_helper.rb
|
189
|
+
- spec/support/database_cleaner.rb
|
142
190
|
homepage: http://github.com/proton/mongoid_rateable
|
143
191
|
licenses:
|
144
192
|
- MIT
|
145
193
|
metadata: {}
|
146
|
-
post_install_message:
|
194
|
+
post_install_message:
|
147
195
|
rdoc_options: []
|
148
196
|
require_paths:
|
149
197
|
- lib
|
150
198
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
199
|
requirements:
|
152
|
-
- -
|
200
|
+
- - ">="
|
153
201
|
- !ruby/object:Gem::Version
|
154
202
|
version: '0'
|
155
203
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
204
|
requirements:
|
157
|
-
- -
|
205
|
+
- - ">="
|
158
206
|
- !ruby/object:Gem::Version
|
159
207
|
version: '0'
|
160
208
|
requirements: []
|
161
|
-
|
162
|
-
|
163
|
-
signing_key:
|
209
|
+
rubygems_version: 3.4.6
|
210
|
+
signing_key:
|
164
211
|
specification_version: 4
|
165
212
|
summary: Rating functionality for Mongoid documents
|
166
213
|
test_files: []
|
data/.rvmrc
DELETED
data/Gemfile.lock
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
activemodel (3.2.18)
|
5
|
-
activesupport (= 3.2.18)
|
6
|
-
builder (~> 3.0.0)
|
7
|
-
activesupport (3.2.18)
|
8
|
-
i18n (~> 0.6, >= 0.6.4)
|
9
|
-
multi_json (~> 1.0)
|
10
|
-
addressable (2.3.6)
|
11
|
-
builder (3.0.4)
|
12
|
-
database_cleaner (0.9.1)
|
13
|
-
diff-lcs (1.2.5)
|
14
|
-
docile (1.1.5)
|
15
|
-
faraday (0.8.9)
|
16
|
-
multipart-post (~> 1.2.0)
|
17
|
-
git (1.2.7)
|
18
|
-
github_api (0.10.1)
|
19
|
-
addressable
|
20
|
-
faraday (~> 0.8.1)
|
21
|
-
hashie (>= 1.2)
|
22
|
-
multi_json (~> 1.4)
|
23
|
-
nokogiri (~> 1.5.2)
|
24
|
-
oauth2
|
25
|
-
hashie (3.0.0)
|
26
|
-
highline (1.6.21)
|
27
|
-
i18n (0.6.9)
|
28
|
-
jeweler (1.8.8)
|
29
|
-
builder
|
30
|
-
bundler (~> 1.0)
|
31
|
-
git (>= 1.2.5)
|
32
|
-
github_api (= 0.10.1)
|
33
|
-
highline (>= 1.6.15)
|
34
|
-
nokogiri (= 1.5.10)
|
35
|
-
rake
|
36
|
-
rdoc
|
37
|
-
json (1.8.1)
|
38
|
-
jwt (1.0.0)
|
39
|
-
mongoid (3.1.6)
|
40
|
-
activemodel (~> 3.2)
|
41
|
-
moped (~> 1.4)
|
42
|
-
origin (~> 1.0)
|
43
|
-
tzinfo (~> 0.3.29)
|
44
|
-
moped (1.5.2)
|
45
|
-
multi_json (1.10.1)
|
46
|
-
multi_xml (0.5.5)
|
47
|
-
multipart-post (1.2.0)
|
48
|
-
nokogiri (1.5.10)
|
49
|
-
oauth2 (0.9.4)
|
50
|
-
faraday (>= 0.8, < 0.10)
|
51
|
-
jwt (~> 1.0)
|
52
|
-
multi_json (~> 1.3)
|
53
|
-
multi_xml (~> 0.5)
|
54
|
-
rack (~> 1.2)
|
55
|
-
origin (1.1.0)
|
56
|
-
rack (1.5.2)
|
57
|
-
rake (10.3.2)
|
58
|
-
rdoc (3.12.2)
|
59
|
-
json (~> 1.4)
|
60
|
-
rspec (2.99.0)
|
61
|
-
rspec-core (~> 2.99.0)
|
62
|
-
rspec-expectations (~> 2.99.0)
|
63
|
-
rspec-mocks (~> 2.99.0)
|
64
|
-
rspec-core (2.99.1)
|
65
|
-
rspec-expectations (2.99.1)
|
66
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
67
|
-
rspec-mocks (2.99.1)
|
68
|
-
simplecov (0.8.2)
|
69
|
-
docile (~> 1.1.0)
|
70
|
-
multi_json
|
71
|
-
simplecov-html (~> 0.8.0)
|
72
|
-
simplecov-html (0.8.0)
|
73
|
-
tzinfo (0.3.39)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
bundler (~> 1)
|
80
|
-
database_cleaner (~> 0)
|
81
|
-
jeweler (~> 1.6)
|
82
|
-
mongoid (~> 3.0)
|
83
|
-
rdoc (~> 3)
|
84
|
-
rspec (~> 2.0)
|
85
|
-
simplecov (~> 0.4)
|