docspring 3.0.0 → 3.1.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/CHANGELOG.md +7 -0
- data/Gemfile.lock +4 -4
- data/README.md +11 -5
- data/docs/CreateHtmlSubmissionData.md +3 -1
- data/docs/CreatePdfSubmissionData.md +3 -1
- data/docs/PDFApi.md +156 -10
- data/docs/PublishVersionData.md +20 -0
- data/docs/RestoreVersionData.md +18 -0
- data/docs/Submission.md +4 -0
- data/docs/SubmissionPreview.md +4 -0
- data/docs/Template.md +15 -1
- data/docs/TemplateDeleteResponse.md +24 -0
- data/docs/TemplatePreview.md +13 -1
- data/docs/TemplatePublishVersionResponse.md +22 -0
- data/lib/docspring/api/pdf_api.rb +152 -5
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/combined_submission_action.rb +1 -5
- data/lib/docspring/models/create_html_submission_data.rb +13 -4
- data/lib/docspring/models/create_pdf_submission_data.rb +13 -4
- data/lib/docspring/models/publish_version_data.rb +230 -0
- data/lib/docspring/models/restore_version_data.rb +221 -0
- data/lib/docspring/models/submission.rb +41 -1
- data/lib/docspring/models/submission_data_request_event.rb +1 -5
- data/lib/docspring/models/submission_preview.rb +41 -1
- data/lib/docspring/models/template.rb +106 -4
- data/lib/docspring/models/template_delete_response.rb +287 -0
- data/lib/docspring/models/template_preview.rb +88 -4
- data/lib/docspring/models/template_publish_version_response.rb +282 -0
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +4 -0
- data/spec/api/pdf_api_spec.rb +27 -2
- data/spec/models/create_html_submission_data_spec.rb +6 -0
- data/spec/models/create_pdf_submission_data_spec.rb +6 -0
- data/spec/models/publish_version_data_spec.rb +42 -0
- data/spec/models/restore_version_data_spec.rb +36 -0
- data/spec/models/submission_preview_spec.rb +16 -0
- data/spec/models/submission_spec.rb +16 -0
- data/spec/models/template_delete_response_spec.rb +58 -0
- data/spec/models/template_preview_spec.rb +40 -0
- data/spec/models/template_publish_version_response_spec.rb +52 -0
- data/spec/models/template_spec.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/bin/irb +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/rdbg +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/rdoc +29 -0
- data/vendor/bundle/ruby/3.3.0/bin/ri +29 -0
- data/vendor/bundle/ruby/3.3.0/cache/ast-2.4.3.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/debug-1.10.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/io-console-0.8.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/irb-1.15.1.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/parser-3.3.7.2.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/pp-0.6.2.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/prettyprint-0.2.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/rdoc-6.12.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/cache/reline-0.6.0.gem +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/debug/debug.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/debug-1.10.0/gem_make.out +19 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/gem.build_complete +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/gem_make.out +31 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/io/console.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/extensions/arm64-darwin-24/3.3.0/io-console-0.8.0/mkmf.log +447 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/README.YARD.md +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/node.rb +268 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/processor/mixin.rb +288 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/processor.rb +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast/sexp.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.3/lib/ast.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/CONTRIBUTING.md +573 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/Gemfile +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/README.md +970 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/Rakefile +57 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/TODO.md +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/debug.gemspec +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/exe/rdbg +53 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/Makefile +270 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/debug.c +228 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/debug_version.h +1 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/extconf.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/ext/debug/iseq_collector.c +93 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/abbrev_command.rb +77 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/breakpoint.rb +556 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/client.rb +263 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/color.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/config.rb +590 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/console.rb +213 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/dap_custom/traceInspector.rb +336 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/debug.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/frame_info.rb +188 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/irb_integration.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/local.rb +115 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/open.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/open_nonstop.rb +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/prelude.rb +50 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server.rb +534 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server_cdp.rb +1348 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/server_dap.rb +1108 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/session.rb +2659 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/source_repository.rb +150 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/start.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/thread_client.rb +1455 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/tracer.rb +241 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug/version.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/lib/debug.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/debug-1.10.0/misc/README.md.erb +636 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/.document +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/README.md +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/Makefile +272 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/console.c +1969 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/extconf.rb +61 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/ext/io/console/win32_vk.inc +1390 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console/size.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/io-console-0.8.0/lib/io/console.bundle +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/Gemfile +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/README.md +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/Rakefile +52 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/bin/console +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/bin/setup +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/doc/irb/irb-tools.rd.ja +184 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/doc/irb/irb.rd.ja +425 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/exe/irb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/irb.gemspec +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/cmd/nop.rb +4 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/color.rb +263 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/color_printer.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/backtrace.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/base.rb +60 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/break.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/catch.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/cd.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/chws.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/context.rb +16 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/continue.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/copy.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/debug.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/delete.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/disable_irb.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/edit.rb +63 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/exit.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/finish.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/force_exit.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/help.rb +83 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/history.rb +45 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/info.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/internal_helpers.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/irb_info.rb +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/load.rb +91 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/ls.rb +167 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/measure.rb +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/next.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/pushws.rb +65 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/show_doc.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/show_source.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/step.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/subirb.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command/whereami.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/command.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/completion.rb +504 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/context.rb +751 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/debug/ui.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/debug.rb +127 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/default_commands.rb +279 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/easter-egg.rb +152 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/change-ws.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/eval_history.rb +149 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/loader.rb +127 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/multi-irb.rb +258 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/tracer.rb +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/use-loader.rb +67 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ext/workspaces.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/frame.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/help.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method/base.rb +16 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method/conf.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/helper_method.rb +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/history.rb +116 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/init.rb +540 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/input-method.rb +515 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/inspector.rb +136 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/error.rb +52 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/help-message +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/ja/error.rb +53 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/lc/ja/help-message +58 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/locale.rb +153 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/nesting_parser.rb +239 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/notifier.rb +230 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/output-method.rb +80 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/pager.rb +213 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ruby-lex.rb +476 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ruby_logo.aa +118 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/source_finder.rb +138 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/statement.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/version.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/workspace.rb +171 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/ws-for-case-2.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb/xmp.rb +164 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/lib/irb.rb +736 -0
- data/vendor/bundle/ruby/3.3.0/gems/irb-1.15.1/man/irb.1 +292 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/LICENSE.txt +26 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/bin/ruby-parse +7 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/bin/ruby-rewrite +7 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/gauntlet_parser.rb +123 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/all.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ast/node.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ast/processor.rb +293 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/base.rb +291 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/builders/default.rb +2338 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/clobbering_error.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/color.rb +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/context.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/current.rb +137 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/current_arg_stack.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/deprecation.rb +13 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/diagnostic/engine.rb +104 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/diagnostic.rb +163 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/dedenter.rb +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/explanation.rb +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/literal.rb +284 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer/stack_state.rb +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-F0.rb +12922 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-F1.rb +14875 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/lexer-strings.rb +5424 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/macruby.rb +9634 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/max_numparam_stack.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/messages.rb +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/meta.rb +48 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/rewriter.rb +105 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby18.rb +9272 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby19.rb +9558 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby20.rb +10229 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby21.rb +10203 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby22.rb +10302 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby23.rb +10322 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby24.rb +10454 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby25.rb +10374 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby26.rb +10352 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby27.rb +11947 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby30.rb +12243 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby31.rb +12716 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby32.rb +12704 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby33.rb +12589 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/ruby34.rb +12596 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/rubymotion.rb +9515 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner/ruby_parse.rb +157 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner/ruby_rewrite.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/runner.rb +299 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/buffer.rb +369 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/comment/associator.rb +233 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/comment.rb +134 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/collection.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/condition.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/constant.rb +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/definition.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/for.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/heredoc.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/index.rb +33 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/keyword.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/method_definition.rb +25 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/objc_kwarg.rb +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/operator.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/rescue_body.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/send.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/ternary.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map/variable.rb +31 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/map.rb +186 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/range.rb +326 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/rewriter/action.rb +44 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/rewriter.rb +513 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/tree_rewriter/action.rb +243 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/source/tree_rewriter.rb +431 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/static_environment.rb +134 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/syntax_error.rb +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/tree_rewriter.rb +133 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/unknown_encoding_in_magic_comment_error.rb +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/variables_stack.rb +36 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser/version.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/lib/parser.rb +91 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.7.2/parser.gemspec +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/lib/pp.rb +699 -0
- data/vendor/bundle/ruby/3.3.0/gems/pp-0.6.2/pp.gemspec +35 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.github/dependabot.yml +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.github/workflows/test.yml +41 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/.gitignore +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/Gemfile +4 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/README.md +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/Rakefile +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/bin/console +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/bin/setup +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/lib/prettyprint.rb +558 -0
- data/vendor/bundle/ruby/3.3.0/gems/prettyprint-0.2.0/prettyprint.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/CONTRIBUTING.rdoc +219 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/CVE-2013-0256.rdoc +49 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/ExampleMarkdown.md +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/ExampleRDoc.rdoc +210 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/History.rdoc +1668 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/LEGAL.rdoc +50 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/LICENSE.rdoc +59 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/README.rdoc +142 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/RI.md +842 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/TODO.rdoc +60 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/exe/rdoc +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/exe/ri +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/alias.rb +111 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/anon_class.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/any_method.rb +379 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/attr.rb +175 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/class_module.rb +871 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/constant.rb +186 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/context/section.rb +175 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/context.rb +1264 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/extend.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/ghost_method.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/include.rb +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/meta_method.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/method_attr.rb +430 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/mixin.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/normal_class.rb +92 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/normal_module.rb +73 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/require.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/single_class.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object/top_level.rb +291 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_object.rb +426 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/code_objects.rb +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/comment.rb +239 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/cross_reference.rb +228 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/encoding.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/erb_partial.rb +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/erbio.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/darkfish.rb +824 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/json_index.rb +300 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/markup.rb +159 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/message_extractor.rb +68 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/po.rb +84 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot/po_entry.rb +141 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/pot.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/ri.rb +30 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_head.rhtml +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +34 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +32 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +39 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +3 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/class.rhtml +206 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/css/rdoc.css +668 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/index.rhtml +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/js/darkfish.js +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/js/search.js +110 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +65 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +70 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/json_index/js/navigation.js +105 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/generator.rb +51 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n/locale.rb +102 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n/text.rb +126 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/i18n.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/known_classes.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/entities.rb +2131 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/literals.kpeg +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown/literals.rb +454 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown.kpeg +1244 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markdown.rb +16793 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attr_changer.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attr_span.rb +35 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attribute_manager.rb +405 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/attributes.rb +70 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/blank_line.rb +27 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/block_quote.rb +14 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/document.rb +164 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/formatter.rb +272 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/hard_break.rb +31 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/heading.rb +78 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/include.rb +42 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/indented_paragraph.rb +47 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/list.rb +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/list_item.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/paragraph.rb +28 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/parser.rb +585 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/pre_process.rb +318 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/raw.rb +69 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/regexp_handling.rb +40 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/rule.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/table.rb +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_ansi.rb +93 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_bs.rb +102 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html.rb +452 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html_crossref.rb +226 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_html_snippet.rb +287 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_joined_paragraph.rb +46 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_label.rb +74 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_markdown.rb +191 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_rdoc.rb +352 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_table_of_contents.rb +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_test.rb +69 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/to_tt_only.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup/verbatim.rb +83 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/markup.rb +240 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/options.rb +1397 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/c.rb +1260 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/changelog.rb +350 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/markdown.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/prism_ruby.rb +1099 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/rd.rb +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ripper_state_lex.rb +302 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ruby.rb +2381 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/ruby_tools.rb +165 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/simple.rb +61 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser/text.rb +11 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/parser.rb +297 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/block_parser.rb +1706 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/block_parser.ry +643 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline.rb +71 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline_parser.rb +1854 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd/inline_parser.ry +593 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rd.rb +99 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rdoc.rb +566 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/driver.rb +1558 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/formatter.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/paths.rb +171 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/store.rb +6 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri/task.rb +71 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/ri.rb +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/rubygems_hook.rb +330 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/servlet.rb +451 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/normal.rb +58 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/quiet.rb +59 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats/verbose.rb +44 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/stats.rb +461 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/store.rb +1001 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/task.rb +354 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/text.rb +322 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/token_stream.rb +118 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/tom_doc.rb +257 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc/version.rb +10 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rdoc.rb +211 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/lib/rubygems_plugin.rb +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/rdoc-6.12.0/man/ri.1 +247 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/COPYING +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/README.md +94 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/config.rb +373 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/face.rb +199 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/history.rb +76 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/ansi.rb +325 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/dumb.rb +120 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io/windows.rb +530 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/io.rb +55 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/base.rb +37 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/composite.rb +17 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/emacs.rb +517 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/vi_command.rb +518 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor/vi_insert.rb +517 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_actor.rb +8 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/key_stroke.rb +119 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/kill_ring.rb +125 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/line_editor.rb +2382 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/unicode/east_asian_width.rb +1267 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/unicode.rb +415 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline/version.rb +3 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/lib/reline.rb +519 -0
- data/vendor/bundle/ruby/3.3.0/gems/reline-0.6.0/license_of_rb-readline +25 -0
- data/vendor/bundle/ruby/3.3.0/plugins/rdoc_plugin.rb +1 -0
- data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.3.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/specifications/debug-1.10.0.gemspec +32 -0
- data/vendor/bundle/ruby/3.3.0/specifications/io-console-0.8.0.gemspec +25 -0
- data/vendor/bundle/ruby/3.3.0/specifications/irb-1.15.1.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.7.2.gemspec +37 -0
- data/vendor/bundle/ruby/3.3.0/specifications/pp-0.6.2.gemspec +27 -0
- data/vendor/bundle/ruby/3.3.0/specifications/prettyprint-0.2.0.gemspec +23 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rdoc-6.12.0.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/reline-0.6.0.gemspec +26 -0
- metadata +499 -3
@@ -0,0 +1,871 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
##
|
3
|
+
# ClassModule is the base class for objects representing either a class or a
|
4
|
+
# module.
|
5
|
+
|
6
|
+
class RDoc::ClassModule < RDoc::Context
|
7
|
+
|
8
|
+
##
|
9
|
+
# 1::
|
10
|
+
# RDoc 3.7
|
11
|
+
# * Added visibility, singleton and file to attributes
|
12
|
+
# * Added file to constants
|
13
|
+
# * Added file to includes
|
14
|
+
# * Added file to methods
|
15
|
+
# 2::
|
16
|
+
# RDoc 3.13
|
17
|
+
# * Added extends
|
18
|
+
# 3::
|
19
|
+
# RDoc 4.0
|
20
|
+
# * Added sections
|
21
|
+
# * Added in_files
|
22
|
+
# * Added parent name
|
23
|
+
# * Complete Constant dump
|
24
|
+
|
25
|
+
MARSHAL_VERSION = 3 # :nodoc:
|
26
|
+
|
27
|
+
##
|
28
|
+
# Constants that are aliases for this class or module
|
29
|
+
|
30
|
+
attr_accessor :constant_aliases
|
31
|
+
|
32
|
+
##
|
33
|
+
# Comment and the location it came from. Use #add_comment to add comments
|
34
|
+
|
35
|
+
attr_accessor :comment_location
|
36
|
+
|
37
|
+
attr_accessor :diagram # :nodoc:
|
38
|
+
|
39
|
+
##
|
40
|
+
# Class or module this constant is an alias for
|
41
|
+
|
42
|
+
attr_accessor :is_alias_for
|
43
|
+
|
44
|
+
##
|
45
|
+
# Return a RDoc::ClassModule of class +class_type+ that is a copy
|
46
|
+
# of module +module+. Used to promote modules to classes.
|
47
|
+
#--
|
48
|
+
# TODO move to RDoc::NormalClass (I think)
|
49
|
+
|
50
|
+
def self.from_module class_type, mod
|
51
|
+
klass = class_type.new mod.name
|
52
|
+
|
53
|
+
mod.comment_location.each do |comment, location|
|
54
|
+
klass.add_comment comment, location
|
55
|
+
end
|
56
|
+
|
57
|
+
klass.parent = mod.parent
|
58
|
+
klass.section = mod.section
|
59
|
+
klass.viewer = mod.viewer
|
60
|
+
|
61
|
+
klass.attributes.concat mod.attributes
|
62
|
+
klass.method_list.concat mod.method_list
|
63
|
+
klass.aliases.concat mod.aliases
|
64
|
+
klass.external_aliases.concat mod.external_aliases
|
65
|
+
klass.constants.concat mod.constants
|
66
|
+
klass.includes.concat mod.includes
|
67
|
+
klass.extends.concat mod.extends
|
68
|
+
|
69
|
+
klass.methods_hash.update mod.methods_hash
|
70
|
+
klass.constants_hash.update mod.constants_hash
|
71
|
+
|
72
|
+
klass.current_section = mod.current_section
|
73
|
+
klass.in_files.concat mod.in_files
|
74
|
+
klass.sections.concat mod.sections
|
75
|
+
klass.unmatched_alias_lists = mod.unmatched_alias_lists
|
76
|
+
klass.current_section = mod.current_section
|
77
|
+
klass.visibility = mod.visibility
|
78
|
+
|
79
|
+
klass.classes_hash.update mod.classes_hash
|
80
|
+
klass.modules_hash.update mod.modules_hash
|
81
|
+
klass.metadata.update mod.metadata
|
82
|
+
|
83
|
+
klass.document_self = mod.received_nodoc ? nil : mod.document_self
|
84
|
+
klass.document_children = mod.document_children
|
85
|
+
klass.force_documentation = mod.force_documentation
|
86
|
+
klass.done_documenting = mod.done_documenting
|
87
|
+
|
88
|
+
# update the parent of all children
|
89
|
+
|
90
|
+
(klass.attributes +
|
91
|
+
klass.method_list +
|
92
|
+
klass.aliases +
|
93
|
+
klass.external_aliases +
|
94
|
+
klass.constants +
|
95
|
+
klass.includes +
|
96
|
+
klass.extends +
|
97
|
+
klass.classes +
|
98
|
+
klass.modules).each do |obj|
|
99
|
+
obj.parent = klass
|
100
|
+
obj.full_name = nil
|
101
|
+
end
|
102
|
+
|
103
|
+
klass
|
104
|
+
end
|
105
|
+
|
106
|
+
##
|
107
|
+
# Creates a new ClassModule with +name+ with optional +superclass+
|
108
|
+
#
|
109
|
+
# This is a constructor for subclasses, and must never be called directly.
|
110
|
+
|
111
|
+
def initialize(name, superclass = nil)
|
112
|
+
@constant_aliases = []
|
113
|
+
@diagram = nil
|
114
|
+
@is_alias_for = nil
|
115
|
+
@name = name
|
116
|
+
@superclass = superclass
|
117
|
+
@comment_location = [] # [[comment, location]]
|
118
|
+
|
119
|
+
super()
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Adds +comment+ to this ClassModule's list of comments at +location+. This
|
124
|
+
# method is preferred over #comment= since it allows ri data to be updated
|
125
|
+
# across multiple runs.
|
126
|
+
|
127
|
+
def add_comment comment, location
|
128
|
+
return unless document_self
|
129
|
+
|
130
|
+
original = comment
|
131
|
+
|
132
|
+
comment = case comment
|
133
|
+
when RDoc::Comment then
|
134
|
+
comment.normalize
|
135
|
+
else
|
136
|
+
normalize_comment comment
|
137
|
+
end
|
138
|
+
|
139
|
+
if location.parser == RDoc::Parser::C
|
140
|
+
@comment_location.delete_if { |(_, l)| l == location }
|
141
|
+
end
|
142
|
+
|
143
|
+
@comment_location << [comment, location]
|
144
|
+
|
145
|
+
self.comment = original
|
146
|
+
end
|
147
|
+
|
148
|
+
def add_things my_things, other_things # :nodoc:
|
149
|
+
other_things.each do |group, things|
|
150
|
+
my_things[group].each { |thing| yield false, thing } if
|
151
|
+
my_things.include? group
|
152
|
+
|
153
|
+
things.each do |thing|
|
154
|
+
yield true, thing
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# Ancestors list for this ClassModule: the list of included modules
|
161
|
+
# (classes will add their superclass if any).
|
162
|
+
#
|
163
|
+
# Returns the included classes or modules, not the includes
|
164
|
+
# themselves. The returned values are either String or
|
165
|
+
# RDoc::NormalModule instances (see RDoc::Include#module).
|
166
|
+
#
|
167
|
+
# The values are returned in reverse order of their inclusion,
|
168
|
+
# which is the order suitable for searching methods/attributes
|
169
|
+
# in the ancestors. The superclass, if any, comes last.
|
170
|
+
|
171
|
+
def ancestors
|
172
|
+
includes.map { |i| i.module }.reverse
|
173
|
+
end
|
174
|
+
|
175
|
+
def aref_prefix # :nodoc:
|
176
|
+
raise NotImplementedError, "missing aref_prefix for #{self.class}"
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# HTML fragment reference for this module or class. See
|
181
|
+
# RDoc::NormalClass#aref and RDoc::NormalModule#aref
|
182
|
+
|
183
|
+
def aref
|
184
|
+
"#{aref_prefix}-#{full_name}"
|
185
|
+
end
|
186
|
+
|
187
|
+
##
|
188
|
+
# Ancestors of this class or module only
|
189
|
+
|
190
|
+
alias direct_ancestors ancestors
|
191
|
+
|
192
|
+
##
|
193
|
+
# Clears the comment. Used by the Ruby parser.
|
194
|
+
|
195
|
+
def clear_comment
|
196
|
+
@comment = ''
|
197
|
+
end
|
198
|
+
|
199
|
+
##
|
200
|
+
# This method is deprecated, use #add_comment instead.
|
201
|
+
#
|
202
|
+
# Appends +comment+ to the current comment, but separated by a rule. Works
|
203
|
+
# more like <tt>+=</tt>.
|
204
|
+
|
205
|
+
def comment= comment # :nodoc:
|
206
|
+
comment = case comment
|
207
|
+
when RDoc::Comment then
|
208
|
+
comment.normalize
|
209
|
+
else
|
210
|
+
normalize_comment comment
|
211
|
+
end
|
212
|
+
|
213
|
+
comment = "#{@comment.to_s}\n---\n#{comment.to_s}" unless @comment.empty?
|
214
|
+
|
215
|
+
super comment
|
216
|
+
end
|
217
|
+
|
218
|
+
##
|
219
|
+
# Prepares this ClassModule for use by a generator.
|
220
|
+
#
|
221
|
+
# See RDoc::Store#complete
|
222
|
+
|
223
|
+
def complete min_visibility
|
224
|
+
update_aliases
|
225
|
+
remove_nodoc_children
|
226
|
+
embed_mixins
|
227
|
+
update_includes
|
228
|
+
remove_invisible min_visibility
|
229
|
+
end
|
230
|
+
|
231
|
+
##
|
232
|
+
# Does this ClassModule or any of its methods have document_self set?
|
233
|
+
|
234
|
+
def document_self_or_methods
|
235
|
+
document_self || method_list.any?{ |m| m.document_self }
|
236
|
+
end
|
237
|
+
|
238
|
+
##
|
239
|
+
# Does this class or module have a comment with content or is
|
240
|
+
# #received_nodoc true?
|
241
|
+
|
242
|
+
def documented?
|
243
|
+
return true if @received_nodoc
|
244
|
+
return false if @comment_location.empty?
|
245
|
+
@comment_location.any? { |comment, _| not comment.empty? }
|
246
|
+
end
|
247
|
+
|
248
|
+
##
|
249
|
+
# Iterates the ancestors of this class or module for which an
|
250
|
+
# RDoc::ClassModule exists.
|
251
|
+
|
252
|
+
def each_ancestor # :yields: module
|
253
|
+
return enum_for __method__ unless block_given?
|
254
|
+
|
255
|
+
ancestors.each do |mod|
|
256
|
+
next if String === mod
|
257
|
+
next if self == mod
|
258
|
+
yield mod
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
##
|
263
|
+
# Looks for a symbol in the #ancestors. See Context#find_local_symbol.
|
264
|
+
|
265
|
+
def find_ancestor_local_symbol symbol
|
266
|
+
each_ancestor do |m|
|
267
|
+
res = m.find_local_symbol(symbol)
|
268
|
+
return res if res
|
269
|
+
end
|
270
|
+
|
271
|
+
nil
|
272
|
+
end
|
273
|
+
|
274
|
+
##
|
275
|
+
# Finds a class or module with +name+ in this namespace or its descendants
|
276
|
+
|
277
|
+
def find_class_named name
|
278
|
+
return self if full_name == name
|
279
|
+
return self if @name == name
|
280
|
+
|
281
|
+
@classes.values.find do |klass|
|
282
|
+
next if klass == self
|
283
|
+
klass.find_class_named name
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
##
|
288
|
+
# Return the fully qualified name of this class or module
|
289
|
+
|
290
|
+
def full_name
|
291
|
+
@full_name ||= if RDoc::ClassModule === parent then
|
292
|
+
"#{parent.full_name}::#{@name}"
|
293
|
+
else
|
294
|
+
@name
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
##
|
299
|
+
# TODO: filter included items by #display?
|
300
|
+
|
301
|
+
def marshal_dump # :nodoc:
|
302
|
+
attrs = attributes.sort.map do |attr|
|
303
|
+
next unless attr.display?
|
304
|
+
[ attr.name, attr.rw,
|
305
|
+
attr.visibility, attr.singleton, attr.file_name,
|
306
|
+
]
|
307
|
+
end.compact
|
308
|
+
|
309
|
+
method_types = methods_by_type.map do |type, visibilities|
|
310
|
+
visibilities = visibilities.map do |visibility, methods|
|
311
|
+
method_names = methods.map do |method|
|
312
|
+
next unless method.display?
|
313
|
+
[method.name, method.file_name]
|
314
|
+
end.compact
|
315
|
+
|
316
|
+
[visibility, method_names.uniq]
|
317
|
+
end
|
318
|
+
|
319
|
+
[type, visibilities]
|
320
|
+
end
|
321
|
+
|
322
|
+
[ MARSHAL_VERSION,
|
323
|
+
@name,
|
324
|
+
full_name,
|
325
|
+
@superclass,
|
326
|
+
parse(@comment_location),
|
327
|
+
attrs,
|
328
|
+
constants.select { |constant| constant.display? },
|
329
|
+
includes.map do |incl|
|
330
|
+
next unless incl.display?
|
331
|
+
[incl.name, parse(incl.comment), incl.file_name]
|
332
|
+
end.compact,
|
333
|
+
method_types,
|
334
|
+
extends.map do |ext|
|
335
|
+
next unless ext.display?
|
336
|
+
[ext.name, parse(ext.comment), ext.file_name]
|
337
|
+
end.compact,
|
338
|
+
@sections.values,
|
339
|
+
@in_files.map do |tl|
|
340
|
+
tl.relative_name
|
341
|
+
end,
|
342
|
+
parent.full_name,
|
343
|
+
parent.class,
|
344
|
+
]
|
345
|
+
end
|
346
|
+
|
347
|
+
def marshal_load array # :nodoc:
|
348
|
+
initialize_visibility
|
349
|
+
initialize_methods_etc
|
350
|
+
@current_section = nil
|
351
|
+
@document_self = true
|
352
|
+
@done_documenting = false
|
353
|
+
@parent = nil
|
354
|
+
@temporary_section = nil
|
355
|
+
@visibility = nil
|
356
|
+
@classes = {}
|
357
|
+
@modules = {}
|
358
|
+
|
359
|
+
@name = array[1]
|
360
|
+
@full_name = array[2]
|
361
|
+
@superclass = array[3]
|
362
|
+
document = array[4]
|
363
|
+
|
364
|
+
@comment = RDoc::Comment.from_document document
|
365
|
+
|
366
|
+
@comment_location = if RDoc::Markup::Document === document.parts.first then
|
367
|
+
document
|
368
|
+
else
|
369
|
+
RDoc::Markup::Document.new document
|
370
|
+
end
|
371
|
+
|
372
|
+
array[5].each do |name, rw, visibility, singleton, file|
|
373
|
+
singleton ||= false
|
374
|
+
visibility ||= :public
|
375
|
+
|
376
|
+
attr = RDoc::Attr.new nil, name, rw, nil, singleton
|
377
|
+
|
378
|
+
add_attribute attr
|
379
|
+
attr.visibility = visibility
|
380
|
+
attr.record_location RDoc::TopLevel.new file
|
381
|
+
end
|
382
|
+
|
383
|
+
array[6].each do |constant, document, file|
|
384
|
+
case constant
|
385
|
+
when RDoc::Constant then
|
386
|
+
add_constant constant
|
387
|
+
else
|
388
|
+
constant = add_constant RDoc::Constant.new(constant, nil, RDoc::Comment.from_document(document))
|
389
|
+
constant.record_location RDoc::TopLevel.new file
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
array[7].each do |name, document, file|
|
394
|
+
incl = add_include RDoc::Include.new(name, RDoc::Comment.from_document(document))
|
395
|
+
incl.record_location RDoc::TopLevel.new file
|
396
|
+
end
|
397
|
+
|
398
|
+
array[8].each do |type, visibilities|
|
399
|
+
visibilities.each do |visibility, methods|
|
400
|
+
@visibility = visibility
|
401
|
+
|
402
|
+
methods.each do |name, file|
|
403
|
+
method = RDoc::AnyMethod.new nil, name
|
404
|
+
method.singleton = true if type == 'class'
|
405
|
+
method.record_location RDoc::TopLevel.new file
|
406
|
+
add_method method
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
array[9].each do |name, document, file|
|
412
|
+
ext = add_extend RDoc::Extend.new(name, RDoc::Comment.from_document(document))
|
413
|
+
ext.record_location RDoc::TopLevel.new file
|
414
|
+
end if array[9] # Support Marshal version 1
|
415
|
+
|
416
|
+
sections = (array[10] || []).map do |section|
|
417
|
+
[section.title, section]
|
418
|
+
end
|
419
|
+
|
420
|
+
@sections = Hash[*sections.flatten]
|
421
|
+
@current_section = add_section nil
|
422
|
+
|
423
|
+
@in_files = []
|
424
|
+
|
425
|
+
(array[11] || []).each do |filename|
|
426
|
+
record_location RDoc::TopLevel.new filename
|
427
|
+
end
|
428
|
+
|
429
|
+
@parent_name = array[12]
|
430
|
+
@parent_class = array[13]
|
431
|
+
end
|
432
|
+
|
433
|
+
##
|
434
|
+
# Merges +class_module+ into this ClassModule.
|
435
|
+
#
|
436
|
+
# The data in +class_module+ is preferred over the receiver.
|
437
|
+
|
438
|
+
def merge class_module
|
439
|
+
@parent = class_module.parent
|
440
|
+
@parent_name = class_module.parent_name
|
441
|
+
|
442
|
+
other_document = parse class_module.comment_location
|
443
|
+
|
444
|
+
if other_document then
|
445
|
+
document = parse @comment_location
|
446
|
+
|
447
|
+
document = document.merge other_document
|
448
|
+
|
449
|
+
@comment = RDoc::Comment.from_document(document)
|
450
|
+
@comment_location = document
|
451
|
+
end
|
452
|
+
|
453
|
+
cm = class_module
|
454
|
+
other_files = cm.in_files
|
455
|
+
|
456
|
+
merge_collections attributes, cm.attributes, other_files do |add, attr|
|
457
|
+
if add then
|
458
|
+
add_attribute attr
|
459
|
+
else
|
460
|
+
@attributes.delete attr
|
461
|
+
@methods_hash.delete attr.pretty_name
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
merge_collections constants, cm.constants, other_files do |add, const|
|
466
|
+
if add then
|
467
|
+
add_constant const
|
468
|
+
else
|
469
|
+
@constants.delete const
|
470
|
+
@constants_hash.delete const.name
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
merge_collections includes, cm.includes, other_files do |add, incl|
|
475
|
+
if add then
|
476
|
+
add_include incl
|
477
|
+
else
|
478
|
+
@includes.delete incl
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
@includes.uniq! # clean up
|
483
|
+
|
484
|
+
merge_collections extends, cm.extends, other_files do |add, ext|
|
485
|
+
if add then
|
486
|
+
add_extend ext
|
487
|
+
else
|
488
|
+
@extends.delete ext
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
@extends.uniq! # clean up
|
493
|
+
|
494
|
+
merge_collections method_list, cm.method_list, other_files do |add, meth|
|
495
|
+
if add then
|
496
|
+
add_method meth
|
497
|
+
else
|
498
|
+
@method_list.delete meth
|
499
|
+
@methods_hash.delete meth.pretty_name
|
500
|
+
end
|
501
|
+
end
|
502
|
+
|
503
|
+
merge_sections cm
|
504
|
+
|
505
|
+
self
|
506
|
+
end
|
507
|
+
|
508
|
+
##
|
509
|
+
# Merges collection +mine+ with +other+ preferring other. +other_files+ is
|
510
|
+
# used to help determine which items should be deleted.
|
511
|
+
#
|
512
|
+
# Yields whether the item should be added or removed (true or false) and the
|
513
|
+
# item to be added or removed.
|
514
|
+
#
|
515
|
+
# merge_collections things, other.things, other.in_files do |add, thing|
|
516
|
+
# if add then
|
517
|
+
# # add the thing
|
518
|
+
# else
|
519
|
+
# # remove the thing
|
520
|
+
# end
|
521
|
+
# end
|
522
|
+
|
523
|
+
def merge_collections mine, other, other_files, &block # :nodoc:
|
524
|
+
my_things = mine. group_by { |thing| thing.file }
|
525
|
+
other_things = other.group_by { |thing| thing.file }
|
526
|
+
|
527
|
+
remove_things my_things, other_files, &block
|
528
|
+
add_things my_things, other_things, &block
|
529
|
+
end
|
530
|
+
|
531
|
+
##
|
532
|
+
# Merges the comments in this ClassModule with the comments in the other
|
533
|
+
# ClassModule +cm+.
|
534
|
+
|
535
|
+
def merge_sections cm # :nodoc:
|
536
|
+
my_sections = sections.group_by { |section| section.title }
|
537
|
+
other_sections = cm.sections.group_by { |section| section.title }
|
538
|
+
|
539
|
+
other_files = cm.in_files
|
540
|
+
|
541
|
+
remove_things my_sections, other_files do |_, section|
|
542
|
+
@sections.delete section.title
|
543
|
+
end
|
544
|
+
|
545
|
+
other_sections.each do |group, sections|
|
546
|
+
if my_sections.include? group
|
547
|
+
my_sections[group].each do |my_section|
|
548
|
+
other_section = cm.sections_hash[group]
|
549
|
+
|
550
|
+
my_comments = my_section.comments
|
551
|
+
other_comments = other_section.comments
|
552
|
+
|
553
|
+
other_files = other_section.in_files
|
554
|
+
|
555
|
+
merge_collections my_comments, other_comments, other_files do |add, comment|
|
556
|
+
if add then
|
557
|
+
my_section.add_comment comment
|
558
|
+
else
|
559
|
+
my_section.remove_comment comment
|
560
|
+
end
|
561
|
+
end
|
562
|
+
end
|
563
|
+
else
|
564
|
+
sections.each do |section|
|
565
|
+
add_section group, section.comments
|
566
|
+
end
|
567
|
+
end
|
568
|
+
end
|
569
|
+
end
|
570
|
+
|
571
|
+
##
|
572
|
+
# Does this object represent a module?
|
573
|
+
|
574
|
+
def module?
|
575
|
+
false
|
576
|
+
end
|
577
|
+
|
578
|
+
##
|
579
|
+
# Allows overriding the initial name.
|
580
|
+
#
|
581
|
+
# Used for modules and classes that are constant aliases.
|
582
|
+
|
583
|
+
def name= new_name
|
584
|
+
@name = new_name
|
585
|
+
end
|
586
|
+
|
587
|
+
##
|
588
|
+
# Parses +comment_location+ into an RDoc::Markup::Document composed of
|
589
|
+
# multiple RDoc::Markup::Documents with their file set.
|
590
|
+
|
591
|
+
def parse comment_location
|
592
|
+
case comment_location
|
593
|
+
when String then
|
594
|
+
super
|
595
|
+
when Array then
|
596
|
+
docs = comment_location.map do |comment, location|
|
597
|
+
doc = super comment
|
598
|
+
doc.file = location
|
599
|
+
doc
|
600
|
+
end
|
601
|
+
|
602
|
+
RDoc::Markup::Document.new(*docs)
|
603
|
+
when RDoc::Comment then
|
604
|
+
doc = super comment_location.text, comment_location.format
|
605
|
+
doc.file = comment_location.location
|
606
|
+
doc
|
607
|
+
when RDoc::Markup::Document then
|
608
|
+
return comment_location
|
609
|
+
else
|
610
|
+
raise ArgumentError, "unknown comment class #{comment_location.class}"
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
614
|
+
##
|
615
|
+
# Path to this class or module for use with HTML generator output.
|
616
|
+
|
617
|
+
def path
|
618
|
+
http_url @store.rdoc.generator.class_dir
|
619
|
+
end
|
620
|
+
|
621
|
+
##
|
622
|
+
# Name to use to generate the url:
|
623
|
+
# modules and classes that are aliases for another
|
624
|
+
# module or class return the name of the latter.
|
625
|
+
|
626
|
+
def name_for_path
|
627
|
+
is_alias_for ? is_alias_for.full_name : full_name
|
628
|
+
end
|
629
|
+
|
630
|
+
##
|
631
|
+
# Returns the classes and modules that are not constants
|
632
|
+
# aliasing another class or module. For use by formatters
|
633
|
+
# only (caches its result).
|
634
|
+
|
635
|
+
def non_aliases
|
636
|
+
@non_aliases ||= classes_and_modules.reject { |cm| cm.is_alias_for }
|
637
|
+
end
|
638
|
+
|
639
|
+
##
|
640
|
+
# Updates the child modules or classes of class/module +parent+ by
|
641
|
+
# deleting the ones that have been removed from the documentation.
|
642
|
+
#
|
643
|
+
# +parent_hash+ is either <tt>parent.modules_hash</tt> or
|
644
|
+
# <tt>parent.classes_hash</tt> and +all_hash+ is ::all_modules_hash or
|
645
|
+
# ::all_classes_hash.
|
646
|
+
|
647
|
+
def remove_nodoc_children
|
648
|
+
prefix = self.full_name + '::'
|
649
|
+
|
650
|
+
modules_hash.each_key do |name|
|
651
|
+
full_name = prefix + name
|
652
|
+
modules_hash.delete name unless @store.modules_hash[full_name]
|
653
|
+
end
|
654
|
+
|
655
|
+
classes_hash.each_key do |name|
|
656
|
+
full_name = prefix + name
|
657
|
+
classes_hash.delete name unless @store.classes_hash[full_name]
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
def remove_things my_things, other_files # :nodoc:
|
662
|
+
my_things.delete_if do |file, things|
|
663
|
+
next false unless other_files.include? file
|
664
|
+
|
665
|
+
things.each do |thing|
|
666
|
+
yield false, thing
|
667
|
+
end
|
668
|
+
|
669
|
+
true
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
##
|
674
|
+
# Search record used by RDoc::Generator::JsonIndex
|
675
|
+
|
676
|
+
def search_record
|
677
|
+
[
|
678
|
+
name,
|
679
|
+
full_name,
|
680
|
+
full_name,
|
681
|
+
'',
|
682
|
+
path,
|
683
|
+
'',
|
684
|
+
snippet(@comment_location),
|
685
|
+
]
|
686
|
+
end
|
687
|
+
|
688
|
+
##
|
689
|
+
# Sets the store for this class or module and its contained code objects.
|
690
|
+
|
691
|
+
def store= store
|
692
|
+
super
|
693
|
+
|
694
|
+
@attributes .each do |attr| attr.store = store end
|
695
|
+
@constants .each do |const| const.store = store end
|
696
|
+
@includes .each do |incl| incl.store = store end
|
697
|
+
@extends .each do |ext| ext.store = store end
|
698
|
+
@method_list.each do |meth| meth.store = store end
|
699
|
+
end
|
700
|
+
|
701
|
+
##
|
702
|
+
# Get the superclass of this class. Attempts to retrieve the superclass
|
703
|
+
# object, returns the name if it is not known.
|
704
|
+
|
705
|
+
def superclass
|
706
|
+
@store.find_class_named(@superclass) || @superclass
|
707
|
+
end
|
708
|
+
|
709
|
+
##
|
710
|
+
# Set the superclass of this class to +superclass+
|
711
|
+
#
|
712
|
+
# where +superclass+ is one of:
|
713
|
+
#
|
714
|
+
# - +nil+
|
715
|
+
# - a String containing the full name of the superclass
|
716
|
+
# - the RDoc::ClassModule representing the superclass
|
717
|
+
|
718
|
+
def superclass=(superclass)
|
719
|
+
raise NoMethodError, "#{full_name} is a module" if module?
|
720
|
+
case superclass
|
721
|
+
when RDoc::ClassModule
|
722
|
+
@superclass = superclass.full_name
|
723
|
+
when nil, String
|
724
|
+
@superclass = superclass
|
725
|
+
else
|
726
|
+
raise TypeError, "superclass must be a String or RDoc::ClassModule, not #{superclass.class}"
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
##
|
731
|
+
# Get all super classes of this class in an array. The last element might be
|
732
|
+
# a string if the name is unknown.
|
733
|
+
|
734
|
+
def super_classes
|
735
|
+
result = []
|
736
|
+
parent = self
|
737
|
+
while parent = parent.superclass
|
738
|
+
result << parent
|
739
|
+
return result if parent.is_a?(String)
|
740
|
+
end
|
741
|
+
result
|
742
|
+
end
|
743
|
+
|
744
|
+
def to_s # :nodoc:
|
745
|
+
if is_alias_for then
|
746
|
+
"#{self.class.name} #{self.full_name} -> #{is_alias_for}"
|
747
|
+
else
|
748
|
+
super
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
752
|
+
##
|
753
|
+
# 'module' or 'class'
|
754
|
+
|
755
|
+
def type
|
756
|
+
module? ? 'module' : 'class'
|
757
|
+
end
|
758
|
+
|
759
|
+
##
|
760
|
+
# Updates the child modules & classes by replacing the ones that are
|
761
|
+
# aliases through a constant.
|
762
|
+
#
|
763
|
+
# The aliased module/class is replaced in the children and in
|
764
|
+
# RDoc::Store#modules_hash or RDoc::Store#classes_hash
|
765
|
+
# by a copy that has <tt>RDoc::ClassModule#is_alias_for</tt> set to
|
766
|
+
# the aliased module/class, and this copy is added to <tt>#aliases</tt>
|
767
|
+
# of the aliased module/class.
|
768
|
+
#
|
769
|
+
# Formatters can use the #non_aliases method to retrieve children that
|
770
|
+
# are not aliases, for instance to list the namespace content, since
|
771
|
+
# the aliased modules are included in the constants of the class/module,
|
772
|
+
# that are listed separately.
|
773
|
+
|
774
|
+
def update_aliases
|
775
|
+
constants.each do |const|
|
776
|
+
next unless cm = const.is_alias_for
|
777
|
+
cm_alias = cm.dup
|
778
|
+
cm_alias.name = const.name
|
779
|
+
|
780
|
+
# Don't move top-level aliases under Object, they look ugly there
|
781
|
+
unless RDoc::TopLevel === cm_alias.parent then
|
782
|
+
cm_alias.parent = self
|
783
|
+
cm_alias.full_name = nil # force update for new parent
|
784
|
+
end
|
785
|
+
|
786
|
+
cm_alias.aliases.clear
|
787
|
+
cm_alias.is_alias_for = cm
|
788
|
+
|
789
|
+
if cm.module? then
|
790
|
+
@store.modules_hash[cm_alias.full_name] = cm_alias
|
791
|
+
modules_hash[const.name] = cm_alias
|
792
|
+
else
|
793
|
+
@store.classes_hash[cm_alias.full_name] = cm_alias
|
794
|
+
classes_hash[const.name] = cm_alias
|
795
|
+
end
|
796
|
+
|
797
|
+
cm.aliases << cm_alias
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
##
|
802
|
+
# Deletes from #includes those whose module has been removed from the
|
803
|
+
# documentation.
|
804
|
+
#--
|
805
|
+
# FIXME: includes are not reliably removed, see _possible_bug test case
|
806
|
+
|
807
|
+
def update_includes
|
808
|
+
includes.reject! do |include|
|
809
|
+
mod = include.module
|
810
|
+
!(String === mod) && @store.modules_hash[mod.full_name].nil?
|
811
|
+
end
|
812
|
+
|
813
|
+
includes.uniq!
|
814
|
+
end
|
815
|
+
|
816
|
+
##
|
817
|
+
# Deletes from #extends those whose module has been removed from the
|
818
|
+
# documentation.
|
819
|
+
#--
|
820
|
+
# FIXME: like update_includes, extends are not reliably removed
|
821
|
+
|
822
|
+
def update_extends
|
823
|
+
extends.reject! do |ext|
|
824
|
+
mod = ext.module
|
825
|
+
|
826
|
+
!(String === mod) && @store.modules_hash[mod.full_name].nil?
|
827
|
+
end
|
828
|
+
|
829
|
+
extends.uniq!
|
830
|
+
end
|
831
|
+
|
832
|
+
def embed_mixins
|
833
|
+
return unless options.embed_mixins
|
834
|
+
|
835
|
+
includes.each do |include|
|
836
|
+
next if String === include.module
|
837
|
+
include.module.method_list.each do |code_object|
|
838
|
+
add_method(prepare_to_embed(code_object))
|
839
|
+
end
|
840
|
+
include.module.constants.each do |code_object|
|
841
|
+
add_constant(prepare_to_embed(code_object))
|
842
|
+
end
|
843
|
+
include.module.attributes.each do |code_object|
|
844
|
+
add_attribute(prepare_to_embed(code_object))
|
845
|
+
end
|
846
|
+
end
|
847
|
+
|
848
|
+
extends.each do |ext|
|
849
|
+
next if String === ext.module
|
850
|
+
ext.module.method_list.each do |code_object|
|
851
|
+
add_method(prepare_to_embed(code_object, true))
|
852
|
+
end
|
853
|
+
ext.module.attributes.each do |code_object|
|
854
|
+
add_attribute(prepare_to_embed(code_object, true))
|
855
|
+
end
|
856
|
+
end
|
857
|
+
end
|
858
|
+
|
859
|
+
private
|
860
|
+
|
861
|
+
def prepare_to_embed(code_object, singleton=false)
|
862
|
+
code_object = code_object.dup
|
863
|
+
code_object.mixin_from = code_object.parent
|
864
|
+
code_object.singleton = true if singleton
|
865
|
+
set_current_section(code_object.section.title, code_object.section.comment)
|
866
|
+
# add_method and add_attribute will reassign self's visibility back to the method/attribute
|
867
|
+
# so we need to sync self's visibility with the object's to properly retain that information
|
868
|
+
self.visibility = code_object.visibility
|
869
|
+
code_object
|
870
|
+
end
|
871
|
+
end
|