glib-web 4.39.1 → 4.40.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/app/controllers/glib/api_docs_controller.rb +145 -0
- data/app/helpers/glib/json_ui/abstract_builder.rb +16 -0
- data/app/helpers/glib/json_ui/action_builder/dialogs.rb +4 -0
- data/app/helpers/glib/json_ui/list_builders.rb +2 -0
- data/app/helpers/glib/json_ui/page_helper.rb +6 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +554 -34
- data/app/helpers/glib/json_ui/view_builder/panels.rb +455 -12
- data/app/helpers/glib/json_ui/view_builder.rb +1 -1
- data/app/views/glib/api_docs/component.json.jbuilder +215 -0
- data/app/views/glib/api_docs/index.json.jbuilder +103 -0
- data/app/views/glib/api_docs/show.json.jbuilder +111 -0
- data/app/views/json_ui/garage/lists/edit_actions.json.jbuilder +96 -66
- data/app/views/json_ui/garage/lists/edit_mode.json.jbuilder +58 -41
- data/app/views/json_ui/garage/lists/templating.json.jbuilder +68 -44
- data/app/views/json_ui/garage/panels/timeline.json.jbuilder +82 -73
- data/app/views/json_ui/garage/test_page/lifecycle.json.jbuilder +3 -0
- data/app/views/json_ui/garage/views/markdowns.json.jbuilder +2 -0
- data/config/routes.rb +4 -0
- data/lib/glib/rubocop/cops/test_name_parentheses.rb +33 -0
- data/lib/glib/rubocop.rb +1 -0
- data/lib/glib/snapshot.rb +75 -17
- data/lib/tasks/docs.rake +59 -0
- metadata +12 -6
data/lib/tasks/docs.rake
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
namespace :glib do
|
|
2
|
+
namespace :docs do
|
|
3
|
+
desc 'Generate component documentation in YAML format'
|
|
4
|
+
task :generate do
|
|
5
|
+
require_relative '../glib/doc_generator'
|
|
6
|
+
|
|
7
|
+
generator = Glib::DocGenerator.new
|
|
8
|
+
|
|
9
|
+
# Generate documentation for different component categories
|
|
10
|
+
categories = [
|
|
11
|
+
{
|
|
12
|
+
name: 'panels',
|
|
13
|
+
file: 'app/helpers/glib/json_ui/view_builder/panels.rb',
|
|
14
|
+
output: 'doc/components/panels.yml'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'fields',
|
|
18
|
+
file: 'app/helpers/glib/json_ui/view_builder/fields.rb',
|
|
19
|
+
output: 'doc/components/fields.yml'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'views',
|
|
23
|
+
file: 'app/helpers/glib/json_ui/view_builder.rb',
|
|
24
|
+
output: 'doc/components/views.yml'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'actions',
|
|
28
|
+
file: 'app/helpers/glib/json_ui/action_builder.rb',
|
|
29
|
+
output: 'doc/components/actions.yml'
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
categories.each do |category|
|
|
34
|
+
puts "Generating documentation for #{category[:name]}..."
|
|
35
|
+
generator.generate_for_file(category[:file], category[:output])
|
|
36
|
+
puts " -> #{category[:output]}"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Also scan action subdirectories
|
|
40
|
+
Dir.glob('app/helpers/glib/json_ui/action_builder/*.rb').each do |file|
|
|
41
|
+
basename = File.basename(file, '.rb')
|
|
42
|
+
output = "doc/components/actions_#{basename}.yml"
|
|
43
|
+
puts "Generating documentation for actions/#{basename}..."
|
|
44
|
+
generator.generate_for_file(file, output)
|
|
45
|
+
puts " -> #{output}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
puts "\nDocumentation generation complete!"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
desc 'Validate YARD documentation'
|
|
52
|
+
task :validate do
|
|
53
|
+
puts "Validating YARD documentation..."
|
|
54
|
+
system('yard stats --list-undoc')
|
|
55
|
+
system('yard doc --fail-on-warning --no-output')
|
|
56
|
+
puts "\nValidation complete!"
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
metadata
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: glib-web
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.40.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2019-10-04 00:00:00.000000000 Z
|
|
@@ -136,7 +136,7 @@ dependencies:
|
|
|
136
136
|
- - ">="
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
|
-
description:
|
|
139
|
+
description:
|
|
140
140
|
email: ''
|
|
141
141
|
executables: []
|
|
142
142
|
extensions: []
|
|
@@ -156,6 +156,7 @@ files:
|
|
|
156
156
|
- app/controllers/concerns/glib/json/traversal.rb
|
|
157
157
|
- app/controllers/concerns/glib/json/ui.rb
|
|
158
158
|
- app/controllers/concerns/glib/json/validation.rb
|
|
159
|
+
- app/controllers/glib/api_docs_controller.rb
|
|
159
160
|
- app/controllers/glib/blob_url_generators_controller.rb
|
|
160
161
|
- app/controllers/glib/errors_controller.rb
|
|
161
162
|
- app/controllers/glib/glib_direct_uploads_controller.rb
|
|
@@ -220,6 +221,9 @@ files:
|
|
|
220
221
|
- app/validators/mutually_exclusive_with_validator.rb
|
|
221
222
|
- app/validators/presence_only_if_validator.rb
|
|
222
223
|
- app/validators/url_validator.rb
|
|
224
|
+
- app/views/glib/api_docs/component.json.jbuilder
|
|
225
|
+
- app/views/glib/api_docs/index.json.jbuilder
|
|
226
|
+
- app/views/glib/api_docs/show.json.jbuilder
|
|
223
227
|
- app/views/json_ui/garage/_nav_menu.json.jbuilder
|
|
224
228
|
- app/views/json_ui/garage/actions/_commands.json.jbuilder
|
|
225
229
|
- app/views/json_ui/garage/actions/_components.json.jbuilder
|
|
@@ -448,6 +452,7 @@ files:
|
|
|
448
452
|
- lib/glib/rubocop/cops/json_ui/nested_block_parameter.rb
|
|
449
453
|
- lib/glib/rubocop/cops/localize.rb
|
|
450
454
|
- lib/glib/rubocop/cops/multiline_method_call_style.rb
|
|
455
|
+
- lib/glib/rubocop/cops/test_name_parentheses.rb
|
|
451
456
|
- lib/glib/snapshot.rb
|
|
452
457
|
- lib/glib/test/parallel_coverage.rb
|
|
453
458
|
- lib/glib/test_helpers.rb
|
|
@@ -456,10 +461,11 @@ files:
|
|
|
456
461
|
- lib/glib/value.rb
|
|
457
462
|
- lib/glib/version.rb
|
|
458
463
|
- lib/tasks/db.rake
|
|
459
|
-
|
|
464
|
+
- lib/tasks/docs.rake
|
|
465
|
+
homepage:
|
|
460
466
|
licenses: []
|
|
461
467
|
metadata: {}
|
|
462
|
-
post_install_message:
|
|
468
|
+
post_install_message:
|
|
463
469
|
rdoc_options: []
|
|
464
470
|
require_paths:
|
|
465
471
|
- lib
|
|
@@ -475,7 +481,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
475
481
|
version: '0'
|
|
476
482
|
requirements: []
|
|
477
483
|
rubygems_version: 3.4.6
|
|
478
|
-
signing_key:
|
|
484
|
+
signing_key:
|
|
479
485
|
specification_version: 4
|
|
480
486
|
summary: ''
|
|
481
487
|
test_files: []
|