godmin 0.12.0 → 0.12.1
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/.gitignore +1 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +5 -0
- data/README.md +5 -11
- data/app/views/godmin/application/welcome.html.erb +4 -52
- data/app/views/godmin/resource/_filters.html.erb +1 -1
- data/app/views/godmin/resource/_table.html.erb +2 -2
- data/app/views/layouts/godmin/_layout.html.erb +2 -2
- data/app/views/layouts/godmin/application.html.erb +2 -2
- data/godmin.gemspec +4 -1
- data/lib/generators/godmin/install/install_generator.rb +0 -10
- data/lib/godmin.rb +3 -6
- data/lib/godmin/application_controller.rb +8 -4
- data/lib/godmin/authorization.rb +1 -1
- data/lib/godmin/authorization/policy_finder.rb +4 -3
- data/lib/godmin/engine_wrapper.rb +49 -0
- data/lib/godmin/helpers/tables.rb +6 -6
- data/lib/godmin/resolver.rb +32 -36
- data/lib/godmin/version.rb +1 -1
- data/test/dummy/admin/Rakefile +24 -0
- data/test/dummy/admin/admin.gemspec +15 -0
- data/test/dummy/admin/app/assets/javascripts/admin/application.js +14 -0
- data/test/dummy/admin/app/assets/stylesheets/admin/application.css +16 -0
- data/test/dummy/admin/app/controllers/admin/application_controller.rb +5 -0
- data/test/dummy/admin/app/controllers/admin/articles_controller.rb +7 -0
- data/test/dummy/admin/app/helpers/admin/application_helper.rb +4 -0
- data/test/dummy/admin/app/services/admin/article_service.rb +11 -0
- data/test/dummy/{app/assets/images → admin/app/views/admin/articles}/.keep +0 -0
- data/test/dummy/{app/mailers → admin/app/views/admin/articles/columns}/.keep +0 -0
- data/test/dummy/admin/app/views/admin/articles/filters/.keep +0 -0
- data/test/dummy/admin/app/views/admin/resource/.keep +0 -0
- data/test/dummy/admin/app/views/admin/resource/columns/.keep +0 -0
- data/test/dummy/admin/app/views/admin/resource/filters/.keep +0 -0
- data/test/dummy/admin/app/views/admin/shared/_navigation.html.erb +1 -0
- data/test/dummy/admin/bin/rails +12 -0
- data/test/dummy/admin/config/routes.rb +4 -0
- data/test/dummy/admin/lib/admin.rb +4 -0
- data/test/dummy/admin/lib/admin/engine.rb +5 -0
- data/test/dummy/admin/lib/admin/version.rb +3 -0
- data/test/dummy/app/assets/javascripts/application.js +1 -0
- data/test/dummy/app/assets/stylesheets/application.css +2 -1
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/articles_controller.rb +3 -0
- data/test/dummy/app/models/article.rb +2 -0
- data/test/dummy/app/services/article_service.rb +9 -0
- data/test/dummy/app/views/articles/.keep +0 -0
- data/test/dummy/app/views/articles/columns/.keep +0 -0
- data/test/dummy/app/views/articles/filters/.keep +0 -0
- data/test/dummy/app/views/resource/.keep +0 -0
- data/test/dummy/app/views/resource/columns/.keep +0 -0
- data/test/dummy/app/views/resource/filters/.keep +0 -0
- data/test/dummy/app/views/shared/_navigation.html.erb +1 -0
- data/test/dummy/config/database.yml +0 -6
- data/test/dummy/config/environments/test.rb +4 -0
- data/test/dummy/config/routes.rb +3 -2
- data/test/dummy/db/migrate/20150717121532_create_articles.rb +11 -0
- data/test/dummy/db/schema.rb +9 -1
- data/test/fakes/article.rb +4 -0
- data/test/fakes/article_service.rb +68 -0
- data/test/integration/column_ordering_test.rb +23 -0
- data/test/integration/column_overriding_test.rb +59 -0
- data/test/integration/filter_overriding_test.rb +51 -0
- data/test/integration/partial_overriding_test.rb +51 -0
- data/test/integration/template_overriding_test.rb +51 -0
- data/test/integration/welcome_test.rb +8 -0
- data/test/lib/godmin/engine_wrapper_test.rb +55 -0
- data/test/lib/godmin/policy_finder_test.rb +30 -34
- data/test/lib/godmin/resolver_test.rb +26 -36
- data/test/lib/godmin/resources/resource_service/batch_actions_test.rb +1 -1
- data/test/lib/godmin/resources/resource_service/filters_test.rb +1 -1
- data/test/lib/godmin/resources/resource_service/pagination_test.rb +1 -1
- data/test/lib/godmin/resources/resource_service/scopes_test.rb +7 -7
- data/test/lib/godmin/resources/resource_service_test.rb +2 -2
- data/test/test_helper.rb +23 -66
- metadata +127 -20
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/environments/production.rb +0 -80
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/godmin_test.rb +0 -7
- data/test/integration/navigation_test.rb +0 -10
data/test/test_helper.rb
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
1
4
|
# Configure Rails Environment
|
2
5
|
ENV["RAILS_ENV"] = "test"
|
3
6
|
|
4
7
|
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
8
|
require "rails/test_help"
|
9
|
+
require "capybara/rails"
|
6
10
|
require "minitest/reporters"
|
11
|
+
require "pry"
|
12
|
+
|
13
|
+
# TODO: what to call these?
|
14
|
+
require File.expand_path("../fakes/article.rb", __FILE__)
|
15
|
+
require File.expand_path("../fakes/article_service.rb", __FILE__)
|
7
16
|
|
8
17
|
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(
|
9
18
|
color: true
|
@@ -19,76 +28,24 @@ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
|
19
28
|
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
20
29
|
end
|
21
30
|
|
22
|
-
|
23
|
-
|
24
|
-
yield
|
25
|
-
Godmin.namespace = nil
|
26
|
-
end
|
31
|
+
class ActionDispatch::IntegrationTest
|
32
|
+
include Capybara::DSL
|
27
33
|
|
28
|
-
|
29
|
-
|
34
|
+
def setup
|
35
|
+
@template_paths = []
|
30
36
|
end
|
31
37
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
attr_accessor :called_methods
|
36
|
-
|
37
|
-
attrs_for_index :id, :title, :country
|
38
|
-
attrs_for_show :title, :country
|
39
|
-
attrs_for_form :id, :title, :country, :body
|
40
|
-
attrs_for_export :id, :title
|
41
|
-
|
42
|
-
scope :unpublished, default: true
|
43
|
-
scope :published
|
44
|
-
|
45
|
-
filter :title
|
46
|
-
filter :country, as: :select, collection: %w(Sweden Canada)
|
47
|
-
filter :tags, as: :multiselect, collection: %w(Apple Banana)
|
48
|
-
|
49
|
-
batch_action :unpublish
|
50
|
-
batch_action :publish, confirm: true, only: :unpublished, except: :published
|
51
|
-
|
52
|
-
def initialize(*)
|
53
|
-
super
|
54
|
-
@called_methods = { scopes: {}, filters: {}, batch_actions: {} }
|
55
|
-
end
|
56
|
-
|
57
|
-
def resources_relation
|
58
|
-
[:foo, :bar, :baz]
|
59
|
-
end
|
60
|
-
|
61
|
-
def scope_unpublished(resources)
|
62
|
-
called_methods[:scopes][:unpublished] = resources
|
63
|
-
resources.slice(1, 3)
|
64
|
-
end
|
65
|
-
|
66
|
-
def scope_published(resources)
|
67
|
-
called_methods[:scopes][:published] = resources
|
68
|
-
resources.slice(0, 1)
|
69
|
-
end
|
70
|
-
|
71
|
-
def filter_title(resources, value)
|
72
|
-
called_methods[:filters][:title] = [resources, value]
|
73
|
-
resources
|
74
|
-
end
|
75
|
-
|
76
|
-
def filter_country(resources, value)
|
77
|
-
called_methods[:filters][:country] = [resources, value]
|
78
|
-
resources
|
79
|
-
end
|
80
|
-
|
81
|
-
def filter_tags(resources, value)
|
82
|
-
called_methods[:filters][:tags] = [resources, value]
|
83
|
-
resources
|
38
|
+
def teardown
|
39
|
+
@template_paths.each do |path|
|
40
|
+
File.delete(path)
|
84
41
|
end
|
42
|
+
end
|
85
43
|
|
86
|
-
|
87
|
-
called_methods[:batch_actions][:unpublish] = resources
|
88
|
-
end
|
44
|
+
private
|
89
45
|
|
90
|
-
|
91
|
-
|
92
|
-
|
46
|
+
def add_template(path, content)
|
47
|
+
template_path = File.expand_path("../dummy/#{path}", __FILE__)
|
48
|
+
@template_paths << template_path
|
49
|
+
File.write(template_path, content)
|
93
50
|
end
|
94
|
-
|
51
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: godmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Ljungblad
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bcrypt
|
@@ -88,6 +88,20 @@ dependencies:
|
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 2.1.1
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: jquery-rails
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '3.0'
|
98
|
+
type: :runtime
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '3.0'
|
91
105
|
- !ruby/object:Gem::Dependency
|
92
106
|
name: momentjs-rails
|
93
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +159,21 @@ dependencies:
|
|
145
159
|
- !ruby/object:Gem::Version
|
146
160
|
version: 0.12.0
|
147
161
|
- !ruby/object:Gem::Dependency
|
148
|
-
name:
|
162
|
+
name: capybara
|
163
|
+
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
type: :development
|
169
|
+
prerelease: false
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: m
|
149
177
|
requirement: !ruby/object:Gem::Requirement
|
150
178
|
requirements:
|
151
179
|
- - ">="
|
@@ -200,6 +228,20 @@ dependencies:
|
|
200
228
|
- - ">="
|
201
229
|
- !ruby/object:Gem::Version
|
202
230
|
version: '0'
|
231
|
+
- !ruby/object:Gem::Dependency
|
232
|
+
name: sqlite3
|
233
|
+
requirement: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
type: :development
|
239
|
+
prerelease: false
|
240
|
+
version_requirements: !ruby/object:Gem::Requirement
|
241
|
+
requirements:
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
203
245
|
description: Godmin is an admin framework for Rails 4+
|
204
246
|
email:
|
205
247
|
- info@varvet.se
|
@@ -271,6 +313,7 @@ files:
|
|
271
313
|
- lib/godmin/authorization/policy.rb
|
272
314
|
- lib/godmin/authorization/policy_finder.rb
|
273
315
|
- lib/godmin/engine.rb
|
316
|
+
- lib/godmin/engine_wrapper.rb
|
274
317
|
- lib/godmin/generators/base.rb
|
275
318
|
- lib/godmin/generators/named_base.rb
|
276
319
|
- lib/godmin/helpers/application.rb
|
@@ -292,18 +335,44 @@ files:
|
|
292
335
|
- lib/godmin/version.rb
|
293
336
|
- lib/tasks/godmin_tasks.rake
|
294
337
|
- screenshot.png
|
295
|
-
- test/dummy/README.rdoc
|
296
338
|
- test/dummy/Rakefile
|
297
|
-
- test/dummy/
|
339
|
+
- test/dummy/admin/Rakefile
|
340
|
+
- test/dummy/admin/admin.gemspec
|
341
|
+
- test/dummy/admin/app/assets/javascripts/admin/application.js
|
342
|
+
- test/dummy/admin/app/assets/stylesheets/admin/application.css
|
343
|
+
- test/dummy/admin/app/controllers/admin/application_controller.rb
|
344
|
+
- test/dummy/admin/app/controllers/admin/articles_controller.rb
|
345
|
+
- test/dummy/admin/app/helpers/admin/application_helper.rb
|
346
|
+
- test/dummy/admin/app/services/admin/article_service.rb
|
347
|
+
- test/dummy/admin/app/views/admin/articles/.keep
|
348
|
+
- test/dummy/admin/app/views/admin/articles/columns/.keep
|
349
|
+
- test/dummy/admin/app/views/admin/articles/filters/.keep
|
350
|
+
- test/dummy/admin/app/views/admin/resource/.keep
|
351
|
+
- test/dummy/admin/app/views/admin/resource/columns/.keep
|
352
|
+
- test/dummy/admin/app/views/admin/resource/filters/.keep
|
353
|
+
- test/dummy/admin/app/views/admin/shared/_navigation.html.erb
|
354
|
+
- test/dummy/admin/bin/rails
|
355
|
+
- test/dummy/admin/config/routes.rb
|
356
|
+
- test/dummy/admin/lib/admin.rb
|
357
|
+
- test/dummy/admin/lib/admin/engine.rb
|
358
|
+
- test/dummy/admin/lib/admin/version.rb
|
298
359
|
- test/dummy/app/assets/javascripts/application.js
|
299
360
|
- test/dummy/app/assets/stylesheets/application.css
|
300
361
|
- test/dummy/app/controllers/application_controller.rb
|
362
|
+
- test/dummy/app/controllers/articles_controller.rb
|
301
363
|
- test/dummy/app/controllers/concerns/.keep
|
302
364
|
- test/dummy/app/helpers/application_helper.rb
|
303
|
-
- test/dummy/app/mailers/.keep
|
304
365
|
- test/dummy/app/models/.keep
|
366
|
+
- test/dummy/app/models/article.rb
|
305
367
|
- test/dummy/app/models/concerns/.keep
|
306
|
-
- test/dummy/app/
|
368
|
+
- test/dummy/app/services/article_service.rb
|
369
|
+
- test/dummy/app/views/articles/.keep
|
370
|
+
- test/dummy/app/views/articles/columns/.keep
|
371
|
+
- test/dummy/app/views/articles/filters/.keep
|
372
|
+
- test/dummy/app/views/resource/.keep
|
373
|
+
- test/dummy/app/views/resource/columns/.keep
|
374
|
+
- test/dummy/app/views/resource/filters/.keep
|
375
|
+
- test/dummy/app/views/shared/_navigation.html.erb
|
307
376
|
- test/dummy/bin/bundle
|
308
377
|
- test/dummy/bin/rails
|
309
378
|
- test/dummy/bin/rake
|
@@ -313,7 +382,6 @@ files:
|
|
313
382
|
- test/dummy/config/database.yml
|
314
383
|
- test/dummy/config/environment.rb
|
315
384
|
- test/dummy/config/environments/development.rb
|
316
|
-
- test/dummy/config/environments/production.rb
|
317
385
|
- test/dummy/config/environments/test.rb
|
318
386
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
319
387
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
@@ -322,8 +390,8 @@ files:
|
|
322
390
|
- test/dummy/config/initializers/secret_token.rb
|
323
391
|
- test/dummy/config/initializers/session_store.rb
|
324
392
|
- test/dummy/config/initializers/wrap_parameters.rb
|
325
|
-
- test/dummy/config/locales/en.yml
|
326
393
|
- test/dummy/config/routes.rb
|
394
|
+
- test/dummy/db/migrate/20150717121532_create_articles.rb
|
327
395
|
- test/dummy/db/schema.rb
|
328
396
|
- test/dummy/lib/assets/.keep
|
329
397
|
- test/dummy/log/.keep
|
@@ -331,8 +399,15 @@ files:
|
|
331
399
|
- test/dummy/public/422.html
|
332
400
|
- test/dummy/public/500.html
|
333
401
|
- test/dummy/public/favicon.ico
|
334
|
-
- test/
|
335
|
-
- test/
|
402
|
+
- test/fakes/article.rb
|
403
|
+
- test/fakes/article_service.rb
|
404
|
+
- test/integration/column_ordering_test.rb
|
405
|
+
- test/integration/column_overriding_test.rb
|
406
|
+
- test/integration/filter_overriding_test.rb
|
407
|
+
- test/integration/partial_overriding_test.rb
|
408
|
+
- test/integration/template_overriding_test.rb
|
409
|
+
- test/integration/welcome_test.rb
|
410
|
+
- test/lib/godmin/engine_wrapper_test.rb
|
336
411
|
- test/lib/godmin/helpers/filters_test.rb
|
337
412
|
- test/lib/godmin/paginator_test.rb
|
338
413
|
- test/lib/godmin/policy_finder_test.rb
|
@@ -366,23 +441,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
366
441
|
version: '0'
|
367
442
|
requirements: []
|
368
443
|
rubyforge_project:
|
369
|
-
rubygems_version: 2.2.
|
444
|
+
rubygems_version: 2.2.3
|
370
445
|
signing_key:
|
371
446
|
specification_version: 4
|
372
447
|
summary: Godmin is an admin framework for Rails 4+
|
373
448
|
test_files:
|
374
|
-
- test/dummy/README.rdoc
|
375
449
|
- test/dummy/Rakefile
|
376
|
-
- test/dummy/
|
450
|
+
- test/dummy/admin/Rakefile
|
451
|
+
- test/dummy/admin/admin.gemspec
|
452
|
+
- test/dummy/admin/app/assets/javascripts/admin/application.js
|
453
|
+
- test/dummy/admin/app/assets/stylesheets/admin/application.css
|
454
|
+
- test/dummy/admin/app/controllers/admin/application_controller.rb
|
455
|
+
- test/dummy/admin/app/controllers/admin/articles_controller.rb
|
456
|
+
- test/dummy/admin/app/helpers/admin/application_helper.rb
|
457
|
+
- test/dummy/admin/app/services/admin/article_service.rb
|
458
|
+
- test/dummy/admin/app/views/admin/articles/.keep
|
459
|
+
- test/dummy/admin/app/views/admin/articles/columns/.keep
|
460
|
+
- test/dummy/admin/app/views/admin/articles/filters/.keep
|
461
|
+
- test/dummy/admin/app/views/admin/resource/.keep
|
462
|
+
- test/dummy/admin/app/views/admin/resource/columns/.keep
|
463
|
+
- test/dummy/admin/app/views/admin/resource/filters/.keep
|
464
|
+
- test/dummy/admin/app/views/admin/shared/_navigation.html.erb
|
465
|
+
- test/dummy/admin/bin/rails
|
466
|
+
- test/dummy/admin/config/routes.rb
|
467
|
+
- test/dummy/admin/lib/admin.rb
|
468
|
+
- test/dummy/admin/lib/admin/engine.rb
|
469
|
+
- test/dummy/admin/lib/admin/version.rb
|
377
470
|
- test/dummy/app/assets/javascripts/application.js
|
378
471
|
- test/dummy/app/assets/stylesheets/application.css
|
379
472
|
- test/dummy/app/controllers/application_controller.rb
|
473
|
+
- test/dummy/app/controllers/articles_controller.rb
|
380
474
|
- test/dummy/app/controllers/concerns/.keep
|
381
475
|
- test/dummy/app/helpers/application_helper.rb
|
382
|
-
- test/dummy/app/mailers/.keep
|
383
476
|
- test/dummy/app/models/.keep
|
477
|
+
- test/dummy/app/models/article.rb
|
384
478
|
- test/dummy/app/models/concerns/.keep
|
385
|
-
- test/dummy/app/
|
479
|
+
- test/dummy/app/services/article_service.rb
|
480
|
+
- test/dummy/app/views/articles/.keep
|
481
|
+
- test/dummy/app/views/articles/columns/.keep
|
482
|
+
- test/dummy/app/views/articles/filters/.keep
|
483
|
+
- test/dummy/app/views/resource/.keep
|
484
|
+
- test/dummy/app/views/resource/columns/.keep
|
485
|
+
- test/dummy/app/views/resource/filters/.keep
|
486
|
+
- test/dummy/app/views/shared/_navigation.html.erb
|
386
487
|
- test/dummy/bin/bundle
|
387
488
|
- test/dummy/bin/rails
|
388
489
|
- test/dummy/bin/rake
|
@@ -392,7 +493,6 @@ test_files:
|
|
392
493
|
- test/dummy/config/database.yml
|
393
494
|
- test/dummy/config/environment.rb
|
394
495
|
- test/dummy/config/environments/development.rb
|
395
|
-
- test/dummy/config/environments/production.rb
|
396
496
|
- test/dummy/config/environments/test.rb
|
397
497
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
398
498
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
@@ -401,8 +501,8 @@ test_files:
|
|
401
501
|
- test/dummy/config/initializers/secret_token.rb
|
402
502
|
- test/dummy/config/initializers/session_store.rb
|
403
503
|
- test/dummy/config/initializers/wrap_parameters.rb
|
404
|
-
- test/dummy/config/locales/en.yml
|
405
504
|
- test/dummy/config/routes.rb
|
505
|
+
- test/dummy/db/migrate/20150717121532_create_articles.rb
|
406
506
|
- test/dummy/db/schema.rb
|
407
507
|
- test/dummy/lib/assets/.keep
|
408
508
|
- test/dummy/log/.keep
|
@@ -410,8 +510,15 @@ test_files:
|
|
410
510
|
- test/dummy/public/422.html
|
411
511
|
- test/dummy/public/500.html
|
412
512
|
- test/dummy/public/favicon.ico
|
413
|
-
- test/
|
414
|
-
- test/
|
513
|
+
- test/fakes/article.rb
|
514
|
+
- test/fakes/article_service.rb
|
515
|
+
- test/integration/column_ordering_test.rb
|
516
|
+
- test/integration/column_overriding_test.rb
|
517
|
+
- test/integration/filter_overriding_test.rb
|
518
|
+
- test/integration/partial_overriding_test.rb
|
519
|
+
- test/integration/template_overriding_test.rb
|
520
|
+
- test/integration/welcome_test.rb
|
521
|
+
- test/lib/godmin/engine_wrapper_test.rb
|
415
522
|
- test/lib/godmin/helpers/filters_test.rb
|
416
523
|
- test/lib/godmin/paginator_test.rb
|
417
524
|
- test/lib/godmin/policy_finder_test.rb
|
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1,80 +0,0 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# Code is not reloaded between requests.
|
5
|
-
config.cache_classes = true
|
6
|
-
|
7
|
-
# Eager load code on boot. This eager loads most of Rails and
|
8
|
-
# your application in memory, allowing both thread web servers
|
9
|
-
# and those relying on copy on write to perform better.
|
10
|
-
# Rake tasks automatically ignore this option for performance.
|
11
|
-
config.eager_load = true
|
12
|
-
|
13
|
-
# Full error reports are disabled and caching is turned on.
|
14
|
-
config.consider_all_requests_local = false
|
15
|
-
config.action_controller.perform_caching = true
|
16
|
-
|
17
|
-
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
-
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
-
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
-
# config.action_dispatch.rack_cache = true
|
21
|
-
|
22
|
-
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
-
config.serve_static_files = false
|
24
|
-
|
25
|
-
# Compress JavaScripts and CSS.
|
26
|
-
config.assets.js_compressor = :uglifier
|
27
|
-
# config.assets.css_compressor = :sass
|
28
|
-
|
29
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
-
config.assets.compile = false
|
31
|
-
|
32
|
-
# Generate digests for assets URLs.
|
33
|
-
config.assets.digest = true
|
34
|
-
|
35
|
-
# Version of your assets, change this if you want to expire all your assets.
|
36
|
-
config.assets.version = '1.0'
|
37
|
-
|
38
|
-
# Specifies the header that your server uses for sending files.
|
39
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
40
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
-
|
42
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
-
# config.force_ssl = true
|
44
|
-
|
45
|
-
# Set to :debug to see everything in the log.
|
46
|
-
config.log_level = :info
|
47
|
-
|
48
|
-
# Prepend all log lines with the following tags.
|
49
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
-
|
51
|
-
# Use a different logger for distributed setups.
|
52
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
-
|
54
|
-
# Use a different cache store in production.
|
55
|
-
# config.cache_store = :mem_cache_store
|
56
|
-
|
57
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
-
|
60
|
-
# Precompile additional assets.
|
61
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
-
# config.assets.precompile += %w( search.js )
|
63
|
-
|
64
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
-
# config.action_mailer.raise_delivery_errors = false
|
67
|
-
|
68
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
-
# the I18n.default_locale when a translation can not be found).
|
70
|
-
config.i18n.fallbacks = true
|
71
|
-
|
72
|
-
# Send deprecation notices to registered listeners.
|
73
|
-
config.active_support.deprecation = :notify
|
74
|
-
|
75
|
-
# Disable automatic flushing of the log to improve performance.
|
76
|
-
# config.autoflush_log = false
|
77
|
-
|
78
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
-
config.log_formatter = ::Logger::Formatter.new
|
80
|
-
end
|