@ai-ecoverse/wasix-ruby 3.4.11-20 → 3.4.11-21
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.
- package/PRESTAGE.md +8 -8
- package/README.md +9 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/ruby +0 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +9 -9
- package/lib/ruby/gems/3.4.0/cache/bigdecimal-3.1.8.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/debug-1.11.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/nkf-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/racc-1.8.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rbs-3.8.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/syslog-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/bigdecimal-3.1.8/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/debug-1.11.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/nkf-0.2.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/racc-1.8.1/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/rbs-3.8.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/syslog-0.2.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +56 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.c +7794 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.h +313 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bits.h +141 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/extconf.rb +62 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/feature.h +68 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing/dtoa.c +3462 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.c +27 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.h +196 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h +54 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +90 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +89 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +232 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +80 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +185 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +74 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +40 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +21 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +573 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +10 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +996 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +57 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +23 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +53 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/debug.c +228 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/extconf.rb +27 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/iseq_collector.c +93 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +556 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +263 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +123 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +592 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +224 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +336 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +190 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +37 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +115 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +13 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +15 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +534 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +1348 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +1108 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +2667 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +150 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +1457 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +241 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +9 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +660 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +5 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +38 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +24 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +14 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +8 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Command.java +58 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/CommandParser.java +70 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/NKFLibrary.java +13 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Option.java +80 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Options.java +109 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/RubyNKF.java +601 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/extconf.rb +3 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/config.h +51 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.c +7205 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.h +189 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.c +14638 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.h +72 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf.c +506 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +283 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +22 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +56 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +5 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +320 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +218 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +219 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +99 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +36 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +348 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +10 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +125 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +414 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +840 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +8 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +33 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +60 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +16 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +1191 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +667 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +18 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +212 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +644 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +630 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +473 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +35 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +976 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +311 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +22 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +1854 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +203 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +415 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +44 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +311 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +4062 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +375 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +150 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +277 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +220 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +171 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +786 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +415 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +981 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +1371 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +2405 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +630 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +673 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +760 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +376 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +550 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +2936 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +331 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +1151 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +644 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +184 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +1861 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +1413 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +984 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +70 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +3402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +3054 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +207 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +635 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +729 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +386 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +1704 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +209 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +818 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +190 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +868 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +2296 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +1065 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +1107 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +531 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +88 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +1229 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +1209 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +293 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +1928 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +765 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +176 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +49 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +148 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +1171 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +294 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +621 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +3583 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +667 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +475 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +1765 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +1762 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +477 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +98 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +329 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +106 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +192 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +86 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +57 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +309 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +167 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +905 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/extconf.rb +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.c +2728 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.h +179 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.re +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexstate.c +175 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.c +303 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.h +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/main.c +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.c +2961 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.h +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.c +366 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.h +161 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/rbs_extension.h +31 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/unescape.c +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +91 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +72 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +199 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +400 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +131 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +8 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +29 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +29 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +467 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +39 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +449 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +225 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +137 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +67 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +83 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +356 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +1223 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +223 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +258 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +16 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +395 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +620 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +254 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +841 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +818 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +173 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +155 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +600 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +138 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +241 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +141 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +140 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +99 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +840 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +641 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +279 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +667 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +127 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +219 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +91 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +198 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +83 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +201 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +80 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +30 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +212 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +167 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +433 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +112 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +126 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +109 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +1557 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +176 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +136 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +341 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +143 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +182 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +189 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +71 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +419 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +93 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +326 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +266 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +36 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +317 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +60 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +102 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +24 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +30 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +44 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +43 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +74 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +66 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +46 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +214 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +267 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +173 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +165 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +61 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +277 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +111 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +65 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +383 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +258 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +146 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +75 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +182 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +67 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +85 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +34 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +35 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +41 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +37 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +52 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +53 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +98 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +576 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +154 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +194 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +136 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +35 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +51 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +47 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +127 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +153 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +793 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +66 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +355 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +452 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +1629 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +119 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +1285 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +263 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +3776 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +1585 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +616 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +421 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +184 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +47 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +343 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +577 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +532 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +865 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +1734 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +49 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +268 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +414 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +428 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +1914 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +45 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +796 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +34 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +42 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +52 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +590 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +102 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +259 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +25 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +64 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +64 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +46 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +62 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +53 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +129 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +69 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +115 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +354 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +104 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +5552 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +55 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +487 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +217 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +393 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +12113 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +1725 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +1406 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +300 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +383 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +603 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +51 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +153 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +117 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +391 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +97 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +1830 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +1648 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +62 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +229 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +131 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +666 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +590 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +2295 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +4157 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +192 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +133 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +169 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +170 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +567 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +1627 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +479 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +432 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +69 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +409 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +582 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +118 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +1108 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +104 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +230 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +189 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +1 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +210 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +156 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +293 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +180 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +449 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +200 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +36 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +122 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +5 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +41 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +20 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +14 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +8 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/extconf.rb +26 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.c +592 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.txt +124 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +209 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +10 -0
- package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +32 -0
- package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
- package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +31 -0
- package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +25 -0
- package/package.json +9 -9
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
/***** BEGIN LICENSE BLOCK *****
|
|
2
|
+
* Version: EPL 2.0/LGPL 2.1
|
|
3
|
+
*
|
|
4
|
+
* The contents of this file are subject to the Eclipse Public
|
|
5
|
+
* License Version 2.0 (the "License"); you may not use this file
|
|
6
|
+
* except in compliance with the License. You may obtain a copy of
|
|
7
|
+
* the License at http://www.eclipse.org/legal/epl-v20.html
|
|
8
|
+
*
|
|
9
|
+
* Software distributed under the License is distributed on an "AS
|
|
10
|
+
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
11
|
+
* implied. See the License for the specific language governing
|
|
12
|
+
* rights and limitations under the License.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (C) 2007-2011 Koichiro Ohba <koichiro@meadowy.org>
|
|
15
|
+
*
|
|
16
|
+
* Alternatively, the contents of this file may be used under the terms of
|
|
17
|
+
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
18
|
+
* in which case the provisions of the LGPL are applicable instead
|
|
19
|
+
* of those above. If you wish to allow use of your version of this file only
|
|
20
|
+
* under the terms of either the LGPL, and not to allow others to
|
|
21
|
+
* use your version of this file under the terms of the EPL, indicate your
|
|
22
|
+
* decision by deleting the provisions above and replace them with the notice
|
|
23
|
+
* and other provisions required by the LGPL. If you do not delete
|
|
24
|
+
* the provisions above, a recipient may use your version of this file under
|
|
25
|
+
* the terms of any one of the EPL, the LGPL.
|
|
26
|
+
***** END LICENSE BLOCK *****/
|
|
27
|
+
|
|
28
|
+
package org.jruby.ext.nkf;
|
|
29
|
+
|
|
30
|
+
import java.nio.ByteBuffer;
|
|
31
|
+
import java.nio.CharBuffer;
|
|
32
|
+
import java.nio.charset.CharacterCodingException;
|
|
33
|
+
import java.nio.charset.Charset;
|
|
34
|
+
import java.nio.charset.CharsetDecoder;
|
|
35
|
+
import java.nio.charset.CharsetEncoder;
|
|
36
|
+
import java.nio.charset.UnsupportedCharsetException;
|
|
37
|
+
import java.util.ArrayList;
|
|
38
|
+
import java.util.Map;
|
|
39
|
+
import java.util.HashMap;
|
|
40
|
+
|
|
41
|
+
import org.jcodings.Encoding;
|
|
42
|
+
import org.jcodings.specific.ASCIIEncoding;
|
|
43
|
+
import org.jcodings.specific.UTF8Encoding;
|
|
44
|
+
import org.jcodings.transcode.EConv;
|
|
45
|
+
import org.jcodings.transcode.EConvFlags;
|
|
46
|
+
import org.jruby.Ruby;
|
|
47
|
+
import org.jruby.RubyArray;
|
|
48
|
+
import org.jruby.RubyModule;
|
|
49
|
+
import org.jruby.RubyString;
|
|
50
|
+
|
|
51
|
+
import org.jruby.anno.JRubyMethod;
|
|
52
|
+
import org.jruby.anno.JRubyModule;
|
|
53
|
+
import org.jruby.runtime.Helpers;
|
|
54
|
+
import org.jruby.runtime.ThreadContext;
|
|
55
|
+
import org.jruby.runtime.builtin.IRubyObject;
|
|
56
|
+
import org.jruby.util.ByteList;
|
|
57
|
+
import org.jruby.util.KCode;
|
|
58
|
+
import org.jruby.util.Pack;
|
|
59
|
+
import org.jruby.util.io.EncodingUtils;
|
|
60
|
+
|
|
61
|
+
@JRubyModule(name="NKF")
|
|
62
|
+
public class RubyNKF {
|
|
63
|
+
public static enum NKFCharset {
|
|
64
|
+
AUTO(0, "x-JISAutoDetect"),
|
|
65
|
+
// no ISO-2022-JP in jcodings
|
|
66
|
+
JIS(1, "ISO-2022-JP"),
|
|
67
|
+
EUC(2, "EUC-JP"),
|
|
68
|
+
SJIS(3, "Shift_JIS"),
|
|
69
|
+
BINARY(4, null),
|
|
70
|
+
NOCONV(4, null),
|
|
71
|
+
UNKNOWN(0, null),
|
|
72
|
+
ASCII(5, "iso-8859-1"),
|
|
73
|
+
UTF8(6, "UTF-8"),
|
|
74
|
+
UTF16(8, "UTF-16"),
|
|
75
|
+
UTF32(12, "UTF-32"),
|
|
76
|
+
OTHER(16, null),
|
|
77
|
+
BASE64(20, "base64"),
|
|
78
|
+
QENCODE(21, "qencode"),
|
|
79
|
+
MIME_DETECT(22, "MimeAutoDetect");
|
|
80
|
+
|
|
81
|
+
private NKFCharset(int value, String charset) {
|
|
82
|
+
this.value = value;
|
|
83
|
+
this.charset = charset;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
public int getValue() {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public String getCharset() {
|
|
91
|
+
return charset;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private final int value;
|
|
95
|
+
private final String charset;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private static final ByteList BEGIN_MIME_STRING = new ByteList(ByteList.plain("=?"));
|
|
99
|
+
private static final ByteList END_MIME_STRING = new ByteList(ByteList.plain("?="));
|
|
100
|
+
private static final ByteList PACK_BASE64 = new ByteList(ByteList.plain("m"));
|
|
101
|
+
private static final ByteList PACK_QENCODE = new ByteList(ByteList.plain("M"));
|
|
102
|
+
|
|
103
|
+
public static final Map<Integer, String> NKFCharsetMap = new HashMap<Integer, String>(20, 1);
|
|
104
|
+
|
|
105
|
+
public static void load(Ruby runtime) {
|
|
106
|
+
createNKF(runtime);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public static void createNKF(Ruby runtime) {
|
|
110
|
+
final RubyModule NKF = runtime.defineModule("NKF");
|
|
111
|
+
final String version = "2.1.2";
|
|
112
|
+
final String relDate = "2011-09-08";
|
|
113
|
+
|
|
114
|
+
NKF.defineConstant("NKF_VERSION", runtime.newString(version));
|
|
115
|
+
NKF.defineConstant("NKF_RELEASE_DATE", runtime.newString(relDate));
|
|
116
|
+
NKF.defineConstant("VERSION", runtime.newString(version + ' ' + '(' + "JRuby" + '_' + relDate + ')'));
|
|
117
|
+
|
|
118
|
+
for ( NKFCharset charset : NKFCharset.values() ) {
|
|
119
|
+
NKFCharsetMap.put(charset.value, charset.name());
|
|
120
|
+
|
|
121
|
+
if (charset.value > 12 ) continue;
|
|
122
|
+
NKF.defineConstant(charset.name(), charsetMappedValue(runtime, charset));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
NKF.defineAnnotatedMethods(RubyNKF.class);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@JRubyMethod(name = "guess", module = true)
|
|
129
|
+
public static IRubyObject guess(ThreadContext context, IRubyObject recv, IRubyObject s) {
|
|
130
|
+
return charsetMappedValue(context.runtime, guess(context, s));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
public static NKFCharset guess(ThreadContext context, IRubyObject s) {
|
|
134
|
+
// TODO: Fix charset usage for JRUBY-4553
|
|
135
|
+
Ruby runtime = context.runtime;
|
|
136
|
+
if (!s.respondsTo("to_str")) {
|
|
137
|
+
throw runtime.newTypeError("can't convert " + s.getMetaClass() + " into String");
|
|
138
|
+
}
|
|
139
|
+
ByteList bytes = s.convertToString().getByteList();
|
|
140
|
+
ByteBuffer buf = ByteBuffer.wrap(bytes.getUnsafeBytes(), bytes.begin(), bytes.length());
|
|
141
|
+
CharsetDecoder decoder;
|
|
142
|
+
try {
|
|
143
|
+
decoder = Charset.forName("x-JISAutoDetect").newDecoder();
|
|
144
|
+
} catch (UnsupportedCharsetException e) {
|
|
145
|
+
throw runtime.newStandardError("charsets.jar is required to use NKF#guess. Please install JRE which supports m17n.");
|
|
146
|
+
}
|
|
147
|
+
try {
|
|
148
|
+
decoder.decode(buf);
|
|
149
|
+
|
|
150
|
+
if ( ! decoder.isCharsetDetected() ) {
|
|
151
|
+
return NKFCharset.UNKNOWN;
|
|
152
|
+
}
|
|
153
|
+
Charset charset = decoder.detectedCharset();
|
|
154
|
+
String name = charset.name();
|
|
155
|
+
if ("Shift_JIS".equals(name)) {
|
|
156
|
+
return NKFCharset.SJIS;
|
|
157
|
+
}
|
|
158
|
+
if ("Windows-31j".equalsIgnoreCase(name)) {
|
|
159
|
+
return NKFCharset.JIS;
|
|
160
|
+
}
|
|
161
|
+
if ("EUC-JP".equals(name)) {
|
|
162
|
+
return NKFCharset.EUC;
|
|
163
|
+
}
|
|
164
|
+
if ("ISO-2022-JP".equals(name)) {
|
|
165
|
+
return NKFCharset.JIS;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
catch (CharacterCodingException e) {
|
|
169
|
+
// fall through and try direct encoding
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (bytes.getEncoding() == UTF8Encoding.INSTANCE) {
|
|
173
|
+
return NKFCharset.UTF8;
|
|
174
|
+
}
|
|
175
|
+
if (bytes.getEncoding().toString().startsWith("UTF-16")) {
|
|
176
|
+
return NKFCharset.UTF16;
|
|
177
|
+
}
|
|
178
|
+
if (bytes.getEncoding().toString().startsWith("UTF-32")) {
|
|
179
|
+
return NKFCharset.UTF32;
|
|
180
|
+
}
|
|
181
|
+
return NKFCharset.UNKNOWN;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
private static IRubyObject charsetMappedValue(final Ruby runtime, final NKFCharset charset) {
|
|
185
|
+
final Encoding encoding;
|
|
186
|
+
switch (charset) {
|
|
187
|
+
case AUTO: case NOCONV: case UNKNOWN: return runtime.getNil();
|
|
188
|
+
case BINARY:
|
|
189
|
+
encoding = runtime.getEncodingService().getAscii8bitEncoding();
|
|
190
|
+
return runtime.getEncodingService().convertEncodingToRubyEncoding(encoding);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
encoding = runtime.getEncodingService().getEncodingFromString(charset.getCharset());
|
|
194
|
+
return runtime.getEncodingService().convertEncodingToRubyEncoding(encoding);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@JRubyMethod(name = "guess1", module = true)
|
|
198
|
+
public static IRubyObject guess1(ThreadContext context, IRubyObject recv, IRubyObject str) {
|
|
199
|
+
return guess(context, recv, str);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@JRubyMethod(name = "guess2", module = true)
|
|
203
|
+
public static IRubyObject guess2(ThreadContext context, IRubyObject recv, IRubyObject str) {
|
|
204
|
+
return guess(context, recv, str);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@JRubyMethod(name = "nkf", module = true)
|
|
208
|
+
public static IRubyObject nkf(ThreadContext context, IRubyObject recv, IRubyObject opt, IRubyObject str) {
|
|
209
|
+
Ruby runtime = context.runtime;
|
|
210
|
+
|
|
211
|
+
if (!opt.respondsTo("to_str")) {
|
|
212
|
+
throw runtime.newTypeError("can't convert " + opt.getMetaClass() + " into String");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!str.respondsTo("to_str")) {
|
|
216
|
+
throw runtime.newTypeError("can't convert " + str.getMetaClass() + " into String");
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
Map<String, NKFCharset> options = parseOpt(opt.convertToString().toString());
|
|
220
|
+
|
|
221
|
+
if (options.get("input").getValue() == NKFCharset.AUTO.getValue()) {
|
|
222
|
+
options.put("input", guess(context, str));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
ByteList bstr = str.convertToString().getByteList();
|
|
226
|
+
final Converter converter;
|
|
227
|
+
if (Converter.isMimeText(bstr, options)) {
|
|
228
|
+
converter = new MimeConverter(context, options);
|
|
229
|
+
} else {
|
|
230
|
+
converter = new DefaultConverter(context, options);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
RubyString result = converter.convert(bstr);
|
|
234
|
+
|
|
235
|
+
if (options.get("mime-encode") == NKFCharset.BASE64) {
|
|
236
|
+
result = Converter.encodeMimeString(runtime, result, PACK_BASE64);
|
|
237
|
+
} else if (options.get("mime-encode") == NKFCharset.QENCODE) {
|
|
238
|
+
result = Converter.encodeMimeString(runtime, result, PACK_QENCODE);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return result;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
public static Command parseOption(String s) {
|
|
245
|
+
Options options = new Options();
|
|
246
|
+
options.addOption("b");
|
|
247
|
+
options.addOption("u");
|
|
248
|
+
options.addOption("j", "jis");
|
|
249
|
+
options.addOption("s", "sjis");
|
|
250
|
+
options.addOption("e", "euc");
|
|
251
|
+
options.addOption("w", null, "[0-9][0-9]");
|
|
252
|
+
options.addOption("J", "jis-input");
|
|
253
|
+
options.addOption("S", "sjis-input");
|
|
254
|
+
options.addOption("E", "euc-input");
|
|
255
|
+
options.addOption("W", null, "[0-9][0-9]");
|
|
256
|
+
options.addOption("t");
|
|
257
|
+
options.addOption("i_");
|
|
258
|
+
options.addOption("o_");
|
|
259
|
+
options.addOption("r");
|
|
260
|
+
options.addOption("h1", "hiragana");
|
|
261
|
+
options.addOption("h2", "katakana");
|
|
262
|
+
options.addOption("h3", "katakana-hiragana");
|
|
263
|
+
options.addOption("T");
|
|
264
|
+
options.addOption("l");
|
|
265
|
+
options.addOption("f", null, "[0-9]+-[0-9]*");
|
|
266
|
+
options.addOption("F");
|
|
267
|
+
options.addOption("Z", null, "[0-3]");
|
|
268
|
+
options.addOption("X");
|
|
269
|
+
options.addOption("x");
|
|
270
|
+
options.addOption("B", null, "[0-2]");
|
|
271
|
+
options.addOption("I");
|
|
272
|
+
options.addOption("L", null, "[uwm]");
|
|
273
|
+
options.addOption("d");
|
|
274
|
+
options.addOption("c");
|
|
275
|
+
options.addOption("m", null, "[BQN0]");
|
|
276
|
+
options.addOption("M", null, "[BQ]");
|
|
277
|
+
options.addOption(null, "fj");
|
|
278
|
+
options.addOption(null, "unix");
|
|
279
|
+
options.addOption(null, "mac");
|
|
280
|
+
options.addOption(null, "msdos");
|
|
281
|
+
options.addOption(null, "windows");
|
|
282
|
+
options.addOption(null, "mime");
|
|
283
|
+
options.addOption(null, "base64");
|
|
284
|
+
options.addOption(null, "mime-input");
|
|
285
|
+
options.addOption(null, "base64-input");
|
|
286
|
+
options.addOption(null, "ic", "ic=(.*)");
|
|
287
|
+
options.addOption(null, "oc", "oc=(.*)");
|
|
288
|
+
options.addOption(null, "fb-skip");
|
|
289
|
+
options.addOption(null, "fb-html");
|
|
290
|
+
options.addOption(null, "fb-xml");
|
|
291
|
+
options.addOption(null, "fb-perl");
|
|
292
|
+
options.addOption(null, "fb-java");
|
|
293
|
+
options.addOption(null, "fb-subchar", "fb-subchar=(.*)");
|
|
294
|
+
options.addOption(null, "no-cp932ext");
|
|
295
|
+
options.addOption(null, "cap-input");
|
|
296
|
+
options.addOption(null, "url-input");
|
|
297
|
+
options.addOption(null, "numchar-input");
|
|
298
|
+
options.addOption(null, "no-best-fit-chars");
|
|
299
|
+
|
|
300
|
+
CommandParser parser = new CommandParser();
|
|
301
|
+
Command cmd = parser.parse(options, s);
|
|
302
|
+
return cmd;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
private static Map<String, NKFCharset> parseOpt(String s) {
|
|
306
|
+
Map<String, NKFCharset> options = new HashMap<String, NKFCharset>();
|
|
307
|
+
|
|
308
|
+
// default options
|
|
309
|
+
options.put("input", NKFCharset.AUTO);
|
|
310
|
+
options.put("output", NKFCharset.JIS);
|
|
311
|
+
options.put("mime-decode", NKFCharset.MIME_DETECT);
|
|
312
|
+
options.put("mime-encode", NKFCharset.NOCONV);
|
|
313
|
+
|
|
314
|
+
Command cmd = parseOption(s);
|
|
315
|
+
if (cmd.hasOption("j")) {
|
|
316
|
+
options.put("output", NKFCharset.JIS);
|
|
317
|
+
}
|
|
318
|
+
if (cmd.hasOption("s")) {
|
|
319
|
+
options.put("output", NKFCharset.SJIS);
|
|
320
|
+
}
|
|
321
|
+
if (cmd.hasOption("e")) {
|
|
322
|
+
options.put("output", NKFCharset.EUC);
|
|
323
|
+
}
|
|
324
|
+
if (cmd.hasOption("w")) {
|
|
325
|
+
Option opt = cmd.getOption("w");
|
|
326
|
+
if ("32".equals(opt.getValue())) {
|
|
327
|
+
options.put("output", NKFCharset.UTF32);
|
|
328
|
+
} else if("16".equals(opt.getValue())) {
|
|
329
|
+
options.put("output", NKFCharset.UTF16);
|
|
330
|
+
} else {
|
|
331
|
+
options.put("output", NKFCharset.UTF8);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
if (cmd.hasOption("J")) {
|
|
335
|
+
options.put("input", NKFCharset.JIS);
|
|
336
|
+
}
|
|
337
|
+
if (cmd.hasOption("S")) {
|
|
338
|
+
options.put("input", NKFCharset.SJIS);
|
|
339
|
+
}
|
|
340
|
+
if (cmd.hasOption("E")) {
|
|
341
|
+
options.put("input", NKFCharset.EUC);
|
|
342
|
+
}
|
|
343
|
+
if (cmd.hasOption("W")) {
|
|
344
|
+
Option opt = cmd.getOption("W");
|
|
345
|
+
if ("32".equals(opt.getValue())) {
|
|
346
|
+
options.put("input", NKFCharset.UTF32);
|
|
347
|
+
} else if("16".equals(opt.getValue())) {
|
|
348
|
+
options.put("input", NKFCharset.UTF16);
|
|
349
|
+
} else {
|
|
350
|
+
options.put("input", NKFCharset.UTF8);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (cmd.hasOption("m")) {
|
|
354
|
+
Option opt = cmd.getOption("m");
|
|
355
|
+
if (opt.getValue() == null) {
|
|
356
|
+
options.put("mime-decode", NKFCharset.MIME_DETECT);
|
|
357
|
+
} else if ("B".equals(opt.getValue())) {
|
|
358
|
+
options.put("mime-decode", NKFCharset.BASE64);
|
|
359
|
+
} else if ("Q".equals(opt.getValue())) {
|
|
360
|
+
options.put("mime-decode", NKFCharset.QENCODE);
|
|
361
|
+
} else if ("N".equals(opt.getValue())) {
|
|
362
|
+
// TODO: non-strict option
|
|
363
|
+
} else if ("0".equals(opt.getValue())) {
|
|
364
|
+
options.put("mime-decode", NKFCharset.NOCONV);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (cmd.hasOption("M")) {
|
|
368
|
+
Option opt = cmd.getOption("M");
|
|
369
|
+
if (opt.getValue() == null) {
|
|
370
|
+
options.put("mime-encode", NKFCharset.NOCONV);
|
|
371
|
+
} else if ("B".equals(opt.getValue())) {
|
|
372
|
+
options.put("mime-encode", NKFCharset.BASE64);
|
|
373
|
+
} else if ("Q".equals(opt.getValue())) {
|
|
374
|
+
options.put("mime-encode", NKFCharset.QENCODE);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if (cmd.hasOption("base64")) {
|
|
378
|
+
options.put("mime-encode", NKFCharset.BASE64);
|
|
379
|
+
}
|
|
380
|
+
if (cmd.hasOption("oc")) {
|
|
381
|
+
Option opt = cmd.getOption("oc");
|
|
382
|
+
if ("ISO-2022-JP".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
383
|
+
options.put("output", NKFCharset.JIS);
|
|
384
|
+
} else if ("EUC-JP".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
385
|
+
options.put("output", NKFCharset.EUC);
|
|
386
|
+
} else if ("CP932".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
387
|
+
options.put("output", NKFCharset.SJIS);
|
|
388
|
+
} else if ("Shift_JIS".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
389
|
+
options.put("output", NKFCharset.SJIS);
|
|
390
|
+
} else if ("Windows-31J".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
391
|
+
options.put("output", NKFCharset.JIS);
|
|
392
|
+
} else if ("UTF-8".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
393
|
+
options.put("output", NKFCharset.UTF8);
|
|
394
|
+
} else if ("UTF-8N".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
395
|
+
options.put("output", NKFCharset.UTF8);
|
|
396
|
+
} else if ("UTF-16".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
397
|
+
options.put("output", NKFCharset.UTF16);
|
|
398
|
+
} else if ("UTF-16BE-BOM".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
399
|
+
options.put("output", NKFCharset.UTF16);
|
|
400
|
+
} else if ("UTF-32".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
401
|
+
options.put("output", NKFCharset.UTF32);
|
|
402
|
+
} else if ("UTF-32BE-BOM".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
403
|
+
options.put("output", NKFCharset.UTF32);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
if (cmd.hasOption("ic")) {
|
|
407
|
+
Option opt = cmd.getOption("ic");
|
|
408
|
+
if ("ISO-2022-JP".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
409
|
+
options.put("input", NKFCharset.JIS);
|
|
410
|
+
} else if ("EUC-JP".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
411
|
+
options.put("input", NKFCharset.EUC);
|
|
412
|
+
} else if ("CP932".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
413
|
+
options.put("input", NKFCharset.SJIS);
|
|
414
|
+
} else if ("Shift_JIS".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
415
|
+
options.put("input", NKFCharset.SJIS);
|
|
416
|
+
} else if ("Windows-31J".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
417
|
+
options.put("input", NKFCharset.SJIS);
|
|
418
|
+
} else if ("UTF-8".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
419
|
+
options.put("input", NKFCharset.UTF8);
|
|
420
|
+
} else if ("UTF-8N".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
421
|
+
options.put("input", NKFCharset.UTF8);
|
|
422
|
+
} else if ("UTF-16".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
423
|
+
options.put("input", NKFCharset.UTF16);
|
|
424
|
+
} else if ("UTF-16BE-BOM".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
425
|
+
options.put("input", NKFCharset.UTF16);
|
|
426
|
+
} else if ("UTF-32".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
427
|
+
options.put("input", NKFCharset.UTF32);
|
|
428
|
+
} else if ("UTF-32BE-BOM".compareToIgnoreCase(opt.getValue()) == 0) {
|
|
429
|
+
options.put("input", NKFCharset.UTF32);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return options;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
static abstract class Converter {
|
|
437
|
+
|
|
438
|
+
protected final ThreadContext context;
|
|
439
|
+
protected final Map<String, NKFCharset> options;
|
|
440
|
+
|
|
441
|
+
public Converter(ThreadContext ctx, Map<String, NKFCharset> opt) {
|
|
442
|
+
context = ctx;
|
|
443
|
+
options = opt;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
static boolean isMimeText(ByteList str, Map<String, NKFCharset> options) {
|
|
447
|
+
if (str.length() <= 6) {
|
|
448
|
+
return false;
|
|
449
|
+
}
|
|
450
|
+
if (options.get("mime-decode") == NKFCharset.NOCONV) {
|
|
451
|
+
return false;
|
|
452
|
+
}
|
|
453
|
+
if (str.indexOf(BEGIN_MIME_STRING) < 0) {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
if (str.lastIndexOf(END_MIME_STRING) < 0) {
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
459
|
+
return true;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
private static RubyString encodeMimeString(Ruby runtime, RubyString str, ByteList format) {
|
|
463
|
+
RubyArray array = RubyArray.newArray(runtime, str);
|
|
464
|
+
return Pack.pack(runtime, array, format).chomp(runtime.getCurrentContext());
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
abstract RubyString convert(ByteList str);
|
|
468
|
+
|
|
469
|
+
ByteList convert_byte(ByteList str, String inputCharset, NKFCharset output) {
|
|
470
|
+
String outputCharset = output.getCharset();
|
|
471
|
+
|
|
472
|
+
if (inputCharset == null) {
|
|
473
|
+
inputCharset = str.getEncoding().toString();
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (outputCharset.equals(inputCharset)) {
|
|
477
|
+
return str.dup();
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
byte[] outCharsetBytes = outputCharset.getBytes();
|
|
481
|
+
|
|
482
|
+
EConv ec = EncodingUtils.econvOpenOpts(context, inputCharset.getBytes(), outCharsetBytes, 0, context.nil);
|
|
483
|
+
|
|
484
|
+
if (ec == null) {
|
|
485
|
+
throw context.runtime.newArgumentError("invalid encoding pair: " + inputCharset + " to " + outputCharset);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
ByteList converted = EncodingUtils.econvStrConvert(context, ec, str, EConvFlags.INVALID_REPLACE);
|
|
489
|
+
|
|
490
|
+
converted.setEncoding(context.runtime.getEncodingService().findEncodingOrAliasEntry(outCharsetBytes).getEncoding());
|
|
491
|
+
|
|
492
|
+
return converted;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
static class DefaultConverter extends Converter {
|
|
497
|
+
|
|
498
|
+
public DefaultConverter(ThreadContext ctx, Map<String, NKFCharset> opt) {
|
|
499
|
+
super(ctx, opt);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
RubyString convert(ByteList str) {
|
|
503
|
+
NKFCharset input = options.get("input");
|
|
504
|
+
NKFCharset output = options.get("output");
|
|
505
|
+
ByteList b = convert_byte(str,
|
|
506
|
+
input.getCharset(),
|
|
507
|
+
output);
|
|
508
|
+
return context.runtime.newString(b);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
static class MimeConverter extends Converter {
|
|
513
|
+
|
|
514
|
+
public MimeConverter(ThreadContext ctx, Map<String, NKFCharset> opt) {
|
|
515
|
+
super(ctx, opt);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
private String detectCharset(String charset) {
|
|
519
|
+
if (charset.compareToIgnoreCase(NKFCharset.UTF8.getCharset()) == 0) {
|
|
520
|
+
return NKFCharset.UTF8.getCharset();
|
|
521
|
+
} else if (charset.compareToIgnoreCase(NKFCharset.JIS.getCharset()) == 0) {
|
|
522
|
+
return NKFCharset.JIS.getCharset();
|
|
523
|
+
} else if (charset.compareToIgnoreCase(NKFCharset.EUC.getCharset()) == 0) {
|
|
524
|
+
return NKFCharset.EUC.getCharset();
|
|
525
|
+
} else {
|
|
526
|
+
return NKFCharset.ASCII.getCharset();
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
private ByteList decodeMimeString(String str) {
|
|
531
|
+
String[] mime = str.split("^=\\?|\\?|\\?=$");
|
|
532
|
+
String charset = detectCharset(mime[1]);
|
|
533
|
+
int encode = mime[2].charAt(0);
|
|
534
|
+
RubyString body = EncodingUtils.newExternalStringWithEncoding(context.runtime, mime[3], ASCIIEncoding.INSTANCE);
|
|
535
|
+
|
|
536
|
+
final RubyArray<?> array;
|
|
537
|
+
if ('B' == encode || 'b' == encode) { // BASE64
|
|
538
|
+
array = Pack.unpack(context, body, PACK_BASE64);
|
|
539
|
+
} else { // Qencode
|
|
540
|
+
array = Pack.unpack(context, body, PACK_QENCODE);
|
|
541
|
+
}
|
|
542
|
+
RubyString s = (RubyString) array.entry(0);
|
|
543
|
+
ByteList decodeStr = s.asString().getByteList();
|
|
544
|
+
|
|
545
|
+
return convert_byte(decodeStr, charset, options.get("output"));
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
RubyString makeRubyString(ArrayList<ByteList> list) {
|
|
549
|
+
ByteList r = new ByteList();
|
|
550
|
+
for (ByteList l : list) {
|
|
551
|
+
r.append(l);
|
|
552
|
+
}
|
|
553
|
+
return context.runtime.newString(r);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
RubyString convert(ByteList str) {
|
|
557
|
+
String s = Helpers.decodeByteList(context.runtime, str);
|
|
558
|
+
String[] token = s.split("\\s");
|
|
559
|
+
ArrayList<ByteList> raw_data = new ArrayList<ByteList>();
|
|
560
|
+
|
|
561
|
+
for (int i = 0; i < token.length; i++) {
|
|
562
|
+
raw_data.add(decodeMimeString(token[i]));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
return makeRubyString(raw_data);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
@Deprecated
|
|
571
|
+
public static final NKFCharset AUTO = NKFCharset.AUTO;
|
|
572
|
+
// no ISO-2022-JP in jcodings
|
|
573
|
+
@Deprecated
|
|
574
|
+
public static final NKFCharset JIS = NKFCharset.JIS;
|
|
575
|
+
@Deprecated
|
|
576
|
+
public static final NKFCharset EUC = NKFCharset.EUC;
|
|
577
|
+
@Deprecated
|
|
578
|
+
public static final NKFCharset SJIS = NKFCharset.SJIS;
|
|
579
|
+
@Deprecated
|
|
580
|
+
public static final NKFCharset BINARY = NKFCharset.BINARY;
|
|
581
|
+
@Deprecated
|
|
582
|
+
public static final NKFCharset NOCONV = NKFCharset.NOCONV;
|
|
583
|
+
@Deprecated
|
|
584
|
+
public static final NKFCharset UNKNOWN = NKFCharset.UNKNOWN;
|
|
585
|
+
@Deprecated
|
|
586
|
+
public static final NKFCharset ASCII = NKFCharset.ASCII;
|
|
587
|
+
@Deprecated
|
|
588
|
+
public static final NKFCharset UTF8 = NKFCharset.UTF8;
|
|
589
|
+
@Deprecated
|
|
590
|
+
public static final NKFCharset UTF16 = NKFCharset.UTF16;
|
|
591
|
+
@Deprecated
|
|
592
|
+
public static final NKFCharset UTF32 = NKFCharset.UTF32;
|
|
593
|
+
@Deprecated
|
|
594
|
+
public static final NKFCharset OTHER = NKFCharset.OTHER;
|
|
595
|
+
@Deprecated
|
|
596
|
+
public static final NKFCharset BASE64 = NKFCharset.BASE64;
|
|
597
|
+
@Deprecated
|
|
598
|
+
public static final NKFCharset QENCODE = NKFCharset.QENCODE;
|
|
599
|
+
@Deprecated
|
|
600
|
+
public static final NKFCharset MIME_DETECT = NKFCharset.MIME_DETECT;
|
|
601
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#ifndef _CONFIG_H_
|
|
2
|
+
#define _CONFIG_H_
|
|
3
|
+
|
|
4
|
+
/* UTF8 input and output */
|
|
5
|
+
#define UTF8_INPUT_ENABLE
|
|
6
|
+
#define UTF8_OUTPUT_ENABLE
|
|
7
|
+
|
|
8
|
+
/* invert characters invalid in Shift_JIS to CP932 */
|
|
9
|
+
#define SHIFTJIS_CP932
|
|
10
|
+
|
|
11
|
+
/* fix input encoding when given by option */
|
|
12
|
+
#define INPUT_CODE_FIX
|
|
13
|
+
|
|
14
|
+
/* --overwrite option */
|
|
15
|
+
/* by Satoru Takabayashi <ccsatoru@vega.aichi-u.ac.jp> */
|
|
16
|
+
#define OVERWRITE
|
|
17
|
+
|
|
18
|
+
/* --cap-input, --url-input option */
|
|
19
|
+
#define INPUT_OPTION
|
|
20
|
+
|
|
21
|
+
/* --numchar-input option */
|
|
22
|
+
#define NUMCHAR_OPTION
|
|
23
|
+
|
|
24
|
+
/* --debug, --no-output option */
|
|
25
|
+
#define CHECK_OPTION
|
|
26
|
+
|
|
27
|
+
/* JIS X0212 */
|
|
28
|
+
#define X0212_ENABLE
|
|
29
|
+
|
|
30
|
+
/* --exec-in, --exec-out option
|
|
31
|
+
* require pipe, fork, execvp and so on.
|
|
32
|
+
* please undef this on MS-DOS, MinGW
|
|
33
|
+
* this is still buggy around child process
|
|
34
|
+
*/
|
|
35
|
+
/* #define EXEC_IO */
|
|
36
|
+
|
|
37
|
+
/* Unicode Normalization */
|
|
38
|
+
#define UNICODE_NORMALIZATION
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Select Default Output Encoding
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/* #define DEFAULT_CODE_JIS */
|
|
46
|
+
/* #define DEFAULT_CODE_SJIS */
|
|
47
|
+
/* #define DEFAULT_CODE_WINDOWS_31J */
|
|
48
|
+
/* #define DEFAULT_CODE_EUC */
|
|
49
|
+
/* #define DEFAULT_CODE_UTF8 */
|
|
50
|
+
|
|
51
|
+
#endif /* _CONFIG_H_ */
|