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
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MzE1NWFjNTJjNWY0ZDZjYTU5NTA4NjU2NTgwNWJlZjdhY2VhYTY0ZA==
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 61c0dc62454be20442f6420744e3b04dfe058f4104c60e368b7c29a58097cdf5
|
4
|
+
data.tar.gz: 45c4d77dd0ac7a6cb3a2c1d29c9589d82470006c6ef471439dce74ae6cbc5525
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MDVjZTM2YzI1NzJjMTVjODVkNDQ5MzQ0Zjk2NDNlZmM3ODg0OTc1Y2JmNjFj
|
11
|
-
MTNmOGUwMTUzMzM5YzdhZTU5NWIwMTcxZmU3YWY2YTU3NTA0YTU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDc0OGUxOTkxODFjNmNiMGJmMGNjOGM5MzU3ZmRmZDRkMGViOTZkY2RhZWUw
|
14
|
-
Y2ZiNDQzZmQyZmU5YzJiMDZlZjAxOTllOGQ5ZmNmZjlhNmYyM2NiMzZiNTU2
|
15
|
-
OTEzODcxODViZjIzMGZjN2IxNTEzMmVmODVlNDgyZjEwN2MyNjQ=
|
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
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.1
|
data/.travis.yml
CHANGED
@@ -1 +1,24 @@
|
|
1
|
-
|
1
|
+
language: ruby
|
2
|
+
before_install: gem update bundler
|
3
|
+
rvm:
|
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
|
15
|
+
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
|
22
|
+
services:
|
23
|
+
- mongodb
|
24
|
+
sudo: false
|
data/Appraisals
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
appraise 'mongoid-3' do
|
2
|
+
gem 'mongoid', '3.1.7'
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise 'mongoid-4' do
|
6
|
+
gem 'mongoid', '4.0.2'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'mongoid-5' do
|
10
|
+
gem 'mongoid', '5.2.0'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'mongoid-6' do
|
14
|
+
gem 'mongoid', '6.1.0'
|
15
|
+
end
|
16
|
+
|
17
|
+
appraise 'mongoid-7' do
|
18
|
+
gem 'mongoid', '7.5.2'
|
19
|
+
end
|
20
|
+
|
21
|
+
appraise 'mongoid-8' do
|
22
|
+
gem 'mongoid', '8.0.3'
|
23
|
+
end
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'mongoid', '
|
3
|
+
gem 'mongoid', '>= 3.0'
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem 'bundler'
|
7
|
-
gem 'jeweler', '~> 1.
|
8
|
-
gem 'simplecov', '~> 0.
|
9
|
-
gem '
|
10
|
-
gem 'rspec', '
|
11
|
-
gem '
|
6
|
+
gem 'bundler'
|
7
|
+
gem 'jeweler', '~> 2.1.1'
|
8
|
+
gem 'simplecov', '~> 0.7', require: false
|
9
|
+
gem 'yard'
|
10
|
+
gem 'rspec', '>= 3.0.0'
|
11
|
+
gem 'appraisal'
|
12
|
+
gem 'coveralls', require: false
|
13
|
+
gem 'database_cleaner-mongoid', '~> 2.0', '>= 2.0.1'
|
12
14
|
end
|
13
|
-
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,29 +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.
|
8
|
-
If you need a mongoid 2 support, look at mongoid_rateable 0.1.7.
|
8
|
+
Lastest version of Mongoid:Rateable requires mongoid 3, 4, 5, 6, 7 and 8.
|
9
9
|
|
10
|
-
|
10
|
+
If you need a mongoid 2 support, look at mongoid_rateable 0.1.7.
|
11
11
|
|
12
|
+
## Support us
|
12
13
|
|
13
|
-
|
14
|
+
https://www.patreon.com/_proton
|
14
15
|
|
15
|
-
|
16
|
+
## Installation
|
16
17
|
|
17
18
|
Add to Gemfile:
|
18
19
|
|
19
20
|
gem 'mongoid_rateable'
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
## Getting Started
|
23
23
|
|
24
|
-
Simply use the `rateable` macro from any class that is a Mongoid Document.
|
24
|
+
Simply use the `rateable` macro from any class that is a Mongoid Document.
|
25
25
|
|
26
|
-
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.
|
27
29
|
|
28
30
|
class Post
|
29
31
|
include Mongoid::Document
|
@@ -36,7 +38,7 @@ You can also set the `default_rater`
|
|
36
38
|
class Post
|
37
39
|
include Mongoid::Document
|
38
40
|
|
39
|
-
# will simply call the 'owner' method to find the default rater
|
41
|
+
# will simply call the 'owner' method to find the default rater
|
40
42
|
# if no rater given when rating
|
41
43
|
|
42
44
|
rateable range: (-5..7), raters: [User, Admin], default_rater: 'owner'
|
@@ -45,20 +47,21 @@ You can also set the `default_rater`
|
|
45
47
|
class Post
|
46
48
|
include Mongoid::Document
|
47
49
|
|
48
|
-
# if given a block, this will be used as a dynamic way to find
|
50
|
+
# if given a block, this will be used as a dynamic way to find
|
49
51
|
# the a rater in case no rater is passed in as the 2nd argument to
|
50
52
|
# the rate method
|
51
53
|
|
52
54
|
rateable range: (-5..7), raters: [User, Admin] do
|
53
|
-
# will by default be rated by the last user
|
55
|
+
# will by default be rated by the last user
|
54
56
|
# who made a comment to this post!
|
55
57
|
comments.last.user
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
59
|
-
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`.
|
60
63
|
|
61
|
-
|
64
|
+
## Cast Rates
|
62
65
|
|
63
66
|
You can rate by passing an integer and a rater model to the "rate" method:
|
64
67
|
|
@@ -73,7 +76,7 @@ You can rate by passing an integer and a rater model to the "rate" method:
|
|
73
76
|
# Many users love this!
|
74
77
|
@post.rate 5, @users # They LOVIN' it!
|
75
78
|
|
76
|
-
Rates have weight (1 by
|
79
|
+
Rates have weight (1 by default)
|
77
80
|
|
78
81
|
@post.rate 5, @user, 3 # Rate @post with weight 3 (@user has high karma)
|
79
82
|
@post.rate 3, @user, 1 # Rate @post with weight 1 (@user has low karma)
|
@@ -86,12 +89,12 @@ And don't forget to save rateable object:
|
|
86
89
|
|
87
90
|
@post.save
|
88
91
|
|
89
|
-
Sure, you can rate and save in one
|
92
|
+
Sure, you can rate and save in one function:
|
90
93
|
|
91
94
|
@post.rate_and_save(3, @user)
|
92
95
|
@post.unrate_and_save(@user)
|
93
96
|
|
94
|
-
|
97
|
+
## Additional Functionality
|
95
98
|
|
96
99
|
You'll often want to know if a user already rated post. Simple:
|
97
100
|
|
@@ -105,6 +108,10 @@ You can get user mark:
|
|
105
108
|
|
106
109
|
@post.user_mark(@user) # Mark or nil (if not rated by user)
|
107
110
|
|
111
|
+
Or marks:
|
112
|
+
|
113
|
+
@post.user_marks([@user1, @user2]) # Hash {user.id => mark}
|
114
|
+
|
108
115
|
You can also get a tally of the number of rates cast:
|
109
116
|
|
110
117
|
@post.rate_count # Just one so far!
|
@@ -117,7 +124,8 @@ And you can get the average rating:
|
|
117
124
|
|
118
125
|
@post.rating # rates / rate_weight
|
119
126
|
|
120
|
-
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):
|
121
129
|
|
122
130
|
@post.unweighted_rating # rates without weights / rate_count
|
123
131
|
|
@@ -126,7 +134,7 @@ And you can get the previous rating and delta:
|
|
126
134
|
@post.previous_rating
|
127
135
|
@post.rating_delta # rating - previous_rating
|
128
136
|
|
129
|
-
|
137
|
+
## Scopes
|
130
138
|
|
131
139
|
You can get rated or unrated posts:
|
132
140
|
|
@@ -143,23 +151,29 @@ You can get posts with some rating:
|
|
143
151
|
Post.with_rating(0..10)
|
144
152
|
Post.with_rating(-2..2)
|
145
153
|
|
146
|
-
You can get most rated and highest rated posts:
|
147
|
-
|
154
|
+
You can get most rated and highest rated posts: (Sorry, this method doesn't
|
155
|
+
work with embedded documents)
|
148
156
|
|
149
157
|
Post.highest_rated # 10 (or less) highest rated posts
|
150
158
|
Post.highest_rated(5) # 5 (or less) highest rated posts
|
151
159
|
|
152
|
-
|
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.
|
153
174
|
|
154
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
155
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
156
|
-
* Fork the project
|
157
|
-
* Start a feature/bugfix branch
|
158
|
-
* Commit and push until you are happy with your contribution
|
159
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
160
|
-
* 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.
|
161
175
|
|
162
|
-
|
176
|
+
## Copyright
|
163
177
|
|
164
|
-
Copyright (c) 2011
|
165
|
-
|
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
|
@@ -37,7 +37,7 @@ task :default => :spec
|
|
37
37
|
|
38
38
|
require 'rdoc/task'
|
39
39
|
RDoc::Task.new do |rdoc|
|
40
|
-
|
40
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
41
41
|
|
42
42
|
rdoc.rdoc_dir = 'rdoc'
|
43
43
|
rdoc.title = "mongoid_rateable #{version}"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.1
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "mongoid", "3.1.7"
|
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,116 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (3.2.22.5)
|
5
|
+
activesupport (= 3.2.22.5)
|
6
|
+
builder (~> 3.0.0)
|
7
|
+
activesupport (3.2.22.5)
|
8
|
+
i18n (~> 0.6, >= 0.6.4)
|
9
|
+
multi_json (~> 1.0)
|
10
|
+
addressable (2.5.0)
|
11
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
12
|
+
appraisal (2.1.0)
|
13
|
+
bundler
|
14
|
+
rake
|
15
|
+
thor (>= 0.14.0)
|
16
|
+
builder (3.0.4)
|
17
|
+
coveralls (0.8.19)
|
18
|
+
json (>= 1.8, < 3)
|
19
|
+
simplecov (~> 0.12.0)
|
20
|
+
term-ansicolor (~> 1.3)
|
21
|
+
thor (~> 0.19.1)
|
22
|
+
tins (~> 1.6)
|
23
|
+
database_cleaner (1.5.3)
|
24
|
+
descendants_tracker (0.0.4)
|
25
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
26
|
+
diff-lcs (1.3)
|
27
|
+
docile (1.1.5)
|
28
|
+
faraday (0.9.2)
|
29
|
+
multipart-post (>= 1.2, < 3)
|
30
|
+
git (1.3.0)
|
31
|
+
github_api (0.11.3)
|
32
|
+
addressable (~> 2.3)
|
33
|
+
descendants_tracker (~> 0.0.1)
|
34
|
+
faraday (~> 0.8, < 0.10)
|
35
|
+
hashie (>= 1.2)
|
36
|
+
multi_json (>= 1.7.5, < 2.0)
|
37
|
+
nokogiri (~> 1.6.0)
|
38
|
+
oauth2
|
39
|
+
hashie (3.4.6)
|
40
|
+
highline (1.7.8)
|
41
|
+
i18n (0.7.0)
|
42
|
+
jeweler (2.1.2)
|
43
|
+
builder
|
44
|
+
bundler (>= 1.0)
|
45
|
+
git (>= 1.2.5)
|
46
|
+
github_api (~> 0.11.0)
|
47
|
+
highline (>= 1.6.15)
|
48
|
+
nokogiri (>= 1.5.10)
|
49
|
+
rake
|
50
|
+
rdoc
|
51
|
+
semver
|
52
|
+
json (2.0.3)
|
53
|
+
jwt (1.5.6)
|
54
|
+
mini_portile2 (2.1.0)
|
55
|
+
mongoid (3.1.7)
|
56
|
+
activemodel (~> 3.2)
|
57
|
+
moped (~> 1.4)
|
58
|
+
origin (~> 1.0)
|
59
|
+
tzinfo (~> 0.3.29)
|
60
|
+
moped (1.5.3)
|
61
|
+
multi_json (1.12.1)
|
62
|
+
multi_xml (0.6.0)
|
63
|
+
multipart-post (2.0.0)
|
64
|
+
nokogiri (1.6.8.1)
|
65
|
+
mini_portile2 (~> 2.1.0)
|
66
|
+
oauth2 (1.3.0)
|
67
|
+
faraday (>= 0.8, < 0.11)
|
68
|
+
jwt (~> 1.0)
|
69
|
+
multi_json (~> 1.3)
|
70
|
+
multi_xml (~> 0.5)
|
71
|
+
rack (>= 1.2, < 3)
|
72
|
+
origin (1.1.0)
|
73
|
+
public_suffix (2.0.5)
|
74
|
+
rack (2.0.1)
|
75
|
+
rake (12.0.0)
|
76
|
+
rdoc (5.0.0)
|
77
|
+
rspec (3.5.0)
|
78
|
+
rspec-core (~> 3.5.0)
|
79
|
+
rspec-expectations (~> 3.5.0)
|
80
|
+
rspec-mocks (~> 3.5.0)
|
81
|
+
rspec-core (3.5.4)
|
82
|
+
rspec-support (~> 3.5.0)
|
83
|
+
rspec-expectations (3.5.0)
|
84
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
+
rspec-support (~> 3.5.0)
|
86
|
+
rspec-mocks (3.5.0)
|
87
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
+
rspec-support (~> 3.5.0)
|
89
|
+
rspec-support (3.5.0)
|
90
|
+
semver (1.0.1)
|
91
|
+
simplecov (0.12.0)
|
92
|
+
docile (~> 1.1.0)
|
93
|
+
json (>= 1.8, < 3)
|
94
|
+
simplecov-html (~> 0.10.0)
|
95
|
+
simplecov-html (0.10.0)
|
96
|
+
term-ansicolor (1.4.0)
|
97
|
+
tins (~> 1.0)
|
98
|
+
thor (0.19.4)
|
99
|
+
thread_safe (0.3.5)
|
100
|
+
tins (1.13.0)
|
101
|
+
tzinfo (0.3.52)
|
102
|
+
yard (0.9.8)
|
103
|
+
|
104
|
+
PLATFORMS
|
105
|
+
ruby
|
106
|
+
|
107
|
+
DEPENDENCIES
|
108
|
+
appraisal
|
109
|
+
bundler
|
110
|
+
coveralls
|
111
|
+
database_cleaner (>= 0.8.0)
|
112
|
+
jeweler (~> 2.1.1)
|
113
|
+
mongoid (= 3.1.7)
|
114
|
+
rspec (>= 3.0.0)
|
115
|
+
simplecov (~> 0.7)
|
116
|
+
yard
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "mongoid", "4.0.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,127 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activemodel (4.2.7.1)
|
5
|
+
activesupport (= 4.2.7.1)
|
6
|
+
builder (~> 3.1)
|
7
|
+
activesupport (4.2.7.1)
|
8
|
+
i18n (~> 0.7)
|
9
|
+
json (~> 1.7, >= 1.7.7)
|
10
|
+
minitest (~> 5.1)
|
11
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
12
|
+
tzinfo (~> 1.1)
|
13
|
+
addressable (2.5.0)
|
14
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
15
|
+
appraisal (2.1.0)
|
16
|
+
bundler
|
17
|
+
rake
|
18
|
+
thor (>= 0.14.0)
|
19
|
+
bson (3.2.6)
|
20
|
+
builder (3.2.3)
|
21
|
+
connection_pool (2.2.1)
|
22
|
+
coveralls (0.8.19)
|
23
|
+
json (>= 1.8, < 3)
|
24
|
+
simplecov (~> 0.12.0)
|
25
|
+
term-ansicolor (~> 1.3)
|
26
|
+
thor (~> 0.19.1)
|
27
|
+
tins (~> 1.6)
|
28
|
+
database_cleaner (1.5.3)
|
29
|
+
descendants_tracker (0.0.4)
|
30
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
31
|
+
diff-lcs (1.3)
|
32
|
+
docile (1.1.5)
|
33
|
+
faraday (0.9.2)
|
34
|
+
multipart-post (>= 1.2, < 3)
|
35
|
+
git (1.3.0)
|
36
|
+
github_api (0.11.3)
|
37
|
+
addressable (~> 2.3)
|
38
|
+
descendants_tracker (~> 0.0.1)
|
39
|
+
faraday (~> 0.8, < 0.10)
|
40
|
+
hashie (>= 1.2)
|
41
|
+
multi_json (>= 1.7.5, < 2.0)
|
42
|
+
nokogiri (~> 1.6.0)
|
43
|
+
oauth2
|
44
|
+
hashie (3.4.6)
|
45
|
+
highline (1.7.8)
|
46
|
+
i18n (0.7.0)
|
47
|
+
jeweler (2.1.2)
|
48
|
+
builder
|
49
|
+
bundler (>= 1.0)
|
50
|
+
git (>= 1.2.5)
|
51
|
+
github_api (~> 0.11.0)
|
52
|
+
highline (>= 1.6.15)
|
53
|
+
nokogiri (>= 1.5.10)
|
54
|
+
rake
|
55
|
+
rdoc
|
56
|
+
semver
|
57
|
+
json (1.8.6)
|
58
|
+
jwt (1.5.6)
|
59
|
+
mini_portile2 (2.1.0)
|
60
|
+
minitest (5.10.1)
|
61
|
+
mongoid (4.0.2)
|
62
|
+
activemodel (~> 4.0)
|
63
|
+
moped (~> 2.0.0)
|
64
|
+
origin (~> 2.1)
|
65
|
+
tzinfo (>= 0.3.37)
|
66
|
+
moped (2.0.7)
|
67
|
+
bson (~> 3.0)
|
68
|
+
connection_pool (~> 2.0)
|
69
|
+
optionable (~> 0.2.0)
|
70
|
+
multi_json (1.12.1)
|
71
|
+
multi_xml (0.6.0)
|
72
|
+
multipart-post (2.0.0)
|
73
|
+
nokogiri (1.6.8.1)
|
74
|
+
mini_portile2 (~> 2.1.0)
|
75
|
+
oauth2 (1.3.0)
|
76
|
+
faraday (>= 0.8, < 0.11)
|
77
|
+
jwt (~> 1.0)
|
78
|
+
multi_json (~> 1.3)
|
79
|
+
multi_xml (~> 0.5)
|
80
|
+
rack (>= 1.2, < 3)
|
81
|
+
optionable (0.2.0)
|
82
|
+
origin (2.3.0)
|
83
|
+
public_suffix (2.0.5)
|
84
|
+
rack (2.0.1)
|
85
|
+
rake (12.0.0)
|
86
|
+
rdoc (5.0.0)
|
87
|
+
rspec (3.5.0)
|
88
|
+
rspec-core (~> 3.5.0)
|
89
|
+
rspec-expectations (~> 3.5.0)
|
90
|
+
rspec-mocks (~> 3.5.0)
|
91
|
+
rspec-core (3.5.4)
|
92
|
+
rspec-support (~> 3.5.0)
|
93
|
+
rspec-expectations (3.5.0)
|
94
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
+
rspec-support (~> 3.5.0)
|
96
|
+
rspec-mocks (3.5.0)
|
97
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
+
rspec-support (~> 3.5.0)
|
99
|
+
rspec-support (3.5.0)
|
100
|
+
semver (1.0.1)
|
101
|
+
simplecov (0.12.0)
|
102
|
+
docile (~> 1.1.0)
|
103
|
+
json (>= 1.8, < 3)
|
104
|
+
simplecov-html (~> 0.10.0)
|
105
|
+
simplecov-html (0.10.0)
|
106
|
+
term-ansicolor (1.4.0)
|
107
|
+
tins (~> 1.0)
|
108
|
+
thor (0.19.4)
|
109
|
+
thread_safe (0.3.5)
|
110
|
+
tins (1.13.0)
|
111
|
+
tzinfo (1.2.2)
|
112
|
+
thread_safe (~> 0.1)
|
113
|
+
yard (0.9.8)
|
114
|
+
|
115
|
+
PLATFORMS
|
116
|
+
ruby
|
117
|
+
|
118
|
+
DEPENDENCIES
|
119
|
+
appraisal
|
120
|
+
bundler
|
121
|
+
coveralls
|
122
|
+
database_cleaner (>= 0.8.0)
|
123
|
+
jeweler (~> 2.1.1)
|
124
|
+
mongoid (= 4.0.2)
|
125
|
+
rspec (>= 3.0.0)
|
126
|
+
simplecov (~> 0.7)
|
127
|
+
yard
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "http://rubygems.org"
|
4
|
+
|
5
|
+
gem "mongoid", "5.2.0"
|
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
|