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,15 +0,0 @@
|
|
1
|
-
require File.expand_path('../helper', __FILE__)
|
2
|
-
|
3
|
-
class TestRakeFileListPathMap < Rake::TestCase
|
4
|
-
def test_file_list_supports_pathmap
|
5
|
-
assert_equal ['a', 'b'], FileList['dir/a.rb', 'dir/b.rb'].pathmap("%n")
|
6
|
-
end
|
7
|
-
|
8
|
-
def test_file_list_supports_pathmap_with_a_block
|
9
|
-
mapped = FileList['dir/a.rb', 'dir/b.rb'].pathmap("%{.*,*}n") do |name|
|
10
|
-
name.upcase
|
11
|
-
end
|
12
|
-
assert_equal ['A', 'B'], mapped
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
@@ -1,197 +0,0 @@
|
|
1
|
-
require File.expand_path('../helper', __FILE__)
|
2
|
-
require 'fileutils'
|
3
|
-
require 'pathname'
|
4
|
-
|
5
|
-
class TestRakeFileTask < Rake::TestCase
|
6
|
-
include Rake
|
7
|
-
|
8
|
-
def setup
|
9
|
-
super
|
10
|
-
|
11
|
-
Task.clear
|
12
|
-
@runs = Array.new
|
13
|
-
FileUtils.rm_f NEWFILE
|
14
|
-
FileUtils.rm_f OLDFILE
|
15
|
-
end
|
16
|
-
|
17
|
-
def test_file_need
|
18
|
-
name = "dummy"
|
19
|
-
file name
|
20
|
-
|
21
|
-
ftask = Task[name]
|
22
|
-
|
23
|
-
assert_equal name.to_s, ftask.name
|
24
|
-
File.delete(ftask.name) rescue nil
|
25
|
-
|
26
|
-
assert ftask.needed?, "file should be needed"
|
27
|
-
assert_equal Rake::LATE, ftask.timestamp
|
28
|
-
|
29
|
-
open(ftask.name, "w") { |f| f.puts "HI" }
|
30
|
-
|
31
|
-
assert_equal nil, ftask.prerequisites.map { |n| Task[n].timestamp }.max
|
32
|
-
assert ! ftask.needed?, "file should not be needed"
|
33
|
-
ensure
|
34
|
-
File.delete(ftask.name) rescue nil
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_file_times_new_depends_on_old
|
38
|
-
create_timed_files(OLDFILE, NEWFILE)
|
39
|
-
|
40
|
-
t1 = Rake.application.intern(FileTask, NEWFILE).enhance([OLDFILE])
|
41
|
-
t2 = Rake.application.intern(FileTask, OLDFILE)
|
42
|
-
assert ! t2.needed?, "Should not need to build old file"
|
43
|
-
assert ! t1.needed?, "Should not need to rebuild new file because of old"
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_file_times_new_depend_on_regular_task_timestamps
|
47
|
-
load_phony
|
48
|
-
|
49
|
-
name = "dummy"
|
50
|
-
task name
|
51
|
-
|
52
|
-
create_timed_files(NEWFILE)
|
53
|
-
|
54
|
-
t1 = Rake.application.intern(FileTask, NEWFILE).enhance([name])
|
55
|
-
|
56
|
-
assert t1.needed?, "depending on non-file task uses Time.now"
|
57
|
-
|
58
|
-
task(name => :phony)
|
59
|
-
|
60
|
-
assert t1.needed?, "unless the non-file task has a timestamp"
|
61
|
-
end
|
62
|
-
|
63
|
-
def test_file_times_old_depends_on_new
|
64
|
-
create_timed_files(OLDFILE, NEWFILE)
|
65
|
-
|
66
|
-
t1 = Rake.application.intern(FileTask, OLDFILE).enhance([NEWFILE])
|
67
|
-
t2 = Rake.application.intern(FileTask, NEWFILE)
|
68
|
-
assert ! t2.needed?, "Should not need to build new file"
|
69
|
-
preq_stamp = t1.prerequisites.map { |t| Task[t].timestamp }.max
|
70
|
-
assert_equal t2.timestamp, preq_stamp
|
71
|
-
assert t1.timestamp < preq_stamp, "T1 should be older"
|
72
|
-
assert t1.needed?, "Should need to rebuild old file because of new"
|
73
|
-
end
|
74
|
-
|
75
|
-
def test_file_depends_on_task_depend_on_file
|
76
|
-
create_timed_files(OLDFILE, NEWFILE)
|
77
|
-
|
78
|
-
file NEWFILE => [:obj] do |t| @runs << t.name end
|
79
|
-
task :obj => [OLDFILE] do |t| @runs << t.name end
|
80
|
-
file OLDFILE do |t| @runs << t.name end
|
81
|
-
|
82
|
-
Task[:obj].invoke
|
83
|
-
Task[NEWFILE].invoke
|
84
|
-
assert @runs.include?(NEWFILE)
|
85
|
-
end
|
86
|
-
|
87
|
-
def test_existing_file_depends_on_non_existing_file
|
88
|
-
create_file(OLDFILE)
|
89
|
-
delete_file(NEWFILE)
|
90
|
-
file NEWFILE do |t| @runs << t.name end
|
91
|
-
file OLDFILE => NEWFILE do |t| @runs << t.name end
|
92
|
-
|
93
|
-
Task[OLDFILE].invoke
|
94
|
-
|
95
|
-
assert_equal [NEWFILE, OLDFILE], @runs
|
96
|
-
end
|
97
|
-
|
98
|
-
def test_needed_eh_build_all
|
99
|
-
create_file 'a'
|
100
|
-
|
101
|
-
file 'a'
|
102
|
-
|
103
|
-
a_task = Task['a']
|
104
|
-
|
105
|
-
refute a_task.needed?
|
106
|
-
|
107
|
-
Rake.application.options.build_all = true
|
108
|
-
|
109
|
-
assert a_task.needed?
|
110
|
-
ensure
|
111
|
-
delete_file 'a'
|
112
|
-
end
|
113
|
-
|
114
|
-
def test_needed_eh_dependency
|
115
|
-
create_file 'a', Time.now
|
116
|
-
create_file 'b', Time.now - 60
|
117
|
-
|
118
|
-
create_file 'c', Time.now
|
119
|
-
create_file 'd', Time.now - 60
|
120
|
-
|
121
|
-
file 'b' => 'a'
|
122
|
-
|
123
|
-
b_task = Task['b']
|
124
|
-
|
125
|
-
assert b_task.needed?
|
126
|
-
|
127
|
-
file 'c' => 'd'
|
128
|
-
|
129
|
-
c_task = Task['c']
|
130
|
-
|
131
|
-
refute c_task.needed?
|
132
|
-
ensure
|
133
|
-
delete_file 'old'
|
134
|
-
delete_file 'new'
|
135
|
-
end
|
136
|
-
|
137
|
-
def test_needed_eh_exists
|
138
|
-
name = "dummy"
|
139
|
-
file name
|
140
|
-
|
141
|
-
ftask = Task[name]
|
142
|
-
|
143
|
-
assert ftask.needed?
|
144
|
-
|
145
|
-
create_file name
|
146
|
-
|
147
|
-
refute ftask.needed?
|
148
|
-
ensure
|
149
|
-
delete_file name
|
150
|
-
end
|
151
|
-
|
152
|
-
def test_source_is_first_prerequisite
|
153
|
-
t = file :f => ["preqA", "preqB"]
|
154
|
-
assert_equal "preqA", t.source
|
155
|
-
end
|
156
|
-
|
157
|
-
def test_sources_is_all_prerequisites
|
158
|
-
t = file :f => ["preqA", "preqB"]
|
159
|
-
assert_equal ["preqA", "preqB"], t.sources
|
160
|
-
end
|
161
|
-
|
162
|
-
def test_task_can_be_pathname
|
163
|
-
name = "dummy"
|
164
|
-
file Pathname.new name
|
165
|
-
|
166
|
-
ftask = Task[name]
|
167
|
-
|
168
|
-
assert_equal name.to_s, ftask.name
|
169
|
-
end
|
170
|
-
|
171
|
-
def test_prerequisite_can_be_pathname
|
172
|
-
t = file :f => Pathname.new("preq")
|
173
|
-
assert_equal "preq", t.source
|
174
|
-
end
|
175
|
-
|
176
|
-
# I have currently disabled this test. I'm not convinced that
|
177
|
-
# deleting the file target on failure is always the proper thing to
|
178
|
-
# do. I'm willing to hear input on this topic.
|
179
|
-
def ztest_file_deletes_on_failure
|
180
|
-
task :obj
|
181
|
-
file NEWFILE => [:obj] do |t|
|
182
|
-
FileUtils.touch NEWFILE
|
183
|
-
fail "Ooops"
|
184
|
-
end
|
185
|
-
assert Task[NEWFILE]
|
186
|
-
begin
|
187
|
-
Task[NEWFILE].invoke
|
188
|
-
rescue Exception
|
189
|
-
end
|
190
|
-
assert(! File.exist?(NEWFILE), "NEWFILE should be deleted")
|
191
|
-
end
|
192
|
-
|
193
|
-
def load_phony
|
194
|
-
load File.join(@rake_lib, "rake/phony.rb")
|
195
|
-
end
|
196
|
-
|
197
|
-
end
|
@@ -1,318 +0,0 @@
|
|
1
|
-
require File.expand_path('../helper', __FILE__)
|
2
|
-
require 'fileutils'
|
3
|
-
require 'stringio'
|
4
|
-
|
5
|
-
class TestRakeFileUtils < Rake::TestCase
|
6
|
-
def setup
|
7
|
-
super
|
8
|
-
@rake_test_sh = ENV['RAKE_TEST_SH']
|
9
|
-
end
|
10
|
-
|
11
|
-
def teardown
|
12
|
-
FileUtils::LN_SUPPORTED[0] = true
|
13
|
-
RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
|
14
|
-
ENV['RAKE_TEST_SH'] = @rake_test_sh
|
15
|
-
|
16
|
-
super
|
17
|
-
end
|
18
|
-
|
19
|
-
def test_rm_one_file
|
20
|
-
create_file("a")
|
21
|
-
FileUtils.rm_rf "a"
|
22
|
-
refute File.exist?("a")
|
23
|
-
end
|
24
|
-
|
25
|
-
def test_rm_two_files
|
26
|
-
create_file("a")
|
27
|
-
create_file("b")
|
28
|
-
FileUtils.rm_rf ["a", "b"]
|
29
|
-
refute File.exist?("a")
|
30
|
-
refute File.exist?("b")
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_rm_filelist
|
34
|
-
list = Rake::FileList.new << "a" << "b"
|
35
|
-
list.each { |fn| create_file(fn) }
|
36
|
-
FileUtils.rm_r list
|
37
|
-
refute File.exist?("a")
|
38
|
-
refute File.exist?("b")
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_ln
|
42
|
-
open("a", "w") { |f| f.puts "TEST_LN" }
|
43
|
-
|
44
|
-
Rake::FileUtilsExt.safe_ln("a", "b", :verbose => false)
|
45
|
-
|
46
|
-
assert_equal "TEST_LN\n", File.read('b')
|
47
|
-
end
|
48
|
-
|
49
|
-
class BadLink
|
50
|
-
include Rake::FileUtilsExt
|
51
|
-
attr_reader :cp_args
|
52
|
-
|
53
|
-
def initialize(klass)
|
54
|
-
@failure_class = klass
|
55
|
-
end
|
56
|
-
|
57
|
-
def cp(*args)
|
58
|
-
@cp_args = args
|
59
|
-
end
|
60
|
-
|
61
|
-
def ln(*args)
|
62
|
-
fail @failure_class, "ln not supported"
|
63
|
-
end
|
64
|
-
|
65
|
-
public :safe_ln
|
66
|
-
end
|
67
|
-
|
68
|
-
def test_safe_ln_failover_to_cp_on_standard_error
|
69
|
-
FileUtils::LN_SUPPORTED[0] = true
|
70
|
-
c = BadLink.new(StandardError)
|
71
|
-
c.safe_ln "a", "b"
|
72
|
-
assert_equal ['a', 'b'], c.cp_args
|
73
|
-
c.safe_ln "x", "y"
|
74
|
-
assert_equal ['x', 'y'], c.cp_args
|
75
|
-
end
|
76
|
-
|
77
|
-
def test_safe_ln_failover_to_cp_on_not_implemented_error
|
78
|
-
FileUtils::LN_SUPPORTED[0] = true
|
79
|
-
c = BadLink.new(NotImplementedError)
|
80
|
-
c.safe_ln "a", "b"
|
81
|
-
assert_equal ['a', 'b'], c.cp_args
|
82
|
-
end
|
83
|
-
|
84
|
-
def test_safe_ln_fails_on_script_error
|
85
|
-
FileUtils::LN_SUPPORTED[0] = true
|
86
|
-
c = BadLink.new(ScriptError)
|
87
|
-
assert_raises(ScriptError) do c.safe_ln "a", "b" end
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_verbose
|
91
|
-
verbose true
|
92
|
-
assert_equal true, verbose
|
93
|
-
verbose false
|
94
|
-
assert_equal false, verbose
|
95
|
-
verbose(true) {
|
96
|
-
assert_equal true, verbose
|
97
|
-
}
|
98
|
-
assert_equal false, verbose
|
99
|
-
end
|
100
|
-
|
101
|
-
def test_nowrite
|
102
|
-
nowrite true
|
103
|
-
assert_equal true, nowrite
|
104
|
-
nowrite false
|
105
|
-
assert_equal false, nowrite
|
106
|
-
nowrite(true) {
|
107
|
-
assert_equal true, nowrite
|
108
|
-
}
|
109
|
-
assert_equal false, nowrite
|
110
|
-
end
|
111
|
-
|
112
|
-
def test_file_utils_methods_are_available_at_top_level
|
113
|
-
create_file("a")
|
114
|
-
|
115
|
-
capture_io do
|
116
|
-
rm_rf "a"
|
117
|
-
end
|
118
|
-
|
119
|
-
refute File.exist?("a")
|
120
|
-
end
|
121
|
-
|
122
|
-
def test_fileutils_methods_dont_leak
|
123
|
-
obj = Object.new
|
124
|
-
assert_raises(NoMethodError) { obj.copy } # from FileUtils
|
125
|
-
assert_raises(NoMethodError) { obj.ruby "-v" } # from RubyFileUtils
|
126
|
-
end
|
127
|
-
|
128
|
-
def test_sh
|
129
|
-
shellcommand
|
130
|
-
|
131
|
-
verbose(false) { sh %{#{Rake::TestCase::RUBY} shellcommand.rb} }
|
132
|
-
assert true, "should not fail"
|
133
|
-
end
|
134
|
-
|
135
|
-
def test_sh_with_a_single_string_argument
|
136
|
-
check_expansion
|
137
|
-
|
138
|
-
ENV['RAKE_TEST_SH'] = 'someval'
|
139
|
-
verbose(false) {
|
140
|
-
sh %{#{RUBY} check_expansion.rb #{env_var} someval}
|
141
|
-
}
|
142
|
-
end
|
143
|
-
|
144
|
-
def test_sh_with_multiple_arguments
|
145
|
-
skip if jruby9? # https://github.com/jruby/jruby/issues/3653
|
146
|
-
|
147
|
-
check_no_expansion
|
148
|
-
ENV['RAKE_TEST_SH'] = 'someval'
|
149
|
-
|
150
|
-
verbose(false) {
|
151
|
-
sh RUBY, 'check_no_expansion.rb', env_var, 'someval'
|
152
|
-
}
|
153
|
-
end
|
154
|
-
|
155
|
-
def test_sh_failure
|
156
|
-
shellcommand
|
157
|
-
|
158
|
-
assert_raises(RuntimeError) {
|
159
|
-
verbose(false) { sh %{#{RUBY} shellcommand.rb 1} }
|
160
|
-
}
|
161
|
-
end
|
162
|
-
|
163
|
-
def test_sh_special_handling
|
164
|
-
shellcommand
|
165
|
-
|
166
|
-
count = 0
|
167
|
-
verbose(false) {
|
168
|
-
sh(%{#{RUBY} shellcommand.rb}) do |ok, res|
|
169
|
-
assert(ok)
|
170
|
-
assert_equal 0, res.exitstatus
|
171
|
-
count += 1
|
172
|
-
end
|
173
|
-
sh(%{#{RUBY} shellcommand.rb 1}) do |ok, res|
|
174
|
-
assert(!ok)
|
175
|
-
assert_equal 1, res.exitstatus
|
176
|
-
count += 1
|
177
|
-
end
|
178
|
-
}
|
179
|
-
assert_equal 2, count, "Block count should be 2"
|
180
|
-
end
|
181
|
-
|
182
|
-
def test_sh_noop
|
183
|
-
shellcommand
|
184
|
-
|
185
|
-
verbose(false) { sh %{shellcommand.rb 1}, :noop=>true }
|
186
|
-
assert true, "should not fail"
|
187
|
-
end
|
188
|
-
|
189
|
-
def test_sh_bad_option
|
190
|
-
shellcommand
|
191
|
-
|
192
|
-
ex = assert_raises(ArgumentError) {
|
193
|
-
verbose(false) { sh %{shellcommand.rb}, :bad_option=>true }
|
194
|
-
}
|
195
|
-
assert_match(/bad_option/, ex.message)
|
196
|
-
end
|
197
|
-
|
198
|
-
def test_sh_verbose
|
199
|
-
shellcommand
|
200
|
-
|
201
|
-
_, err = capture_io do
|
202
|
-
verbose(true) {
|
203
|
-
sh %{shellcommand.rb}, :noop=>true
|
204
|
-
}
|
205
|
-
end
|
206
|
-
|
207
|
-
assert_equal "shellcommand.rb\n", err
|
208
|
-
end
|
209
|
-
|
210
|
-
def test_sh_verbose_false
|
211
|
-
shellcommand
|
212
|
-
|
213
|
-
_, err = capture_io do
|
214
|
-
verbose(false) {
|
215
|
-
sh %{shellcommand.rb}, :noop=>true
|
216
|
-
}
|
217
|
-
end
|
218
|
-
|
219
|
-
assert_equal '', err
|
220
|
-
end
|
221
|
-
|
222
|
-
def test_sh_verbose_flag_nil
|
223
|
-
shellcommand
|
224
|
-
|
225
|
-
RakeFileUtils.verbose_flag = nil
|
226
|
-
|
227
|
-
assert_silent do
|
228
|
-
sh %{shellcommand.rb}, :noop=>true
|
229
|
-
end
|
230
|
-
end
|
231
|
-
|
232
|
-
def test_ruby_with_a_single_string_argument
|
233
|
-
check_expansion
|
234
|
-
|
235
|
-
ENV['RAKE_TEST_SH'] = 'someval'
|
236
|
-
|
237
|
-
verbose(false) {
|
238
|
-
replace_ruby {
|
239
|
-
ruby %{check_expansion.rb #{env_var} someval}
|
240
|
-
}
|
241
|
-
}
|
242
|
-
end
|
243
|
-
|
244
|
-
def test_ruby_with_multiple_arguments
|
245
|
-
skip if jruby9? # https://github.com/jruby/jruby/issues/3653
|
246
|
-
|
247
|
-
check_no_expansion
|
248
|
-
|
249
|
-
ENV['RAKE_TEST_SH'] = 'someval'
|
250
|
-
verbose(false) {
|
251
|
-
replace_ruby {
|
252
|
-
ruby 'check_no_expansion.rb', env_var, 'someval'
|
253
|
-
}
|
254
|
-
}
|
255
|
-
end
|
256
|
-
|
257
|
-
def test_split_all
|
258
|
-
assert_equal ['a'], Rake::FileUtilsExt.split_all('a')
|
259
|
-
assert_equal ['..'], Rake::FileUtilsExt.split_all('..')
|
260
|
-
assert_equal ['/'], Rake::FileUtilsExt.split_all('/')
|
261
|
-
assert_equal ['a', 'b'], Rake::FileUtilsExt.split_all('a/b')
|
262
|
-
assert_equal ['/', 'a', 'b'], Rake::FileUtilsExt.split_all('/a/b')
|
263
|
-
assert_equal ['..', 'a', 'b'], Rake::FileUtilsExt.split_all('../a/b')
|
264
|
-
end
|
265
|
-
|
266
|
-
def command(name, text)
|
267
|
-
open name, 'w', 0750 do |io|
|
268
|
-
io << text
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
|
-
def check_no_expansion
|
273
|
-
command 'check_no_expansion.rb', <<-CHECK_EXPANSION
|
274
|
-
if ARGV[0] != ARGV[1]
|
275
|
-
exit 0
|
276
|
-
else
|
277
|
-
exit 1
|
278
|
-
end
|
279
|
-
CHECK_EXPANSION
|
280
|
-
end
|
281
|
-
|
282
|
-
def check_expansion
|
283
|
-
command 'check_expansion.rb', <<-CHECK_EXPANSION
|
284
|
-
if ARGV[0] != ARGV[1]
|
285
|
-
exit 1
|
286
|
-
else
|
287
|
-
exit 0
|
288
|
-
end
|
289
|
-
CHECK_EXPANSION
|
290
|
-
end
|
291
|
-
|
292
|
-
def replace_ruby
|
293
|
-
ruby = FileUtils::RUBY
|
294
|
-
FileUtils.send :remove_const, :RUBY
|
295
|
-
FileUtils.const_set :RUBY, RUBY
|
296
|
-
yield
|
297
|
-
ensure
|
298
|
-
FileUtils.send :remove_const, :RUBY
|
299
|
-
FileUtils.const_set:RUBY, ruby
|
300
|
-
end
|
301
|
-
|
302
|
-
def shellcommand
|
303
|
-
command 'shellcommand.rb', <<-SHELLCOMMAND
|
304
|
-
#!/usr/bin/env ruby
|
305
|
-
|
306
|
-
exit((ARGV[0] || "0").to_i)
|
307
|
-
SHELLCOMMAND
|
308
|
-
end
|
309
|
-
|
310
|
-
def env_var
|
311
|
-
windows? ? '%RAKE_TEST_SH%' : '$RAKE_TEST_SH'
|
312
|
-
end
|
313
|
-
|
314
|
-
def windows?
|
315
|
-
! File::ALT_SEPARATOR.nil?
|
316
|
-
end
|
317
|
-
|
318
|
-
end
|