mongoid_rateable 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +13 -0
- data/.ruby-version +1 -1
- data/.travis.yml +19 -11
- data/Appraisals +9 -1
- data/Gemfile +1 -2
- data/{README.rdoc → README.md} +38 -29
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/gemfiles/mongoid_3.gemfile +3 -3
- data/gemfiles/mongoid_3.gemfile.lock +1 -4
- data/gemfiles/mongoid_4.gemfile +3 -3
- data/gemfiles/mongoid_4.gemfile.lock +1 -4
- data/gemfiles/mongoid_5.gemfile +3 -3
- data/gemfiles/mongoid_5.gemfile.lock +64 -61
- data/gemfiles/mongoid_6.gemfile +3 -3
- data/gemfiles/mongoid_6.gemfile.lock +64 -61
- 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/mongoid_rateable.gemspec +23 -41
- data/spec/spec_helper.rb +5 -7
- metadata +24 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 61c0dc62454be20442f6420744e3b04dfe058f4104c60e368b7c29a58097cdf5
|
4
|
+
data.tar.gz: 45c4d77dd0ac7a6cb3a2c1d29c9589d82470006c6ef471439dce74ae6cbc5525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50a618d87373387669651fa8b8d23c09e9c0cece8184183388f176b978662813f7a886ce86d8930cbc5fd383903e5445378321b5255e4db22a8b7a67fe35fb5
|
7
|
+
data.tar.gz: bbbc1a8d7a5bdcd74c381041da7ca2c1ea4e528b1d69da01fcc0df5b0defc50fba7534566c75d897c115d75445c887cf008f1522ea571a65cbe62b834041fa53
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# These are supported funding model platforms
|
2
|
+
|
3
|
+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
4
|
+
patreon: _proton
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
6
|
+
ko_fi: # Replace with a single Ko-fi username
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
9
|
+
liberapay: # Replace with a single Liberapay username
|
10
|
+
issuehunt: # Replace with a single IssueHunt username
|
11
|
+
otechie: # Replace with a single Otechie username
|
12
|
+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
13
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.2.1
|
data/.travis.yml
CHANGED
@@ -1,16 +1,24 @@
|
|
1
1
|
language: ruby
|
2
|
+
before_install: gem update bundler
|
2
3
|
rvm:
|
3
|
-
- 2.0.0
|
4
|
-
- 2.1.0
|
5
|
-
- 2.2.
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
4
|
+
# - 2.0.0
|
5
|
+
# - 2.1.0
|
6
|
+
# - 2.2.2
|
7
|
+
- 2.3.0
|
8
|
+
- 2.4.0
|
9
|
+
- 2.5.0
|
10
|
+
- 2.6.0
|
11
|
+
- 2.7.0
|
12
|
+
- 3.0.0
|
13
|
+
- 3.1.0
|
14
|
+
- 3.2.0
|
9
15
|
gemfile:
|
10
|
-
- gemfiles/mongoid_3.gemfile
|
11
|
-
- gemfiles/mongoid_4.gemfile
|
12
|
-
- gemfiles/mongoid_5.gemfile
|
13
|
-
- gemfiles/mongoid_6.gemfile
|
16
|
+
# - gemfiles/mongoid_3.gemfile
|
17
|
+
# - gemfiles/mongoid_4.gemfile
|
18
|
+
# - gemfiles/mongoid_5.gemfile
|
19
|
+
# - gemfiles/mongoid_6.gemfile
|
20
|
+
- gemfiles/mongoid_7.gemfile
|
21
|
+
# - gemfiles/mongoid_8.gemfile
|
14
22
|
services:
|
15
23
|
- mongodb
|
16
|
-
sudo: false
|
24
|
+
sudo: false
|
data/Appraisals
CHANGED
data/Gemfile
CHANGED
data/{README.rdoc → README.md}
RENAMED
@@ -1,30 +1,31 @@
|
|
1
|
-
|
1
|
+
# Mongoid::Rateable
|
2
2
|
|
3
|
-
Provides fields and methods for the
|
3
|
+
Provides fields and methods for the **rating** manipulation on Mongoid
|
4
|
+
documents
|
4
5
|
|
5
|
-
|
6
|
+
[![travis CI](https://secure.travis-ci.org/proton/mongoid_rateable.png)](http://travis-ci.org/proton/mongoid_rateable)
|
6
7
|
|
7
|
-
Lastest version of Mongoid:Rateable requires mongoid 3, 4, 5 and
|
8
|
+
Lastest version of Mongoid:Rateable requires mongoid 3, 4, 5, 6, 7 and 8.
|
8
9
|
|
9
10
|
If you need a mongoid 2 support, look at mongoid_rateable 0.1.7.
|
10
11
|
|
11
|
-
|
12
|
+
## Support us
|
12
13
|
|
14
|
+
https://www.patreon.com/_proton
|
13
15
|
|
14
|
-
|
15
|
-
|
16
|
-
== Installation
|
16
|
+
## Installation
|
17
17
|
|
18
18
|
Add to Gemfile:
|
19
19
|
|
20
20
|
gem 'mongoid_rateable'
|
21
21
|
|
22
|
-
|
23
|
-
|
22
|
+
## Getting Started
|
24
23
|
|
25
24
|
Simply use the `rateable` macro from any class that is a Mongoid Document.
|
26
25
|
|
27
|
-
This macro will include `Mongoid::Rateable` into the class and configure the
|
26
|
+
This macro will include `Mongoid::Rateable` into the class and configure the
|
27
|
+
rating functionality using the options hash. For any option not present, the
|
28
|
+
default option value will be used.
|
28
29
|
|
29
30
|
class Post
|
30
31
|
include Mongoid::Document
|
@@ -57,9 +58,10 @@ You can also set the `default_rater`
|
|
57
58
|
end
|
58
59
|
end
|
59
60
|
|
60
|
-
Note: For even more control over the configuration, see the `ClassMethods`
|
61
|
+
Note: For even more control over the configuration, see the `ClassMethods`
|
62
|
+
module code in `rateable.rb`.
|
61
63
|
|
62
|
-
|
64
|
+
## Cast Rates
|
63
65
|
|
64
66
|
You can rate by passing an integer and a rater model to the "rate" method:
|
65
67
|
|
@@ -92,7 +94,7 @@ Sure, you can rate and save in one function:
|
|
92
94
|
@post.rate_and_save(3, @user)
|
93
95
|
@post.unrate_and_save(@user)
|
94
96
|
|
95
|
-
|
97
|
+
## Additional Functionality
|
96
98
|
|
97
99
|
You'll often want to know if a user already rated post. Simple:
|
98
100
|
|
@@ -122,7 +124,8 @@ And you can get the average rating:
|
|
122
124
|
|
123
125
|
@post.rating # rates / rate_weight
|
124
126
|
|
125
|
-
And you can get the average rating without weights (It calculates realtime, so
|
127
|
+
And you can get the average rating without weights (It calculates realtime, so
|
128
|
+
it can be slow):
|
126
129
|
|
127
130
|
@post.unweighted_rating # rates without weights / rate_count
|
128
131
|
|
@@ -131,7 +134,7 @@ And you can get the previous rating and delta:
|
|
131
134
|
@post.previous_rating
|
132
135
|
@post.rating_delta # rating - previous_rating
|
133
136
|
|
134
|
-
|
137
|
+
## Scopes
|
135
138
|
|
136
139
|
You can get rated or unrated posts:
|
137
140
|
|
@@ -148,23 +151,29 @@ You can get posts with some rating:
|
|
148
151
|
Post.with_rating(0..10)
|
149
152
|
Post.with_rating(-2..2)
|
150
153
|
|
151
|
-
You can get most rated and highest rated posts:
|
152
|
-
|
154
|
+
You can get most rated and highest rated posts: (Sorry, this method doesn't
|
155
|
+
work with embedded documents)
|
153
156
|
|
154
157
|
Post.highest_rated # 10 (or less) highest rated posts
|
155
158
|
Post.highest_rated(5) # 5 (or less) highest rated posts
|
156
159
|
|
157
|
-
|
160
|
+
## Contributing to Mongoid::Rateable
|
161
|
+
|
162
|
+
* Check out the latest master to make sure the feature hasn't been
|
163
|
+
implemented or the bug hasn't been fixed yet
|
164
|
+
* Check out the issue tracker to make sure someone already hasn't requested
|
165
|
+
it and/or contributed it
|
166
|
+
* Fork the project
|
167
|
+
* Start a feature/bugfix branch
|
168
|
+
* Commit and push until you are happy with your contribution
|
169
|
+
* Make sure to add tests for it. This is important so I don't break it in a
|
170
|
+
future version unintentionally.
|
171
|
+
* Please try not to mess with the Rakefile, version, or history. If you want
|
172
|
+
to have your own version, or is otherwise necessary, that is fine, but
|
173
|
+
please isolate to its own commit so I can cherry-pick around it.
|
158
174
|
|
159
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
160
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
161
|
-
* Fork the project
|
162
|
-
* Start a feature/bugfix branch
|
163
|
-
* Commit and push until you are happy with your contribution
|
164
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
165
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
166
175
|
|
167
|
-
|
176
|
+
## Copyright
|
168
177
|
|
169
|
-
Copyright (c) 2011
|
170
|
-
|
178
|
+
Copyright (c) 2011-2023 Petr Savichev (proton). See LICENSE.txt for further
|
179
|
+
details.
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
|
|
22
22
|
gem.summary = %q{Rating functionality for Mongoid documents}
|
23
23
|
gem.description = %q{Provides fields and methods for the rating manipulation on Mongoid documents.}
|
24
24
|
gem.email = "psavichev@gmail.com"
|
25
|
-
gem.authors = ["
|
25
|
+
gem.authors = ["Petr Savichev (proton)"]
|
26
26
|
# dependencies defined in Gemfile
|
27
27
|
end
|
28
28
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/gemfiles/mongoid_3.gemfile
CHANGED
@@ -7,10 +7,10 @@ gem "mongoid", "3.1.7"
|
|
7
7
|
group :development do
|
8
8
|
gem "bundler"
|
9
9
|
gem "jeweler", "~> 2.1.1"
|
10
|
-
gem "simplecov", "~> 0.7", :
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
11
|
gem "yard"
|
12
12
|
gem "rspec", ">= 3.0.0"
|
13
13
|
gem "appraisal"
|
14
|
-
gem "coveralls", :
|
15
|
-
gem "database_cleaner", ">= 0.
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
16
|
end
|
data/gemfiles/mongoid_4.gemfile
CHANGED
@@ -7,10 +7,10 @@ gem "mongoid", "4.0.2"
|
|
7
7
|
group :development do
|
8
8
|
gem "bundler"
|
9
9
|
gem "jeweler", "~> 2.1.1"
|
10
|
-
gem "simplecov", "~> 0.7", :
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
11
|
gem "yard"
|
12
12
|
gem "rspec", ">= 3.0.0"
|
13
13
|
gem "appraisal"
|
14
|
-
gem "coveralls", :
|
15
|
-
gem "database_cleaner", ">= 0.
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
16
|
end
|
data/gemfiles/mongoid_5.gemfile
CHANGED
@@ -7,10 +7,10 @@ gem "mongoid", "5.2.0"
|
|
7
7
|
group :development do
|
8
8
|
gem "bundler"
|
9
9
|
gem "jeweler", "~> 2.1.1"
|
10
|
-
gem "simplecov", "~> 0.7", :
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
11
|
gem "yard"
|
12
12
|
gem "rspec", ">= 3.0.0"
|
13
13
|
gem "appraisal"
|
14
|
-
gem "coveralls", :
|
15
|
-
gem "database_cleaner", ">= 0.
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
16
|
end
|
@@ -1,37 +1,37 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (4.2.
|
5
|
-
activesupport (= 4.2.
|
4
|
+
activemodel (4.2.11.1)
|
5
|
+
activesupport (= 4.2.11.1)
|
6
6
|
builder (~> 3.1)
|
7
|
-
activesupport (4.2.
|
7
|
+
activesupport (4.2.11.1)
|
8
8
|
i18n (~> 0.7)
|
9
|
-
json (~> 1.7, >= 1.7.7)
|
10
9
|
minitest (~> 5.1)
|
11
10
|
thread_safe (~> 0.3, >= 0.3.4)
|
12
11
|
tzinfo (~> 1.1)
|
13
|
-
addressable (2.
|
14
|
-
public_suffix (
|
15
|
-
appraisal (2.
|
12
|
+
addressable (2.7.0)
|
13
|
+
public_suffix (>= 2.0.2, < 5.0)
|
14
|
+
appraisal (2.2.0)
|
16
15
|
bundler
|
17
16
|
rake
|
18
17
|
thor (>= 0.14.0)
|
19
|
-
bson (4.
|
20
|
-
builder (3.2.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
18
|
+
bson (4.7.0)
|
19
|
+
builder (3.2.4)
|
20
|
+
concurrent-ruby (1.1.5)
|
21
|
+
coveralls (0.7.2)
|
22
|
+
multi_json (~> 1.3)
|
23
|
+
rest-client (= 1.6.7)
|
24
|
+
simplecov (>= 0.7)
|
25
|
+
term-ansicolor (= 1.2.2)
|
26
|
+
thor (= 0.18.1)
|
27
|
+
database_cleaner (1.7.0)
|
28
28
|
descendants_tracker (0.0.4)
|
29
29
|
thread_safe (~> 0.3, >= 0.3.1)
|
30
30
|
diff-lcs (1.3)
|
31
|
-
docile (1.
|
31
|
+
docile (1.3.2)
|
32
32
|
faraday (0.9.2)
|
33
33
|
multipart-post (>= 1.2, < 3)
|
34
|
-
git (1.
|
34
|
+
git (1.5.0)
|
35
35
|
github_api (0.11.3)
|
36
36
|
addressable (~> 2.3)
|
37
37
|
descendants_tracker (~> 0.0.1)
|
@@ -40,9 +40,10 @@ GEM
|
|
40
40
|
multi_json (>= 1.7.5, < 2.0)
|
41
41
|
nokogiri (~> 1.6.0)
|
42
42
|
oauth2
|
43
|
-
hashie (
|
44
|
-
highline (
|
45
|
-
i18n (0.
|
43
|
+
hashie (4.0.0)
|
44
|
+
highline (2.0.3)
|
45
|
+
i18n (0.9.5)
|
46
|
+
concurrent-ruby (~> 1.0)
|
46
47
|
jeweler (2.1.2)
|
47
48
|
builder
|
48
49
|
bundler (>= 1.0)
|
@@ -53,60 +54,65 @@ GEM
|
|
53
54
|
rake
|
54
55
|
rdoc
|
55
56
|
semver
|
56
|
-
json (
|
57
|
-
jwt (
|
57
|
+
json (2.3.0)
|
58
|
+
jwt (2.2.1)
|
59
|
+
mime-types (3.3)
|
60
|
+
mime-types-data (~> 3.2015)
|
61
|
+
mime-types-data (3.2019.1009)
|
58
62
|
mini_portile2 (2.1.0)
|
59
|
-
minitest (5.
|
60
|
-
mongo (2.
|
61
|
-
bson (>= 4.
|
63
|
+
minitest (5.13.0)
|
64
|
+
mongo (2.11.2)
|
65
|
+
bson (>= 4.6.0, < 5.0.0)
|
62
66
|
mongoid (5.2.0)
|
63
67
|
activemodel (~> 4.0)
|
64
68
|
mongo (>= 2.4.1, < 3.0.0)
|
65
69
|
origin (~> 2.3)
|
66
70
|
tzinfo (>= 0.3.37)
|
67
|
-
multi_json (1.
|
71
|
+
multi_json (1.14.1)
|
68
72
|
multi_xml (0.6.0)
|
69
|
-
multipart-post (2.
|
73
|
+
multipart-post (2.1.1)
|
70
74
|
nokogiri (1.6.8.1)
|
71
75
|
mini_portile2 (~> 2.1.0)
|
72
|
-
oauth2 (1.
|
73
|
-
faraday (>= 0.8, < 0
|
74
|
-
jwt (
|
76
|
+
oauth2 (1.4.2)
|
77
|
+
faraday (>= 0.8, < 2.0)
|
78
|
+
jwt (>= 1.0, < 3.0)
|
75
79
|
multi_json (~> 1.3)
|
76
80
|
multi_xml (~> 0.5)
|
77
81
|
rack (>= 1.2, < 3)
|
78
|
-
origin (2.3.
|
79
|
-
public_suffix (
|
80
|
-
rack (2.0.
|
81
|
-
rake (
|
82
|
-
rdoc (
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
rspec-
|
87
|
-
|
88
|
-
rspec-
|
89
|
-
rspec-
|
82
|
+
origin (2.3.1)
|
83
|
+
public_suffix (4.0.1)
|
84
|
+
rack (2.0.8)
|
85
|
+
rake (13.0.1)
|
86
|
+
rdoc (6.2.0)
|
87
|
+
rest-client (1.6.7)
|
88
|
+
mime-types (>= 1.16)
|
89
|
+
rspec (3.9.0)
|
90
|
+
rspec-core (~> 3.9.0)
|
91
|
+
rspec-expectations (~> 3.9.0)
|
92
|
+
rspec-mocks (~> 3.9.0)
|
93
|
+
rspec-core (3.9.0)
|
94
|
+
rspec-support (~> 3.9.0)
|
95
|
+
rspec-expectations (3.9.0)
|
90
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
91
|
-
rspec-support (~> 3.
|
92
|
-
rspec-mocks (3.
|
97
|
+
rspec-support (~> 3.9.0)
|
98
|
+
rspec-mocks (3.9.0)
|
93
99
|
diff-lcs (>= 1.2.0, < 2.0)
|
94
|
-
rspec-support (~> 3.
|
95
|
-
rspec-support (3.
|
100
|
+
rspec-support (~> 3.9.0)
|
101
|
+
rspec-support (3.9.0)
|
96
102
|
semver (1.0.1)
|
97
|
-
simplecov (0.
|
98
|
-
docile (~> 1.1
|
103
|
+
simplecov (0.17.1)
|
104
|
+
docile (~> 1.1)
|
99
105
|
json (>= 1.8, < 3)
|
100
106
|
simplecov-html (~> 0.10.0)
|
101
|
-
simplecov-html (0.10.
|
102
|
-
term-ansicolor (1.
|
103
|
-
tins (~>
|
104
|
-
thor (0.
|
105
|
-
thread_safe (0.3.
|
106
|
-
tins (
|
107
|
-
tzinfo (1.2.
|
107
|
+
simplecov-html (0.10.2)
|
108
|
+
term-ansicolor (1.2.2)
|
109
|
+
tins (~> 0.8)
|
110
|
+
thor (0.18.1)
|
111
|
+
thread_safe (0.3.6)
|
112
|
+
tins (0.13.2)
|
113
|
+
tzinfo (1.2.5)
|
108
114
|
thread_safe (~> 0.1)
|
109
|
-
yard (0.9.
|
115
|
+
yard (0.9.20)
|
110
116
|
|
111
117
|
PLATFORMS
|
112
118
|
ruby
|
@@ -120,7 +126,4 @@ DEPENDENCIES
|
|
120
126
|
mongoid (= 5.2.0)
|
121
127
|
rspec (>= 3.0.0)
|
122
128
|
simplecov (~> 0.7)
|
123
|
-
yard
|
124
|
-
|
125
|
-
BUNDLED WITH
|
126
|
-
1.14.3
|
129
|
+
yard
|
data/gemfiles/mongoid_6.gemfile
CHANGED
@@ -7,10 +7,10 @@ gem "mongoid", "6.1.0"
|
|
7
7
|
group :development do
|
8
8
|
gem "bundler"
|
9
9
|
gem "jeweler", "~> 2.1.1"
|
10
|
-
gem "simplecov", "~> 0.7", :
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
11
|
gem "yard"
|
12
12
|
gem "rspec", ">= 3.0.0"
|
13
13
|
gem "appraisal"
|
14
|
-
gem "coveralls", :
|
15
|
-
gem "database_cleaner", ">= 0.
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
16
|
end
|
@@ -1,36 +1,36 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (5.
|
5
|
-
activesupport (= 5.
|
6
|
-
activesupport (5.
|
4
|
+
activemodel (5.2.4.1)
|
5
|
+
activesupport (= 5.2.4.1)
|
6
|
+
activesupport (5.2.4.1)
|
7
7
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
8
|
-
i18n (
|
8
|
+
i18n (>= 0.7, < 2)
|
9
9
|
minitest (~> 5.1)
|
10
10
|
tzinfo (~> 1.1)
|
11
|
-
addressable (2.
|
12
|
-
public_suffix (
|
13
|
-
appraisal (2.
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
appraisal (2.2.0)
|
14
14
|
bundler
|
15
15
|
rake
|
16
16
|
thor (>= 0.14.0)
|
17
|
-
bson (4.
|
18
|
-
builder (3.2.
|
19
|
-
concurrent-ruby (1.
|
20
|
-
coveralls (0.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
database_cleaner (1.
|
17
|
+
bson (4.7.0)
|
18
|
+
builder (3.2.4)
|
19
|
+
concurrent-ruby (1.1.5)
|
20
|
+
coveralls (0.7.2)
|
21
|
+
multi_json (~> 1.3)
|
22
|
+
rest-client (= 1.6.7)
|
23
|
+
simplecov (>= 0.7)
|
24
|
+
term-ansicolor (= 1.2.2)
|
25
|
+
thor (= 0.18.1)
|
26
|
+
database_cleaner (1.7.0)
|
27
27
|
descendants_tracker (0.0.4)
|
28
28
|
thread_safe (~> 0.3, >= 0.3.1)
|
29
29
|
diff-lcs (1.3)
|
30
|
-
docile (1.
|
30
|
+
docile (1.3.2)
|
31
31
|
faraday (0.9.2)
|
32
32
|
multipart-post (>= 1.2, < 3)
|
33
|
-
git (1.
|
33
|
+
git (1.5.0)
|
34
34
|
github_api (0.11.3)
|
35
35
|
addressable (~> 2.3)
|
36
36
|
descendants_tracker (~> 0.0.1)
|
@@ -39,9 +39,10 @@ GEM
|
|
39
39
|
multi_json (>= 1.7.5, < 2.0)
|
40
40
|
nokogiri (~> 1.6.0)
|
41
41
|
oauth2
|
42
|
-
hashie (
|
43
|
-
highline (
|
44
|
-
i18n (
|
42
|
+
hashie (4.0.0)
|
43
|
+
highline (2.0.3)
|
44
|
+
i18n (1.7.0)
|
45
|
+
concurrent-ruby (~> 1.0)
|
45
46
|
jeweler (2.1.2)
|
46
47
|
builder
|
47
48
|
bundler (>= 1.0)
|
@@ -52,57 +53,62 @@ GEM
|
|
52
53
|
rake
|
53
54
|
rdoc
|
54
55
|
semver
|
55
|
-
json (2.0
|
56
|
-
jwt (
|
56
|
+
json (2.3.0)
|
57
|
+
jwt (2.2.1)
|
58
|
+
mime-types (3.3)
|
59
|
+
mime-types-data (~> 3.2015)
|
60
|
+
mime-types-data (3.2019.1009)
|
57
61
|
mini_portile2 (2.1.0)
|
58
|
-
minitest (5.
|
59
|
-
mongo (2.
|
60
|
-
bson (>= 4.
|
62
|
+
minitest (5.13.0)
|
63
|
+
mongo (2.11.2)
|
64
|
+
bson (>= 4.6.0, < 5.0.0)
|
61
65
|
mongoid (6.1.0)
|
62
66
|
activemodel (~> 5.0)
|
63
67
|
mongo (>= 2.4.1, < 3.0.0)
|
64
|
-
multi_json (1.
|
68
|
+
multi_json (1.14.1)
|
65
69
|
multi_xml (0.6.0)
|
66
|
-
multipart-post (2.
|
70
|
+
multipart-post (2.1.1)
|
67
71
|
nokogiri (1.6.8.1)
|
68
72
|
mini_portile2 (~> 2.1.0)
|
69
|
-
oauth2 (1.
|
70
|
-
faraday (>= 0.8, < 0
|
71
|
-
jwt (
|
73
|
+
oauth2 (1.4.2)
|
74
|
+
faraday (>= 0.8, < 2.0)
|
75
|
+
jwt (>= 1.0, < 3.0)
|
72
76
|
multi_json (~> 1.3)
|
73
77
|
multi_xml (~> 0.5)
|
74
78
|
rack (>= 1.2, < 3)
|
75
|
-
public_suffix (
|
76
|
-
rack (2.0.
|
77
|
-
rake (
|
78
|
-
rdoc (
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
rspec-
|
83
|
-
|
84
|
-
rspec-
|
85
|
-
rspec-
|
79
|
+
public_suffix (4.0.1)
|
80
|
+
rack (2.0.8)
|
81
|
+
rake (13.0.1)
|
82
|
+
rdoc (6.2.0)
|
83
|
+
rest-client (1.6.7)
|
84
|
+
mime-types (>= 1.16)
|
85
|
+
rspec (3.9.0)
|
86
|
+
rspec-core (~> 3.9.0)
|
87
|
+
rspec-expectations (~> 3.9.0)
|
88
|
+
rspec-mocks (~> 3.9.0)
|
89
|
+
rspec-core (3.9.0)
|
90
|
+
rspec-support (~> 3.9.0)
|
91
|
+
rspec-expectations (3.9.0)
|
86
92
|
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.
|
88
|
-
rspec-mocks (3.
|
93
|
+
rspec-support (~> 3.9.0)
|
94
|
+
rspec-mocks (3.9.0)
|
89
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
90
|
-
rspec-support (~> 3.
|
91
|
-
rspec-support (3.
|
96
|
+
rspec-support (~> 3.9.0)
|
97
|
+
rspec-support (3.9.0)
|
92
98
|
semver (1.0.1)
|
93
|
-
simplecov (0.
|
94
|
-
docile (~> 1.1
|
99
|
+
simplecov (0.17.1)
|
100
|
+
docile (~> 1.1)
|
95
101
|
json (>= 1.8, < 3)
|
96
102
|
simplecov-html (~> 0.10.0)
|
97
|
-
simplecov-html (0.10.
|
98
|
-
term-ansicolor (1.
|
99
|
-
tins (~>
|
100
|
-
thor (0.
|
101
|
-
thread_safe (0.3.
|
102
|
-
tins (
|
103
|
-
tzinfo (1.2.
|
103
|
+
simplecov-html (0.10.2)
|
104
|
+
term-ansicolor (1.2.2)
|
105
|
+
tins (~> 0.8)
|
106
|
+
thor (0.18.1)
|
107
|
+
thread_safe (0.3.6)
|
108
|
+
tins (0.13.2)
|
109
|
+
tzinfo (1.2.5)
|
104
110
|
thread_safe (~> 0.1)
|
105
|
-
yard (0.9.
|
111
|
+
yard (0.9.20)
|
106
112
|
|
107
113
|
PLATFORMS
|
108
114
|
ruby
|
@@ -116,7 +122,4 @@ DEPENDENCIES
|
|
116
122
|
mongoid (= 6.1.0)
|
117
123
|
rspec (>= 3.0.0)
|
118
124
|
simplecov (~> 0.7)
|
119
|
-
yard
|
120
|
-
|
121
|
-
BUNDLED WITH
|
122
|
-
1.14.3
|
125
|
+
yard
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "mongoid", "7.5.2"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "bundler"
|
9
|
+
gem "jeweler", "~> 2.1.1"
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
|
+
gem "yard"
|
12
|
+
gem "rspec", ">= 3.0.0"
|
13
|
+
gem "appraisal"
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (5.2.4.1)
|
5
|
+
activesupport (= 5.2.4.1)
|
6
|
+
activesupport (5.2.4.1)
|
7
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
8
|
+
i18n (>= 0.7, < 2)
|
9
|
+
minitest (~> 5.1)
|
10
|
+
tzinfo (~> 1.1)
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
appraisal (2.2.0)
|
14
|
+
bundler
|
15
|
+
rake
|
16
|
+
thor (>= 0.14.0)
|
17
|
+
bson (4.7.0)
|
18
|
+
builder (3.2.4)
|
19
|
+
concurrent-ruby (1.1.5)
|
20
|
+
coveralls (0.7.2)
|
21
|
+
multi_json (~> 1.3)
|
22
|
+
rest-client (= 1.6.7)
|
23
|
+
simplecov (>= 0.7)
|
24
|
+
term-ansicolor (= 1.2.2)
|
25
|
+
thor (= 0.18.1)
|
26
|
+
database_cleaner (1.7.0)
|
27
|
+
descendants_tracker (0.0.4)
|
28
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
29
|
+
diff-lcs (1.3)
|
30
|
+
docile (1.3.2)
|
31
|
+
faraday (0.9.2)
|
32
|
+
multipart-post (>= 1.2, < 3)
|
33
|
+
git (1.5.0)
|
34
|
+
github_api (0.11.3)
|
35
|
+
addressable (~> 2.3)
|
36
|
+
descendants_tracker (~> 0.0.1)
|
37
|
+
faraday (~> 0.8, < 0.10)
|
38
|
+
hashie (>= 1.2)
|
39
|
+
multi_json (>= 1.7.5, < 2.0)
|
40
|
+
nokogiri (~> 1.6.0)
|
41
|
+
oauth2
|
42
|
+
hashie (4.0.0)
|
43
|
+
highline (2.0.3)
|
44
|
+
i18n (1.7.0)
|
45
|
+
concurrent-ruby (~> 1.0)
|
46
|
+
jeweler (2.1.2)
|
47
|
+
builder
|
48
|
+
bundler (>= 1.0)
|
49
|
+
git (>= 1.2.5)
|
50
|
+
github_api (~> 0.11.0)
|
51
|
+
highline (>= 1.6.15)
|
52
|
+
nokogiri (>= 1.5.10)
|
53
|
+
rake
|
54
|
+
rdoc
|
55
|
+
semver
|
56
|
+
json (2.3.0)
|
57
|
+
jwt (2.2.1)
|
58
|
+
mime-types (3.3)
|
59
|
+
mime-types-data (~> 3.2015)
|
60
|
+
mime-types-data (3.2019.1009)
|
61
|
+
mini_portile2 (2.1.0)
|
62
|
+
minitest (5.13.0)
|
63
|
+
mongo (2.11.2)
|
64
|
+
bson (>= 4.6.0, < 5.0.0)
|
65
|
+
mongoid (7.0.0)
|
66
|
+
activemodel (>= 5.1, < 6.0.0)
|
67
|
+
mongo (>= 2.5.1, < 3.0.0)
|
68
|
+
multi_json (1.14.1)
|
69
|
+
multi_xml (0.6.0)
|
70
|
+
multipart-post (2.1.1)
|
71
|
+
nokogiri (1.6.8.1)
|
72
|
+
mini_portile2 (~> 2.1.0)
|
73
|
+
oauth2 (1.4.2)
|
74
|
+
faraday (>= 0.8, < 2.0)
|
75
|
+
jwt (>= 1.0, < 3.0)
|
76
|
+
multi_json (~> 1.3)
|
77
|
+
multi_xml (~> 0.5)
|
78
|
+
rack (>= 1.2, < 3)
|
79
|
+
public_suffix (4.0.1)
|
80
|
+
rack (2.0.8)
|
81
|
+
rake (13.0.1)
|
82
|
+
rdoc (6.2.0)
|
83
|
+
rest-client (1.6.7)
|
84
|
+
mime-types (>= 1.16)
|
85
|
+
rspec (3.9.0)
|
86
|
+
rspec-core (~> 3.9.0)
|
87
|
+
rspec-expectations (~> 3.9.0)
|
88
|
+
rspec-mocks (~> 3.9.0)
|
89
|
+
rspec-core (3.9.0)
|
90
|
+
rspec-support (~> 3.9.0)
|
91
|
+
rspec-expectations (3.9.0)
|
92
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
+
rspec-support (~> 3.9.0)
|
94
|
+
rspec-mocks (3.9.0)
|
95
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
+
rspec-support (~> 3.9.0)
|
97
|
+
rspec-support (3.9.0)
|
98
|
+
semver (1.0.1)
|
99
|
+
simplecov (0.17.1)
|
100
|
+
docile (~> 1.1)
|
101
|
+
json (>= 1.8, < 3)
|
102
|
+
simplecov-html (~> 0.10.0)
|
103
|
+
simplecov-html (0.10.2)
|
104
|
+
term-ansicolor (1.2.2)
|
105
|
+
tins (~> 0.8)
|
106
|
+
thor (0.18.1)
|
107
|
+
thread_safe (0.3.6)
|
108
|
+
tins (0.13.2)
|
109
|
+
tzinfo (1.2.5)
|
110
|
+
thread_safe (~> 0.1)
|
111
|
+
yard (0.9.20)
|
112
|
+
|
113
|
+
PLATFORMS
|
114
|
+
ruby
|
115
|
+
|
116
|
+
DEPENDENCIES
|
117
|
+
appraisal
|
118
|
+
bundler
|
119
|
+
coveralls
|
120
|
+
database_cleaner (>= 0.8.0)
|
121
|
+
jeweler (~> 2.1.1)
|
122
|
+
mongoid (= 7.0.0)
|
123
|
+
rspec (>= 3.0.0)
|
124
|
+
simplecov (~> 0.7)
|
125
|
+
yard
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "mongoid", "8.0.3"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "bundler"
|
9
|
+
gem "jeweler", "~> 2.1.1"
|
10
|
+
gem "simplecov", "~> 0.7", require: false
|
11
|
+
gem "yard"
|
12
|
+
gem "rspec", ">= 3.0.0"
|
13
|
+
gem "appraisal"
|
14
|
+
gem "coveralls", require: false
|
15
|
+
gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1"
|
16
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (7.0.4.2)
|
5
|
+
activesupport (= 7.0.4.2)
|
6
|
+
activesupport (7.0.4.2)
|
7
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
8
|
+
i18n (>= 1.6, < 2)
|
9
|
+
minitest (>= 5.1)
|
10
|
+
tzinfo (~> 2.0)
|
11
|
+
addressable (2.8.1)
|
12
|
+
public_suffix (>= 2.0.2, < 6.0)
|
13
|
+
appraisal (2.4.1)
|
14
|
+
bundler
|
15
|
+
rake
|
16
|
+
thor (>= 0.14.0)
|
17
|
+
bson (4.15.0)
|
18
|
+
builder (3.2.4)
|
19
|
+
concurrent-ruby (1.2.2)
|
20
|
+
coveralls (0.8.23)
|
21
|
+
json (>= 1.8, < 3)
|
22
|
+
simplecov (~> 0.16.1)
|
23
|
+
term-ansicolor (~> 1.3)
|
24
|
+
thor (>= 0.19.4, < 2.0)
|
25
|
+
tins (~> 1.6)
|
26
|
+
database_cleaner-core (2.0.1)
|
27
|
+
database_cleaner-mongoid (2.0.1)
|
28
|
+
database_cleaner-core (~> 2.0.0)
|
29
|
+
mongoid
|
30
|
+
descendants_tracker (0.0.4)
|
31
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
32
|
+
diff-lcs (1.5.0)
|
33
|
+
docile (1.4.0)
|
34
|
+
faraday (0.9.2)
|
35
|
+
multipart-post (>= 1.2, < 3)
|
36
|
+
git (1.17.1)
|
37
|
+
addressable (~> 2.8)
|
38
|
+
rchardet (~> 1.8)
|
39
|
+
github_api (0.11.3)
|
40
|
+
addressable (~> 2.3)
|
41
|
+
descendants_tracker (~> 0.0.1)
|
42
|
+
faraday (~> 0.8, < 0.10)
|
43
|
+
hashie (>= 1.2)
|
44
|
+
multi_json (>= 1.7.5, < 2.0)
|
45
|
+
nokogiri (~> 1.6.0)
|
46
|
+
oauth2
|
47
|
+
hashie (5.0.0)
|
48
|
+
highline (2.1.0)
|
49
|
+
i18n (1.12.0)
|
50
|
+
concurrent-ruby (~> 1.0)
|
51
|
+
jeweler (2.1.2)
|
52
|
+
builder
|
53
|
+
bundler (>= 1.0)
|
54
|
+
git (>= 1.2.5)
|
55
|
+
github_api (~> 0.11.0)
|
56
|
+
highline (>= 1.6.15)
|
57
|
+
nokogiri (>= 1.5.10)
|
58
|
+
rake
|
59
|
+
rdoc
|
60
|
+
semver
|
61
|
+
json (2.6.3)
|
62
|
+
jwt (2.7.0)
|
63
|
+
mini_portile2 (2.1.0)
|
64
|
+
minitest (5.18.0)
|
65
|
+
mongo (2.18.2)
|
66
|
+
bson (>= 4.14.1, < 5.0.0)
|
67
|
+
mongoid (8.0.3)
|
68
|
+
activemodel (>= 5.1, < 7.1, != 7.0.0)
|
69
|
+
mongo (>= 2.18.0, < 3.0.0)
|
70
|
+
ruby2_keywords (~> 0.0.5)
|
71
|
+
multi_json (1.15.0)
|
72
|
+
multi_xml (0.6.0)
|
73
|
+
multipart-post (2.3.0)
|
74
|
+
nokogiri (1.6.8.1)
|
75
|
+
mini_portile2 (~> 2.1.0)
|
76
|
+
oauth2 (1.4.8)
|
77
|
+
faraday (>= 0.8, < 3.0)
|
78
|
+
jwt (>= 1.0, < 3.0)
|
79
|
+
multi_json (~> 1.3)
|
80
|
+
multi_xml (~> 0.5)
|
81
|
+
rack (>= 1.2, < 3)
|
82
|
+
psych (5.1.0)
|
83
|
+
stringio
|
84
|
+
public_suffix (5.0.1)
|
85
|
+
rack (2.2.6.3)
|
86
|
+
rake (13.0.6)
|
87
|
+
rchardet (1.8.0)
|
88
|
+
rdoc (6.5.0)
|
89
|
+
psych (>= 4.0.0)
|
90
|
+
rspec (3.12.0)
|
91
|
+
rspec-core (~> 3.12.0)
|
92
|
+
rspec-expectations (~> 3.12.0)
|
93
|
+
rspec-mocks (~> 3.12.0)
|
94
|
+
rspec-core (3.12.1)
|
95
|
+
rspec-support (~> 3.12.0)
|
96
|
+
rspec-expectations (3.12.2)
|
97
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
+
rspec-support (~> 3.12.0)
|
99
|
+
rspec-mocks (3.12.3)
|
100
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
+
rspec-support (~> 3.12.0)
|
102
|
+
rspec-support (3.12.0)
|
103
|
+
ruby2_keywords (0.0.5)
|
104
|
+
semver (1.0.1)
|
105
|
+
simplecov (0.16.1)
|
106
|
+
docile (~> 1.1)
|
107
|
+
json (>= 1.8, < 3)
|
108
|
+
simplecov-html (~> 0.10.0)
|
109
|
+
simplecov-html (0.10.2)
|
110
|
+
stringio (3.0.5)
|
111
|
+
sync (0.5.0)
|
112
|
+
term-ansicolor (1.7.1)
|
113
|
+
tins (~> 1.0)
|
114
|
+
thor (1.2.1)
|
115
|
+
thread_safe (0.3.6)
|
116
|
+
tins (1.32.1)
|
117
|
+
sync
|
118
|
+
tzinfo (2.0.6)
|
119
|
+
concurrent-ruby (~> 1.0)
|
120
|
+
webrick (1.7.0)
|
121
|
+
yard (0.9.28)
|
122
|
+
webrick (~> 1.7.0)
|
123
|
+
|
124
|
+
PLATFORMS
|
125
|
+
x86_64-darwin-21
|
126
|
+
|
127
|
+
DEPENDENCIES
|
128
|
+
appraisal
|
129
|
+
bundler
|
130
|
+
coveralls
|
131
|
+
database_cleaner-mongoid (~> 2.0, >= 2.0.1)
|
132
|
+
jeweler (~> 2.1.1)
|
133
|
+
mongoid (= 8.0.3)
|
134
|
+
rspec (>= 3.0.0)
|
135
|
+
simplecov (~> 0.7)
|
136
|
+
yard
|
137
|
+
|
138
|
+
BUNDLED WITH
|
139
|
+
2.4.6
|
data/mongoid_rateable.gemspec
CHANGED
@@ -2,24 +2,26 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: mongoid_rateable 0.4.
|
5
|
+
# stub: mongoid_rateable 0.4.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mongoid_rateable".freeze
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
|
-
s.authors = ["
|
14
|
-
s.date = "
|
13
|
+
s.authors = ["Petr Savichev (proton)".freeze]
|
14
|
+
s.date = "2023-03-07"
|
15
15
|
s.description = "Provides fields and methods for the rating manipulation on Mongoid documents.".freeze
|
16
16
|
s.email = "psavichev@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
|
+
"CHANGELOG.md",
|
18
19
|
"LICENSE.txt",
|
19
|
-
"README.
|
20
|
+
"README.md",
|
20
21
|
"TODO"
|
21
22
|
]
|
22
23
|
s.files = [
|
24
|
+
".github/FUNDING.yml",
|
23
25
|
".rspec",
|
24
26
|
".ruby-version",
|
25
27
|
".travis.yml",
|
@@ -27,7 +29,7 @@ Gem::Specification.new do |s|
|
|
27
29
|
"CHANGELOG.md",
|
28
30
|
"Gemfile",
|
29
31
|
"LICENSE.txt",
|
30
|
-
"README.
|
32
|
+
"README.md",
|
31
33
|
"Rakefile",
|
32
34
|
"TODO",
|
33
35
|
"VERSION",
|
@@ -39,6 +41,10 @@ Gem::Specification.new do |s|
|
|
39
41
|
"gemfiles/mongoid_5.gemfile.lock",
|
40
42
|
"gemfiles/mongoid_6.gemfile",
|
41
43
|
"gemfiles/mongoid_6.gemfile.lock",
|
44
|
+
"gemfiles/mongoid_7.gemfile",
|
45
|
+
"gemfiles/mongoid_7.gemfile.lock",
|
46
|
+
"gemfiles/mongoid_8.gemfile",
|
47
|
+
"gemfiles/mongoid_8.gemfile.lock",
|
42
48
|
"lib/mongoid_rateable.rb",
|
43
49
|
"lib/mongoid_rateable/rateable.rb",
|
44
50
|
"lib/mongoid_rateable/rating.rb",
|
@@ -53,43 +59,19 @@ Gem::Specification.new do |s|
|
|
53
59
|
]
|
54
60
|
s.homepage = "http://github.com/proton/mongoid_rateable".freeze
|
55
61
|
s.licenses = ["MIT".freeze]
|
56
|
-
s.rubygems_version = "
|
62
|
+
s.rubygems_version = "3.4.6".freeze
|
57
63
|
s.summary = "Rating functionality for Mongoid documents".freeze
|
58
64
|
|
59
|
-
|
60
|
-
s.specification_version = 4
|
65
|
+
s.specification_version = 4
|
61
66
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
s.add_development_dependency(%q<database_cleaner>.freeze, [">= 0.8.0"])
|
72
|
-
else
|
73
|
-
s.add_dependency(%q<mongoid>.freeze, [">= 3.0"])
|
74
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
75
|
-
s.add_dependency(%q<jeweler>.freeze, ["~> 2.1.1"])
|
76
|
-
s.add_dependency(%q<simplecov>.freeze, ["~> 0.7"])
|
77
|
-
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
78
|
-
s.add_dependency(%q<rspec>.freeze, [">= 3.0.0"])
|
79
|
-
s.add_dependency(%q<appraisal>.freeze, [">= 0"])
|
80
|
-
s.add_dependency(%q<coveralls>.freeze, [">= 0"])
|
81
|
-
s.add_dependency(%q<database_cleaner>.freeze, [">= 0.8.0"])
|
82
|
-
end
|
83
|
-
else
|
84
|
-
s.add_dependency(%q<mongoid>.freeze, [">= 3.0"])
|
85
|
-
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
86
|
-
s.add_dependency(%q<jeweler>.freeze, ["~> 2.1.1"])
|
87
|
-
s.add_dependency(%q<simplecov>.freeze, ["~> 0.7"])
|
88
|
-
s.add_dependency(%q<yard>.freeze, [">= 0"])
|
89
|
-
s.add_dependency(%q<rspec>.freeze, [">= 3.0.0"])
|
90
|
-
s.add_dependency(%q<appraisal>.freeze, [">= 0"])
|
91
|
-
s.add_dependency(%q<coveralls>.freeze, [">= 0"])
|
92
|
-
s.add_dependency(%q<database_cleaner>.freeze, [">= 0.8.0"])
|
93
|
-
end
|
67
|
+
s.add_runtime_dependency(%q<mongoid>.freeze, [">= 3.0"])
|
68
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
69
|
+
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.1.1"])
|
70
|
+
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.7"])
|
71
|
+
s.add_development_dependency(%q<yard>.freeze, [">= 0"])
|
72
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 3.0.0"])
|
73
|
+
s.add_development_dependency(%q<appraisal>.freeze, [">= 0"])
|
74
|
+
s.add_development_dependency(%q<coveralls>.freeze, [">= 0"])
|
75
|
+
s.add_development_dependency(%q<database_cleaner-mongoid>.freeze, ["~> 2.0", ">= 2.0.1"])
|
94
76
|
end
|
95
77
|
|
data/spec/spec_helper.rb
CHANGED
@@ -7,7 +7,7 @@ require 'rubygems'
|
|
7
7
|
require 'mongoid'
|
8
8
|
require 'mongoid_rateable'
|
9
9
|
require 'simplecov'
|
10
|
-
require 'database_cleaner'
|
10
|
+
require 'database_cleaner/mongoid'
|
11
11
|
require 'coveralls'
|
12
12
|
|
13
13
|
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
@@ -28,18 +28,16 @@ end
|
|
28
28
|
|
29
29
|
Dir["#{MODELS}/*.rb"].each { |f| require f }
|
30
30
|
|
31
|
-
DatabaseCleaner.orm = "mongoid"
|
32
|
-
|
33
31
|
RSpec.configure do |config|
|
34
32
|
config.before(:all) do
|
35
|
-
DatabaseCleaner.strategy = :
|
33
|
+
DatabaseCleaner[:mongoid].strategy = :deletion
|
36
34
|
end
|
37
35
|
|
38
36
|
config.before(:each) do
|
39
|
-
DatabaseCleaner.start
|
37
|
+
DatabaseCleaner[:mongoid].start
|
40
38
|
end
|
41
39
|
|
42
40
|
config.after(:each) do
|
43
|
-
DatabaseCleaner.clean
|
41
|
+
DatabaseCleaner[:mongoid].clean
|
44
42
|
end
|
45
|
-
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_rateable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
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
|
@@ -123,28 +123,36 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: database_cleaner
|
126
|
+
name: database_cleaner-mongoid
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.0'
|
129
132
|
- - ">="
|
130
133
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
134
|
+
version: 2.0.1
|
132
135
|
type: :development
|
133
136
|
prerelease: false
|
134
137
|
version_requirements: !ruby/object:Gem::Requirement
|
135
138
|
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '2.0'
|
136
142
|
- - ">="
|
137
143
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
144
|
+
version: 2.0.1
|
139
145
|
description: Provides fields and methods for the rating manipulation on Mongoid documents.
|
140
146
|
email: psavichev@gmail.com
|
141
147
|
executables: []
|
142
148
|
extensions: []
|
143
149
|
extra_rdoc_files:
|
150
|
+
- CHANGELOG.md
|
144
151
|
- LICENSE.txt
|
145
|
-
- README.
|
152
|
+
- README.md
|
146
153
|
- TODO
|
147
154
|
files:
|
155
|
+
- ".github/FUNDING.yml"
|
148
156
|
- ".rspec"
|
149
157
|
- ".ruby-version"
|
150
158
|
- ".travis.yml"
|
@@ -152,7 +160,7 @@ files:
|
|
152
160
|
- CHANGELOG.md
|
153
161
|
- Gemfile
|
154
162
|
- LICENSE.txt
|
155
|
-
- README.
|
163
|
+
- README.md
|
156
164
|
- Rakefile
|
157
165
|
- TODO
|
158
166
|
- VERSION
|
@@ -164,6 +172,10 @@ files:
|
|
164
172
|
- gemfiles/mongoid_5.gemfile.lock
|
165
173
|
- gemfiles/mongoid_6.gemfile
|
166
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
|
167
179
|
- lib/mongoid_rateable.rb
|
168
180
|
- lib/mongoid_rateable/rateable.rb
|
169
181
|
- lib/mongoid_rateable/rating.rb
|
@@ -179,7 +191,7 @@ homepage: http://github.com/proton/mongoid_rateable
|
|
179
191
|
licenses:
|
180
192
|
- MIT
|
181
193
|
metadata: {}
|
182
|
-
post_install_message:
|
194
|
+
post_install_message:
|
183
195
|
rdoc_options: []
|
184
196
|
require_paths:
|
185
197
|
- lib
|
@@ -194,9 +206,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
206
|
- !ruby/object:Gem::Version
|
195
207
|
version: '0'
|
196
208
|
requirements: []
|
197
|
-
|
198
|
-
|
199
|
-
signing_key:
|
209
|
+
rubygems_version: 3.4.6
|
210
|
+
signing_key:
|
200
211
|
specification_version: 4
|
201
212
|
summary: Rating functionality for Mongoid documents
|
202
213
|
test_files: []
|