cmor_core_backend 0.0.40.pre → 0.0.41.pre
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/lib/cmor/core/backend/gemspec.rb +1 -0
- data/spec/dummy/config/initializers/administador.rb +15 -2
- data/spec/dummy/config/initializers/simple_form.rb +0 -3
- data/spec/dummy/config/initializers/simple_form_bootstrap.rb +24 -23
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/tmp/development_secret.txt +1 -1
- metadata +22 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ddbe1efe7565323072ad18adf8286c23294e9ea777ab90c92b226163c08b7fe
|
4
|
+
data.tar.gz: a91535b0a5247586af715552893e0a5d1017c738f914a552273c3c1413399142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d8a8dae2e0a362d5af4ec3203f90220a8331664e9c2b705a92762aa429d8e39578b6b7a1ad36c6062ec808d8956fdf41a6de0866904c86f107dd49a2099a36
|
7
|
+
data.tar.gz: 12ee203d7346f6f731916c722265c49a163eba7c225343f00e4b2818c571dc4ce02c8d80113d35998d0d8827a5a22e9f15a5a471e9d46a351a9c64e6c817bb33
|
@@ -32,6 +32,7 @@ module Cmor
|
|
32
32
|
s.add_development_dependency 'rspec-rails'
|
33
33
|
s.add_development_dependency 'factory_bot_rails' # This has to be after rspec-rails
|
34
34
|
s.add_development_dependency 'rubocop'
|
35
|
+
s.add_development_dependency 'rubocop-rails_config'
|
35
36
|
s.add_development_dependency 'shoulda-matchers'
|
36
37
|
s.add_development_dependency 'simplecov'
|
37
38
|
s.add_development_dependency 'simplecov-console'
|
@@ -5,7 +5,20 @@ Administrador.configure do |config|
|
|
5
5
|
#
|
6
6
|
config.resource_label_methods = [:administrador_title, :human, :name, :identifier, :to_s]
|
7
7
|
|
8
|
-
#
|
8
|
+
# All controllers (for resources, services, sidebars, home, etc.) inherit
|
9
|
+
# from this controller.
|
10
|
+
#
|
11
|
+
# Default: config.base_controller_class_name = '::ApplicationController'
|
12
|
+
#
|
13
|
+
config.base_controller_class_name = '::ApplicationController'
|
9
14
|
|
10
|
-
#
|
15
|
+
# Enable additional features here.
|
16
|
+
#
|
17
|
+
# config.enable_feature(:kaminari, {})
|
18
|
+
# config.enable_feature(:rao_query, {})
|
19
|
+
|
20
|
+
# Engines that are registered will be shown in the administrador main menu
|
21
|
+
# sidebar. Additionally they can register sidebars.
|
22
|
+
#
|
23
|
+
# config.register_engine 'Ecm::Blog::Backend::Engine', {}
|
11
24
|
end
|
@@ -129,9 +129,6 @@ SimpleForm.setup do |config|
|
|
129
129
|
# change this configuration to true.
|
130
130
|
config.browser_validations = false
|
131
131
|
|
132
|
-
# Collection of methods to detect if a file type was given.
|
133
|
-
# config.file_methods = [ :mounted_as, :file?, :public_filename, :attached? ]
|
134
|
-
|
135
132
|
# Custom mappings for input types. This should be a hash containing a regexp
|
136
133
|
# to match as key, and the input type that will be used when the field name
|
137
134
|
# matches the regexp as value.
|
@@ -57,7 +57,7 @@ SimpleForm.setup do |config|
|
|
57
57
|
b.optional :pattern
|
58
58
|
b.optional :min_max
|
59
59
|
b.optional :readonly
|
60
|
-
b.use :label
|
60
|
+
b.use :label
|
61
61
|
b.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
62
62
|
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
63
63
|
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
@@ -76,7 +76,7 @@ SimpleForm.setup do |config|
|
|
76
76
|
end
|
77
77
|
|
78
78
|
# vertical input for radio buttons and check boxes
|
79
|
-
config.wrappers :vertical_collection, item_wrapper_class: 'form-check', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
79
|
+
config.wrappers :vertical_collection, item_wrapper_class: 'form-check', item_label_class: 'form-check-label', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
80
80
|
b.use :html5
|
81
81
|
b.optional :readonly
|
82
82
|
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
@@ -88,7 +88,7 @@ SimpleForm.setup do |config|
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# vertical input for inline radio buttons and check boxes
|
91
|
-
config.wrappers :vertical_collection_inline, item_wrapper_class: 'form-check form-check-inline', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
91
|
+
config.wrappers :vertical_collection_inline, item_wrapper_class: 'form-check form-check-inline', item_label_class: 'form-check-label', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
92
92
|
b.use :html5
|
93
93
|
b.optional :readonly
|
94
94
|
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
@@ -108,7 +108,7 @@ SimpleForm.setup do |config|
|
|
108
108
|
b.optional :readonly
|
109
109
|
b.use :label
|
110
110
|
b.use :input, class: 'form-control-file', error_class: 'is-invalid', valid_class: 'is-valid'
|
111
|
-
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback
|
111
|
+
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
112
112
|
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
113
113
|
end
|
114
114
|
|
@@ -116,7 +116,7 @@ SimpleForm.setup do |config|
|
|
116
116
|
config.wrappers :vertical_multi_select, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
117
117
|
b.use :html5
|
118
118
|
b.optional :readonly
|
119
|
-
b.use :label
|
119
|
+
b.use :label
|
120
120
|
b.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |ba|
|
121
121
|
ba.use :input, class: 'form-control mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
122
122
|
end
|
@@ -174,10 +174,10 @@ SimpleForm.setup do |config|
|
|
174
174
|
end
|
175
175
|
|
176
176
|
# horizontal input for radio buttons and check boxes
|
177
|
-
config.wrappers :horizontal_collection, item_wrapper_class: 'form-check', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
177
|
+
config.wrappers :horizontal_collection, item_wrapper_class: 'form-check', item_label_class: 'form-check-label', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
178
178
|
b.use :html5
|
179
179
|
b.optional :readonly
|
180
|
-
b.use :label, class: 'col-sm-3 form-
|
180
|
+
b.use :label, class: 'col-sm-3 col-form-label pt-0'
|
181
181
|
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
182
182
|
ba.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
183
183
|
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
@@ -186,10 +186,10 @@ SimpleForm.setup do |config|
|
|
186
186
|
end
|
187
187
|
|
188
188
|
# horizontal input for inline radio buttons and check boxes
|
189
|
-
config.wrappers :horizontal_collection_inline, item_wrapper_class: 'form-check form-check-inline', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
189
|
+
config.wrappers :horizontal_collection_inline, item_wrapper_class: 'form-check form-check-inline', item_label_class: 'form-check-label', tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
190
190
|
b.use :html5
|
191
191
|
b.optional :readonly
|
192
|
-
b.use :label, class: 'col-sm-3 form-
|
192
|
+
b.use :label, class: 'col-sm-3 col-form-label pt-0'
|
193
193
|
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
194
194
|
ba.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
195
195
|
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
@@ -204,7 +204,7 @@ SimpleForm.setup do |config|
|
|
204
204
|
b.optional :maxlength
|
205
205
|
b.optional :minlength
|
206
206
|
b.optional :readonly
|
207
|
-
b.use :label, class: 'col-sm-3 form-
|
207
|
+
b.use :label, class: 'col-sm-3 col-form-label'
|
208
208
|
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
209
209
|
ba.use :input, error_class: 'is-invalid', valid_class: 'is-valid'
|
210
210
|
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
@@ -216,7 +216,7 @@ SimpleForm.setup do |config|
|
|
216
216
|
config.wrappers :horizontal_multi_select, tag: 'div', class: 'form-group row', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
217
217
|
b.use :html5
|
218
218
|
b.optional :readonly
|
219
|
-
b.use :label, class: 'col-sm-3
|
219
|
+
b.use :label, class: 'col-sm-3 col-form-label'
|
220
220
|
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
221
221
|
ba.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |bb|
|
222
222
|
bb.use :input, class: 'form-control mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
@@ -232,7 +232,7 @@ SimpleForm.setup do |config|
|
|
232
232
|
b.use :placeholder
|
233
233
|
b.optional :readonly
|
234
234
|
b.optional :step
|
235
|
-
b.use :label, class: 'col-sm-3 form-
|
235
|
+
b.use :label, class: 'col-sm-3 col-form-label'
|
236
236
|
b.wrapper :grid_wrapper, tag: 'div', class: 'col-sm-9' do |ba|
|
237
237
|
ba.use :input, class: 'form-control-range', error_class: 'is-invalid', valid_class: 'is-valid'
|
238
238
|
ba.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
@@ -260,7 +260,7 @@ SimpleForm.setup do |config|
|
|
260
260
|
end
|
261
261
|
|
262
262
|
# inline input for boolean
|
263
|
-
config.wrappers :inline_boolean, tag: 'span', class: 'form-check
|
263
|
+
config.wrappers :inline_boolean, tag: 'span', class: 'form-check mb-2 mr-sm-2', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
264
264
|
b.use :html5
|
265
265
|
b.optional :readonly
|
266
266
|
b.use :input, class: 'form-check-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
@@ -284,10 +284,11 @@ SimpleForm.setup do |config|
|
|
284
284
|
end
|
285
285
|
end
|
286
286
|
|
287
|
+
# custom input switch for boolean
|
287
288
|
config.wrappers :custom_boolean_switch, tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
288
289
|
b.use :html5
|
289
290
|
b.optional :readonly
|
290
|
-
b.wrapper :form_check_wrapper, tag: 'div', class: 'custom-control custom-
|
291
|
+
b.wrapper :form_check_wrapper, tag: 'div', class: 'custom-control custom-switch' do |bb|
|
291
292
|
bb.use :input, class: 'custom-control-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
292
293
|
bb.use :label, class: 'custom-control-label'
|
293
294
|
bb.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
@@ -296,7 +297,7 @@ SimpleForm.setup do |config|
|
|
296
297
|
end
|
297
298
|
|
298
299
|
# custom input for radio buttons and check boxes
|
299
|
-
config.wrappers :custom_collection, item_wrapper_class: 'custom-control', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
300
|
+
config.wrappers :custom_collection, item_wrapper_class: 'custom-control', item_label_class: 'custom-control-label', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
300
301
|
b.use :html5
|
301
302
|
b.optional :readonly
|
302
303
|
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
@@ -308,7 +309,7 @@ SimpleForm.setup do |config|
|
|
308
309
|
end
|
309
310
|
|
310
311
|
# custom input for inline radio buttons and check boxes
|
311
|
-
config.wrappers :custom_collection_inline, item_wrapper_class: 'custom-control custom-control-inline', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
312
|
+
config.wrappers :custom_collection_inline, item_wrapper_class: 'custom-control custom-control-inline', item_label_class: 'custom-control-label', tag: 'fieldset', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
312
313
|
b.use :html5
|
313
314
|
b.optional :readonly
|
314
315
|
b.wrapper :legend_tag, tag: 'legend', class: 'col-form-label pt-0' do |ba|
|
@@ -326,7 +327,7 @@ SimpleForm.setup do |config|
|
|
326
327
|
b.optional :maxlength
|
327
328
|
b.optional :minlength
|
328
329
|
b.optional :readonly
|
329
|
-
b.use :label
|
330
|
+
b.use :label
|
330
331
|
b.wrapper :custom_file_wrapper, tag: 'div', class: 'custom-file' do |ba|
|
331
332
|
ba.use :input, class: 'custom-file-input', error_class: 'is-invalid', valid_class: 'is-valid'
|
332
333
|
ba.use :label, class: 'custom-file-label'
|
@@ -339,7 +340,7 @@ SimpleForm.setup do |config|
|
|
339
340
|
config.wrappers :custom_multi_select, tag: 'div', class: 'form-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
340
341
|
b.use :html5
|
341
342
|
b.optional :readonly
|
342
|
-
b.use :label
|
343
|
+
b.use :label
|
343
344
|
b.wrapper tag: 'div', class: 'd-flex flex-row justify-content-between align-items-center' do |ba|
|
344
345
|
ba.use :input, class: 'custom-select mx-1', error_class: 'is-invalid', valid_class: 'is-valid'
|
345
346
|
end
|
@@ -353,7 +354,7 @@ SimpleForm.setup do |config|
|
|
353
354
|
b.use :placeholder
|
354
355
|
b.optional :readonly
|
355
356
|
b.optional :step
|
356
|
-
b.use :label
|
357
|
+
b.use :label
|
357
358
|
b.use :input, class: 'custom-range', error_class: 'is-invalid', valid_class: 'is-valid'
|
358
359
|
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback d-block' }
|
359
360
|
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
@@ -370,7 +371,7 @@ SimpleForm.setup do |config|
|
|
370
371
|
# b.optional :pattern
|
371
372
|
# b.optional :min_max
|
372
373
|
# b.optional :readonly
|
373
|
-
# b.use :label
|
374
|
+
# b.use :label
|
374
375
|
# b.wrapper :input_group_tag, tag: 'div', class: 'input-group' do |ba|
|
375
376
|
# ba.optional :prepend
|
376
377
|
# ba.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
@@ -393,7 +394,7 @@ SimpleForm.setup do |config|
|
|
393
394
|
b.optional :min_max
|
394
395
|
b.optional :readonly
|
395
396
|
b.use :input, class: 'form-control', error_class: 'is-invalid', valid_class: 'is-valid'
|
396
|
-
b.use :label
|
397
|
+
b.use :label
|
397
398
|
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
398
399
|
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
399
400
|
end
|
@@ -402,8 +403,8 @@ SimpleForm.setup do |config|
|
|
402
403
|
config.wrappers :floating_labels_select, tag: 'div', class: 'form-label-group', error_class: 'form-group-invalid', valid_class: 'form-group-valid' do |b|
|
403
404
|
b.use :html5
|
404
405
|
b.optional :readonly
|
405
|
-
b.use :input, class: 'custom-select
|
406
|
-
b.use :label
|
406
|
+
b.use :input, class: 'custom-select', error_class: 'is-invalid', valid_class: 'is-valid'
|
407
|
+
b.use :label
|
407
408
|
b.use :full_error, wrap_with: { tag: 'div', class: 'invalid-feedback' }
|
408
409
|
b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
|
409
410
|
end
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
75f5a052d59d36b9d1f2048fe13c02db338e80d1d749d834e8be414a0f31a8bf0f8daf5766af57f6a6c6746ce5d9dc4bb84e2ae3f2e5ebab268b343c3c69c243
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_core_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.41.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.41.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.41.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,6 +248,20 @@ dependencies:
|
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: rubocop-rails_config
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
251
265
|
- !ruby/object:Gem::Dependency
|
252
266
|
name: shoulda-matchers
|
253
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -296,14 +310,14 @@ dependencies:
|
|
296
310
|
requirements:
|
297
311
|
- - ">="
|
298
312
|
- !ruby/object:Gem::Version
|
299
|
-
version: 0.0.
|
313
|
+
version: 0.0.22.pre
|
300
314
|
type: :runtime
|
301
315
|
prerelease: false
|
302
316
|
version_requirements: !ruby/object:Gem::Requirement
|
303
317
|
requirements:
|
304
318
|
- - ">="
|
305
319
|
- !ruby/object:Gem::Version
|
306
|
-
version: 0.0.
|
320
|
+
version: 0.0.22.pre
|
307
321
|
description:
|
308
322
|
email:
|
309
323
|
- roberto@vasquez-angel.de
|
@@ -438,6 +452,7 @@ files:
|
|
438
452
|
- spec/dummy/db/development.sqlite3
|
439
453
|
- spec/dummy/db/test.sqlite3
|
440
454
|
- spec/dummy/lib/templates/haml/scaffold/_form.html.haml
|
455
|
+
- spec/dummy/log/development.log
|
441
456
|
- spec/dummy/package.json
|
442
457
|
- spec/dummy/public/404.html
|
443
458
|
- spec/dummy/public/422.html
|
@@ -472,7 +487,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
472
487
|
- !ruby/object:Gem::Version
|
473
488
|
version: 1.3.1
|
474
489
|
requirements: []
|
475
|
-
rubygems_version: 3.
|
490
|
+
rubygems_version: 3.1.2
|
476
491
|
signing_key:
|
477
492
|
specification_version: 4
|
478
493
|
summary: Cmor Core Module.
|