activeadmin-mongoid 0.9.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/codecheck.yml +18 -0
- data/.github/workflows/tests.yml +45 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +104 -0
- data/CHANGELOG.md +28 -0
- data/Gemfile +11 -8
- data/README.md +21 -6
- data/activeadmin-mongoid.gemspec +10 -10
- data/lib/active_admin/mongoid/association/relatable.rb +20 -0
- data/lib/active_admin/mongoid/controllers/resource_controller.rb +9 -10
- data/lib/active_admin/mongoid/criteria.rb +0 -1
- data/lib/active_admin/mongoid/csv_builder.rb +11 -6
- data/lib/active_admin/mongoid/document.rb +5 -17
- data/lib/active_admin/mongoid/filter_form_builder.rb +5 -5
- data/lib/active_admin/mongoid/filters/resource_extension.rb +5 -3
- data/lib/active_admin/mongoid/helpers/collection.rb +3 -1
- data/lib/active_admin/mongoid/inputs/filters/select_input.rb +15 -6
- data/lib/active_admin/mongoid/resource/attributes.rb +2 -3
- data/lib/active_admin/mongoid/resource.rb +1 -1
- data/lib/active_admin/mongoid/version.rb +1 -1
- data/lib/active_admin/mongoid.rb +1 -0
- data/lib/activeadmin-mongoid.rb +26 -0
- data/lib/meta_search/searches/mongoid.rb +4 -4
- data/spec/features/smoke_spec.rb +20 -7
- data/spec/lib/active_admin/mongoid/filter_form_builder_spec.rb +5 -7
- data/spec/lib/active_admin/mongoid/filters/resource_extension_spec.rb +19 -0
- data/spec/spec_helper.rb +3 -5
- data/spec/support/capybara.rb +0 -2
- data/spec/support/debug.rb +2 -2
- data/spec/support/mongoid.rb +2 -2
- data/tasks/js.rake +0 -2
- data/tasks/test.rake +2 -6
- data/test_app/Rakefile +1 -1
- data/test_app/app/admin/admin_users.rb +0 -1
- data/test_app/app/admin/dashboard.rb +4 -5
- data/test_app/app/admin/posts.rb +1 -1
- data/test_app/app/assets/config/manifest.js +1 -0
- data/test_app/app/models/admin_user.rb +11 -11
- data/test_app/app/models/post.rb +2 -0
- data/test_app/bin/rails +4 -0
- data/test_app/bin/rake +4 -0
- data/test_app/bin/setup +25 -0
- data/test_app/config/application.rb +2 -1
- data/test_app/config/boot.rb +4 -5
- data/test_app/config/environment.rb +3 -3
- data/test_app/config/environments/development.rb +2 -1
- data/test_app/config/environments/production.rb +0 -1
- data/test_app/config/environments/test.rb +3 -2
- data/test_app/config/initializers/active_admin.rb +0 -13
- data/test_app/config/initializers/inflections.rb +6 -5
- data/test_app/config/initializers/wrap_parameters.rb +0 -1
- data/test_app/config/{mongoid.6.yml → mongoid.7.yml} +2 -3
- data/test_app/config/mongoid.8.yml +13 -0
- data/test_app/config.ru +1 -1
- data/test_app/db/migrate/20130514223107_create_admin_notes.rb +3 -3
- data/test_app/db/migrate/20130514223108_move_admin_notes_to_comments.rb +2 -2
- data/test_app/script/rails +2 -2
- data/test_app/test/test_helper.rb +1 -1
- metadata +48 -23
- data/.travis.yml +0 -11
- data/Gemfile.lock +0 -295
- data/test_app/config/mongoid.2.yml +0 -20
- data/test_app/config/mongoid.3.yml +0 -96
- data/test_app/config/mongoid.4.yml +0 -87
- data/test_app/config/mongoid.5.yml +0 -7
metadata
CHANGED
|
@@ -1,46 +1,66 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-mongoid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elia Schito
|
|
8
8
|
- Nic Boie
|
|
9
9
|
- JD Guzman
|
|
10
10
|
- Grzegorz Jakubiak
|
|
11
|
-
autorequire:
|
|
11
|
+
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: mongoid
|
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
|
19
|
+
requirements:
|
|
20
|
+
- - ">="
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '7.0'
|
|
23
|
+
- - "<"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '9'
|
|
26
|
+
type: :runtime
|
|
27
|
+
prerelease: false
|
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '7.0'
|
|
33
|
+
- - "<"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '9'
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: activeadmin
|
|
18
38
|
requirement: !ruby/object:Gem::Requirement
|
|
19
39
|
requirements:
|
|
20
40
|
- - "~>"
|
|
21
41
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
42
|
+
version: '2.0'
|
|
23
43
|
type: :runtime
|
|
24
44
|
prerelease: false
|
|
25
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
46
|
requirements:
|
|
27
47
|
- - "~>"
|
|
28
48
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
49
|
+
version: '2.0'
|
|
30
50
|
- !ruby/object:Gem::Dependency
|
|
31
|
-
name:
|
|
51
|
+
name: csv
|
|
32
52
|
requirement: !ruby/object:Gem::Requirement
|
|
33
53
|
requirements:
|
|
34
54
|
- - ">="
|
|
35
55
|
- !ruby/object:Gem::Version
|
|
36
|
-
version:
|
|
56
|
+
version: '0'
|
|
37
57
|
type: :runtime
|
|
38
58
|
prerelease: false
|
|
39
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
40
60
|
requirements:
|
|
41
61
|
- - ">="
|
|
42
62
|
- !ruby/object:Gem::Version
|
|
43
|
-
version:
|
|
63
|
+
version: '0'
|
|
44
64
|
- !ruby/object:Gem::Dependency
|
|
45
65
|
name: kaminari-mongoid
|
|
46
66
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -89,14 +109,14 @@ dependencies:
|
|
|
89
109
|
requirements:
|
|
90
110
|
- - "~>"
|
|
91
111
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '
|
|
112
|
+
version: '6.1'
|
|
93
113
|
type: :development
|
|
94
114
|
prerelease: false
|
|
95
115
|
version_requirements: !ruby/object:Gem::Requirement
|
|
96
116
|
requirements:
|
|
97
117
|
- - "~>"
|
|
98
118
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
119
|
+
version: '6.1'
|
|
100
120
|
description: ActiveAdmin hacks to support Mongoid (some ActiveAdmin features are disabled)
|
|
101
121
|
email:
|
|
102
122
|
- elia@schito.me
|
|
@@ -104,17 +124,20 @@ executables: []
|
|
|
104
124
|
extensions: []
|
|
105
125
|
extra_rdoc_files: []
|
|
106
126
|
files:
|
|
127
|
+
- ".github/workflows/codecheck.yml"
|
|
128
|
+
- ".github/workflows/tests.yml"
|
|
107
129
|
- ".gitignore"
|
|
108
130
|
- ".rspec"
|
|
109
|
-
- ".
|
|
131
|
+
- ".rubocop.yml"
|
|
132
|
+
- CHANGELOG.md
|
|
110
133
|
- CONDUCT.md
|
|
111
134
|
- Gemfile
|
|
112
|
-
- Gemfile.lock
|
|
113
135
|
- LICENSE
|
|
114
136
|
- README.md
|
|
115
137
|
- Rakefile
|
|
116
138
|
- activeadmin-mongoid.gemspec
|
|
117
139
|
- lib/active_admin/mongoid.rb
|
|
140
|
+
- lib/active_admin/mongoid/association/relatable.rb
|
|
118
141
|
- lib/active_admin/mongoid/controllers/resource_controller.rb
|
|
119
142
|
- lib/active_admin/mongoid/criteria.rb
|
|
120
143
|
- lib/active_admin/mongoid/csv_builder.rb
|
|
@@ -135,6 +158,7 @@ files:
|
|
|
135
158
|
- lib/tasks/activeadmin-mongoid_tasks.rake
|
|
136
159
|
- spec/features/smoke_spec.rb
|
|
137
160
|
- spec/lib/active_admin/mongoid/filter_form_builder_spec.rb
|
|
161
|
+
- spec/lib/active_admin/mongoid/filters/resource_extension_spec.rb
|
|
138
162
|
- spec/spec_helper.rb
|
|
139
163
|
- spec/support/capybara.rb
|
|
140
164
|
- spec/support/debug.rb
|
|
@@ -148,6 +172,7 @@ files:
|
|
|
148
172
|
- test_app/app/admin/admin_users.rb
|
|
149
173
|
- test_app/app/admin/dashboard.rb
|
|
150
174
|
- test_app/app/admin/posts.rb
|
|
175
|
+
- test_app/app/assets/config/manifest.js
|
|
151
176
|
- test_app/app/assets/images/rails.png
|
|
152
177
|
- test_app/app/assets/javascripts/active_admin.js
|
|
153
178
|
- test_app/app/assets/javascripts/application.js
|
|
@@ -162,6 +187,9 @@ files:
|
|
|
162
187
|
- test_app/app/models/city.rb
|
|
163
188
|
- test_app/app/models/post.rb
|
|
164
189
|
- test_app/app/views/layouts/application.html.erb
|
|
190
|
+
- test_app/bin/rails
|
|
191
|
+
- test_app/bin/rake
|
|
192
|
+
- test_app/bin/setup
|
|
165
193
|
- test_app/config.ru
|
|
166
194
|
- test_app/config/application.rb
|
|
167
195
|
- test_app/config/boot.rb
|
|
@@ -181,11 +209,8 @@ files:
|
|
|
181
209
|
- test_app/config/initializers/wrap_parameters.rb
|
|
182
210
|
- test_app/config/locales/devise.en.yml
|
|
183
211
|
- test_app/config/locales/en.yml
|
|
184
|
-
- test_app/config/mongoid.
|
|
185
|
-
- test_app/config/mongoid.
|
|
186
|
-
- test_app/config/mongoid.4.yml
|
|
187
|
-
- test_app/config/mongoid.5.yml
|
|
188
|
-
- test_app/config/mongoid.6.yml
|
|
212
|
+
- test_app/config/mongoid.7.yml
|
|
213
|
+
- test_app/config/mongoid.8.yml
|
|
189
214
|
- test_app/config/routes.rb
|
|
190
215
|
- test_app/db/migrate/20130514223107_create_admin_notes.rb
|
|
191
216
|
- test_app/db/migrate/20130514223108_move_admin_notes_to_comments.rb
|
|
@@ -211,11 +236,11 @@ files:
|
|
|
211
236
|
- test_app/vendor/assets/javascripts/.gitkeep
|
|
212
237
|
- test_app/vendor/assets/stylesheets/.gitkeep
|
|
213
238
|
- test_app/vendor/plugins/.gitkeep
|
|
214
|
-
homepage:
|
|
239
|
+
homepage: https://github.com/activeadmin/activeadmin-mongoid
|
|
215
240
|
licenses:
|
|
216
241
|
- MIT
|
|
217
242
|
metadata: {}
|
|
218
|
-
post_install_message:
|
|
243
|
+
post_install_message:
|
|
219
244
|
rdoc_options: []
|
|
220
245
|
require_paths:
|
|
221
246
|
- lib
|
|
@@ -223,21 +248,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
223
248
|
requirements:
|
|
224
249
|
- - ">="
|
|
225
250
|
- !ruby/object:Gem::Version
|
|
226
|
-
version: '
|
|
251
|
+
version: '3.1'
|
|
227
252
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
253
|
requirements:
|
|
229
254
|
- - ">="
|
|
230
255
|
- !ruby/object:Gem::Version
|
|
231
256
|
version: '0'
|
|
232
257
|
requirements: []
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
signing_key:
|
|
258
|
+
rubygems_version: 3.3.26
|
|
259
|
+
signing_key:
|
|
236
260
|
specification_version: 4
|
|
237
261
|
summary: ActiveAdmin hacks to support Mongoid
|
|
238
262
|
test_files:
|
|
239
263
|
- spec/features/smoke_spec.rb
|
|
240
264
|
- spec/lib/active_admin/mongoid/filter_form_builder_spec.rb
|
|
265
|
+
- spec/lib/active_admin/mongoid/filters/resource_extension_spec.rb
|
|
241
266
|
- spec/spec_helper.rb
|
|
242
267
|
- spec/support/capybara.rb
|
|
243
268
|
- spec/support/debug.rb
|
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/activerecord-hackery/ransack-mongoid
|
|
3
|
-
revision: bd1935293d2f285fa7cf33d2c5c90d981bf67338
|
|
4
|
-
specs:
|
|
5
|
-
ransack-mongoid (0.1.0)
|
|
6
|
-
|
|
7
|
-
PATH
|
|
8
|
-
remote: .
|
|
9
|
-
specs:
|
|
10
|
-
activeadmin-mongoid (0.9.0)
|
|
11
|
-
activeadmin (>= 1.4.3)
|
|
12
|
-
jquery-rails
|
|
13
|
-
kaminari-mongoid
|
|
14
|
-
mongoid (~> 6.0)
|
|
15
|
-
sass-rails (>= 3.1.4)
|
|
16
|
-
|
|
17
|
-
GEM
|
|
18
|
-
remote: https://rubygems.org/
|
|
19
|
-
specs:
|
|
20
|
-
actioncable (5.2.3)
|
|
21
|
-
actionpack (= 5.2.3)
|
|
22
|
-
nio4r (~> 2.0)
|
|
23
|
-
websocket-driver (>= 0.6.1)
|
|
24
|
-
actionmailer (5.2.3)
|
|
25
|
-
actionpack (= 5.2.3)
|
|
26
|
-
actionview (= 5.2.3)
|
|
27
|
-
activejob (= 5.2.3)
|
|
28
|
-
mail (~> 2.5, >= 2.5.4)
|
|
29
|
-
rails-dom-testing (~> 2.0)
|
|
30
|
-
actionpack (5.2.3)
|
|
31
|
-
actionview (= 5.2.3)
|
|
32
|
-
activesupport (= 5.2.3)
|
|
33
|
-
rack (~> 2.0)
|
|
34
|
-
rack-test (>= 0.6.3)
|
|
35
|
-
rails-dom-testing (~> 2.0)
|
|
36
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
37
|
-
actionview (5.2.3)
|
|
38
|
-
activesupport (= 5.2.3)
|
|
39
|
-
builder (~> 3.1)
|
|
40
|
-
erubi (~> 1.4)
|
|
41
|
-
rails-dom-testing (~> 2.0)
|
|
42
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
43
|
-
activeadmin (1.4.3)
|
|
44
|
-
arbre (>= 1.1.1)
|
|
45
|
-
coffee-rails
|
|
46
|
-
formtastic (~> 3.1)
|
|
47
|
-
formtastic_i18n
|
|
48
|
-
inherited_resources (>= 1.9.0)
|
|
49
|
-
jquery-rails (>= 4.2.0)
|
|
50
|
-
kaminari (>= 0.15)
|
|
51
|
-
railties (>= 4.2, < 5.3)
|
|
52
|
-
ransack (>= 1.8.7)
|
|
53
|
-
sass (~> 3.1)
|
|
54
|
-
sprockets (< 4.1)
|
|
55
|
-
activejob (5.2.3)
|
|
56
|
-
activesupport (= 5.2.3)
|
|
57
|
-
globalid (>= 0.3.6)
|
|
58
|
-
activemodel (5.2.3)
|
|
59
|
-
activesupport (= 5.2.3)
|
|
60
|
-
activerecord (5.2.3)
|
|
61
|
-
activemodel (= 5.2.3)
|
|
62
|
-
activesupport (= 5.2.3)
|
|
63
|
-
arel (>= 9.0)
|
|
64
|
-
activestorage (5.2.3)
|
|
65
|
-
actionpack (= 5.2.3)
|
|
66
|
-
activerecord (= 5.2.3)
|
|
67
|
-
marcel (~> 0.3.1)
|
|
68
|
-
activesupport (5.2.3)
|
|
69
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
70
|
-
i18n (>= 0.7, < 2)
|
|
71
|
-
minitest (~> 5.1)
|
|
72
|
-
tzinfo (~> 1.1)
|
|
73
|
-
addressable (2.5.2)
|
|
74
|
-
public_suffix (>= 2.0.2, < 4.0)
|
|
75
|
-
arbre (1.2.1)
|
|
76
|
-
activesupport (>= 3.0.0)
|
|
77
|
-
arel (9.0.0)
|
|
78
|
-
bcrypt (3.1.12)
|
|
79
|
-
bson (4.4.2)
|
|
80
|
-
builder (3.2.3)
|
|
81
|
-
capybara (3.12.0)
|
|
82
|
-
addressable
|
|
83
|
-
mini_mime (>= 0.1.3)
|
|
84
|
-
nokogiri (~> 1.8)
|
|
85
|
-
rack (>= 1.6.0)
|
|
86
|
-
rack-test (>= 0.6.3)
|
|
87
|
-
regexp_parser (~> 1.2)
|
|
88
|
-
xpath (~> 3.2)
|
|
89
|
-
cliver (0.3.2)
|
|
90
|
-
coderay (1.1.2)
|
|
91
|
-
coffee-rails (4.2.2)
|
|
92
|
-
coffee-script (>= 2.2.0)
|
|
93
|
-
railties (>= 4.0.0)
|
|
94
|
-
coffee-script (2.4.1)
|
|
95
|
-
coffee-script-source
|
|
96
|
-
execjs
|
|
97
|
-
coffee-script-source (1.12.2)
|
|
98
|
-
concurrent-ruby (1.1.5)
|
|
99
|
-
crass (1.0.4)
|
|
100
|
-
devise (4.6.2)
|
|
101
|
-
bcrypt (~> 3.0)
|
|
102
|
-
orm_adapter (~> 0.1)
|
|
103
|
-
railties (>= 4.1.0, < 6.0)
|
|
104
|
-
responders
|
|
105
|
-
warden (~> 1.2.3)
|
|
106
|
-
diff-lcs (1.3)
|
|
107
|
-
docile (1.3.1)
|
|
108
|
-
erubi (1.8.0)
|
|
109
|
-
execjs (2.7.0)
|
|
110
|
-
ffi (1.10.0)
|
|
111
|
-
formtastic (3.1.5)
|
|
112
|
-
actionpack (>= 3.2.13)
|
|
113
|
-
formtastic_i18n (0.6.0)
|
|
114
|
-
globalid (0.4.2)
|
|
115
|
-
activesupport (>= 4.2.0)
|
|
116
|
-
has_scope (0.7.2)
|
|
117
|
-
actionpack (>= 4.1)
|
|
118
|
-
activesupport (>= 4.1)
|
|
119
|
-
i18n (1.6.0)
|
|
120
|
-
concurrent-ruby (~> 1.0)
|
|
121
|
-
inherited_resources (1.10.0)
|
|
122
|
-
actionpack (>= 5.0, < 6.0)
|
|
123
|
-
has_scope (~> 0.6)
|
|
124
|
-
railties (>= 5.0, < 6.0)
|
|
125
|
-
responders (~> 2.0)
|
|
126
|
-
jquery-rails (4.3.3)
|
|
127
|
-
rails-dom-testing (>= 1, < 3)
|
|
128
|
-
railties (>= 4.2.0)
|
|
129
|
-
thor (>= 0.14, < 2.0)
|
|
130
|
-
jquery-ui-rails (6.0.1)
|
|
131
|
-
railties (>= 3.2.16)
|
|
132
|
-
jslint (1.2.0)
|
|
133
|
-
json
|
|
134
|
-
json (2.1.0)
|
|
135
|
-
kaminari (1.1.1)
|
|
136
|
-
activesupport (>= 4.1.0)
|
|
137
|
-
kaminari-actionview (= 1.1.1)
|
|
138
|
-
kaminari-activerecord (= 1.1.1)
|
|
139
|
-
kaminari-core (= 1.1.1)
|
|
140
|
-
kaminari-actionview (1.1.1)
|
|
141
|
-
actionview
|
|
142
|
-
kaminari-core (= 1.1.1)
|
|
143
|
-
kaminari-activerecord (1.1.1)
|
|
144
|
-
activerecord
|
|
145
|
-
kaminari-core (= 1.1.1)
|
|
146
|
-
kaminari-core (1.1.1)
|
|
147
|
-
kaminari-mongoid (1.0.1)
|
|
148
|
-
kaminari-core (~> 1.0)
|
|
149
|
-
mongoid
|
|
150
|
-
launchy (2.4.3)
|
|
151
|
-
addressable (~> 2.3)
|
|
152
|
-
loofah (2.2.3)
|
|
153
|
-
crass (~> 1.0.2)
|
|
154
|
-
nokogiri (>= 1.5.9)
|
|
155
|
-
mail (2.7.1)
|
|
156
|
-
mini_mime (>= 0.1.1)
|
|
157
|
-
marcel (0.3.3)
|
|
158
|
-
mimemagic (~> 0.3.2)
|
|
159
|
-
method_source (0.9.2)
|
|
160
|
-
mimemagic (0.3.3)
|
|
161
|
-
mini_mime (1.0.1)
|
|
162
|
-
mini_portile2 (2.4.0)
|
|
163
|
-
minitest (5.11.3)
|
|
164
|
-
mongo (2.8.0)
|
|
165
|
-
bson (>= 4.4.2, < 5.0.0)
|
|
166
|
-
mongoid (6.4.2)
|
|
167
|
-
activemodel (>= 5.1, < 6.0.0)
|
|
168
|
-
mongo (>= 2.5.1, < 3.0.0)
|
|
169
|
-
nio4r (2.3.1)
|
|
170
|
-
nokogiri (1.10.2)
|
|
171
|
-
mini_portile2 (~> 2.4.0)
|
|
172
|
-
orm_adapter (0.5.0)
|
|
173
|
-
poltergeist (1.18.1)
|
|
174
|
-
capybara (>= 2.1, < 4)
|
|
175
|
-
cliver (~> 0.3.1)
|
|
176
|
-
websocket-driver (>= 0.2.0)
|
|
177
|
-
pry (0.12.2)
|
|
178
|
-
coderay (~> 1.1.0)
|
|
179
|
-
method_source (~> 0.9.0)
|
|
180
|
-
pry-rails (0.3.8)
|
|
181
|
-
pry (>= 0.10.4)
|
|
182
|
-
public_suffix (3.0.3)
|
|
183
|
-
rack (2.0.7)
|
|
184
|
-
rack-test (1.1.0)
|
|
185
|
-
rack (>= 1.0, < 3)
|
|
186
|
-
rails (5.2.3)
|
|
187
|
-
actioncable (= 5.2.3)
|
|
188
|
-
actionmailer (= 5.2.3)
|
|
189
|
-
actionpack (= 5.2.3)
|
|
190
|
-
actionview (= 5.2.3)
|
|
191
|
-
activejob (= 5.2.3)
|
|
192
|
-
activemodel (= 5.2.3)
|
|
193
|
-
activerecord (= 5.2.3)
|
|
194
|
-
activestorage (= 5.2.3)
|
|
195
|
-
activesupport (= 5.2.3)
|
|
196
|
-
bundler (>= 1.3.0)
|
|
197
|
-
railties (= 5.2.3)
|
|
198
|
-
sprockets-rails (>= 2.0.0)
|
|
199
|
-
rails-dom-testing (2.0.3)
|
|
200
|
-
activesupport (>= 4.2.0)
|
|
201
|
-
nokogiri (>= 1.6)
|
|
202
|
-
rails-html-sanitizer (1.0.4)
|
|
203
|
-
loofah (~> 2.2, >= 2.2.2)
|
|
204
|
-
railties (5.2.3)
|
|
205
|
-
actionpack (= 5.2.3)
|
|
206
|
-
activesupport (= 5.2.3)
|
|
207
|
-
method_source
|
|
208
|
-
rake (>= 0.8.7)
|
|
209
|
-
thor (>= 0.19.0, < 2.0)
|
|
210
|
-
rake (12.3.2)
|
|
211
|
-
ransack (2.1.1)
|
|
212
|
-
actionpack (>= 5.0)
|
|
213
|
-
activerecord (>= 5.0)
|
|
214
|
-
activesupport (>= 5.0)
|
|
215
|
-
i18n
|
|
216
|
-
rb-fsevent (0.10.3)
|
|
217
|
-
rb-inotify (0.10.0)
|
|
218
|
-
ffi (~> 1.0)
|
|
219
|
-
regexp_parser (1.3.0)
|
|
220
|
-
responders (2.4.1)
|
|
221
|
-
actionpack (>= 4.2.0, < 6.0)
|
|
222
|
-
railties (>= 4.2.0, < 6.0)
|
|
223
|
-
rspec-core (3.8.0)
|
|
224
|
-
rspec-support (~> 3.8.0)
|
|
225
|
-
rspec-expectations (3.8.2)
|
|
226
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
227
|
-
rspec-support (~> 3.8.0)
|
|
228
|
-
rspec-mocks (3.8.0)
|
|
229
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
230
|
-
rspec-support (~> 3.8.0)
|
|
231
|
-
rspec-rails (3.8.1)
|
|
232
|
-
actionpack (>= 3.0)
|
|
233
|
-
activesupport (>= 3.0)
|
|
234
|
-
railties (>= 3.0)
|
|
235
|
-
rspec-core (~> 3.8.0)
|
|
236
|
-
rspec-expectations (~> 3.8.0)
|
|
237
|
-
rspec-mocks (~> 3.8.0)
|
|
238
|
-
rspec-support (~> 3.8.0)
|
|
239
|
-
rspec-support (3.8.0)
|
|
240
|
-
sass (3.7.4)
|
|
241
|
-
sass-listen (~> 4.0.0)
|
|
242
|
-
sass-listen (4.0.0)
|
|
243
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
244
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
245
|
-
sass-rails (5.0.7)
|
|
246
|
-
railties (>= 4.0.0, < 6)
|
|
247
|
-
sass (~> 3.1)
|
|
248
|
-
sprockets (>= 2.8, < 4.0)
|
|
249
|
-
sprockets-rails (>= 2.0, < 4.0)
|
|
250
|
-
tilt (>= 1.1, < 3)
|
|
251
|
-
simplecov (0.16.1)
|
|
252
|
-
docile (~> 1.1)
|
|
253
|
-
json (>= 1.8, < 3)
|
|
254
|
-
simplecov-html (~> 0.10.0)
|
|
255
|
-
simplecov-html (0.10.2)
|
|
256
|
-
sprockets (3.7.2)
|
|
257
|
-
concurrent-ruby (~> 1.0)
|
|
258
|
-
rack (> 1, < 3)
|
|
259
|
-
sprockets-rails (3.2.1)
|
|
260
|
-
actionpack (>= 4.0)
|
|
261
|
-
activesupport (>= 4.0)
|
|
262
|
-
sprockets (>= 3.0.0)
|
|
263
|
-
thor (0.20.3)
|
|
264
|
-
thread_safe (0.3.6)
|
|
265
|
-
tilt (2.0.9)
|
|
266
|
-
tzinfo (1.2.5)
|
|
267
|
-
thread_safe (~> 0.1)
|
|
268
|
-
warden (1.2.8)
|
|
269
|
-
rack (>= 2.0.6)
|
|
270
|
-
websocket-driver (0.7.0)
|
|
271
|
-
websocket-extensions (>= 0.1.0)
|
|
272
|
-
websocket-extensions (0.1.3)
|
|
273
|
-
xpath (3.2.0)
|
|
274
|
-
nokogiri (~> 1.8)
|
|
275
|
-
|
|
276
|
-
PLATFORMS
|
|
277
|
-
ruby
|
|
278
|
-
|
|
279
|
-
DEPENDENCIES
|
|
280
|
-
activeadmin-mongoid!
|
|
281
|
-
capybara
|
|
282
|
-
devise
|
|
283
|
-
jquery-rails
|
|
284
|
-
jquery-ui-rails
|
|
285
|
-
jslint
|
|
286
|
-
launchy
|
|
287
|
-
poltergeist
|
|
288
|
-
pry-rails
|
|
289
|
-
rails (~> 5.2)
|
|
290
|
-
ransack-mongoid!
|
|
291
|
-
rspec-rails (~> 3.6)
|
|
292
|
-
simplecov
|
|
293
|
-
|
|
294
|
-
BUNDLED WITH
|
|
295
|
-
1.17.3
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
development:
|
|
2
|
-
host: localhost
|
|
3
|
-
database: test_app_development
|
|
4
|
-
|
|
5
|
-
test:
|
|
6
|
-
host: localhost
|
|
7
|
-
database: test_app_test
|
|
8
|
-
|
|
9
|
-
# set these environment variables on your prod server
|
|
10
|
-
production:
|
|
11
|
-
host: <%= ENV['MONGOID_HOST'] %>
|
|
12
|
-
port: <%= ENV['MONGOID_PORT'] %>
|
|
13
|
-
username: <%= ENV['MONGOID_USERNAME'] %>
|
|
14
|
-
password: <%= ENV['MONGOID_PASSWORD'] %>
|
|
15
|
-
database: <%= ENV['MONGOID_DATABASE'] %>
|
|
16
|
-
# slaves:
|
|
17
|
-
# - host: slave1.local
|
|
18
|
-
# port: 27018
|
|
19
|
-
# - host: slave2.local
|
|
20
|
-
# port: 27019
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
test:
|
|
2
|
-
# Configure available database sessions. (required)
|
|
3
|
-
sessions:
|
|
4
|
-
# Defines the default session. (required)
|
|
5
|
-
default:
|
|
6
|
-
# Defines the name of the default database that Mongoid can connect to.
|
|
7
|
-
# (required).
|
|
8
|
-
database: activeadmin_mongoid_test
|
|
9
|
-
# Provides the hosts the default session can connect to. Must be an array
|
|
10
|
-
# of host:port pairs. (required)
|
|
11
|
-
hosts:
|
|
12
|
-
- localhost:27017
|
|
13
|
-
options:
|
|
14
|
-
# Change whether the session persists in safe mode by default.
|
|
15
|
-
# (default: false)
|
|
16
|
-
# safe: false
|
|
17
|
-
|
|
18
|
-
# Change the default consistency model to :eventual or :strong.
|
|
19
|
-
# :eventual will send reads to secondaries, :strong sends everything
|
|
20
|
-
# to master. (default: :eventual)
|
|
21
|
-
# consistency: :eventual
|
|
22
|
-
|
|
23
|
-
# How many times Moped should attempt to retry an operation after
|
|
24
|
-
# failure. (default: 30)
|
|
25
|
-
# max_retries: 30
|
|
26
|
-
|
|
27
|
-
# The time in seconds that Moped should wait before retrying an
|
|
28
|
-
# operation on failure. (default: 1)
|
|
29
|
-
# retry_interval: 1
|
|
30
|
-
# Configure Mongoid specific options. (optional)
|
|
31
|
-
options: &default_options
|
|
32
|
-
# Configuration for whether or not to allow access to fields that do
|
|
33
|
-
# not have a field definition on the model. (default: true)
|
|
34
|
-
# allow_dynamic_fields: true
|
|
35
|
-
allow_dynamic_fields: false
|
|
36
|
-
|
|
37
|
-
# Enable the identity map, needed for eager loading. (default: false)
|
|
38
|
-
# identity_map_enabled: false
|
|
39
|
-
identity_map_enabled: true
|
|
40
|
-
|
|
41
|
-
# Includes the root model name in json serialization. (default: false)
|
|
42
|
-
# include_root_in_json: false
|
|
43
|
-
|
|
44
|
-
# Include the _type field in serializaion. (default: false)
|
|
45
|
-
# include_type_for_serialization: false
|
|
46
|
-
|
|
47
|
-
# Preload all models in development, needed when models use
|
|
48
|
-
# inheritance. (default: false)
|
|
49
|
-
# preload_models: false
|
|
50
|
-
|
|
51
|
-
# Protect id and type from mass assignment. (default: true)
|
|
52
|
-
# protect_sensitive_fields: true
|
|
53
|
-
|
|
54
|
-
# Raise an error when performing a #find and the document is not found.
|
|
55
|
-
# (default: true)
|
|
56
|
-
# raise_not_found_error: true
|
|
57
|
-
|
|
58
|
-
# Raise an error when defining a scope with the same name as an
|
|
59
|
-
# existing method. (default: false)
|
|
60
|
-
scope_overwrite_exception: true
|
|
61
|
-
|
|
62
|
-
# Skip the database version check, used when connecting to a db without
|
|
63
|
-
# admin access. (default: false)
|
|
64
|
-
# skip_version_check: false
|
|
65
|
-
|
|
66
|
-
# User Active Support's time zone in conversions. (default: true)
|
|
67
|
-
# use_activesupport_time_zone: true
|
|
68
|
-
|
|
69
|
-
# Ensure all times are UTC in the app side. (default: false)
|
|
70
|
-
# use_utc: false
|
|
71
|
-
|
|
72
|
-
# production:
|
|
73
|
-
# sessions:
|
|
74
|
-
# default:
|
|
75
|
-
# uri: <%= ENV['MONGOLAB_URI'] %>
|
|
76
|
-
# options:
|
|
77
|
-
# skip_version_check: true
|
|
78
|
-
# identity_map_enabled: true
|
|
79
|
-
# safe: true
|
|
80
|
-
# options:
|
|
81
|
-
# *default_options
|
|
82
|
-
#
|
|
83
|
-
# development:
|
|
84
|
-
# sessions:
|
|
85
|
-
# default:
|
|
86
|
-
# database: activeadmin_mongoid_development
|
|
87
|
-
# hosts:
|
|
88
|
-
# - localhost:27017
|
|
89
|
-
# options:
|
|
90
|
-
# consistency: :strong
|
|
91
|
-
# # In the test environment we lower the retries and retry interval to
|
|
92
|
-
# # low amounts for fast failures.
|
|
93
|
-
# max_retries: 1
|
|
94
|
-
# retry_interval: 0
|
|
95
|
-
# options:
|
|
96
|
-
# *default_options
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
test:
|
|
2
|
-
# Configure available database sessions. (required)
|
|
3
|
-
sessions:
|
|
4
|
-
# Defines the default session. (required)
|
|
5
|
-
default:
|
|
6
|
-
# Defines the name of the default database that Mongoid can connect to.
|
|
7
|
-
# (required).
|
|
8
|
-
database: activeadmin_mongoid_test
|
|
9
|
-
# Provides the hosts the default session can connect to. Must be an array
|
|
10
|
-
# of host:port pairs. (required)
|
|
11
|
-
hosts:
|
|
12
|
-
- localhost:27017
|
|
13
|
-
options:
|
|
14
|
-
# Change whether the session persists in safe mode by default.
|
|
15
|
-
# (default: false)
|
|
16
|
-
# safe: false
|
|
17
|
-
|
|
18
|
-
# Change the default consistency model to :eventual or :strong.
|
|
19
|
-
# :eventual will send reads to secondaries, :strong sends everything
|
|
20
|
-
# to master. (default: :eventual)
|
|
21
|
-
# consistency: :eventual
|
|
22
|
-
|
|
23
|
-
# How many times Moped should attempt to retry an operation after
|
|
24
|
-
# failure. (default: 30)
|
|
25
|
-
# max_retries: 30
|
|
26
|
-
|
|
27
|
-
# The time in seconds that Moped should wait before retrying an
|
|
28
|
-
# operation on failure. (default: 1)
|
|
29
|
-
# retry_interval: 1
|
|
30
|
-
# Configure Mongoid specific options. (optional)
|
|
31
|
-
options: &default_options
|
|
32
|
-
# Includes the root model name in json serialization. (default: false)
|
|
33
|
-
# include_root_in_json: false
|
|
34
|
-
|
|
35
|
-
# Include the _type field in serializaion. (default: false)
|
|
36
|
-
# include_type_for_serialization: false
|
|
37
|
-
|
|
38
|
-
# Preload all models in development, needed when models use
|
|
39
|
-
# inheritance. (default: false)
|
|
40
|
-
# preload_models: false
|
|
41
|
-
|
|
42
|
-
# Protect id and type from mass assignment. (default: true)
|
|
43
|
-
# protect_sensitive_fields: true
|
|
44
|
-
|
|
45
|
-
# Raise an error when performing a #find and the document is not found.
|
|
46
|
-
# (default: true)
|
|
47
|
-
# raise_not_found_error: true
|
|
48
|
-
|
|
49
|
-
# Raise an error when defining a scope with the same name as an
|
|
50
|
-
# existing method. (default: false)
|
|
51
|
-
scope_overwrite_exception: true
|
|
52
|
-
|
|
53
|
-
# Skip the database version check, used when connecting to a db without
|
|
54
|
-
# admin access. (default: false)
|
|
55
|
-
# skip_version_check: false
|
|
56
|
-
|
|
57
|
-
# User Active Support's time zone in conversions. (default: true)
|
|
58
|
-
# use_activesupport_time_zone: true
|
|
59
|
-
|
|
60
|
-
# Ensure all times are UTC in the app side. (default: false)
|
|
61
|
-
# use_utc: false
|
|
62
|
-
|
|
63
|
-
# production:
|
|
64
|
-
# sessions:
|
|
65
|
-
# default:
|
|
66
|
-
# uri: <%= ENV['MONGOLAB_URI'] %>
|
|
67
|
-
# options:
|
|
68
|
-
# skip_version_check: true
|
|
69
|
-
# identity_map_enabled: true
|
|
70
|
-
# safe: true
|
|
71
|
-
# options:
|
|
72
|
-
# *default_options
|
|
73
|
-
#
|
|
74
|
-
# development:
|
|
75
|
-
# sessions:
|
|
76
|
-
# default:
|
|
77
|
-
# database: activeadmin_mongoid_development
|
|
78
|
-
# hosts:
|
|
79
|
-
# - localhost:27017
|
|
80
|
-
# options:
|
|
81
|
-
# consistency: :strong
|
|
82
|
-
# # In the test environment we lower the retries and retry interval to
|
|
83
|
-
# # low amounts for fast failures.
|
|
84
|
-
# max_retries: 1
|
|
85
|
-
# retry_interval: 0
|
|
86
|
-
# options:
|
|
87
|
-
# *default_options
|