win32-api 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +3 -0
- data/Gemfile.lock +5 -5
- data/ext/mkmf.log +3 -27
- data/ext/win32/api.c +16 -15
- data/lib/win32/ruby2_32/win32/api.so +0 -0
- data/pkg/win32-api-1.10.1-universal-mingw32.gem +0 -0
- data/test/test_win32_api.rb +1 -1
- data/vendor/bundle/ruby/3.0.0/bin/rake +27 -0
- data/vendor/bundle/ruby/3.0.0/bin/rake.bat +2 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/BSDL +22 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/COPYING +57 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/Gemfile +9 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/LEGAL +4 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/README.md +96 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/Rakefile +59 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/bin/console +12 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/bin/setup +6 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert.rb +91 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/colorize.rb +7 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/configuration.rb +46 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/context.rb +233 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/enable_tracepoint_events.rb +58 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/inspector.rb +62 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/parser.rb +251 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/lib/power_assert/version.rb +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/power_assert-2.0.0/power_assert.gemspec +31 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/CONTRIBUTING.rdoc +43 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/Gemfile +10 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/History.rdoc +2386 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/README.rdoc +155 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/Rakefile +41 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/bundle +105 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/console +7 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/rake +29 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/rdoc +29 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/rubocop +29 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/bin/setup +6 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/jamis.rb +592 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/exe/rake +27 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake.rb +71 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/application.rb +824 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/backtrace.rb +24 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/clean.rb +78 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/cloneable.rb +17 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/cpu_counter.rb +107 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/default_loader.rb +15 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/dsl_definition.rb +195 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/early_time.rb +22 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/ext/core.rb +26 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/ext/string.rb +176 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/file_creation_task.rb +25 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/file_list.rb +435 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/file_task.rb +54 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/file_utils.rb +134 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/file_utils_ext.rb +134 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/invocation_exception_mixin.rb +17 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/late_time.rb +18 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/linked_list.rb +112 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/loaders/makefile.rb +54 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/multi_task.rb +14 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/name_space.rb +38 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/packagetask.rb +222 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/phony.rb +16 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/private_reader.rb +21 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/promise.rb +100 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/pseudo_status.rb +30 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/rake_module.rb +67 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb +27 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/scope.rb +43 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/task.rb +434 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/task_argument_error.rb +8 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/task_arguments.rb +109 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/task_manager.rb +331 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/tasklib.rb +12 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/testtask.rb +189 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/thread_history_display.rb +49 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/thread_pool.rb +163 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/trace_output.rb +23 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/version.rb +10 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/lib/rake/win32.rb +51 -0
- data/vendor/bundle/ruby/3.0.0/gems/rake-13.0.3/rake.gemspec +43 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/BSDL +24 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/COPYING +64 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/PSFL +271 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/README.md +97 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/Rakefile +66 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/doc/text/getting-started.md +246 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/doc/text/how-to.md +90 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/doc/text/news.md +1552 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test-unit.rb +19 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit.rb +521 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/assertion-failed-error.rb +25 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/assertions.rb +2256 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/attribute-matcher.rb +26 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/attribute.rb +227 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/auto-runner-loader.rb +17 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/autorunner.rb +569 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/code-snippet-fetcher.rb +58 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector.rb +73 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector/descendant.rb +19 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector/dir.rb +108 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector/load.rb +197 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector/objectspace.rb +34 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/collector/xml.rb +249 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/color-scheme.rb +216 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/color.rb +134 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/data-sets.rb +116 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/data.rb +371 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/diff.rb +745 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/error.rb +158 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/exception-handler.rb +82 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/failure.rb +169 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/fault-location-detector.rb +100 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/fixture.rb +304 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/notification.rb +138 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/omission.rb +198 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/pending.rb +155 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/priority.rb +196 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/runner/console.rb +67 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/runner/emacs.rb +8 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/runner/xml.rb +15 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/test-suite-creator.rb +103 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/testcase.rb +899 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/testresult.rb +132 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/testsuite.rb +175 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/console/outputlevel.rb +15 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/console/testrunner.rb +733 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/emacs/testrunner.rb +49 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/testrunner.rb +53 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/testrunnermediator.rb +114 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/ui/xml/testrunner.rb +224 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/util/backtracefilter.rb +59 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/util/observable.rb +90 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/util/output.rb +32 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/util/procwrapper.rb +48 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/version.rb +5 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/lib/test/unit/warning.rb +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/sample/adder.rb +13 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/sample/subtracter.rb +12 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/sample/test_adder.rb +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/sample/test_subtracter.rb +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/sample/test_user.rb +23 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/collector/test-descendant.rb +182 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/collector/test-load.rb +475 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/collector/test_dir.rb +407 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/collector/test_objectspace.rb +102 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/header-label.csv +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/header-label.tsv +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/header.csv +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/header.tsv +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/no-header.csv +2 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/no-header.tsv +2 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/fixtures/plus.csv +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/run-test.rb +22 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-assertions.rb +2187 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-attribute-matcher.rb +38 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-attribute.rb +123 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-code-snippet.rb +79 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-color-scheme.rb +123 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-color.rb +47 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-data.rb +419 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-diff.rb +518 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-emacs-runner.rb +60 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-error.rb +26 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-failure.rb +33 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-fault-location-detector.rb +163 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-fixture.rb +713 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-notification.rb +33 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-omission.rb +81 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-pending.rb +70 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-priority.rb +184 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-test-case.rb +1284 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-test-result.rb +113 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-test-suite-creator.rb +97 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/test-test-suite.rb +151 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/testunit-test-util.rb +33 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/ui/test_testrunmediator.rb +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/util/test-method-owner-finder.rb +38 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/util/test-output.rb +11 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/util/test_backtracefilter.rb +52 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/util/test_observable.rb +102 -0
- data/vendor/bundle/ruby/3.0.0/gems/test-unit-3.4.1/test/util/test_procwrapper.rb +36 -0
- data/vendor/bundle/ruby/3.0.0/specifications/power_assert-2.0.0.gemspec +46 -0
- data/vendor/bundle/ruby/3.0.0/specifications/rake-13.0.3.gemspec +26 -0
- data/vendor/bundle/ruby/3.0.0/specifications/test-unit-3.4.1.gemspec +41 -0
- data/win32-api.gemspec +1 -1
- metadata +199 -8
- data/ext/Makefile +0 -269
- data/ext/api-x64-mingw32.def +0 -2
- data/ext/api.o +0 -0
- data/ext/api.so +0 -0
- data/ext/win32/api.so +0 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
# Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
|
3
|
+
require "test/unit/warning"
|
4
|
+
|
5
|
+
module Test
|
6
|
+
module Unit
|
7
|
+
autoload :TestCase, "test/unit/testcase"
|
8
|
+
autoload :AutoRunner, "test/unit/autorunner"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
unless respond_to?(:run_test, true)
|
13
|
+
# experimental. It is for "ruby -rtest-unit -e run_test test/test_*.rb".
|
14
|
+
# Is this API OK or dirty?
|
15
|
+
def run_test
|
16
|
+
self.class.send(:undef_method, :run_test)
|
17
|
+
require "test/unit"
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,521 @@
|
|
1
|
+
require "test/unit/warning"
|
2
|
+
|
3
|
+
require 'test/unit/testcase'
|
4
|
+
require 'test/unit/autorunner'
|
5
|
+
|
6
|
+
module Test # :nodoc:
|
7
|
+
#
|
8
|
+
# # Test::Unit - Ruby Unit Testing Framework
|
9
|
+
#
|
10
|
+
# ## Introduction
|
11
|
+
#
|
12
|
+
# Unit testing is making waves all over the place, largely due to the
|
13
|
+
# fact that it is a core practice of XP. While XP is great, unit testing
|
14
|
+
# has been around for a long time and has always been a good idea. One
|
15
|
+
# of the keys to good unit testing, though, is not just writing tests,
|
16
|
+
# but having tests. What's the difference? Well, if you just _write_ a
|
17
|
+
# test and throw it away, you have no guarantee that something won't
|
18
|
+
# change later which breaks your code. If, on the other hand, you _have_
|
19
|
+
# tests (obviously you have to write them first), and run them as often
|
20
|
+
# as possible, you slowly build up a wall of things that cannot break
|
21
|
+
# without you immediately knowing about it. This is when unit testing
|
22
|
+
# hits its peak usefulness.
|
23
|
+
#
|
24
|
+
# Enter Test::Unit, a framework for unit testing in Ruby, helping you to
|
25
|
+
# design, debug and evaluate your code by making it easy to write and
|
26
|
+
# have tests for it.
|
27
|
+
#
|
28
|
+
#
|
29
|
+
# ## Notes
|
30
|
+
#
|
31
|
+
# Test::Unit has grown out of and superceded Lapidary.
|
32
|
+
#
|
33
|
+
#
|
34
|
+
# ## Feedback
|
35
|
+
#
|
36
|
+
# I like (and do my best to practice) XP, so I value early releases,
|
37
|
+
# user feedback, and clean, simple, expressive code. There is always
|
38
|
+
# room for improvement in everything I do, and Test::Unit is no
|
39
|
+
# exception. Please, let me know what you think of Test::Unit as it
|
40
|
+
# stands, and what you'd like to see expanded/changed/improved/etc. If
|
41
|
+
# you find a bug, let me know ASAP; one good way to let me know what the
|
42
|
+
# bug is is to submit a new test that catches it :-) Also, I'd love to
|
43
|
+
# hear about any successes you have with Test::Unit, and any
|
44
|
+
# documentation you might add will be greatly appreciated. My contact
|
45
|
+
# info is below.
|
46
|
+
#
|
47
|
+
#
|
48
|
+
# ## Contact Information
|
49
|
+
#
|
50
|
+
# * [GitHub issues on
|
51
|
+
# test-unit/test-unit](https://github.com/test-unit/test-unit/issues):
|
52
|
+
# If you have any issues, please report them to here.
|
53
|
+
#
|
54
|
+
# * [GitHub pull requests on
|
55
|
+
# test-unit/test-unit](https://github.com/test-unit/test-unit/pulls):
|
56
|
+
# If you have any patches, please report them to here.
|
57
|
+
#
|
58
|
+
# * [ruby-talk mailing
|
59
|
+
# list](https://www.ruby-lang.org/en/community/mailing-lists/):
|
60
|
+
# If you have any questions, you can ask them here.
|
61
|
+
#
|
62
|
+
#
|
63
|
+
# ## Credits
|
64
|
+
#
|
65
|
+
# I'd like to thank...
|
66
|
+
#
|
67
|
+
# Matz, for a great language!
|
68
|
+
#
|
69
|
+
# Masaki Suketa, for his work on RubyUnit, which filled a vital need in
|
70
|
+
# the Ruby world for a very long time. I'm also grateful for his help in
|
71
|
+
# polishing Test::Unit and getting the RubyUnit compatibility layer
|
72
|
+
# right. His graciousness in allowing Test::Unit to supercede RubyUnit
|
73
|
+
# continues to be a challenge to me to be more willing to defer my own
|
74
|
+
# rights.
|
75
|
+
#
|
76
|
+
# Ken McKinlay, for his interest and work on unit testing, and for his
|
77
|
+
# willingness to dialog about it. He was also a great help in pointing
|
78
|
+
# out some of the holes in the RubyUnit compatibility layer.
|
79
|
+
#
|
80
|
+
# Dave Thomas, for the original idea that led to the extremely simple
|
81
|
+
# "require 'test/unit'", plus his code to improve it even more by
|
82
|
+
# allowing the selection of tests from the command-line. Also, without
|
83
|
+
# RDoc, the documentation for Test::Unit would stink a lot more than it
|
84
|
+
# does now.
|
85
|
+
#
|
86
|
+
# Everyone who's helped out with bug reports, feature ideas,
|
87
|
+
# encouragement to continue, etc. It's a real privilege to be a part of
|
88
|
+
# the Ruby community.
|
89
|
+
#
|
90
|
+
# The guys at RoleModel Software, for putting up with me repeating, "But
|
91
|
+
# this would be so much easier in Ruby!" whenever we're coding in Java.
|
92
|
+
#
|
93
|
+
# My Creator, for giving me life, and giving it more abundantly.
|
94
|
+
#
|
95
|
+
#
|
96
|
+
# ## License
|
97
|
+
#
|
98
|
+
# Test::Unit is copyright (c) 2000-2003 Nathaniel Talbott. It is free
|
99
|
+
# software, and is distributed under the Ruby license. See the COPYING
|
100
|
+
# file.
|
101
|
+
#
|
102
|
+
# Exception: lib/test/unit/diff.rb is copyright (c)
|
103
|
+
# 2008-2010 Kouhei Sutou and 2001-2008 Python Software
|
104
|
+
# Foundation. It is free software, and is distributed
|
105
|
+
# under the Ruby license and/or the PSF license. See the
|
106
|
+
# COPYING file and PSFL file.
|
107
|
+
#
|
108
|
+
# ## Warranty
|
109
|
+
#
|
110
|
+
# This software is provided "as is" and without any express or
|
111
|
+
# implied warranties, including, without limitation, the implied
|
112
|
+
# warranties of merchantibility and fitness for a particular
|
113
|
+
# purpose.
|
114
|
+
#
|
115
|
+
#
|
116
|
+
# ## Author
|
117
|
+
#
|
118
|
+
# Nathaniel Talbott.
|
119
|
+
# Copyright (c) 2000-2003, Nathaniel Talbott
|
120
|
+
#
|
121
|
+
# ----
|
122
|
+
#
|
123
|
+
# # Usage
|
124
|
+
#
|
125
|
+
# The general idea behind unit testing is that you write a _test_
|
126
|
+
# _method_ that makes certain _assertions_ about your code, working
|
127
|
+
# against a _test_ _fixture_. A bunch of these _test_ _methods_ are
|
128
|
+
# bundled up into a _test_ _suite_ and can be run any time the
|
129
|
+
# developer wants. The results of a run are gathered in a _test_
|
130
|
+
# _result_ and displayed to the user through some UI. So, lets break
|
131
|
+
# this down and see how Test::Unit provides each of these necessary
|
132
|
+
# pieces.
|
133
|
+
#
|
134
|
+
#
|
135
|
+
# ## Assertions
|
136
|
+
#
|
137
|
+
# These are the heart of the framework. Think of an assertion as a
|
138
|
+
# statement of expected outcome, i.e. "I assert that x should be equal
|
139
|
+
# to y". If, when the assertion is executed, it turns out to be
|
140
|
+
# correct, nothing happens, and life is good. If, on the other hand,
|
141
|
+
# your assertion turns out to be false, an error is propagated with
|
142
|
+
# pertinent information so that you can go back and make your
|
143
|
+
# assertion succeed, and, once again, life is good. For an explanation
|
144
|
+
# of the current assertions, see Test::Unit::Assertions.
|
145
|
+
#
|
146
|
+
#
|
147
|
+
# ## Test Method & Test Fixture
|
148
|
+
#
|
149
|
+
# Obviously, these assertions have to be called within a context that
|
150
|
+
# knows about them and can do something meaningful with their
|
151
|
+
# pass/fail value. Also, it's handy to collect a bunch of related
|
152
|
+
# tests, each test represented by a method, into a common test class
|
153
|
+
# that knows how to run them. The tests will be in a separate class
|
154
|
+
# from the code they're testing for a couple of reasons. First of all,
|
155
|
+
# it allows your code to stay uncluttered with test code, making it
|
156
|
+
# easier to maintain. Second, it allows the tests to be stripped out
|
157
|
+
# for deployment, since they're really there for you, the developer,
|
158
|
+
# and your users don't need them. Third, and most importantly, it
|
159
|
+
# allows you to set up a common test fixture for your tests to run
|
160
|
+
# against.
|
161
|
+
#
|
162
|
+
# What's a test fixture? Well, tests do not live in a vacuum; rather,
|
163
|
+
# they're run against the code they are testing. Often, a collection
|
164
|
+
# of tests will run against a common set of data, also called a
|
165
|
+
# fixture. If they're all bundled into the same test class, they can
|
166
|
+
# all share the setting up and tearing down of that data, eliminating
|
167
|
+
# unnecessary duplication and making it much easier to add related
|
168
|
+
# tests.
|
169
|
+
#
|
170
|
+
# Test::Unit::TestCase wraps up a collection of test methods together
|
171
|
+
# and allows you to easily set up and tear down the same test fixture
|
172
|
+
# for each test. This is done by overriding #setup and/or #teardown,
|
173
|
+
# which will be called before and after each test method that is
|
174
|
+
# run. The TestCase also knows how to collect the results of your
|
175
|
+
# assertions into a Test::Unit::TestResult, which can then be reported
|
176
|
+
# back to you... but I'm getting ahead of myself. To write a test,
|
177
|
+
# follow these steps:
|
178
|
+
#
|
179
|
+
# * Make sure Test::Unit is in your library path.
|
180
|
+
# * require 'test/unit' in your test script.
|
181
|
+
# * Create a class that subclasses Test::Unit::TestCase.
|
182
|
+
# * Add a method that begins with "test" to your class.
|
183
|
+
# * Make assertions in your test method.
|
184
|
+
# * Optionally define #setup and/or #teardown to set up and/or tear
|
185
|
+
# down your common test fixture.
|
186
|
+
# * You can now run your test as you would any other Ruby
|
187
|
+
# script... try it and see!
|
188
|
+
#
|
189
|
+
# A really simple test might look like this (#setup and #teardown are
|
190
|
+
# commented out to indicate that they are completely optional):
|
191
|
+
#
|
192
|
+
# require 'test/unit'
|
193
|
+
#
|
194
|
+
# class MyTest < Test::Unit::TestCase
|
195
|
+
# # def setup
|
196
|
+
# # end
|
197
|
+
#
|
198
|
+
# # def teardown
|
199
|
+
# # end
|
200
|
+
#
|
201
|
+
# def test_fail
|
202
|
+
# assert(false, 'Assertion was false.')
|
203
|
+
# end
|
204
|
+
# end
|
205
|
+
#
|
206
|
+
#
|
207
|
+
# ## Test Runners
|
208
|
+
#
|
209
|
+
# So, now you have this great test class, but you still
|
210
|
+
# need a way to run it and view any failures that occur
|
211
|
+
# during the run. There are some test runner; console test
|
212
|
+
# runner, GTK+ test runner and so on. The console test
|
213
|
+
# runner is automatically invoked for you if you require
|
214
|
+
# 'test/unit' and simply run the file. To use another
|
215
|
+
# runner simply set default test runner ID to
|
216
|
+
# Test::Unit::AutoRunner:
|
217
|
+
#
|
218
|
+
# require 'test/unit'
|
219
|
+
# Test::Unit::AutoRunner.default_runner = "gtk2"
|
220
|
+
#
|
221
|
+
# ## Test Suite
|
222
|
+
#
|
223
|
+
# As more and more unit tests accumulate for a given project, it
|
224
|
+
# becomes a real drag running them one at a time, and it also
|
225
|
+
# introduces the potential to overlook a failing test because you
|
226
|
+
# forget to run it. Suddenly it becomes very handy that the
|
227
|
+
# TestRunners can take any object that returns a Test::Unit::TestSuite
|
228
|
+
# in response to a suite method. The TestSuite can, in turn, contain
|
229
|
+
# other TestSuites or individual tests (typically created by a
|
230
|
+
# TestCase). In other words, you can easily wrap up a group of
|
231
|
+
# TestCases and TestSuites.
|
232
|
+
#
|
233
|
+
# Test::Unit does a little bit more for you, by wrapping
|
234
|
+
# these up automatically when you require
|
235
|
+
# 'test/unit'. What does this mean? It means you could
|
236
|
+
# write the above test case like this instead:
|
237
|
+
#
|
238
|
+
# require 'test/unit'
|
239
|
+
# require 'test_myfirsttests'
|
240
|
+
# require 'test_moretestsbyme'
|
241
|
+
# require 'test_anothersetoftests'
|
242
|
+
#
|
243
|
+
# Test::Unit is smart enough to find all the test cases existing in
|
244
|
+
# the ObjectSpace and wrap them up into a suite for you. It then runs
|
245
|
+
# the dynamic suite using the console TestRunner.
|
246
|
+
#
|
247
|
+
#
|
248
|
+
# ## Configuration file
|
249
|
+
#
|
250
|
+
# Test::Unit reads 'test-unit.yml' in the current working
|
251
|
+
# directory as Test::Unit's configuration file. It can
|
252
|
+
# contain the following configurations:
|
253
|
+
#
|
254
|
+
# * color scheme definitions
|
255
|
+
# * test runner to be used
|
256
|
+
# * test runner options
|
257
|
+
# * test collector to be used
|
258
|
+
#
|
259
|
+
# Except color scheme definitions, all of them are
|
260
|
+
# specified by command line option.
|
261
|
+
#
|
262
|
+
# Here are sample color scheme definitions:
|
263
|
+
#
|
264
|
+
# color_schemes:
|
265
|
+
# inverted:
|
266
|
+
# success:
|
267
|
+
# name: red
|
268
|
+
# bold: true
|
269
|
+
# failure:
|
270
|
+
# name: green
|
271
|
+
# bold: true
|
272
|
+
# other_scheme:
|
273
|
+
# ...
|
274
|
+
#
|
275
|
+
# Here are the syntax of color scheme definitions:
|
276
|
+
#
|
277
|
+
# color_schemes:
|
278
|
+
# SCHEME_NAME:
|
279
|
+
# EVENT_NAME:
|
280
|
+
# name: COLOR_NAME
|
281
|
+
# intensity: BOOLEAN
|
282
|
+
# bold: BOOLEAN
|
283
|
+
# italic: BOOLEAN
|
284
|
+
# underline: BOOLEAN
|
285
|
+
# ...
|
286
|
+
# ...
|
287
|
+
#
|
288
|
+
# SCHEME_NAME
|
289
|
+
# : the name of the color scheme
|
290
|
+
#
|
291
|
+
# EVENT_NAME
|
292
|
+
# : one of [success, failure, pending, omission, notification, error]
|
293
|
+
#
|
294
|
+
# COLOR_NAME
|
295
|
+
# : one of [black, red, green, yellow, blue, magenta, cyan, white]
|
296
|
+
#
|
297
|
+
# BOOLEAN
|
298
|
+
# : true or false
|
299
|
+
#
|
300
|
+
# You can use the above 'inverted' color scheme with the
|
301
|
+
# following configuration:
|
302
|
+
#
|
303
|
+
# runner: console
|
304
|
+
# console_options:
|
305
|
+
# color_scheme: inverted
|
306
|
+
# color_schemes:
|
307
|
+
# inverted:
|
308
|
+
# success:
|
309
|
+
# name: red
|
310
|
+
# bold: true
|
311
|
+
# failure:
|
312
|
+
# name: green
|
313
|
+
# bold: true
|
314
|
+
#
|
315
|
+
# ## Questions?
|
316
|
+
#
|
317
|
+
# I'd really like to get feedback from all levels of Ruby
|
318
|
+
# practitioners about typos, grammatical errors, unclear statements,
|
319
|
+
# missing points, etc., in this document (or any other).
|
320
|
+
#
|
321
|
+
|
322
|
+
module Unit
|
323
|
+
class << self
|
324
|
+
# Set true when Test::Unit has run. If set to true Test::Unit
|
325
|
+
# will not automatically run at exit.
|
326
|
+
#
|
327
|
+
# @deprecated Use Test::Unit::AutoRunner.need_auto_run= instead.
|
328
|
+
def run=(have_run)
|
329
|
+
AutoRunner.need_auto_run = (not have_run)
|
330
|
+
end
|
331
|
+
|
332
|
+
# Already tests have run?
|
333
|
+
#
|
334
|
+
# @deprecated Use Test::Unit::AutoRunner.need_auto_run? instead.
|
335
|
+
def run?
|
336
|
+
not AutoRunner.need_auto_run?
|
337
|
+
end
|
338
|
+
|
339
|
+
# @api private
|
340
|
+
@@at_start_hooks = []
|
341
|
+
|
342
|
+
# Regsiter a hook that is run before running tests.
|
343
|
+
# To register multiple hooks, call this method multiple times.
|
344
|
+
#
|
345
|
+
# Here is an example test case:
|
346
|
+
#
|
347
|
+
# Test::Unit.at_start do
|
348
|
+
# # ...
|
349
|
+
# end
|
350
|
+
#
|
351
|
+
# class TestMyClass1 < Test::Unit::TestCase
|
352
|
+
# class << self
|
353
|
+
# def startup
|
354
|
+
# # ...
|
355
|
+
# end
|
356
|
+
# end
|
357
|
+
#
|
358
|
+
# def setup
|
359
|
+
# # ...
|
360
|
+
# end
|
361
|
+
#
|
362
|
+
# def test_my_class1
|
363
|
+
# # ...
|
364
|
+
# end
|
365
|
+
#
|
366
|
+
# def test_my_class2
|
367
|
+
# # ...
|
368
|
+
# end
|
369
|
+
# end
|
370
|
+
#
|
371
|
+
# class TestMyClass2 < Test::Unit::TestCase
|
372
|
+
# class << self
|
373
|
+
# def startup
|
374
|
+
# # ...
|
375
|
+
# end
|
376
|
+
# end
|
377
|
+
#
|
378
|
+
# def setup
|
379
|
+
# # ...
|
380
|
+
# end
|
381
|
+
#
|
382
|
+
# def test_my_class1
|
383
|
+
# # ...
|
384
|
+
# end
|
385
|
+
#
|
386
|
+
# def test_my_class2
|
387
|
+
# # ...
|
388
|
+
# end
|
389
|
+
# end
|
390
|
+
#
|
391
|
+
# Here is a call order:
|
392
|
+
#
|
393
|
+
# * at_start
|
394
|
+
# * TestMyClass1.startup
|
395
|
+
# * TestMyClass1#setup
|
396
|
+
# * TestMyClass1#test_my_class1
|
397
|
+
# * TestMyClass1#setup
|
398
|
+
# * TestMyClass1#test_my_class2
|
399
|
+
# * TestMyClass2#setup
|
400
|
+
# * TestMyClass2#test_my_class1
|
401
|
+
# * TestMyClass2#setup
|
402
|
+
# * TestMyClass2#test_my_class2
|
403
|
+
#
|
404
|
+
# @example
|
405
|
+
# Test::Unit.at_start do
|
406
|
+
# puts "Start!"
|
407
|
+
# end
|
408
|
+
#
|
409
|
+
# @yield A block that is run before running tests.
|
410
|
+
# @yieldreturn [void]
|
411
|
+
# @return [void]
|
412
|
+
#
|
413
|
+
# @since 2.5.2
|
414
|
+
def at_start(&hook)
|
415
|
+
@@at_start_hooks << hook
|
416
|
+
end
|
417
|
+
|
418
|
+
# @api private
|
419
|
+
def run_at_start_hooks
|
420
|
+
@@at_start_hooks.each do |hook|
|
421
|
+
hook.call
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
# @api private
|
426
|
+
@@at_exit_hooks = []
|
427
|
+
|
428
|
+
# Regsiter a hook that is run after running tests.
|
429
|
+
# To register multiple hooks, call this method multiple times.
|
430
|
+
#
|
431
|
+
# Here is an example test case:
|
432
|
+
#
|
433
|
+
# Test::Unit.at_exit do
|
434
|
+
# # ...
|
435
|
+
# end
|
436
|
+
#
|
437
|
+
# class TestMyClass1 < Test::Unit::TestCase
|
438
|
+
# class << self
|
439
|
+
# def shutdown
|
440
|
+
# # ...
|
441
|
+
# end
|
442
|
+
# end
|
443
|
+
#
|
444
|
+
# def teardown
|
445
|
+
# # ...
|
446
|
+
# end
|
447
|
+
#
|
448
|
+
# def test_my_class1
|
449
|
+
# # ...
|
450
|
+
# end
|
451
|
+
#
|
452
|
+
# def test_my_class2
|
453
|
+
# # ...
|
454
|
+
# end
|
455
|
+
# end
|
456
|
+
#
|
457
|
+
# class TestMyClass2 < Test::Unit::TestCase
|
458
|
+
# class << self
|
459
|
+
# def shutdown
|
460
|
+
# # ...
|
461
|
+
# end
|
462
|
+
# end
|
463
|
+
#
|
464
|
+
# def teardown
|
465
|
+
# # ...
|
466
|
+
# end
|
467
|
+
#
|
468
|
+
# def test_my_class1
|
469
|
+
# # ...
|
470
|
+
# end
|
471
|
+
#
|
472
|
+
# def test_my_class2
|
473
|
+
# # ...
|
474
|
+
# end
|
475
|
+
# end
|
476
|
+
#
|
477
|
+
# Here is a call order:
|
478
|
+
#
|
479
|
+
# * TestMyClass1#test_my_class1
|
480
|
+
# * TestMyClass1#teardown
|
481
|
+
# * TestMyClass1#test_my_class2
|
482
|
+
# * TestMyClass1#teardown
|
483
|
+
# * TestMyClass1.shutdown
|
484
|
+
# * TestMyClass2#test_my_class1
|
485
|
+
# * TestMyClass2#teardown
|
486
|
+
# * TestMyClass2#test_my_class2
|
487
|
+
# * TestMyClass2#teardown
|
488
|
+
# * TestMyClass2.shutdown
|
489
|
+
# * at_exit
|
490
|
+
#
|
491
|
+
# @example
|
492
|
+
# Test::Unit.at_exit do
|
493
|
+
# puts "Exit!"
|
494
|
+
# end
|
495
|
+
#
|
496
|
+
# @yield A block that is run after running tests.
|
497
|
+
# @yieldreturn [void]
|
498
|
+
# @return [void]
|
499
|
+
#
|
500
|
+
# @since 2.5.2
|
501
|
+
def at_exit(&hook)
|
502
|
+
@@at_exit_hooks << hook
|
503
|
+
end
|
504
|
+
|
505
|
+
# @api private
|
506
|
+
def run_at_exit_hooks
|
507
|
+
@@at_exit_hooks.each do |hook|
|
508
|
+
hook.call
|
509
|
+
end
|
510
|
+
end
|
511
|
+
end
|
512
|
+
end
|
513
|
+
end
|
514
|
+
|
515
|
+
Module.new do
|
516
|
+
at_exit do
|
517
|
+
if $!.nil? and Test::Unit::AutoRunner.need_auto_run?
|
518
|
+
exit Test::Unit::AutoRunner.run
|
519
|
+
end
|
520
|
+
end
|
521
|
+
end
|