kinetic_sdk 5.0.18 → 5.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/README.md +1 -1
- data/gems/{mime-types-3.1/Code-of-Conduct.rdoc → mime-types-3.4.1/Code-of-Conduct.md} +29 -30
- data/gems/mime-types-3.4.1/Contributing.md +132 -0
- data/gems/mime-types-3.4.1/History.md +269 -0
- data/gems/{mime-types-3.1/Licence.rdoc → mime-types-3.4.1/Licence.md} +3 -3
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/Manifest.txt +4 -4
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/README.rdoc +6 -14
- data/gems/mime-types-3.4.1/Rakefile +270 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/type/columnar.rb +6 -4
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/type.rb +162 -101
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/_columnar.rb +22 -20
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/cache.rb +13 -11
- data/gems/mime-types-3.4.1/lib/mime/types/columnar.rb +3 -0
- data/gems/mime-types-3.4.1/lib/mime/types/container.rb +96 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/deprecations.rb +17 -13
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/full.rb +4 -2
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/loader.rb +29 -18
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/logger.rb +5 -5
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types/registry.rb +14 -5
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/lib/mime/types.rb +26 -21
- data/gems/mime-types-3.4.1/lib/mime-types.rb +3 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/test/bad-fixtures/malformed +0 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/test/fixture/json.json +0 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/test/fixture/old-data +0 -0
- data/gems/{mime-types-3.1 → mime-types-3.4.1}/test/fixture/yaml.yaml +0 -0
- data/gems/mime-types-3.4.1/test/minitest_helper.rb +11 -0
- data/gems/mime-types-3.4.1/test/test_mime_type.rb +621 -0
- data/gems/mime-types-3.4.1/test/test_mime_types.rb +169 -0
- data/gems/mime-types-3.4.1/test/test_mime_types_cache.rb +118 -0
- data/gems/mime-types-3.4.1/test/test_mime_types_class.rb +159 -0
- data/gems/mime-types-3.4.1/test/test_mime_types_lazy.rb +49 -0
- data/gems/mime-types-3.4.1/test/test_mime_types_loader.rb +32 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/Code-of-Conduct.md +22 -22
- data/gems/mime-types-data-3.2022.0105/Contributing.md +241 -0
- data/gems/mime-types-data-3.2022.0105/History.md +502 -0
- data/gems/{websocket-driver-0.6.5-java/LICENSE.md → mime-types-data-3.2022.0105/Licence.md} +7 -5
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/Manifest.txt +16 -0
- data/gems/mime-types-data-3.2022.0105/README.md +73 -0
- data/gems/mime-types-data-3.2022.0105/Rakefile +155 -0
- data/gems/mime-types-data-3.2022.0105/data/content_type_mime.db +878 -0
- data/gems/mime-types-data-3.2022.0105/data/ext_mime.db +1198 -0
- data/gems/mime-types-data-3.2022.0105/data/mime-types.json +1 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.content_type.column +432 -13
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.docs.column +419 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.encoding.column +419 -0
- data/gems/mime-types-data-3.2022.0105/data/mime.flags.column +2383 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.friendly.column +419 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.pext.column +419 -0
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.use_instead.column +420 -1
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/data/mime.xrefs.column +567 -148
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/lib/mime/types/data.rb +2 -2
- data/gems/{mime-types-data-3.2016.0521 → mime-types-data-3.2022.0105}/lib/mime-types-data.rb +1 -1
- data/gems/mime-types-data-3.2022.0105/types/application.yaml +17299 -0
- data/gems/mime-types-data-3.2022.0105/types/audio.yaml +1716 -0
- data/gems/mime-types-data-3.2022.0105/types/chemical.yaml +71 -0
- data/gems/mime-types-data-3.2022.0105/types/conference.yaml +9 -0
- data/gems/mime-types-data-3.2022.0105/types/drawing.yaml +15 -0
- data/gems/mime-types-data-3.2022.0105/types/font.yaml +65 -0
- data/gems/mime-types-data-3.2022.0105/types/image.yaml +1252 -0
- data/gems/mime-types-data-3.2022.0105/types/message.yaml +205 -0
- data/gems/mime-types-data-3.2022.0105/types/model.yaml +390 -0
- data/gems/mime-types-data-3.2022.0105/types/multipart.yaml +179 -0
- data/gems/mime-types-data-3.2022.0105/types/provisional-standard-types.yaml +145 -0
- data/gems/mime-types-data-3.2022.0105/types/text.yaml +1166 -0
- data/gems/mime-types-data-3.2022.0105/types/video.yaml +1121 -0
- data/gems/mime-types-data-3.2022.0105/types/world.yaml +8 -0
- data/gems/rake-13.0.1/CONTRIBUTING.rdoc +43 -0
- data/gems/rake-13.0.1/Gemfile +10 -0
- data/gems/rake-13.0.1/History.rdoc +2368 -0
- data/gems/{parallel-1.12.1/MIT-LICENSE.txt → rake-13.0.1/MIT-LICENSE} +2 -1
- data/gems/rake-13.0.1/README.rdoc +155 -0
- data/gems/rake-13.0.1/Rakefile +41 -0
- data/gems/rake-13.0.1/bin/bundle +105 -0
- data/gems/rake-13.0.1/bin/console +7 -0
- data/gems/rake-13.0.1/bin/rake +29 -0
- data/gems/rake-13.0.1/bin/rdoc +29 -0
- data/gems/rake-13.0.1/bin/rubocop +29 -0
- data/gems/rake-13.0.1/bin/setup +6 -0
- data/gems/rake-13.0.1/doc/command_line_usage.rdoc +158 -0
- data/gems/rake-13.0.1/doc/example/Rakefile1 +38 -0
- data/gems/rake-13.0.1/doc/example/Rakefile2 +35 -0
- data/gems/rake-13.0.1/doc/example/a.c +6 -0
- data/gems/rake-13.0.1/doc/example/b.c +6 -0
- data/gems/rake-13.0.1/doc/example/main.c +11 -0
- data/gems/rake-13.0.1/doc/glossary.rdoc +42 -0
- data/gems/rake-13.0.1/doc/jamis.rb +592 -0
- data/gems/rake-13.0.1/doc/proto_rake.rdoc +127 -0
- data/gems/rake-13.0.1/doc/rake.1 +156 -0
- data/gems/rake-13.0.1/doc/rakefile.rdoc +622 -0
- data/gems/rake-13.0.1/doc/rational.rdoc +151 -0
- data/gems/rake-13.0.1/exe/rake +27 -0
- data/gems/rake-13.0.1/lib/rake/application.rb +824 -0
- data/gems/rake-13.0.1/lib/rake/backtrace.rb +24 -0
- data/gems/rake-13.0.1/lib/rake/clean.rb +78 -0
- data/gems/rake-13.0.1/lib/rake/cloneable.rb +17 -0
- data/gems/rake-13.0.1/lib/rake/cpu_counter.rb +107 -0
- data/gems/rake-13.0.1/lib/rake/default_loader.rb +15 -0
- data/gems/rake-13.0.1/lib/rake/dsl_definition.rb +195 -0
- data/gems/rake-13.0.1/lib/rake/early_time.rb +22 -0
- data/gems/rake-13.0.1/lib/rake/ext/core.rb +26 -0
- data/gems/rake-13.0.1/lib/rake/ext/string.rb +176 -0
- data/gems/rake-13.0.1/lib/rake/file_creation_task.rb +25 -0
- data/gems/rake-13.0.1/lib/rake/file_list.rb +435 -0
- data/gems/rake-13.0.1/lib/rake/file_task.rb +54 -0
- data/gems/rake-13.0.1/lib/rake/file_utils.rb +134 -0
- data/gems/rake-13.0.1/lib/rake/file_utils_ext.rb +134 -0
- data/gems/rake-13.0.1/lib/rake/invocation_chain.rb +57 -0
- data/gems/rake-13.0.1/lib/rake/invocation_exception_mixin.rb +17 -0
- data/gems/rake-13.0.1/lib/rake/late_time.rb +18 -0
- data/gems/rake-13.0.1/lib/rake/linked_list.rb +112 -0
- data/gems/rake-13.0.1/lib/rake/loaders/makefile.rb +54 -0
- data/gems/rake-13.0.1/lib/rake/multi_task.rb +14 -0
- data/gems/rake-13.0.1/lib/rake/name_space.rb +38 -0
- data/gems/rake-13.0.1/lib/rake/packagetask.rb +222 -0
- data/gems/rake-13.0.1/lib/rake/phony.rb +16 -0
- data/gems/rake-13.0.1/lib/rake/private_reader.rb +21 -0
- data/gems/rake-13.0.1/lib/rake/promise.rb +100 -0
- data/gems/rake-13.0.1/lib/rake/pseudo_status.rb +30 -0
- data/gems/rake-13.0.1/lib/rake/rake_module.rb +67 -0
- data/gems/rake-13.0.1/lib/rake/rake_test_loader.rb +27 -0
- data/gems/rake-13.0.1/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/gems/rake-13.0.1/lib/rake/scope.rb +43 -0
- data/gems/rake-13.0.1/lib/rake/task.rb +434 -0
- data/gems/rake-13.0.1/lib/rake/task_argument_error.rb +8 -0
- data/gems/rake-13.0.1/lib/rake/task_arguments.rb +109 -0
- data/gems/rake-13.0.1/lib/rake/task_manager.rb +331 -0
- data/gems/rake-13.0.1/lib/rake/tasklib.rb +12 -0
- data/gems/rake-13.0.1/lib/rake/testtask.rb +224 -0
- data/gems/rake-13.0.1/lib/rake/thread_history_display.rb +49 -0
- data/gems/rake-13.0.1/lib/rake/thread_pool.rb +163 -0
- data/gems/rake-13.0.1/lib/rake/trace_output.rb +23 -0
- data/gems/rake-13.0.1/lib/rake/version.rb +10 -0
- data/gems/rake-13.0.1/lib/rake/win32.rb +51 -0
- data/gems/rake-13.0.1/lib/rake.rb +71 -0
- data/gems/rake-13.0.1/rake.gemspec +43 -0
- data/gems/yard-0.9.25/CHANGELOG.md +804 -0
- data/gems/yard-0.9.25/CODE_OF_CONDUCT.md +15 -0
- data/gems/yard-0.9.25/CONTRIBUTING.md +140 -0
- data/gems/yard-0.9.25/Dockerfile.samus +28 -0
- data/gems/yard-0.9.25/Gemfile +32 -0
- data/gems/yard-0.9.25/LEGAL +66 -0
- data/gems/yard-0.9.25/LICENSE +22 -0
- data/gems/yard-0.9.25/README.md +325 -0
- data/gems/yard-0.9.25/Rakefile +39 -0
- data/gems/yard-0.9.25/SECURITY.md +26 -0
- data/gems/yard-0.9.25/benchmarks/builtins_vs_eval.rb +24 -0
- data/gems/yard-0.9.25/benchmarks/concat_vs_join.rb +13 -0
- data/gems/yard-0.9.25/benchmarks/erb_vs_erubis.rb +54 -0
- data/gems/yard-0.9.25/benchmarks/format_args.rb +47 -0
- data/gems/yard-0.9.25/benchmarks/generation.rb +38 -0
- data/gems/yard-0.9.25/benchmarks/marshal_vs_dbm.rb +64 -0
- data/gems/yard-0.9.25/benchmarks/parsing.rb +46 -0
- data/gems/yard-0.9.25/benchmarks/pathname_vs_string.rb +51 -0
- data/gems/yard-0.9.25/benchmarks/rdoc_vs_yardoc.rb +11 -0
- data/gems/yard-0.9.25/benchmarks/registry_store_types.rb +49 -0
- data/gems/yard-0.9.25/benchmarks/ri_vs_yri.rb +19 -0
- data/gems/yard-0.9.25/benchmarks/ripper_parser.rb +13 -0
- data/gems/yard-0.9.25/benchmarks/splat_vs_flatten.rb +13 -0
- data/gems/yard-0.9.25/benchmarks/template_erb.rb +23 -0
- data/gems/yard-0.9.25/benchmarks/template_format.rb +7 -0
- data/gems/yard-0.9.25/benchmarks/template_profile.rb +18 -0
- data/gems/yard-0.9.25/benchmarks/yri_cache.rb +20 -0
- data/gems/yard-0.9.25/bin/yard +13 -0
- data/gems/yard-0.9.25/bin/yardoc +13 -0
- data/gems/yard-0.9.25/bin/yri +13 -0
- data/gems/yard-0.9.25/docs/CodeObjects.md +115 -0
- data/gems/yard-0.9.25/docs/GettingStarted.md +679 -0
- data/gems/yard-0.9.25/docs/Handlers.md +152 -0
- data/gems/yard-0.9.25/docs/Overview.md +61 -0
- data/gems/yard-0.9.25/docs/Parser.md +191 -0
- data/gems/yard-0.9.25/docs/Tags.md +283 -0
- data/gems/yard-0.9.25/docs/TagsArch.md +123 -0
- data/gems/yard-0.9.25/docs/Templates.md +496 -0
- data/gems/yard-0.9.25/docs/WhatsNew.md +1245 -0
- data/gems/yard-0.9.25/docs/images/code-objects-class-diagram.png +0 -0
- data/gems/yard-0.9.25/docs/images/handlers-class-diagram.png +0 -0
- data/gems/yard-0.9.25/docs/images/overview-class-diagram.png +0 -0
- data/gems/yard-0.9.25/docs/images/parser-class-diagram.png +0 -0
- data/gems/yard-0.9.25/docs/images/tags-class-diagram.png +0 -0
- data/gems/yard-0.9.25/docs/templates/default/fulldoc/html/full_list_tag.erb +9 -0
- data/gems/yard-0.9.25/docs/templates/default/fulldoc/html/setup.rb +6 -0
- data/gems/yard-0.9.25/docs/templates/default/layout/html/setup.rb +9 -0
- data/gems/yard-0.9.25/docs/templates/default/layout/html/tag_list.erb +11 -0
- data/gems/yard-0.9.25/docs/templates/default/yard_tags/html/list.erb +18 -0
- data/gems/yard-0.9.25/docs/templates/default/yard_tags/html/setup.rb +26 -0
- data/gems/yard-0.9.25/docs/templates/plugin.rb +70 -0
- data/gems/yard-0.9.25/lib/rubygems_plugin.rb +9 -0
- data/gems/yard-0.9.25/lib/yard/autoload.rb +308 -0
- data/gems/yard-0.9.25/lib/yard/cli/command.rb +85 -0
- data/gems/yard-0.9.25/lib/yard/cli/command_parser.rb +93 -0
- data/gems/yard-0.9.25/lib/yard/cli/config.rb +198 -0
- data/gems/yard-0.9.25/lib/yard/cli/diff.rb +273 -0
- data/gems/yard-0.9.25/lib/yard/cli/display.rb +69 -0
- data/gems/yard-0.9.25/lib/yard/cli/gems.rb +84 -0
- data/gems/yard-0.9.25/lib/yard/cli/graph.rb +125 -0
- data/gems/yard-0.9.25/lib/yard/cli/help.rb +20 -0
- data/gems/yard-0.9.25/lib/yard/cli/i18n.rb +70 -0
- data/gems/yard-0.9.25/lib/yard/cli/list.rb +23 -0
- data/gems/yard-0.9.25/lib/yard/cli/markup_types.rb +32 -0
- data/gems/yard-0.9.25/lib/yard/cli/server.rb +266 -0
- data/gems/yard-0.9.25/lib/yard/cli/stats.rb +231 -0
- data/gems/yard-0.9.25/lib/yard/cli/yardoc.rb +789 -0
- data/gems/yard-0.9.25/lib/yard/cli/yardopts_command.rb +110 -0
- data/gems/yard-0.9.25/lib/yard/cli/yri.rb +215 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/base.rb +622 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/class_object.rb +146 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/class_variable_object.rb +11 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/constant_object.rb +16 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/extended_method_object.rb +24 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/extra_file_object.rb +134 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/macro_object.rb +172 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/method_object.rb +196 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/module_object.rb +21 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/namespace_mapper.rb +141 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/namespace_object.rb +200 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/proxy.rb +245 -0
- data/gems/yard-0.9.25/lib/yard/code_objects/root_object.rb +19 -0
- data/gems/yard-0.9.25/lib/yard/config.rb +270 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/array.rb +16 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/file.rb +69 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/hash.rb +16 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/insertion.rb +63 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/module.rb +11 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/string.rb +68 -0
- data/gems/yard-0.9.25/lib/yard/core_ext/symbol_hash.rb +75 -0
- data/gems/yard-0.9.25/lib/yard/docstring.rb +386 -0
- data/gems/yard-0.9.25/lib/yard/docstring_parser.rb +345 -0
- data/gems/yard-0.9.25/lib/yard/gem_index.rb +29 -0
- data/gems/yard-0.9.25/lib/yard/globals.rb +22 -0
- data/gems/yard-0.9.25/lib/yard/handlers/base.rb +595 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/alias_handler.rb +16 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/attribute_handler.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/base.rb +164 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/class_handler.rb +27 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/constant_handler.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/handler_methods.rb +212 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/init_handler.rb +20 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/method_handler.rb +45 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/mixin_handler.rb +21 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/module_handler.rb +17 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/override_comment_handler.rb +31 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/path_handler.rb +11 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/struct_handler.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/handlers/c/symbol_handler.rb +8 -0
- data/gems/yard-0.9.25/lib/yard/handlers/common/method_handler.rb +19 -0
- data/gems/yard-0.9.25/lib/yard/handlers/processor.rb +200 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/alias_handler.rb +45 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/attribute_handler.rb +87 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/base.rb +165 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/class_condition_handler.rb +92 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/class_handler.rb +119 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/class_variable_handler.rb +17 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/comment_handler.rb +10 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/constant_handler.rb +55 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/decorator_handler_methods.rb +123 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/dsl_handler.rb +15 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/dsl_handler_methods.rb +96 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/exception_handler.rb +27 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/extend_handler.rb +22 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/alias_handler.rb +37 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/attribute_handler.rb +65 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/base.rb +245 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/class_handler.rb +113 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +15 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/comment_handler.rb +10 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/constant_handler.rb +29 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/dsl_handler.rb +17 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/exception_handler.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/extend_handler.rb +21 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/method_handler.rb +90 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/module_function_handler.rb +19 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/module_handler.rb +12 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/private_class_method_handler.rb +22 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +22 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/visibility_handler.rb +17 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/legacy/yield_handler.rb +29 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/method_condition_handler.rb +9 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/method_handler.rb +104 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/mixin_handler.rb +49 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/module_function_handler.rb +27 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/module_handler.rb +12 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/private_class_method_handler.rb +14 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/private_constant_handler.rb +43 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/public_class_method_handler.rb +14 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/struct_handler_methods.rb +143 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/visibility_handler.rb +22 -0
- data/gems/yard-0.9.25/lib/yard/handlers/ruby/yield_handler.rb +31 -0
- data/gems/yard-0.9.25/lib/yard/i18n/locale.rb +67 -0
- data/gems/yard-0.9.25/lib/yard/i18n/message.rb +57 -0
- data/gems/yard-0.9.25/lib/yard/i18n/messages.rb +56 -0
- data/gems/yard-0.9.25/lib/yard/i18n/po_parser.rb +61 -0
- data/gems/yard-0.9.25/lib/yard/i18n/pot_generator.rb +290 -0
- data/gems/yard-0.9.25/lib/yard/i18n/text.rb +173 -0
- data/gems/yard-0.9.25/lib/yard/logging.rb +205 -0
- data/gems/yard-0.9.25/lib/yard/options.rb +217 -0
- data/gems/yard-0.9.25/lib/yard/parser/base.rb +57 -0
- data/gems/yard-0.9.25/lib/yard/parser/c/c_parser.rb +235 -0
- data/gems/yard-0.9.25/lib/yard/parser/c/comment_parser.rb +134 -0
- data/gems/yard-0.9.25/lib/yard/parser/c/statement.rb +66 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/ast_node.rb +551 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/irb/slex.rb +276 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/ruby_lex.rb +1345 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/ruby_parser.rb +32 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/statement.rb +68 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/statement_list.rb +394 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/legacy/token_list.rb +74 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/ruby_parser.rb +701 -0
- data/gems/yard-0.9.25/lib/yard/parser/ruby/token_resolver.rb +158 -0
- data/gems/yard-0.9.25/lib/yard/parser/source_parser.rb +526 -0
- data/gems/yard-0.9.25/lib/yard/rake/yardoc_task.rb +81 -0
- data/gems/yard-0.9.25/lib/yard/registry.rb +439 -0
- data/gems/yard-0.9.25/lib/yard/registry_resolver.rb +217 -0
- data/gems/yard-0.9.25/lib/yard/registry_store.rb +342 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/backports/LICENSE.txt +57 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/backports/MIT.txt +20 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/backports/gem.rb +10 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/backports/source_index.rb +365 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/backports.rb +10 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/doc_manager.rb +90 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/hook.rb +197 -0
- data/gems/yard-0.9.25/lib/yard/rubygems/specification.rb +50 -0
- data/gems/yard-0.9.25/lib/yard/serializers/base.rb +83 -0
- data/gems/yard-0.9.25/lib/yard/serializers/file_system_serializer.rb +123 -0
- data/gems/yard-0.9.25/lib/yard/serializers/process_serializer.rb +24 -0
- data/gems/yard-0.9.25/lib/yard/serializers/stdout_serializer.rb +34 -0
- data/gems/yard-0.9.25/lib/yard/serializers/yardoc_serializer.rb +152 -0
- data/gems/yard-0.9.25/lib/yard/server/adapter.rb +100 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/base.rb +209 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/display_file_command.rb +29 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/display_object_command.rb +65 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/frames_command.rb +16 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/library_command.rb +187 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/library_index_command.rb +28 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/list_command.rb +25 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/root_request_command.rb +15 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/search_command.rb +79 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/static_file_command.rb +23 -0
- data/gems/yard-0.9.25/lib/yard/server/commands/static_file_helpers.rb +61 -0
- data/gems/yard-0.9.25/lib/yard/server/doc_server_helper.rb +91 -0
- data/gems/yard-0.9.25/lib/yard/server/doc_server_serializer.rb +39 -0
- data/gems/yard-0.9.25/lib/yard/server/library_version.rb +277 -0
- data/gems/yard-0.9.25/lib/yard/server/rack_adapter.rb +89 -0
- data/gems/yard-0.9.25/lib/yard/server/router.rb +187 -0
- data/gems/yard-0.9.25/lib/yard/server/static_caching.rb +46 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/fulldoc/html/css/custom.css +127 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/layout/html/breadcrumb.erb +37 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/layout/html/script_setup.erb +7 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/layout/html/setup.rb +8 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/default/method_details/html/setup.rb +5 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/library_list/html/headers.erb +8 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +14 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/library_list/html/listing.erb +13 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/library_list/html/setup.rb +6 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/processing/html/processing.erb +52 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/processing/html/setup.rb +4 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
- data/gems/yard-0.9.25/lib/yard/server/templates/doc_server/search/html/setup.rb +9 -0
- data/gems/yard-0.9.25/lib/yard/server/webrick_adapter.rb +45 -0
- data/gems/yard-0.9.25/lib/yard/server.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/tags/default_factory.rb +191 -0
- data/gems/yard-0.9.25/lib/yard/tags/default_tag.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/tags/directives.rb +616 -0
- data/gems/yard-0.9.25/lib/yard/tags/library.rb +633 -0
- data/gems/yard-0.9.25/lib/yard/tags/option_tag.rb +13 -0
- data/gems/yard-0.9.25/lib/yard/tags/overload_tag.rb +71 -0
- data/gems/yard-0.9.25/lib/yard/tags/ref_tag.rb +8 -0
- data/gems/yard-0.9.25/lib/yard/tags/ref_tag_list.rb +28 -0
- data/gems/yard-0.9.25/lib/yard/tags/tag.rb +71 -0
- data/gems/yard-0.9.25/lib/yard/tags/tag_format_error.rb +7 -0
- data/gems/yard-0.9.25/lib/yard/tags/types_explainer.rb +162 -0
- data/gems/yard-0.9.25/lib/yard/templates/engine.rb +186 -0
- data/gems/yard-0.9.25/lib/yard/templates/erb_cache.rb +23 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/base_helper.rb +215 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/filter_helper.rb +27 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/html_helper.rb +670 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +78 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/markup/rdoc_markdown.rb +23 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/markup/rdoc_markup.rb +110 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/markup_helper.rb +172 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/method_helper.rb +75 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/module_helper.rb +21 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/text_helper.rb +112 -0
- data/gems/yard-0.9.25/lib/yard/templates/helpers/uml_helper.rb +47 -0
- data/gems/yard-0.9.25/lib/yard/templates/section.rb +105 -0
- data/gems/yard-0.9.25/lib/yard/templates/template.rb +418 -0
- data/gems/yard-0.9.25/lib/yard/templates/template_options.rb +92 -0
- data/gems/yard-0.9.25/lib/yard/verifier.rb +151 -0
- data/gems/yard-0.9.25/lib/yard/version.rb +6 -0
- data/gems/yard-0.9.25/lib/yard.rb +69 -0
- data/gems/yard-0.9.25/po/ja.po +31108 -0
- data/gems/yard-0.9.25/samus.json +80 -0
- data/gems/yard-0.9.25/tasks/update_error_map.rake +53 -0
- data/gems/yard-0.9.25/templates/default/class/dot/setup.rb +7 -0
- data/gems/yard-0.9.25/templates/default/class/dot/superklass.erb +3 -0
- data/gems/yard-0.9.25/templates/default/class/html/constructor_details.erb +8 -0
- data/gems/yard-0.9.25/templates/default/class/html/setup.rb +2 -0
- data/gems/yard-0.9.25/templates/default/class/html/subclasses.erb +4 -0
- data/gems/yard-0.9.25/templates/default/class/setup.rb +36 -0
- data/gems/yard-0.9.25/templates/default/class/text/setup.rb +12 -0
- data/gems/yard-0.9.25/templates/default/class/text/subclasses.erb +5 -0
- data/gems/yard-0.9.25/templates/default/constant/text/header.erb +11 -0
- data/gems/yard-0.9.25/templates/default/constant/text/setup.rb +4 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/abstract.erb +4 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/deprecated.erb +1 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/index.erb +5 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/note.erb +6 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/private.erb +4 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/returns_void.erb +1 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/text.erb +1 -0
- data/gems/yard-0.9.25/templates/default/docstring/html/todo.erb +6 -0
- data/gems/yard-0.9.25/templates/default/docstring/setup.rb +52 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/abstract.erb +2 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/deprecated.erb +2 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/index.erb +2 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/note.erb +4 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/private.erb +2 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/returns_void.erb +1 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/text.erb +1 -0
- data/gems/yard-0.9.25/templates/default/docstring/text/todo.erb +4 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/css/common.css +1 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/css/full_list.css +58 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/css/style.css +496 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/frames.erb +17 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/full_list.erb +37 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/full_list_class.erb +2 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/full_list_file.erb +7 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/full_list_method.erb +10 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/js/app.js +314 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/js/full_list.js +216 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/js/jquery.js +4 -0
- data/gems/yard-0.9.25/templates/default/fulldoc/html/setup.rb +241 -0
- data/gems/yard-0.9.25/templates/default/layout/dot/header.erb +6 -0
- data/gems/yard-0.9.25/templates/default/layout/dot/setup.rb +15 -0
- data/gems/yard-0.9.25/templates/default/layout/html/breadcrumb.erb +11 -0
- data/gems/yard-0.9.25/templates/default/layout/html/files.erb +11 -0
- data/gems/yard-0.9.25/templates/default/layout/html/footer.erb +5 -0
- data/gems/yard-0.9.25/templates/default/layout/html/headers.erb +15 -0
- data/gems/yard-0.9.25/templates/default/layout/html/index.erb +2 -0
- data/gems/yard-0.9.25/templates/default/layout/html/layout.erb +24 -0
- data/gems/yard-0.9.25/templates/default/layout/html/listing.erb +4 -0
- data/gems/yard-0.9.25/templates/default/layout/html/objects.erb +32 -0
- data/gems/yard-0.9.25/templates/default/layout/html/script_setup.erb +4 -0
- data/gems/yard-0.9.25/templates/default/layout/html/search.erb +13 -0
- data/gems/yard-0.9.25/templates/default/layout/html/setup.rb +89 -0
- data/gems/yard-0.9.25/templates/default/method/html/header.erb +17 -0
- data/gems/yard-0.9.25/templates/default/method/setup.rb +4 -0
- data/gems/yard-0.9.25/templates/default/method/text/header.erb +1 -0
- data/gems/yard-0.9.25/templates/default/method_details/html/header.erb +3 -0
- data/gems/yard-0.9.25/templates/default/method_details/html/method_signature.erb +25 -0
- data/gems/yard-0.9.25/templates/default/method_details/html/source.erb +10 -0
- data/gems/yard-0.9.25/templates/default/method_details/setup.rb +11 -0
- data/gems/yard-0.9.25/templates/default/method_details/text/header.erb +10 -0
- data/gems/yard-0.9.25/templates/default/method_details/text/method_signature.erb +12 -0
- data/gems/yard-0.9.25/templates/default/method_details/text/setup.rb +11 -0
- data/gems/yard-0.9.25/templates/default/module/dot/child.erb +1 -0
- data/gems/yard-0.9.25/templates/default/module/dot/dependencies.erb +3 -0
- data/gems/yard-0.9.25/templates/default/module/dot/header.erb +6 -0
- data/gems/yard-0.9.25/templates/default/module/dot/info.erb +14 -0
- data/gems/yard-0.9.25/templates/default/module/dot/setup.rb +15 -0
- data/gems/yard-0.9.25/templates/default/module/html/attribute_details.erb +10 -0
- data/gems/yard-0.9.25/templates/default/module/html/attribute_summary.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/html/box_info.erb +43 -0
- data/gems/yard-0.9.25/templates/default/module/html/children.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/html/constant_summary.erb +17 -0
- data/gems/yard-0.9.25/templates/default/module/html/defines.erb +3 -0
- data/gems/yard-0.9.25/templates/default/module/html/header.erb +5 -0
- data/gems/yard-0.9.25/templates/default/module/html/inherited_attributes.erb +14 -0
- data/gems/yard-0.9.25/templates/default/module/html/inherited_constants.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/html/inherited_methods.erb +19 -0
- data/gems/yard-0.9.25/templates/default/module/html/item_summary.erb +40 -0
- data/gems/yard-0.9.25/templates/default/module/html/method_details_list.erb +9 -0
- data/gems/yard-0.9.25/templates/default/module/html/method_summary.erb +14 -0
- data/gems/yard-0.9.25/templates/default/module/html/methodmissing.erb +12 -0
- data/gems/yard-0.9.25/templates/default/module/html/pre_docstring.erb +1 -0
- data/gems/yard-0.9.25/templates/default/module/setup.rb +167 -0
- data/gems/yard-0.9.25/templates/default/module/text/children.erb +10 -0
- data/gems/yard-0.9.25/templates/default/module/text/class_meths_list.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/text/extends.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/text/header.erb +7 -0
- data/gems/yard-0.9.25/templates/default/module/text/includes.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/text/instance_meths_list.erb +8 -0
- data/gems/yard-0.9.25/templates/default/module/text/setup.rb +13 -0
- data/gems/yard-0.9.25/templates/default/onefile/html/files.erb +5 -0
- data/gems/yard-0.9.25/templates/default/onefile/html/headers.erb +6 -0
- data/gems/yard-0.9.25/templates/default/onefile/html/layout.erb +17 -0
- data/gems/yard-0.9.25/templates/default/onefile/html/readme.erb +3 -0
- data/gems/yard-0.9.25/templates/default/onefile/html/setup.rb +62 -0
- data/gems/yard-0.9.25/templates/default/root/dot/child.erb +3 -0
- data/gems/yard-0.9.25/templates/default/root/dot/setup.rb +6 -0
- data/gems/yard-0.9.25/templates/default/root/html/setup.rb +2 -0
- data/gems/yard-0.9.25/templates/default/tags/html/example.erb +11 -0
- data/gems/yard-0.9.25/templates/default/tags/html/index.erb +3 -0
- data/gems/yard-0.9.25/templates/default/tags/html/option.erb +24 -0
- data/gems/yard-0.9.25/templates/default/tags/html/overload.erb +14 -0
- data/gems/yard-0.9.25/templates/default/tags/html/see.erb +8 -0
- data/gems/yard-0.9.25/templates/default/tags/html/tag.erb +20 -0
- data/gems/yard-0.9.25/templates/default/tags/setup.rb +57 -0
- data/gems/yard-0.9.25/templates/default/tags/text/example.erb +12 -0
- data/gems/yard-0.9.25/templates/default/tags/text/index.erb +1 -0
- data/gems/yard-0.9.25/templates/default/tags/text/option.erb +20 -0
- data/gems/yard-0.9.25/templates/default/tags/text/overload.erb +19 -0
- data/gems/yard-0.9.25/templates/default/tags/text/see.erb +11 -0
- data/gems/yard-0.9.25/templates/default/tags/text/tag.erb +13 -0
- data/gems/yard-0.9.25/templates/guide/class/html/setup.rb +2 -0
- data/gems/yard-0.9.25/templates/guide/docstring/html/setup.rb +2 -0
- data/gems/yard-0.9.25/templates/guide/fulldoc/html/css/style.css +108 -0
- data/gems/yard-0.9.25/templates/guide/fulldoc/html/js/app.js +33 -0
- data/gems/yard-0.9.25/templates/guide/fulldoc/html/setup.rb +74 -0
- data/gems/yard-0.9.25/templates/guide/layout/html/layout.erb +81 -0
- data/gems/yard-0.9.25/templates/guide/layout/html/setup.rb +25 -0
- data/gems/yard-0.9.25/templates/guide/method/html/header.erb +18 -0
- data/gems/yard-0.9.25/templates/guide/method/html/setup.rb +22 -0
- data/gems/yard-0.9.25/templates/guide/module/html/header.erb +7 -0
- data/gems/yard-0.9.25/templates/guide/module/html/method_list.erb +5 -0
- data/gems/yard-0.9.25/templates/guide/module/html/setup.rb +27 -0
- data/gems/yard-0.9.25/templates/guide/onefile/html/files.erb +4 -0
- data/gems/yard-0.9.25/templates/guide/onefile/html/setup.rb +6 -0
- data/gems/yard-0.9.25/templates/guide/onefile/html/toc.erb +3 -0
- data/gems/yard-0.9.25/templates/guide/tags/html/setup.rb +9 -0
- data/gems/yard-0.9.25/yard.gemspec +24 -0
- data/kinetic_sdk.gemspec +3 -7
- data/lib/kinetic_sdk/core/lib/form.rb +55 -0
- data/lib/kinetic_sdk/core/lib/kapp.rb +52 -0
- data/lib/kinetic_sdk/core/lib/space.rb +51 -0
- data/lib/kinetic_sdk/task/lib/export.rb +22 -2
- data/lib/kinetic_sdk/task/lib/trees.rb +11 -0
- data/lib/kinetic_sdk/version.rb +1 -1
- data/lib/kinetic_sdk.rb +2 -22
- metadata +551 -229
- data/gems/kontena-websocket-client-0.1.1/Gemfile +0 -4
- data/gems/kontena-websocket-client-0.1.1/LICENSE +0 -190
- data/gems/kontena-websocket-client-0.1.1/README.md +0 -138
- data/gems/kontena-websocket-client-0.1.1/Rakefile +0 -6
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark-client.rb +0 -45
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark-em.rb +0 -66
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark.rb +0 -161
- data/gems/kontena-websocket-client-0.1.1/benchmark/benchmark.sh +0 -17
- data/gems/kontena-websocket-client-0.1.1/benchmark/websocket-echo-server.go +0 -207
- data/gems/kontena-websocket-client-0.1.1/examples/websocket-echo-client.rb +0 -80
- data/gems/kontena-websocket-client-0.1.1/kontena-websocket-client.gemspec +0 -24
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client/connection.rb +0 -119
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client/version.rb +0 -13
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/client.rb +0 -848
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/error.rb +0 -81
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/logging.rb +0 -55
- data/gems/kontena-websocket-client-0.1.1/lib/kontena/websocket/openssl_patch.rb +0 -10
- data/gems/kontena-websocket-client-0.1.1/lib/kontena-websocket-client.rb +0 -15
- data/gems/mime-types-3.1/Contributing.rdoc +0 -130
- data/gems/mime-types-3.1/History.rdoc +0 -658
- data/gems/mime-types-3.1/Rakefile +0 -254
- data/gems/mime-types-3.1/lib/mime/types/columnar.rb +0 -1
- data/gems/mime-types-3.1/lib/mime/types/container.rb +0 -30
- data/gems/mime-types-3.1/lib/mime-types.rb +0 -1
- data/gems/mime-types-3.1/test/minitest_helper.rb +0 -13
- data/gems/mime-types-3.1/test/test_mime_type.rb +0 -603
- data/gems/mime-types-3.1/test/test_mime_types.rb +0 -161
- data/gems/mime-types-3.1/test/test_mime_types_cache.rb +0 -109
- data/gems/mime-types-3.1/test/test_mime_types_class.rb +0 -155
- data/gems/mime-types-3.1/test/test_mime_types_lazy.rb +0 -43
- data/gems/mime-types-3.1/test/test_mime_types_loader.rb +0 -32
- data/gems/mime-types-data-3.2016.0521/Contributing.md +0 -157
- data/gems/mime-types-data-3.2016.0521/History.md +0 -351
- data/gems/mime-types-data-3.2016.0521/Licence.md +0 -25
- data/gems/mime-types-data-3.2016.0521/README.md +0 -61
- data/gems/mime-types-data-3.2016.0521/Rakefile +0 -80
- data/gems/mime-types-data-3.2016.0521/data/mime-types.json +0 -1
- data/gems/mime-types-data-3.2016.0521/data/mime.flags.column +0 -1964
- data/gems/parallel-1.12.1/lib/parallel/processor_count.rb +0 -93
- data/gems/parallel-1.12.1/lib/parallel/version.rb +0 -3
- data/gems/parallel-1.12.1/lib/parallel.rb +0 -500
- data/gems/ruby-progressbar-1.9.0/LICENSE.txt +0 -19
- data/gems/ruby-progressbar-1.9.0/README.md +0 -38
- data/gems/ruby-progressbar-1.9.0/Rakefile +0 -2
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/base.rb +0 -183
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/length.rb +0 -99
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/calculators/running_average.rb +0 -9
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/bar.rb +0 -96
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/percentage.rb +0 -29
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/rate.rb +0 -43
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/time.rb +0 -107
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components/title.rb +0 -13
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/components.rb +0 -5
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/errors/invalid_progress_error.rb +0 -4
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/formatter.rb +0 -27
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/molecule.rb +0 -59
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format/string.rb +0 -36
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/format.rb +0 -3
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/output.rb +0 -68
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/non_tty.rb +0 -47
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/null.rb +0 -33
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/outputs/tty.rb +0 -32
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/progress.rb +0 -118
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements/enumerator.rb +0 -25
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/refinements.rb +0 -1
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/throttle.rb +0 -25
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/time.rb +0 -30
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/timer.rb +0 -72
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar/version.rb +0 -3
- data/gems/ruby-progressbar-1.9.0/lib/ruby-progressbar.rb +0 -18
- data/gems/websocket-driver-0.6.5/CHANGELOG.md +0 -123
- data/gems/websocket-driver-0.6.5/LICENSE.md +0 -22
- data/gems/websocket-driver-0.6.5/README.md +0 -369
- data/gems/websocket-driver-0.6.5/examples/tcp_server.rb +0 -28
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/Makefile +0 -264
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/WebsocketMaskService.java +0 -55
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/extconf.rb +0 -4
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.bundle +0 -0
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.c +0 -41
- data/gems/websocket-driver-0.6.5/ext/websocket-driver/websocket_mask.o +0 -0
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/client.rb +0 -140
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/draft75.rb +0 -102
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/draft76.rb +0 -96
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/event_emitter.rb +0 -54
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/headers.rb +0 -45
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi/frame.rb +0 -20
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi/message.rb +0 -31
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/hybi.rb +0 -406
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/proxy.rb +0 -68
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/server.rb +0 -80
- data/gems/websocket-driver-0.6.5/lib/websocket/driver/stream_reader.rb +0 -55
- data/gems/websocket-driver-0.6.5/lib/websocket/driver.rb +0 -199
- data/gems/websocket-driver-0.6.5/lib/websocket/http/headers.rb +0 -112
- data/gems/websocket-driver-0.6.5/lib/websocket/http/request.rb +0 -45
- data/gems/websocket-driver-0.6.5/lib/websocket/http/response.rb +0 -29
- data/gems/websocket-driver-0.6.5/lib/websocket/http.rb +0 -15
- data/gems/websocket-driver-0.6.5/lib/websocket/mask.rb +0 -14
- data/gems/websocket-driver-0.6.5/lib/websocket/websocket_mask.rb +0 -2
- data/gems/websocket-driver-0.6.5/lib/websocket_mask.bundle +0 -0
- data/gems/websocket-driver-0.6.5-java/CHANGELOG.md +0 -123
- data/gems/websocket-driver-0.6.5-java/README.md +0 -369
- data/gems/websocket-driver-0.6.5-java/examples/tcp_server.rb +0 -28
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/WebsocketMaskService.java +0 -55
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/extconf.rb +0 -4
- data/gems/websocket-driver-0.6.5-java/ext/websocket-driver/websocket_mask.c +0 -41
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/client.rb +0 -140
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/draft75.rb +0 -102
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/draft76.rb +0 -96
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/event_emitter.rb +0 -54
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/headers.rb +0 -45
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi/frame.rb +0 -20
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi/message.rb +0 -31
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/hybi.rb +0 -406
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/proxy.rb +0 -68
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/server.rb +0 -80
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver/stream_reader.rb +0 -55
- data/gems/websocket-driver-0.6.5-java/lib/websocket/driver.rb +0 -199
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/headers.rb +0 -112
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/request.rb +0 -45
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http/response.rb +0 -29
- data/gems/websocket-driver-0.6.5-java/lib/websocket/http.rb +0 -15
- data/gems/websocket-driver-0.6.5-java/lib/websocket/mask.rb +0 -14
- data/gems/websocket-driver-0.6.5-java/lib/websocket/websocket_mask.rb +0 -2
- data/gems/websocket-driver-0.6.5-java/lib/websocket_mask.jar +0 -0
- data/gems/websocket-extensions-0.1.3/CHANGELOG.md +0 -15
- data/gems/websocket-extensions-0.1.3/LICENSE.md +0 -20
- data/gems/websocket-extensions-0.1.3/README.md +0 -313
- data/gems/websocket-extensions-0.1.3/lib/websocket/extensions/parser.rb +0 -111
- data/gems/websocket-extensions-0.1.3/lib/websocket/extensions.rb +0 -181
- data/lib/kinetic_sdk/discussions/lib/websockets.rb +0 -96
@@ -0,0 +1,622 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module YARD
|
3
|
+
module CodeObjects
|
4
|
+
# A list of code objects. This array acts like a set (no unique items)
|
5
|
+
# but also disallows any {Proxy} objects from being added.
|
6
|
+
class CodeObjectList < Array
|
7
|
+
# Creates a new object list associated with a namespace
|
8
|
+
#
|
9
|
+
# @param [NamespaceObject] owner the namespace the list should be associated with
|
10
|
+
# @return [CodeObjectList]
|
11
|
+
def initialize(owner = Registry.root)
|
12
|
+
@owner = owner
|
13
|
+
end
|
14
|
+
|
15
|
+
# Adds a new value to the list
|
16
|
+
#
|
17
|
+
# @param [Base] value a code object to add
|
18
|
+
# @return [CodeObjectList] self
|
19
|
+
def push(value)
|
20
|
+
value = Proxy.new(@owner, value) if value.is_a?(String) || value.is_a?(Symbol)
|
21
|
+
if value.is_a?(CodeObjects::Base) || value.is_a?(Proxy)
|
22
|
+
super(value) unless include?(value)
|
23
|
+
else
|
24
|
+
raise ArgumentError, "#{value.class} is not a valid CodeObject"
|
25
|
+
end
|
26
|
+
self
|
27
|
+
end
|
28
|
+
alias << push
|
29
|
+
end
|
30
|
+
|
31
|
+
extend NamespaceMapper
|
32
|
+
|
33
|
+
# Namespace separator
|
34
|
+
NSEP = '::'
|
35
|
+
|
36
|
+
# Regex-quoted namespace separator
|
37
|
+
NSEPQ = NSEP
|
38
|
+
|
39
|
+
# Instance method separator
|
40
|
+
ISEP = '#'
|
41
|
+
|
42
|
+
# Regex-quoted instance method separator
|
43
|
+
ISEPQ = ISEP
|
44
|
+
|
45
|
+
# Class method separator
|
46
|
+
CSEP = '.'
|
47
|
+
|
48
|
+
# Regex-quoted class method separator
|
49
|
+
CSEPQ = Regexp.quote CSEP
|
50
|
+
|
51
|
+
# Regular expression to match constant name
|
52
|
+
CONSTANTMATCH = /[A-Z]\w*/
|
53
|
+
|
54
|
+
# Regular expression to match the beginning of a constant
|
55
|
+
CONSTANTSTART = /^[A-Z]/
|
56
|
+
|
57
|
+
# Regular expression to match namespaces (const A or complex path A::B)
|
58
|
+
NAMESPACEMATCH = /(?:(?:#{NSEPQ}\s*)?#{CONSTANTMATCH})+/
|
59
|
+
|
60
|
+
# Regular expression to match a method name
|
61
|
+
METHODNAMEMATCH = %r{[a-zA-Z_]\w*[!?=]?|[-+~]\@|<<|>>|=~|===?|![=~]?|<=>|[<>]=?|\*\*|[-/+%^&*~`|]|\[\]=?}
|
62
|
+
|
63
|
+
# Regular expression to match a fully qualified method def (self.foo, Class.foo).
|
64
|
+
METHODMATCH = /(?:(?:#{NAMESPACEMATCH}|[a-z]\w*)\s*(?:#{CSEPQ}|#{NSEPQ})\s*)?#{METHODNAMEMATCH}/
|
65
|
+
|
66
|
+
# All builtin Ruby exception classes for inheritance tree.
|
67
|
+
BUILTIN_EXCEPTIONS = ["ArgumentError", "ClosedQueueError", "EncodingError",
|
68
|
+
"EOFError", "Exception", "FiberError", "FloatDomainError", "IndexError",
|
69
|
+
"Interrupt", "IOError", "KeyError", "LoadError", "LocalJumpError",
|
70
|
+
"NameError", "NoMemoryError", "NoMethodError", "NotImplementedError",
|
71
|
+
"RangeError", "RegexpError", "RuntimeError", "ScriptError", "SecurityError",
|
72
|
+
"SignalException", "StandardError", "StopIteration", "SyntaxError",
|
73
|
+
"SystemCallError", "SystemExit", "SystemStackError", "ThreadError",
|
74
|
+
"TypeError", "UncaughtThrowError", "ZeroDivisionError"]
|
75
|
+
|
76
|
+
# All builtin Ruby classes for inheritance tree.
|
77
|
+
# @note MatchingData is a 1.8.x legacy class
|
78
|
+
BUILTIN_CLASSES = ["Array", "Bignum", "Binding", "Class", "Complex",
|
79
|
+
"ConditionVariable", "Data", "Dir", "Encoding", "Enumerator", "FalseClass",
|
80
|
+
"Fiber", "File", "Fixnum", "Float", "Hash", "IO", "Integer", "MatchData",
|
81
|
+
"Method", "Module", "NilClass", "Numeric", "Object", "Proc", "Queue",
|
82
|
+
"Random", "Range", "Rational", "Regexp", "RubyVM", "SizedQueue", "String",
|
83
|
+
"Struct", "Symbol", "Thread", "ThreadGroup", "Time", "TracePoint",
|
84
|
+
"TrueClass", "UnboundMethod"] + BUILTIN_EXCEPTIONS
|
85
|
+
|
86
|
+
# All builtin Ruby modules for mixin handling.
|
87
|
+
BUILTIN_MODULES = ["Comparable", "Enumerable", "Errno", "FileTest", "GC",
|
88
|
+
"Kernel", "Marshal", "Math", "ObjectSpace", "Precision", "Process", "Signal"]
|
89
|
+
|
90
|
+
# All builtin Ruby classes and modules.
|
91
|
+
BUILTIN_ALL = BUILTIN_CLASSES + BUILTIN_MODULES
|
92
|
+
|
93
|
+
# Hash of {BUILTIN_EXCEPTIONS} as keys and true as value (for O(1) lookups)
|
94
|
+
BUILTIN_EXCEPTIONS_HASH = BUILTIN_EXCEPTIONS.inject({}) {|h, n| h.update(n => true) }
|
95
|
+
|
96
|
+
# +Base+ is the superclass of all code objects recognized by YARD. A code
|
97
|
+
# object is any entity in the Ruby language (class, method, module). A
|
98
|
+
# DSL might subclass +Base+ to create a new custom object representing
|
99
|
+
# a new entity type.
|
100
|
+
#
|
101
|
+
# == Registry Integration
|
102
|
+
# Any created object associated with a namespace is immediately registered
|
103
|
+
# with the registry. This allows the Registry to act as an identity map
|
104
|
+
# to ensure that no object is represented by more than one Ruby object
|
105
|
+
# in memory. A unique {#path} is essential for this identity map to work
|
106
|
+
# correctly.
|
107
|
+
#
|
108
|
+
# == Custom Attributes
|
109
|
+
# Code objects allow arbitrary custom attributes to be set using the
|
110
|
+
# {#[]=} assignment method.
|
111
|
+
#
|
112
|
+
# == Namespaces
|
113
|
+
# There is a special type of object called a "namespace". These are subclasses
|
114
|
+
# of the {NamespaceObject} and represent Ruby entities that can have
|
115
|
+
# objects defined within them. Classically these are modules and classes,
|
116
|
+
# though a DSL might create a custom {NamespaceObject} to describe a
|
117
|
+
# specific set of objects.
|
118
|
+
#
|
119
|
+
# == Separators
|
120
|
+
# Custom classes with different separator tokens should define their own
|
121
|
+
# separators using the {NamespaceMapper.register_separator} method. The
|
122
|
+
# standard Ruby separators have already been defined ('::', '#', '.', etc).
|
123
|
+
#
|
124
|
+
# @abstract This class should not be used directly. Instead, create a
|
125
|
+
# subclass that implements {#path}, {#sep} or {#type}. You might also
|
126
|
+
# need to register custom separators if {#sep} uses alternate separator
|
127
|
+
# tokens.
|
128
|
+
# @see Registry
|
129
|
+
# @see #path
|
130
|
+
# @see #[]=
|
131
|
+
# @see NamespaceObject
|
132
|
+
# @see NamespaceMapper.register_separator
|
133
|
+
class Base
|
134
|
+
# The files the object was defined in. To add a file, use {#add_file}.
|
135
|
+
# @return [Array<Array(String, Integer)>] a list of files
|
136
|
+
# @see #add_file
|
137
|
+
attr_reader :files
|
138
|
+
|
139
|
+
# The namespace the object is defined in. If the object is in the
|
140
|
+
# top level namespace, this is {Registry.root}
|
141
|
+
# @return [NamespaceObject] the namespace object
|
142
|
+
attr_reader :namespace
|
143
|
+
|
144
|
+
# The source code associated with the object
|
145
|
+
# @return [String, nil] source, if present, or nil
|
146
|
+
attr_reader :source
|
147
|
+
|
148
|
+
# Language of the source code associated with the object. Defaults to
|
149
|
+
# +:ruby+.
|
150
|
+
#
|
151
|
+
# @return [Symbol] the language type
|
152
|
+
attr_accessor :source_type
|
153
|
+
|
154
|
+
# The one line signature representing an object. For a method, this will
|
155
|
+
# be of the form "def meth(arguments...)". This is usually the first
|
156
|
+
# source line.
|
157
|
+
#
|
158
|
+
# @return [String] a line of source
|
159
|
+
attr_accessor :signature
|
160
|
+
|
161
|
+
# The non-localized documentation string associated with the object
|
162
|
+
# @return [Docstring] the documentation string
|
163
|
+
# @since 0.8.4
|
164
|
+
attr_reader :base_docstring
|
165
|
+
undef base_docstring
|
166
|
+
def base_docstring; @docstring end
|
167
|
+
|
168
|
+
# Marks whether or not the method is conditionally defined at runtime
|
169
|
+
# @return [Boolean] true if the method is conditionally defined at runtime
|
170
|
+
attr_accessor :dynamic
|
171
|
+
|
172
|
+
# @return [String] the group this object is associated with
|
173
|
+
# @since 0.6.0
|
174
|
+
attr_accessor :group
|
175
|
+
|
176
|
+
# Is the object defined conditionally at runtime?
|
177
|
+
# @see #dynamic
|
178
|
+
def dynamic?; @dynamic end
|
179
|
+
|
180
|
+
# @return [Symbol] the visibility of an object (:public, :private, :protected)
|
181
|
+
attr_accessor :visibility
|
182
|
+
undef visibility=
|
183
|
+
def visibility=(v) @visibility = v.to_sym end
|
184
|
+
|
185
|
+
class << self
|
186
|
+
# Allocates a new code object
|
187
|
+
# @return [Base]
|
188
|
+
# @see #initialize
|
189
|
+
def new(namespace, name, *args, &block)
|
190
|
+
raise ArgumentError, "invalid empty object name" if name.to_s.empty?
|
191
|
+
if namespace.is_a?(ConstantObject)
|
192
|
+
unless namespace.value =~ /\A#{NAMESPACEMATCH}\Z/
|
193
|
+
raise Parser::UndocumentableError, "constant mapping"
|
194
|
+
end
|
195
|
+
|
196
|
+
namespace = Proxy.new(namespace.namespace, namespace.value)
|
197
|
+
end
|
198
|
+
|
199
|
+
if name.to_s[0, 2] == NSEP
|
200
|
+
name = name.to_s[2..-1]
|
201
|
+
namespace = Registry.root
|
202
|
+
end
|
203
|
+
|
204
|
+
if name =~ /(?:#{NSEPQ})([^:]+)$/
|
205
|
+
return new(Proxy.new(namespace, $`), $1, *args, &block)
|
206
|
+
end
|
207
|
+
|
208
|
+
obj = super(namespace, name, *args)
|
209
|
+
existing_obj = Registry.at(obj.path)
|
210
|
+
obj = existing_obj if existing_obj && existing_obj.class == self
|
211
|
+
yield(obj) if block_given?
|
212
|
+
obj
|
213
|
+
end
|
214
|
+
|
215
|
+
# Compares the class with subclasses
|
216
|
+
#
|
217
|
+
# @param [Object] other the other object to compare classes with
|
218
|
+
# @return [Boolean] true if other is a subclass of self
|
219
|
+
def ===(other)
|
220
|
+
other.is_a?(self)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Creates a new code object
|
225
|
+
#
|
226
|
+
# @example Create a method in the root namespace
|
227
|
+
# CodeObjects::Base.new(:root, '#method') # => #<yardoc method #method>
|
228
|
+
# @example Create class Z inside namespace X::Y
|
229
|
+
# CodeObjects::Base.new(P("X::Y"), :Z) # or
|
230
|
+
# CodeObjects::Base.new(Registry.root, "X::Y")
|
231
|
+
# @param [NamespaceObject] namespace the namespace the object belongs in,
|
232
|
+
# {Registry.root} or :root should be provided if it is associated with
|
233
|
+
# the top level namespace.
|
234
|
+
# @param [Symbol, String] name the name (or complex path) of the object.
|
235
|
+
# @yield [self] a block to perform any extra initialization on the object
|
236
|
+
# @yieldparam [Base] self the newly initialized code object
|
237
|
+
# @return [Base] the newly created object
|
238
|
+
def initialize(namespace, name, *)
|
239
|
+
if namespace && namespace != :root &&
|
240
|
+
!namespace.is_a?(NamespaceObject) && !namespace.is_a?(Proxy)
|
241
|
+
raise ArgumentError, "Invalid namespace object: #{namespace}"
|
242
|
+
end
|
243
|
+
|
244
|
+
@files = []
|
245
|
+
@current_file_has_comments = false
|
246
|
+
@name = name.to_sym
|
247
|
+
@source_type = :ruby
|
248
|
+
@visibility = :public
|
249
|
+
@tags = []
|
250
|
+
@docstrings = {}
|
251
|
+
@docstring = Docstring.new!('', [], self)
|
252
|
+
@namespace = nil
|
253
|
+
self.namespace = namespace
|
254
|
+
yield(self) if block_given?
|
255
|
+
end
|
256
|
+
|
257
|
+
# Copies all data in this object to another code object, except for
|
258
|
+
# uniquely identifying information (path, namespace, name, scope).
|
259
|
+
#
|
260
|
+
# @param [Base] other the object to copy data to
|
261
|
+
# @return [Base] the other object
|
262
|
+
# @since 0.8.0
|
263
|
+
def copy_to(other)
|
264
|
+
copyable_attributes.each do |ivar|
|
265
|
+
ivar = "@#{ivar}"
|
266
|
+
other.instance_variable_set(ivar, instance_variable_get(ivar))
|
267
|
+
end
|
268
|
+
other.docstring = @docstring.to_raw
|
269
|
+
other
|
270
|
+
end
|
271
|
+
|
272
|
+
# The name of the object
|
273
|
+
# @param [Boolean] prefix whether to show a prefix. Implement
|
274
|
+
# this in a subclass to define how the prefix is showed.
|
275
|
+
# @return [Symbol] if prefix is false, the symbolized name
|
276
|
+
# @return [String] if prefix is true, prefix + the name as a String.
|
277
|
+
# This must be implemented by the subclass.
|
278
|
+
def name(prefix = false)
|
279
|
+
prefix ? @name.to_s : (defined?(@name) && @name)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Associates a file with a code object, optionally adding the line where it was defined.
|
283
|
+
# By convention, '<stdin>' should be used to associate code that comes form standard input.
|
284
|
+
#
|
285
|
+
# @param [String] file the filename ('<stdin>' for standard input)
|
286
|
+
# @param [Fixnum, nil] line the line number where the object lies in the file
|
287
|
+
# @param [Boolean] has_comments whether or not the definition has comments associated. This
|
288
|
+
# will allow {#file} to return the definition where the comments were made instead
|
289
|
+
# of any empty definitions that might have been parsed before (module namespaces for instance).
|
290
|
+
def add_file(file, line = nil, has_comments = false)
|
291
|
+
raise(ArgumentError, "file cannot be nil or empty") if file.nil? || file == ''
|
292
|
+
obj = [file.to_s, line]
|
293
|
+
return if files.include?(obj)
|
294
|
+
if has_comments && !@current_file_has_comments
|
295
|
+
@current_file_has_comments = true
|
296
|
+
@files.unshift(obj)
|
297
|
+
else
|
298
|
+
@files << obj # back of the line
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
# Returns the filename the object was first parsed at, taking
|
303
|
+
# definitions with docstrings first.
|
304
|
+
#
|
305
|
+
# @return [String] a filename
|
306
|
+
def file
|
307
|
+
@files.first ? @files.first[0] : nil
|
308
|
+
end
|
309
|
+
|
310
|
+
# Returns the line the object was first parsed at (or nil)
|
311
|
+
#
|
312
|
+
# @return [Fixnum] the line where the object was first defined.
|
313
|
+
# @return [nil] if there is no line associated with the object
|
314
|
+
def line
|
315
|
+
@files.first ? @files.first[1] : nil
|
316
|
+
end
|
317
|
+
|
318
|
+
# Tests if another object is equal to this, including a proxy
|
319
|
+
# @param [Base, Proxy] other if other is a {Proxy}, tests if
|
320
|
+
# the paths are equal
|
321
|
+
# @return [Boolean] whether or not the objects are considered the same
|
322
|
+
def equal?(other)
|
323
|
+
if other.is_a?(Base) || other.is_a?(Proxy)
|
324
|
+
path == other.path
|
325
|
+
else
|
326
|
+
super
|
327
|
+
end
|
328
|
+
end
|
329
|
+
alias == equal?
|
330
|
+
alias eql? equal?
|
331
|
+
|
332
|
+
# @return [Integer] the object's hash value (for equality checking)
|
333
|
+
def hash; path.hash end
|
334
|
+
|
335
|
+
# @return [nil] this object does not turn into an array
|
336
|
+
def to_ary; nil end
|
337
|
+
|
338
|
+
# Accesses a custom attribute on the object
|
339
|
+
# @param [#to_s] key the name of the custom attribute
|
340
|
+
# @return [Object, nil] the custom attribute or nil if not found.
|
341
|
+
# @see #[]=
|
342
|
+
def [](key)
|
343
|
+
if respond_to?(key)
|
344
|
+
send(key)
|
345
|
+
elsif instance_variable_defined?("@#{key}")
|
346
|
+
instance_variable_get("@#{key}")
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
# Sets a custom attribute on the object
|
351
|
+
# @param [#to_s] key the name of the custom attribute
|
352
|
+
# @param [Object] value the value to associate
|
353
|
+
# @return [void]
|
354
|
+
# @see #[]
|
355
|
+
def []=(key, value)
|
356
|
+
if respond_to?("#{key}=")
|
357
|
+
send("#{key}=", value)
|
358
|
+
else
|
359
|
+
instance_variable_set("@#{key}", value)
|
360
|
+
end
|
361
|
+
end
|
362
|
+
|
363
|
+
# @overload dynamic_attr_name
|
364
|
+
# @return the value of attribute named by the method attribute name
|
365
|
+
# @raise [NoMethodError] if no method or custom attribute exists by
|
366
|
+
# the attribute name
|
367
|
+
# @see #[]
|
368
|
+
# @overload dynamic_attr_name=(value)
|
369
|
+
# @param value a value to set
|
370
|
+
# @return +value+
|
371
|
+
# @see #[]=
|
372
|
+
def method_missing(meth, *args, &block)
|
373
|
+
if meth.to_s =~ /=$/
|
374
|
+
self[meth.to_s[0..-2]] = args.first
|
375
|
+
elsif instance_variable_get("@#{meth}")
|
376
|
+
self[meth]
|
377
|
+
else
|
378
|
+
super
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
# Attaches source code to a code object with an optional file location
|
383
|
+
#
|
384
|
+
# @param [#source, String] statement
|
385
|
+
# the +Parser::Statement+ holding the source code or the raw source
|
386
|
+
# as a +String+ for the definition of the code object only (not the block)
|
387
|
+
def source=(statement)
|
388
|
+
if statement.respond_to?(:source)
|
389
|
+
@source = format_source(statement.source.strip)
|
390
|
+
else
|
391
|
+
@source = format_source(statement.to_s)
|
392
|
+
end
|
393
|
+
|
394
|
+
if statement.respond_to?(:signature)
|
395
|
+
self.signature = statement.signature
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# The documentation string associated with the object
|
400
|
+
#
|
401
|
+
# @param [String, I18n::Locale] locale (I18n::Locale.default)
|
402
|
+
# the locale of the documentation string.
|
403
|
+
# @return [Docstring] the documentation string
|
404
|
+
def docstring(locale = I18n::Locale.default)
|
405
|
+
if locale.nil?
|
406
|
+
@docstring.resolve_reference
|
407
|
+
return @docstring
|
408
|
+
end
|
409
|
+
|
410
|
+
if locale.is_a?(String)
|
411
|
+
locale_name = locale
|
412
|
+
locale = nil
|
413
|
+
else
|
414
|
+
locale_name = locale.name
|
415
|
+
end
|
416
|
+
@docstrings[locale_name] ||=
|
417
|
+
translate_docstring(locale || Registry.locale(locale_name))
|
418
|
+
end
|
419
|
+
|
420
|
+
# Attaches a docstring to a code object by parsing the comments attached to the statement
|
421
|
+
# and filling the {#tags} and {#docstring} methods with the parsed information.
|
422
|
+
#
|
423
|
+
# @param [String, Array<String>, Docstring] comments
|
424
|
+
# the comments attached to the code object to be parsed
|
425
|
+
# into a docstring and meta tags.
|
426
|
+
def docstring=(comments)
|
427
|
+
@docstrings.clear
|
428
|
+
@docstring = Docstring === comments ?
|
429
|
+
comments : Docstring.new(comments, self)
|
430
|
+
end
|
431
|
+
|
432
|
+
# Default type is the lowercase class name without the "Object" suffix.
|
433
|
+
# Override this method to provide a custom object type
|
434
|
+
#
|
435
|
+
# @return [Symbol] the type of code object this represents
|
436
|
+
def type
|
437
|
+
self.class.name.split('::').last.gsub(/Object$/, '').downcase.to_sym
|
438
|
+
end
|
439
|
+
|
440
|
+
# Represents the unique path of the object. The default implementation
|
441
|
+
# joins the path of {#namespace} with {#name} via the value of {#sep}.
|
442
|
+
# Custom code objects should ensure that the path is unique to the code
|
443
|
+
# object by either overriding {#sep} or this method.
|
444
|
+
#
|
445
|
+
# @example The path of an instance method
|
446
|
+
# MethodObject.new(P("A::B"), :c).path # => "A::B#c"
|
447
|
+
# @return [String] the unique path of the object
|
448
|
+
# @see #sep
|
449
|
+
def path
|
450
|
+
@path ||= if parent && !parent.root?
|
451
|
+
[parent.path, name.to_s].join(sep)
|
452
|
+
else
|
453
|
+
name.to_s
|
454
|
+
end
|
455
|
+
end
|
456
|
+
alias to_s path
|
457
|
+
|
458
|
+
# @note
|
459
|
+
# Override this method if your object has a special title that does
|
460
|
+
# not match the {#path} attribute value. This title will be used
|
461
|
+
# when linking or displaying the object.
|
462
|
+
# @return [String] the display title for an object
|
463
|
+
# @see 0.8.4
|
464
|
+
def title
|
465
|
+
path
|
466
|
+
end
|
467
|
+
|
468
|
+
# @param [Base, String] other another code object (or object path)
|
469
|
+
# @return [String] the shortest relative path from this object to +other+
|
470
|
+
# @since 0.5.3
|
471
|
+
def relative_path(other)
|
472
|
+
other = Registry.at(other) if String === other && Registry.at(other)
|
473
|
+
same_parent = false
|
474
|
+
if other.respond_to?(:path)
|
475
|
+
same_parent = other.parent == parent
|
476
|
+
other = other.path
|
477
|
+
end
|
478
|
+
return other unless namespace
|
479
|
+
common = [path, other].join(" ").match(/^(\S*)\S*(?: \1\S*)*$/)[1]
|
480
|
+
common = path unless common =~ /(\.|::|#)$/
|
481
|
+
common = common.sub(/(\.|::|#)[^:#\.]*?$/, '') if same_parent
|
482
|
+
suffix = %w(. :).include?(common[-1, 1]) || other[common.size, 1] == '#' ?
|
483
|
+
'' : '(::|\.)'
|
484
|
+
result = other.sub(/^#{Regexp.quote common}#{suffix}/, '')
|
485
|
+
result.empty? ? other : result
|
486
|
+
end
|
487
|
+
|
488
|
+
# Renders the object using the {Templates::Engine templating system}.
|
489
|
+
#
|
490
|
+
# @example Formats a class in plaintext
|
491
|
+
# puts P('MyClass').format
|
492
|
+
# @example Formats a method in html with rdoc markup
|
493
|
+
# puts P('MyClass#meth').format(:format => :html, :markup => :rdoc)
|
494
|
+
# @param [Hash] options a set of options to pass to the template
|
495
|
+
# @option options [Symbol] :format (:text) :html, :text or another output format
|
496
|
+
# @option options [Symbol] :template (:default) a specific template to use
|
497
|
+
# @option options [Symbol] :markup (nil) the markup type (:rdoc, :markdown, :textile)
|
498
|
+
# @option options [Serializers::Base] :serializer (nil) see Serializers
|
499
|
+
# @return [String] the rendered template
|
500
|
+
# @see Templates::Engine#render
|
501
|
+
def format(options = {})
|
502
|
+
options = options.merge(:object => self)
|
503
|
+
options = options.merge(:type => type) unless options[:type]
|
504
|
+
Templates::Engine.render(options)
|
505
|
+
end
|
506
|
+
|
507
|
+
# Inspects the object, returning the type and path
|
508
|
+
# @return [String] a string describing the object
|
509
|
+
def inspect
|
510
|
+
"#<yardoc #{type} #{path}>"
|
511
|
+
end
|
512
|
+
|
513
|
+
# Sets the namespace the object is defined in.
|
514
|
+
#
|
515
|
+
# @param [NamespaceObject, :root, nil] obj the new namespace (:root
|
516
|
+
# for {Registry.root}). If obj is nil, the object is unregistered
|
517
|
+
# from the Registry.
|
518
|
+
def namespace=(obj)
|
519
|
+
if @namespace
|
520
|
+
@namespace.children.delete(self)
|
521
|
+
Registry.delete(self)
|
522
|
+
end
|
523
|
+
|
524
|
+
@namespace = (obj == :root ? Registry.root : obj)
|
525
|
+
|
526
|
+
if @namespace
|
527
|
+
reg_obj = Registry.at(path)
|
528
|
+
return if reg_obj && reg_obj.class == self.class
|
529
|
+
|
530
|
+
unless @namespace.is_a?(Proxy)
|
531
|
+
# remove prior objects from obj's children that match this one
|
532
|
+
@namespace.children.delete_if {|o| o.path == path }
|
533
|
+
@namespace.children << self
|
534
|
+
end
|
535
|
+
Registry.register(self)
|
536
|
+
end
|
537
|
+
end
|
538
|
+
|
539
|
+
alias parent namespace
|
540
|
+
alias parent= namespace=
|
541
|
+
|
542
|
+
# Gets a tag from the {#docstring}
|
543
|
+
# @see Docstring#tag
|
544
|
+
def tag(name); docstring.tag(name) end
|
545
|
+
|
546
|
+
# Gets a list of tags from the {#docstring}
|
547
|
+
# @see Docstring#tags
|
548
|
+
def tags(name = nil); docstring.tags(name) end
|
549
|
+
|
550
|
+
# Tests if the {#docstring} has a tag
|
551
|
+
# @see Docstring#has_tag?
|
552
|
+
def has_tag?(name); docstring.has_tag?(name) end
|
553
|
+
|
554
|
+
# Add tags to the {#docstring}
|
555
|
+
# @see Docstring#add_tag
|
556
|
+
# @since 0.8.4
|
557
|
+
def add_tag(*tags)
|
558
|
+
@docstrings.clear
|
559
|
+
@docstring.add_tag(*tags)
|
560
|
+
end
|
561
|
+
|
562
|
+
# @return whether or not this object is a RootObject
|
563
|
+
def root?; false end
|
564
|
+
|
565
|
+
# Override this method with a custom component separator. For instance,
|
566
|
+
# {MethodObject} implements sep as '#' or '.' (depending on if the
|
567
|
+
# method is instance or class respectively). {#path} depends on this
|
568
|
+
# value to generate the full path in the form: namespace.path + sep + name
|
569
|
+
#
|
570
|
+
# @return [String] the component that separates the namespace path
|
571
|
+
# and the name (default is {NSEP})
|
572
|
+
def sep; NSEP end
|
573
|
+
|
574
|
+
protected
|
575
|
+
|
576
|
+
# Override this method if your code object subclass does not allow
|
577
|
+
# copying of certain attributes.
|
578
|
+
#
|
579
|
+
# @return [Array<String>] the list of instance variable names (without
|
580
|
+
# "@" prefix) that should be copied when {#copy_to} is called
|
581
|
+
# @see #copy_to
|
582
|
+
# @since 0.8.0
|
583
|
+
def copyable_attributes
|
584
|
+
vars = instance_variables.map {|ivar| ivar.to_s[1..-1] }
|
585
|
+
vars -= %w(docstring docstrings namespace name path)
|
586
|
+
vars
|
587
|
+
end
|
588
|
+
|
589
|
+
private
|
590
|
+
|
591
|
+
# Formats source code by removing leading indentation
|
592
|
+
#
|
593
|
+
# @param [String] source the source code to format
|
594
|
+
# @return [String] formatted source
|
595
|
+
def format_source(source)
|
596
|
+
source = source.chomp
|
597
|
+
last = source.split(/\r?\n/).last
|
598
|
+
indent = last ? last[/^([ \t]*)/, 1].length : 0
|
599
|
+
source.gsub(/^[ \t]{#{indent}}/, '')
|
600
|
+
end
|
601
|
+
|
602
|
+
def translate_docstring(locale)
|
603
|
+
@docstring.resolve_reference
|
604
|
+
return @docstring if locale.nil?
|
605
|
+
|
606
|
+
text = I18n::Text.new(@docstring)
|
607
|
+
localized_text = text.translate(locale)
|
608
|
+
docstring = Docstring.new(localized_text, self)
|
609
|
+
@docstring.tags.each do |tag|
|
610
|
+
if tag.is_a?(Tags::Tag)
|
611
|
+
localized_tag = tag.clone
|
612
|
+
localized_tag.text = I18n::Text.new(tag.text).translate(locale)
|
613
|
+
docstring.add_tag(localized_tag)
|
614
|
+
else
|
615
|
+
docstring.add_tag(tag)
|
616
|
+
end
|
617
|
+
end
|
618
|
+
docstring
|
619
|
+
end
|
620
|
+
end
|
621
|
+
end
|
622
|
+
end
|