win32-api 1.6.0-universal-mingw32 → 1.6.1.beta1-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/Gemfile.lock +5 -5
- data/Rakefile +45 -19
- data/appveyor.yml +12 -0
- data/appveyor/build.cmd +3 -0
- data/lib/win32/api.rb +8 -0
- data/lib/win32/ruby21_32/win32/api.so +0 -0
- data/lib/win32/ruby21_64/win32/api.so +0 -0
- data/lib/win32/ruby22_32/win32/api.so +0 -0
- data/lib/win32/ruby22_64/win32/api.so +0 -0
- data/lib/win32/ruby23_32/win32/api.so +0 -0
- data/lib/win32/ruby23_64/win32/api.so +0 -0
- data/lib/win32/ruby24_32/win32/api.so +0 -0
- data/lib/win32/ruby24_64/win32/api.so +0 -0
- data/lib/win32/ruby2_32/win32/api.so +0 -0
- data/lib/win32/ruby2_64/win32/api.so +0 -0
- data/win32-api.gemspec +1 -1
- metadata +8 -341
- data/vendor/bundle/ruby/2.2.0/bin/devkit +0 -23
- data/vendor/bundle/ruby/2.2.0/bin/devkit.bat +0 -6
- data/vendor/bundle/ruby/2.2.0/bin/rake +0 -23
- data/vendor/bundle/ruby/2.2.0/bin/rake.bat +0 -6
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/CHANGELOG +0 -55
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/LICENSE +0 -339
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/README.md +0 -73
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/Rakefile +0 -8
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/colorize.gemspec +0 -35
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/lib/colorize.rb +0 -12
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/lib/colorize/class_methods.rb +0 -116
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/lib/colorize/instance_methods.rb +0 -135
- data/vendor/bundle/ruby/2.2.0/gems/colorize-0.7.7/test/test_colorize.rb +0 -161
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/Gemfile +0 -4
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/LICENSE.txt +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/README.md +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/Rakefile +0 -1
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/Rspec-example-matchers.txt +0 -184
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/bin/devkit +0 -87
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/devkit.gemspec +0 -27
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/lib/devkit.rb +0 -18
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/lib/devkit/core.rb +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/lib/devkit/identity.rb +0 -78
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/lib/devkit/ssh_identity.rb +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/lib/devkit/version.rb +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/spec/devkit/core_spec.rb +0 -46
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/spec/devkit/identity_spec.rb +0 -1
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/spec/devkit/ssh_identity_spec.rb +0 -1
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/spec/devkit_spec.rb +0 -5
- data/vendor/bundle/ruby/2.2.0/gems/devkit-0.1.0/spec/spec_helper.rb +0 -8
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/AUTHORS +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/COPYING +0 -339
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/Changelog.md +0 -415
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/Gemfile +0 -9
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/INSTALL +0 -59
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/LICENSE +0 -7
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/README.rdoc +0 -74
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/Rakefile +0 -30
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/TODO +0 -6
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/ansi_colors.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/asking_for_arrays.rb +0 -18
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/basic_usage.rb +0 -75
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/color_scheme.rb +0 -32
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/get_character.rb +0 -12
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/limit.rb +0 -12
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/menus.rb +0 -65
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/overwrite.rb +0 -19
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/page_and_wrap.rb +0 -322
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/password.rb +0 -7
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/repeat_entry.rb +0 -21
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/trapping_eof.rb +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/examples/using_readline.rb +0 -17
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/highline.gemspec +0 -37
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline.rb +0 -1048
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/color_scheme.rb +0 -134
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/compatibility.rb +0 -16
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/import.rb +0 -41
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/menu.rb +0 -381
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/question.rb +0 -480
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/simulate.rb +0 -48
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/style.rb +0 -192
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/lib/highline/version.rb +0 -4
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/setup.rb +0 -1360
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/site/highline.css +0 -65
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/site/images/logo.png +0 -0
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/site/index.html +0 -58
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/string_methods.rb +0 -32
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_color_scheme.rb +0 -96
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_highline.rb +0 -1402
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_import.rb +0 -52
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_menu.rb +0 -439
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_simulator.rb +0 -23
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_string_highline.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/highline-1.7.8/test/tc_style.rb +0 -578
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/BSDL +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/COPYING +0 -57
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/Gemfile +0 -9
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/LEGAL +0 -4
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/README.rdoc +0 -19
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/Rakefile +0 -16
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/benchmarks/bm_yhpg.rb +0 -59
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/benchmarks/helper.rb +0 -8
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/lib/power_assert.rb +0 -338
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/lib/power_assert/enable_tracepoint_events.rb +0 -82
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/lib/power_assert/version.rb +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/power_assert.gemspec +0 -23
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/test/helper.rb +0 -10
- data/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/test/test_power_assert.rb +0 -512
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/CONTRIBUTING.rdoc +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/History.rdoc +0 -719
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/MIT-LICENSE +0 -21
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/Manifest.txt +0 -154
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/README.rdoc +0 -157
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/Rakefile +0 -82
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/bin/rake +0 -33
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/command_line_usage.rdoc +0 -158
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/example/Rakefile1 +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/example/Rakefile2 +0 -35
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/example/a.c +0 -6
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/example/b.c +0 -6
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/example/main.c +0 -11
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/glossary.rdoc +0 -42
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/jamis.rb +0 -591
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/proto_rake.rdoc +0 -127
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/rake.1 +0 -141
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/rakefile.rdoc +0 -624
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/rational.rdoc +0 -151
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.4.14.rdoc +0 -23
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.4.15.rdoc +0 -35
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.5.0.rdoc +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.5.3.rdoc +0 -78
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.5.4.rdoc +0 -46
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.6.0.rdoc +0 -141
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.7.0.rdoc +0 -119
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.7.1.rdoc +0 -59
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.7.2.rdoc +0 -121
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.7.3.rdoc +0 -47
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.0.rdoc +0 -114
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.2.rdoc +0 -165
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.3.rdoc +0 -112
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.4.rdoc +0 -147
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.5.rdoc +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.6.rdoc +0 -37
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.8.7.rdoc +0 -55
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.0.rdoc +0 -112
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.1.rdoc +0 -52
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.2.2.rdoc +0 -55
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.2.rdoc +0 -49
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.3.rdoc +0 -102
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.4.rdoc +0 -60
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.5.rdoc +0 -55
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-0.9.6.rdoc +0 -64
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-10.0.0.rdoc +0 -178
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-10.0.1.rdoc +0 -58
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-10.0.2.rdoc +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-10.0.3.rdoc +0 -191
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/doc/release_notes/rake-10.1.0.rdoc +0 -61
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake.rb +0 -73
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb +0 -787
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/backtrace.rb +0 -23
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/clean.rb +0 -76
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/cloneable.rb +0 -16
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/contrib/compositepublisher.rb +0 -21
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/contrib/ftptools.rb +0 -137
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/contrib/sshpublisher.rb +0 -60
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/cpu_counter.rb +0 -120
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/default_loader.rb +0 -14
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/dsl_definition.rb +0 -194
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/early_time.rb +0 -21
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/file_creation_task.rb +0 -24
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/file_list.rb +0 -436
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/file_task.rb +0 -46
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/file_utils.rb +0 -123
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/invocation_chain.rb +0 -56
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/invocation_exception_mixin.rb +0 -16
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/late_time.rb +0 -17
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/linked_list.rb +0 -111
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/loaders/makefile.rb +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/multi_task.rb +0 -13
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/name_space.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/packagetask.rb +0 -199
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/phony.rb +0 -15
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/private_reader.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/promise.rb +0 -99
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/pseudo_status.rb +0 -29
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_module.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_test_loader.rb +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/scope.rb +0 -42
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/task.rb +0 -391
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/task_argument_error.rb +0 -7
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/task_arguments.rb +0 -102
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/task_manager.rb +0 -316
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/tasklib.rb +0 -11
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/testtask.rb +0 -204
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/thread_history_display.rb +0 -48
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/thread_pool.rb +0 -163
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/trace_output.rb +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/version.rb +0 -7
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/win32.rb +0 -50
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/rakelib/test_times.rake +0 -25
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/file_creation.rb +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/helper.rb +0 -134
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/support/rakefile_definitions.rb +0 -476
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/support/ruby_runner.rb +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_private_reader.rb +0 -42
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake.rb +0 -40
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_application.rb +0 -659
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_application_options.rb +0 -468
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_backtrace.rb +0 -119
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_clean.rb +0 -61
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_cpu_counter.rb +0 -68
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_definitions.rb +0 -84
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_directory_task.rb +0 -76
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_dsl.rb +0 -40
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_early_time.rb +0 -31
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_file_creation_task.rb +0 -56
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_file_list.rb +0 -687
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_file_list_path_map.rb +0 -15
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_file_task.rb +0 -197
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_file_utils.rb +0 -318
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_ftp_file.rb +0 -74
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_functional.rb +0 -484
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_invocation_chain.rb +0 -64
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_late_time.rb +0 -18
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_linked_list.rb +0 -84
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_makefile_loader.rb +0 -46
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_multi_task.rb +0 -64
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_name_space.rb +0 -57
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_package_task.rb +0 -79
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_path_map.rb +0 -168
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_path_map_explode.rb +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_path_map_partial.rb +0 -18
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_pseudo_status.rb +0 -21
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_rake_test_loader.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_reduce_compat.rb +0 -26
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_require.rb +0 -40
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_rules.rb +0 -388
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_scope.rb +0 -44
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task.rb +0 -430
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task_argument_parsing.rb +0 -119
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task_arguments.rb +0 -134
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task_manager.rb +0 -178
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task_manager_argument_resolution.rb +0 -19
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_task_with_arguments.rb +0 -172
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_test_task.rb +0 -130
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_thread_pool.rb +0 -145
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_top_level_functions.rb +0 -71
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_rake_win32.rb +0 -72
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_thread_history_display.rb +0 -101
- data/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/test/test_trace_output.rb +0 -52
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/COPYING +0 -64
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/GPL +0 -339
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/LGPL +0 -502
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/PSFL +0 -271
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/README.md +0 -101
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/Rakefile +0 -71
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test-unit.rb +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit.rb +0 -505
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/assertion-failed-error.rb +0 -25
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/assertions.rb +0 -2218
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/attribute-matcher.rb +0 -26
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/attribute.rb +0 -158
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/auto-runner-loader.rb +0 -17
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/autorunner.rb +0 -536
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/code-snippet-fetcher.rb +0 -58
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector.rb +0 -73
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector/descendant.rb +0 -19
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector/dir.rb +0 -108
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector/load.rb +0 -202
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector/objectspace.rb +0 -34
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/collector/xml.rb +0 -249
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/color-scheme.rb +0 -198
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/color.rb +0 -134
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/data.rb +0 -262
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/diff.rb +0 -746
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/error.rb +0 -158
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/exception-handler.rb +0 -82
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/failure.rb +0 -169
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/fault-location-detector.rb +0 -100
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/fixture.rb +0 -295
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/notification.rb +0 -136
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/omission.rb +0 -195
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/pending.rb +0 -154
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/priority.rb +0 -192
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/runner/console.rb +0 -59
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/runner/emacs.rb +0 -8
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/runner/xml.rb +0 -15
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/test-suite-creator.rb +0 -89
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/testcase.rb +0 -811
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/testresult.rb +0 -132
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/testsuite.rb +0 -175
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/console/outputlevel.rb +0 -15
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/console/testrunner.rb +0 -693
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/emacs/testrunner.rb +0 -49
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/testrunner.rb +0 -53
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/testrunnermediator.rb +0 -114
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/ui/xml/testrunner.rb +0 -224
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/util/backtracefilter.rb +0 -59
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/util/observable.rb +0 -90
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/util/output.rb +0 -31
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/util/procwrapper.rb +0 -48
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/lib/test/unit/version.rb +0 -5
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/sample/adder.rb +0 -13
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/sample/subtracter.rb +0 -12
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/sample/test_adder.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/sample/test_subtracter.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/sample/test_user.rb +0 -23
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/collector/test-descendant.rb +0 -178
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/collector/test-load.rb +0 -442
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/collector/test_dir.rb +0 -406
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/collector/test_objectspace.rb +0 -100
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/header-label.csv +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/header-label.tsv +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/header.csv +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/header.tsv +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/no-header.csv +0 -2
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/no-header.tsv +0 -2
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/fixtures/plus.csv +0 -3
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/run-test.rb +0 -22
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-assertions.rb +0 -2160
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-attribute-matcher.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-attribute.rb +0 -123
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-code-snippet.rb +0 -37
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-color-scheme.rb +0 -82
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-color.rb +0 -47
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-data.rb +0 -303
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-diff.rb +0 -518
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-emacs-runner.rb +0 -60
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-error.rb +0 -26
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-failure.rb +0 -33
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-fault-location-detector.rb +0 -163
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-fixture.rb +0 -713
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-notification.rb +0 -33
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-omission.rb +0 -81
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-pending.rb +0 -70
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-priority.rb +0 -173
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-test-case.rb +0 -1171
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-test-result.rb +0 -113
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-test-suite-creator.rb +0 -97
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/test-test-suite.rb +0 -150
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/testunit-test-util.rb +0 -31
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/ui/test_testrunmediator.rb +0 -20
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/util/test-method-owner-finder.rb +0 -38
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/util/test-output.rb +0 -11
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/util/test_backtracefilter.rb +0 -52
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/util/test_observable.rb +0 -102
- data/vendor/bundle/ruby/2.2.0/gems/test-unit-3.1.9/test/util/test_procwrapper.rb +0 -36
- data/vendor/bundle/ruby/2.2.0/specifications/colorize-0.7.7.gemspec +0 -38
- data/vendor/bundle/ruby/2.2.0/specifications/devkit-0.1.0.gemspec +0 -46
- data/vendor/bundle/ruby/2.2.0/specifications/highline-1.7.8.gemspec +0 -37
- data/vendor/bundle/ruby/2.2.0/specifications/power_assert-0.3.0.gemspec +0 -41
- data/vendor/bundle/ruby/2.2.0/specifications/rake-11.1.2.gemspec +0 -43
- data/vendor/bundle/ruby/2.2.0/specifications/test-unit-3.1.9.gemspec +0 -47
@@ -1,52 +0,0 @@
|
|
1
|
-
# tc_import.rb
|
2
|
-
#
|
3
|
-
# Created by James Edward Gray II on 2005-04-26.
|
4
|
-
# Copyright 2005 Gray Productions. All rights reserved.
|
5
|
-
#
|
6
|
-
# This is Free Software. See LICENSE and COPYING for details.
|
7
|
-
|
8
|
-
require "test/unit"
|
9
|
-
|
10
|
-
require "highline/import"
|
11
|
-
require "stringio"
|
12
|
-
|
13
|
-
class TestImport < Test::Unit::TestCase
|
14
|
-
def test_import
|
15
|
-
assert_respond_to(self, :agree)
|
16
|
-
assert_respond_to(self, :ask)
|
17
|
-
assert_respond_to(self, :choose)
|
18
|
-
assert_respond_to(self, :say)
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_or_ask
|
22
|
-
old_terminal = $terminal
|
23
|
-
|
24
|
-
input = StringIO.new
|
25
|
-
output = StringIO.new
|
26
|
-
$terminal = HighLine.new(input, output)
|
27
|
-
|
28
|
-
input << "10\n"
|
29
|
-
input.rewind
|
30
|
-
|
31
|
-
assert_equal(10, nil.or_ask("How much? ", Integer))
|
32
|
-
|
33
|
-
input.rewind
|
34
|
-
|
35
|
-
assert_equal(20, "20".or_ask("How much? ", Integer))
|
36
|
-
assert_equal(20, 20.or_ask("How much? ", Integer))
|
37
|
-
|
38
|
-
assert_equal(10, 20.or_ask("How much? ", Integer) { |q| q.in = 1..10 })
|
39
|
-
ensure
|
40
|
-
$terminal = old_terminal
|
41
|
-
end
|
42
|
-
|
43
|
-
def test_redirection
|
44
|
-
old_terminal = $terminal
|
45
|
-
|
46
|
-
$terminal = HighLine.new(nil, (output = StringIO.new))
|
47
|
-
say("Testing...")
|
48
|
-
assert_equal("Testing...\n", output.string)
|
49
|
-
ensure
|
50
|
-
$terminal = old_terminal
|
51
|
-
end
|
52
|
-
end
|
@@ -1,439 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
# tc_menu.rb
|
3
|
-
#
|
4
|
-
# Created by Gregory Thomas Brown on 2005-05-10.
|
5
|
-
# Copyright 2005. All rights reserved.
|
6
|
-
#
|
7
|
-
# This is Free Software. See LICENSE and COPYING for details.
|
8
|
-
|
9
|
-
require "test/unit"
|
10
|
-
|
11
|
-
require "highline"
|
12
|
-
require "stringio"
|
13
|
-
|
14
|
-
class TestMenu < Test::Unit::TestCase
|
15
|
-
def setup
|
16
|
-
@input = StringIO.new
|
17
|
-
@output = StringIO.new
|
18
|
-
@terminal = HighLine.new(@input, @output)
|
19
|
-
end
|
20
|
-
|
21
|
-
def test_choices
|
22
|
-
@input << "2\n"
|
23
|
-
@input.rewind
|
24
|
-
|
25
|
-
output = @terminal.choose do |menu|
|
26
|
-
menu.choices("Sample1", "Sample2", "Sample3")
|
27
|
-
end
|
28
|
-
assert_equal("Sample2", output)
|
29
|
-
end
|
30
|
-
|
31
|
-
def test_flow
|
32
|
-
@input << "Sample1\n"
|
33
|
-
@input.rewind
|
34
|
-
|
35
|
-
@terminal.choose do |menu|
|
36
|
-
# Default: menu.flow = :rows
|
37
|
-
|
38
|
-
menu.choice "Sample1"
|
39
|
-
menu.choice "Sample2"
|
40
|
-
menu.choice "Sample3"
|
41
|
-
end
|
42
|
-
assert_equal("1. Sample1\n2. Sample2\n3. Sample3\n? ", @output.string)
|
43
|
-
|
44
|
-
@output.truncate(@output.rewind)
|
45
|
-
@input.rewind
|
46
|
-
|
47
|
-
@terminal.choose do |menu|
|
48
|
-
menu.flow = :columns_across
|
49
|
-
|
50
|
-
menu.choice "Sample1"
|
51
|
-
menu.choice "Sample2"
|
52
|
-
menu.choice "Sample3"
|
53
|
-
end
|
54
|
-
assert_equal("1. Sample1 2. Sample2 3. Sample3\n? ", @output.string)
|
55
|
-
|
56
|
-
@output.truncate(@output.rewind)
|
57
|
-
@input.rewind
|
58
|
-
|
59
|
-
@terminal.choose do |menu|
|
60
|
-
menu.flow = :inline
|
61
|
-
menu.index = :none
|
62
|
-
|
63
|
-
menu.choice "Sample1"
|
64
|
-
menu.choice "Sample2"
|
65
|
-
menu.choice "Sample3"
|
66
|
-
end
|
67
|
-
assert_equal("Sample1, Sample2 or Sample3? ", @output.string)
|
68
|
-
end
|
69
|
-
|
70
|
-
def test_unicode_flow
|
71
|
-
@input << "1\n"
|
72
|
-
@input.rewind
|
73
|
-
|
74
|
-
@terminal.choose do |menu|
|
75
|
-
# Default: menu.flow = :rows
|
76
|
-
menu.choice "Unicode right single quotation mark: ’"
|
77
|
-
end
|
78
|
-
assert_equal("1. Unicode right single quotation mark: ’\n? ".encode(@output.external_encoding, { :undef => :replace }), @output.string)
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_help
|
82
|
-
@input << "help\nhelp load\nhelp rules\nhelp missing\n"
|
83
|
-
@input.rewind
|
84
|
-
|
85
|
-
4.times do
|
86
|
-
@terminal.choose do |menu|
|
87
|
-
menu.shell = true
|
88
|
-
|
89
|
-
menu.choice(:load, "Load a file.")
|
90
|
-
menu.choice(:save, "Save data in file.")
|
91
|
-
menu.choice(:quit, "Exit program.")
|
92
|
-
|
93
|
-
menu.help("rules", "The rules of this system are as follows...")
|
94
|
-
end
|
95
|
-
end
|
96
|
-
assert_equal( "1. load\n2. save\n3. quit\n4. help\n? " +
|
97
|
-
"This command will display helpful messages about " +
|
98
|
-
"functionality, like this one. To see the help for a " +
|
99
|
-
"specific topic enter:\n" +
|
100
|
-
"\thelp [TOPIC]\n" +
|
101
|
-
"Try asking for help on any of the following:\n" +
|
102
|
-
"\nload quit rules save \n" +
|
103
|
-
"1. load\n2. save\n3. quit\n4. help\n? " +
|
104
|
-
"= load\n\n" +
|
105
|
-
"Load a file.\n" +
|
106
|
-
"1. load\n2. save\n3. quit\n4. help\n? " +
|
107
|
-
"= rules\n\n" +
|
108
|
-
"The rules of this system are as follows...\n" +
|
109
|
-
"1. load\n2. save\n3. quit\n4. help\n? " +
|
110
|
-
"= missing\n\n" +
|
111
|
-
"There's no help for that topic.\n", @output.string )
|
112
|
-
end
|
113
|
-
|
114
|
-
def test_index
|
115
|
-
@input << "Sample1\n"
|
116
|
-
@input.rewind
|
117
|
-
|
118
|
-
@terminal.choose do |menu|
|
119
|
-
# Default: menu.index = :number
|
120
|
-
|
121
|
-
menu.choice "Sample1"
|
122
|
-
menu.choice "Sample2"
|
123
|
-
menu.choice "Sample3"
|
124
|
-
end
|
125
|
-
assert_equal("1. Sample1\n2. Sample2\n3. Sample3\n? ", @output.string)
|
126
|
-
|
127
|
-
@output.truncate(@output.rewind)
|
128
|
-
@input.rewind
|
129
|
-
|
130
|
-
@terminal.choose do |menu|
|
131
|
-
menu.index = :letter
|
132
|
-
menu.index_suffix = ") "
|
133
|
-
|
134
|
-
menu.choice "Sample1"
|
135
|
-
menu.choice "Sample2"
|
136
|
-
menu.choice "Sample3"
|
137
|
-
end
|
138
|
-
assert_equal("a) Sample1\nb) Sample2\nc) Sample3\n? ", @output.string)
|
139
|
-
|
140
|
-
@output.truncate(@output.rewind)
|
141
|
-
@input.rewind
|
142
|
-
|
143
|
-
@terminal.choose do |menu|
|
144
|
-
menu.index = :none
|
145
|
-
|
146
|
-
menu.choice "Sample1"
|
147
|
-
menu.choice "Sample2"
|
148
|
-
menu.choice "Sample3"
|
149
|
-
end
|
150
|
-
assert_equal("Sample1\nSample2\nSample3\n? ", @output.string)
|
151
|
-
|
152
|
-
@output.truncate(@output.rewind)
|
153
|
-
@input.rewind
|
154
|
-
|
155
|
-
@terminal.choose do |menu|
|
156
|
-
menu.index = "*"
|
157
|
-
|
158
|
-
menu.choice "Sample1"
|
159
|
-
menu.choice "Sample2"
|
160
|
-
menu.choice "Sample3"
|
161
|
-
end
|
162
|
-
assert_equal("* Sample1\n* Sample2\n* Sample3\n? ", @output.string)
|
163
|
-
end
|
164
|
-
|
165
|
-
def test_layouts
|
166
|
-
@input << "save\n"
|
167
|
-
@input.rewind
|
168
|
-
|
169
|
-
@terminal.choose(:load, :save, :quit) # Default: layout = :list
|
170
|
-
assert_equal("1. load\n2. save\n3. quit\n? ", @output.string)
|
171
|
-
|
172
|
-
@input.rewind
|
173
|
-
@output.truncate(@output.rewind)
|
174
|
-
|
175
|
-
@terminal.choose(:load, :save, :quit) do |menu|
|
176
|
-
menu.header = "File Menu"
|
177
|
-
end
|
178
|
-
assert_equal( "File Menu:\n" +
|
179
|
-
"1. load\n2. save\n3. quit\n? ", @output.string )
|
180
|
-
|
181
|
-
@input.rewind
|
182
|
-
@output.truncate(@output.rewind)
|
183
|
-
|
184
|
-
@terminal.choose(:load, :save, :quit) do |menu|
|
185
|
-
menu.layout = :one_line
|
186
|
-
menu.header = "File Menu"
|
187
|
-
menu.prompt = "Operation? "
|
188
|
-
end
|
189
|
-
assert_equal( "File Menu: Operation? " +
|
190
|
-
"(load, save or quit) ", @output.string )
|
191
|
-
|
192
|
-
@input.rewind
|
193
|
-
@output.truncate(@output.rewind)
|
194
|
-
|
195
|
-
@terminal.choose(:load, :save, :quit) do |menu|
|
196
|
-
menu.layout = :menu_only
|
197
|
-
end
|
198
|
-
assert_equal("load, save or quit? ", @output.string)
|
199
|
-
|
200
|
-
@input.rewind
|
201
|
-
@output.truncate(@output.rewind)
|
202
|
-
|
203
|
-
@terminal.choose(:load, :save, :quit) do |menu|
|
204
|
-
menu.layout = '<%= list(@menu) %>File Menu: '
|
205
|
-
end
|
206
|
-
assert_equal("1. load\n2. save\n3. quit\nFile Menu: ", @output.string)
|
207
|
-
end
|
208
|
-
|
209
|
-
def test_list_option
|
210
|
-
@input << "l\n"
|
211
|
-
@input.rewind
|
212
|
-
|
213
|
-
@terminal.choose(:load, :save, :quit) do |menu|
|
214
|
-
menu.layout = :menu_only
|
215
|
-
menu.list_option = ", or "
|
216
|
-
end
|
217
|
-
assert_equal("load, save, or quit? ", @output.string)
|
218
|
-
end
|
219
|
-
|
220
|
-
def test_nil_on_handled
|
221
|
-
@input << "3\n3\n2\n"
|
222
|
-
@input.rewind
|
223
|
-
|
224
|
-
# Shows that by default proc results are returned.
|
225
|
-
output = @terminal.choose do |menu|
|
226
|
-
menu.choice "Sample1" do "output1" end
|
227
|
-
menu.choice "Sample2" do "output2" end
|
228
|
-
menu.choice "Sample3" do "output3" end
|
229
|
-
end
|
230
|
-
assert_equal("output3", output)
|
231
|
-
|
232
|
-
#
|
233
|
-
# Shows that they can be replaced with +nil+ by setting
|
234
|
-
# _nil_on_handled to +true+.
|
235
|
-
#
|
236
|
-
output = @terminal.choose do |menu|
|
237
|
-
menu.nil_on_handled = true
|
238
|
-
menu.choice "Sample1" do "output1" end
|
239
|
-
menu.choice "Sample2" do "output2" end
|
240
|
-
menu.choice "Sample3" do "output3" end
|
241
|
-
end
|
242
|
-
assert_equal(nil, output)
|
243
|
-
|
244
|
-
# Shows that a menu item without a proc will be returned no matter what.
|
245
|
-
output = @terminal.choose do |menu|
|
246
|
-
menu.choice "Sample1"
|
247
|
-
menu.choice "Sample2"
|
248
|
-
menu.choice "Sample3"
|
249
|
-
end
|
250
|
-
assert_equal("Sample2", output)
|
251
|
-
end
|
252
|
-
|
253
|
-
def test_passed_command
|
254
|
-
@input << "q\n"
|
255
|
-
@input.rewind
|
256
|
-
|
257
|
-
selected = nil
|
258
|
-
@terminal.choose do |menu|
|
259
|
-
menu.choices(:load, :save, :quit) { |command| selected = command }
|
260
|
-
end
|
261
|
-
assert_equal(:quit, selected)
|
262
|
-
end
|
263
|
-
|
264
|
-
def test_question_options
|
265
|
-
@input << "save\n"
|
266
|
-
@input.rewind
|
267
|
-
|
268
|
-
answer = @terminal.choose(:Load, :Save, :Quit) do |menu|
|
269
|
-
menu.case = :capitalize
|
270
|
-
end
|
271
|
-
assert_equal(:Save, answer)
|
272
|
-
|
273
|
-
@input.rewind
|
274
|
-
|
275
|
-
answer = @terminal.choose(:Load, :Save, :Quit) do |menu|
|
276
|
-
menu.case = :capitalize
|
277
|
-
menu.character = :getc
|
278
|
-
end
|
279
|
-
assert_equal(:Save, answer)
|
280
|
-
assert_equal(?a, @input.getc)
|
281
|
-
end
|
282
|
-
|
283
|
-
def test_select_by
|
284
|
-
@input << "Sample1\n2\n"
|
285
|
-
@input.rewind
|
286
|
-
|
287
|
-
selected = @terminal.choose do |menu|
|
288
|
-
menu.choice "Sample1"
|
289
|
-
menu.choice "Sample2"
|
290
|
-
menu.choice "Sample3"
|
291
|
-
end
|
292
|
-
assert_equal("Sample1", selected)
|
293
|
-
|
294
|
-
@input.rewind
|
295
|
-
|
296
|
-
selected = @terminal.choose do |menu|
|
297
|
-
menu.select_by = :index
|
298
|
-
|
299
|
-
menu.choice "Sample1"
|
300
|
-
menu.choice "Sample2"
|
301
|
-
menu.choice "Sample3"
|
302
|
-
end
|
303
|
-
assert_equal("Sample2", selected)
|
304
|
-
|
305
|
-
@input.rewind
|
306
|
-
|
307
|
-
selected = @terminal.choose do |menu|
|
308
|
-
menu.select_by = :name
|
309
|
-
|
310
|
-
menu.choice "Sample1"
|
311
|
-
menu.choice "Sample2"
|
312
|
-
menu.choice "Sample3"
|
313
|
-
end
|
314
|
-
assert_equal("Sample1", selected)
|
315
|
-
end
|
316
|
-
|
317
|
-
def test_hidden
|
318
|
-
@input << "Hidden\n4\n"
|
319
|
-
@input.rewind
|
320
|
-
|
321
|
-
selected = @terminal.choose do |menu|
|
322
|
-
menu.choice "Sample1"
|
323
|
-
menu.choice "Sample2"
|
324
|
-
menu.choice "Sample3"
|
325
|
-
menu.hidden "Hidden!"
|
326
|
-
end
|
327
|
-
assert_equal("Hidden!", selected)
|
328
|
-
assert_equal("1. Sample1\n2. Sample2\n3. Sample3\n? ", @output.string)
|
329
|
-
|
330
|
-
@input.rewind
|
331
|
-
|
332
|
-
selected = @terminal.choose do |menu|
|
333
|
-
menu.select_by = :index
|
334
|
-
|
335
|
-
menu.choice "Sample1"
|
336
|
-
menu.choice "Sample2"
|
337
|
-
menu.choice "Sample3"
|
338
|
-
menu.hidden "Hidden!"
|
339
|
-
end
|
340
|
-
assert_equal("Hidden!", selected)
|
341
|
-
|
342
|
-
@input.rewind
|
343
|
-
|
344
|
-
selected = @terminal.choose do |menu|
|
345
|
-
menu.select_by = :name
|
346
|
-
|
347
|
-
menu.choice "Sample1"
|
348
|
-
menu.choice "Sample2"
|
349
|
-
menu.choice "Sample3"
|
350
|
-
menu.hidden "Hidden!"
|
351
|
-
end
|
352
|
-
assert_equal("Hidden!", selected)
|
353
|
-
|
354
|
-
@input.rewind
|
355
|
-
end
|
356
|
-
|
357
|
-
def test_select_by_letter
|
358
|
-
@input << "b\n"
|
359
|
-
@input.rewind
|
360
|
-
|
361
|
-
selected = @terminal.choose do |menu|
|
362
|
-
menu.index = :letter
|
363
|
-
menu.choice :save
|
364
|
-
menu.choice :load
|
365
|
-
menu.choice :quit
|
366
|
-
end
|
367
|
-
assert_equal(:load, selected)
|
368
|
-
end
|
369
|
-
|
370
|
-
def test_shell
|
371
|
-
@input << "save --some-option my_file.txt\n"
|
372
|
-
@input.rewind
|
373
|
-
|
374
|
-
selected = nil
|
375
|
-
options = nil
|
376
|
-
answer = @terminal.choose do |menu|
|
377
|
-
menu.choices(:load, :quit)
|
378
|
-
menu.choice(:save) do |command, details|
|
379
|
-
selected = command
|
380
|
-
options = details
|
381
|
-
|
382
|
-
"Saved!"
|
383
|
-
end
|
384
|
-
menu.shell = true
|
385
|
-
end
|
386
|
-
assert_equal("Saved!", answer)
|
387
|
-
assert_equal(:save, selected)
|
388
|
-
assert_equal("--some-option my_file.txt", options)
|
389
|
-
end
|
390
|
-
|
391
|
-
def test_simple_menu_shortcut
|
392
|
-
@input << "3\n"
|
393
|
-
@input.rewind
|
394
|
-
|
395
|
-
selected = @terminal.choose(:save, :load, :quit)
|
396
|
-
assert_equal(:quit, selected)
|
397
|
-
end
|
398
|
-
|
399
|
-
def test_symbols
|
400
|
-
@input << "3\n"
|
401
|
-
@input.rewind
|
402
|
-
|
403
|
-
selected = @terminal.choose do |menu|
|
404
|
-
menu.choices(:save, :load, :quit)
|
405
|
-
end
|
406
|
-
assert_equal(:quit, selected)
|
407
|
-
end
|
408
|
-
|
409
|
-
def test_paged_print_infinite_loop_bug
|
410
|
-
@terminal.page_at = 5
|
411
|
-
# Will page twice, so start with two new lines
|
412
|
-
@input << "\n\n3\n"
|
413
|
-
@input.rewind
|
414
|
-
|
415
|
-
# Sadly this goes into an infinite loop without the fix to page_print
|
416
|
-
selected = @terminal.choose(* 1..10)
|
417
|
-
assert_equal(selected, 3)
|
418
|
-
end
|
419
|
-
|
420
|
-
|
421
|
-
def test_cancel_paging
|
422
|
-
# Tests that paging can be cancelled halfway through
|
423
|
-
@terminal.page_at = 5
|
424
|
-
# Will page twice, so stop after first page and make choice 3
|
425
|
-
@input << "q3\n"
|
426
|
-
@input.rewind
|
427
|
-
|
428
|
-
selected = @terminal.choose(* 1..10)
|
429
|
-
assert_equal(selected, 3)
|
430
|
-
|
431
|
-
# Make sure paging message appeared
|
432
|
-
assert( @output.string.index('press enter/return to continue or q to stop'),
|
433
|
-
"Paging message did not appear." )
|
434
|
-
|
435
|
-
# Make sure it only appeared once
|
436
|
-
assert( @output.string !~ /q to stop.*q to stop/m,
|
437
|
-
"Paging message appeared more than once." )
|
438
|
-
end
|
439
|
-
end
|