vagrant-unbundled 1.9.7.1 → 1.9.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/Gemfile.lock +10 -6
- data/contrib/bash/completion.sh +1 -1
- data/contrib/sudoers/linux-ubuntu +3 -4
- data/lib/vagrant/errors.rb +8 -0
- data/lib/vagrant/machine.rb +2 -0
- data/lib/vagrant/util/platform.rb +1 -1
- data/lib/vagrant/util/powershell.rb +42 -13
- data/lib/vagrant/util/safe_exec.rb +13 -2
- data/lib/vagrant/util/ssh.rb +11 -1
- data/plugins/commands/box/command/update.rb +12 -7
- data/plugins/commands/login/client.rb +15 -6
- data/plugins/commands/login/command.rb +13 -3
- data/plugins/commands/up/command.rb +9 -0
- data/plugins/commands/validate/command.rb +4 -4
- data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/freebsd/cap/configure_networks.rb +1 -1
- data/plugins/guests/freebsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/linux/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/netbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/openbsd/cap/shell_expand_guest_path.rb +2 -2
- data/plugins/guests/windows/cap/public_key.rb +21 -45
- data/plugins/kernel_v2/config/ssh_connect.rb +3 -0
- data/plugins/providers/docker/config.rb +4 -0
- data/plugins/providers/docker/driver/compose.rb +11 -4
- data/plugins/providers/hyperv/action/wait_for_ip_address.rb +15 -11
- data/plugins/providers/hyperv/scripts/get_network_config.ps1 +24 -9
- data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +18 -0
- data/plugins/provisioners/ansible/provisioner/host.rb +1 -1
- data/plugins/provisioners/chef/cap/debian/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/freebsd/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/omnios/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/redhat/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/suse/chef_install.rb +2 -2
- data/plugins/provisioners/chef/cap/windows/chef_install.rb +2 -2
- data/plugins/provisioners/chef/config/base.rb +17 -0
- data/plugins/provisioners/chef/config/chef_zero.rb +7 -0
- data/plugins/provisioners/chef/installer.rb +8 -7
- data/plugins/provisioners/chef/omnibus.rb +4 -6
- data/plugins/provisioners/chef/provisioner/base.rb +1 -0
- data/plugins/provisioners/chef/provisioner/chef_solo.rb +2 -1
- data/plugins/provisioners/file/provisioner.rb +18 -2
- data/plugins/provisioners/puppet/provisioner/puppet.rb +0 -2
- data/plugins/provisioners/salt/bootstrap-salt.sh +9 -5
- data/plugins/provisioners/shell/provisioner.rb +1 -1
- data/plugins/synced_folders/rsync/command/rsync_auto.rb +6 -1
- data/plugins/synced_folders/rsync/helper.rb +10 -0
- data/templates/locales/en.yml +27 -1
- data/templates/locales/providers_docker.yml +2 -0
- data/test/unit/base.rb +1 -3
- data/test/unit/plugins/commands/box/command/add_test.rb +3 -3
- data/test/unit/plugins/commands/box/command/remove_test.rb +6 -6
- data/test/unit/plugins/commands/box/command/repackage_test.rb +2 -4
- data/test/unit/plugins/commands/box/command/update_test.rb +36 -14
- data/test/unit/plugins/commands/init/command_test.rb +1 -1
- data/test/unit/plugins/commands/list-commands/command_test.rb +2 -2
- data/test/unit/plugins/commands/login/client_test.rb +5 -1
- data/test/unit/plugins/commands/package/command_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/expunge_plugins_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/install_gem_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/plugin_exists_check_test.rb +3 -3
- data/test/unit/plugins/commands/plugin/action/uninstall_plugin_test.rb +1 -1
- data/test/unit/plugins/commands/plugin/action/update_gems_test.rb +2 -2
- data/test/unit/plugins/commands/port/command_test.rb +3 -3
- data/test/unit/plugins/commands/push/command_test.rb +1 -1
- data/test/unit/plugins/commands/snapshot/command/list_test.rb +2 -3
- data/test/unit/plugins/commands/ssh_config/command_test.rb +1 -1
- data/test/unit/plugins/commands/up/command_test.rb +69 -2
- data/test/unit/plugins/commands/validate/command_test.rb +47 -1
- data/test/unit/plugins/communicators/ssh/communicator_test.rb +5 -5
- data/test/unit/plugins/communicators/winrm/communicator_test.rb +6 -6
- data/test/unit/plugins/communicators/winrm/helper_test.rb +24 -23
- data/test/unit/plugins/communicators/winssh/communicator_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/freebsd/cap/configure_networks_test.rb +1 -1
- data/test/unit/plugins/guests/freebsd/cap/shell_expand_guest_path_test.rb +44 -0
- data/test/unit/plugins/guests/linux/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/netbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/omnios/cap/mount_nfs_folder_test.rb +1 -3
- data/test/unit/plugins/guests/openbsd/cap/shell_expand_guest_path_test.rb +43 -0
- data/test/unit/plugins/guests/smartos/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/configure_networks_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/halt_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/insert_public_key_test.rb +1 -1
- data/test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb +2 -2
- data/test/unit/plugins/guests/smartos/cap/rsync_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/insert_public_key_test.rb +2 -2
- data/test/unit/plugins/guests/windows/cap/remove_public_key_test.rb +4 -3
- data/test/unit/plugins/guests/windows/config_test.rb +1 -1
- data/test/unit/plugins/guests/windows/guest_network_test.rb +2 -2
- data/test/unit/plugins/hosts/linux/cap/nfs_test.rb +2 -0
- data/test/unit/plugins/kernel_v2/config/push_test.rb +1 -1
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +7 -7
- data/test/unit/plugins/providers/docker/action/create_test.rb +1 -1
- data/test/unit/plugins/providers/docker/command/exec_test.rb +1 -1
- data/test/unit/plugins/providers/docker/config_test.rb +23 -4
- data/test/unit/plugins/providers/docker/driver_compose_test.rb +60 -30
- data/test/unit/plugins/providers/docker/driver_test.rb +31 -31
- data/test/unit/plugins/providers/docker/synced_folder_test.rb +3 -3
- data/test/unit/plugins/providers/hyperv/provider_test.rb +19 -19
- data/test/unit/plugins/providers/virtualbox/action/network_fix_ipv6_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/action/network_test.rb +1 -1
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_settings_test.rb +34 -8
- data/test/unit/plugins/providers/virtualbox/action/prepare_nfs_valid_ids_test.rb +3 -3
- data/test/unit/plugins/providers/virtualbox/cap_test.rb +2 -2
- data/test/unit/plugins/providers/virtualbox/config_test.rb +6 -6
- data/test/unit/plugins/providers/virtualbox/synced_folder_test.rb +6 -8
- data/test/unit/plugins/provisioners/ansible/config/guest_test.rb +1 -1
- data/test/unit/plugins/provisioners/ansible/config/host_test.rb +4 -4
- data/test/unit/plugins/provisioners/ansible/config/shared.rb +2 -2
- data/test/unit/plugins/provisioners/ansible/provisioner_test.rb +165 -157
- data/test/unit/plugins/provisioners/chef/command_builder_test.rb +2 -2
- data/test/unit/plugins/provisioners/chef/config/base_test.rb +13 -0
- data/test/unit/plugins/provisioners/chef/config/chef_zero_test.rb +11 -0
- data/test/unit/plugins/provisioners/chef/omnibus_test.rb +17 -7
- data/test/unit/plugins/provisioners/docker/config_test.rb +2 -1
- data/test/unit/plugins/provisioners/docker/provisioner_test.rb +13 -13
- data/test/unit/plugins/provisioners/file/provisioner_test.rb +32 -14
- data/test/unit/plugins/provisioners/puppet/provisioner/puppet_test.rb +51 -0
- data/test/unit/plugins/provisioners/salt/provisioner_test.rb +5 -5
- data/test/unit/plugins/provisioners/shell/provisioner_test.rb +35 -4
- data/test/unit/plugins/pushes/ftp/adapter_test.rb +1 -0
- data/test/unit/plugins/synced_folders/nfs/action_cleanup_test.rb +1 -1
- data/test/unit/plugins/synced_folders/nfs/config_test.rb +1 -1
- data/test/unit/plugins/synced_folders/rsync/command/rsync_auto_test.rb +44 -12
- data/test/unit/plugins/synced_folders/rsync/command/rsync_test.rb +5 -5
- data/test/unit/plugins/synced_folders/rsync/helper_test.rb +47 -29
- data/test/unit/plugins/synced_folders/rsync/synced_folder_test.rb +5 -5
- data/test/unit/vagrant/action/builtin/box_add_test.rb +27 -27
- data/test/unit/vagrant/action/builtin/box_check_outdated_test.rb +10 -10
- data/test/unit/vagrant/action/builtin/box_remove_test.rb +15 -15
- data/test/unit/vagrant/action/builtin/confirm_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/handle_box_test.rb +8 -8
- data/test/unit/vagrant/action/builtin/handle_forwarded_port_collisions_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/is_env_set_test.rb +2 -2
- data/test/unit/vagrant/action/builtin/is_state_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/provision_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/provisioner_cleanup_test.rb +1 -1
- data/test/unit/vagrant/action/builtin/synced_folder_cleanup_test.rb +6 -6
- data/test/unit/vagrant/action/builtin/synced_folders_test.rb +3 -3
- data/test/unit/vagrant/batch_action_test.rb +2 -2
- data/test/unit/vagrant/box_collection_test.rb +1 -1
- data/test/unit/vagrant/box_test.rb +6 -6
- data/test/unit/vagrant/capability_host_test.rb +3 -3
- data/test/unit/vagrant/cli_test.rb +3 -3
- data/test/unit/vagrant/environment_test.rb +21 -20
- data/test/unit/vagrant/guest_test.rb +7 -7
- data/test/unit/vagrant/machine_index_test.rb +4 -4
- data/test/unit/vagrant/machine_test.rb +28 -17
- data/test/unit/vagrant/plugin/manager_test.rb +12 -12
- data/test/unit/vagrant/plugin/state_file_test.rb +2 -2
- data/test/unit/vagrant/plugin/v1/command_test.rb +9 -8
- data/test/unit/vagrant/plugin/v2/command_test.rb +54 -43
- data/test/unit/vagrant/plugin/v2/plugin_test.rb +4 -3
- data/test/unit/vagrant/plugin/v2/provider_test.rb +3 -3
- data/test/unit/vagrant/shared_helpers_test.rb +6 -6
- data/test/unit/vagrant/ui_test.rb +21 -21
- data/test/unit/vagrant/util/downloader_test.rb +7 -7
- data/test/unit/vagrant/util/ssh_test.rb +41 -5
- data/test/unit/vagrant/util/subprocess_test.rb +7 -7
- data/test/unit/vagrant_test.rb +9 -9
- data/vagrant.gemspec +3 -2
- data/vendor/bundle/ruby/2.4.0/bundler/gems/vagrant-spec-af86757912f7/vagrant-spec.gemspec +1 -1
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.gitignore +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.rspec +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/.travis.yml +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/CONTRIBUTORS.md +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile +12 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Gemfile.lock +44 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Guardfile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/README.md +134 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/Rakefile +10 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/fake_ftp.gemspec +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/file.rb +34 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/server.rb +340 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/lib/fake_ftp/version.rb +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/invisible_bike.jpg +0 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/fixtures/text_file.txt +1 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/functional/server_spec.rb +468 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/integration/server_spec.rb +81 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/file_spec.rb +102 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/models/fake_ftp/server_spec.rb +76 -0
- data/vendor/bundle/ruby/2.4.0/gems/fake_ftp-0.1.1/spec/spec_helper.rb +18 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.gitignore +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.rubocop.yml +57 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/.travis.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/CONTRIBUTING.rdoc +36 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Gemfile +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/History.rdoc +2247 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/README.rdoc +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/Rakefile +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/appveyor.yml +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/console +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/bin/setup +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/command_line_usage.rdoc +158 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile1 +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/Rakefile2 +35 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/a.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/b.c +6 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/example/main.c +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/glossary.rdoc +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/jamis.rb +591 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/proto_rake.rdoc +127 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rake.1 +156 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rakefile.rdoc +622 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/doc/rational.rdoc +151 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake.rb +70 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/application.rb +785 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/backtrace.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/clean.rb +77 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/cpu_counter.rb +106 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/default_loader.rb +14 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/dsl_definition.rb +194 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/early_time.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/core.rb +25 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/ext/string.rb +175 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_list.rb +434 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils.rb +136 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_chain.rb +56 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/late_time.rb +17 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/linked_list.rb +111 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/loaders/makefile.rb +53 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/multi_task.rb +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/name_space.rb +37 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/packagetask.rb +210 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_module.rb +38 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rake_test_loader.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/rule_recursion_overflow_error.rb +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task.rb +390 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_arguments.rb +108 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/task_manager.rb +303 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/tasklib.rb +11 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/testtask.rb +222 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/thread_pool.rb +162 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/version.rb +9 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/lib/rake/win32.rb +50 -0
- data/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/rake.gemspec +39 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.gitignore +19 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/.travis.yml +24 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Changelog.md +49 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Gemfile +26 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/LICENSE.txt +27 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/README.md +72 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/Rakefile +16 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/cucumber.yml +2 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/its.feature +125 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/step_definitions/additional_cli_steps.rb +21 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/features/support/env.rb +23 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its.rb +149 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/lib/rspec/its/version.rb +5 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/rspec-its.gemspec +28 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/script/test_all +20 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/rspec/its_spec.rb +237 -0
- data/vendor/bundle/ruby/2.4.0/gems/rspec-its-1.2.0/spec/spec_helper.rb +15 -0
- data/vendor/bundle/ruby/2.4.0/specifications/fake_ftp-0.1.1.gemspec +20 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rake-12.0.0.gemspec +43 -0
- data/vendor/bundle/ruby/2.4.0/specifications/rspec-its-1.2.0.gemspec +47 -0
- data/version.txt +1 -1
- metadata +137 -7
- data/2.14.0 +0 -5
@@ -0,0 +1,46 @@
|
|
1
|
+
require "rake/task.rb"
|
2
|
+
require "rake/early_time"
|
3
|
+
|
4
|
+
module Rake
|
5
|
+
|
6
|
+
# A FileTask is a task that includes time based dependencies. If any of a
|
7
|
+
# FileTask's prerequisites have a timestamp that is later than the file
|
8
|
+
# represented by this task, then the file must be rebuilt (using the
|
9
|
+
# supplied actions).
|
10
|
+
#
|
11
|
+
class FileTask < Task
|
12
|
+
|
13
|
+
# Is this file task needed? Yes if it doesn't exist, or if its time stamp
|
14
|
+
# is out of date.
|
15
|
+
def needed?
|
16
|
+
! File.exist?(name) || out_of_date?(timestamp) || @application.options.build_all
|
17
|
+
end
|
18
|
+
|
19
|
+
# Time stamp for file task.
|
20
|
+
def timestamp
|
21
|
+
if File.exist?(name)
|
22
|
+
File.mtime(name.to_s)
|
23
|
+
else
|
24
|
+
Rake::LATE
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
# Are there any prerequisites with a later time than the given time stamp?
|
31
|
+
def out_of_date?(stamp)
|
32
|
+
@prerequisites.any? { |n| application[n, @scope].timestamp > stamp }
|
33
|
+
end
|
34
|
+
|
35
|
+
# ----------------------------------------------------------------
|
36
|
+
# Task class methods.
|
37
|
+
#
|
38
|
+
class << self
|
39
|
+
# Apply the scope to the task name according to the rules for this kind
|
40
|
+
# of task. File based tasks ignore the scope when creating the name.
|
41
|
+
def scope_name(scope, task_name)
|
42
|
+
Rake.from_pathname(task_name)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
require "rbconfig"
|
2
|
+
require "fileutils"
|
3
|
+
|
4
|
+
#--
|
5
|
+
# This a FileUtils extension that defines several additional commands to be
|
6
|
+
# added to the FileUtils utility functions.
|
7
|
+
module FileUtils
|
8
|
+
# Path to the currently running Ruby program
|
9
|
+
RUBY = ENV["RUBY"] || File.join(
|
10
|
+
RbConfig::CONFIG["bindir"],
|
11
|
+
RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]).
|
12
|
+
sub(/.*\s.*/m, '"\&"')
|
13
|
+
|
14
|
+
# Run the system command +cmd+. If multiple arguments are given the command
|
15
|
+
# is run directly (without the shell, same semantics as Kernel::exec and
|
16
|
+
# Kernel::system).
|
17
|
+
#
|
18
|
+
# It is recommended you use the multiple argument form over interpolating
|
19
|
+
# user input for both usability and security reasons. With the multiple
|
20
|
+
# argument form you can easily process files with spaces or other shell
|
21
|
+
# reserved characters in them. With the multiple argument form your rake
|
22
|
+
# tasks are not vulnerable to users providing an argument like
|
23
|
+
# <code>; rm # -rf /</code>.
|
24
|
+
#
|
25
|
+
# If a block is given, upon command completion the block is called with an
|
26
|
+
# OK flag (true on a zero exit status) and a Process::Status object.
|
27
|
+
# Without a block a RuntimeError is raised when the command exits non-zero.
|
28
|
+
#
|
29
|
+
# Examples:
|
30
|
+
#
|
31
|
+
# sh 'ls -ltr'
|
32
|
+
#
|
33
|
+
# sh 'ls', 'file with spaces'
|
34
|
+
#
|
35
|
+
# # check exit status after command runs
|
36
|
+
# sh %{grep pattern file} do |ok, res|
|
37
|
+
# if ! ok
|
38
|
+
# puts "pattern not found (status = #{res.exitstatus})"
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
#
|
42
|
+
def sh(*cmd, &block)
|
43
|
+
options = (Hash === cmd.last) ? cmd.pop : {}
|
44
|
+
shell_runner = block_given? ? block : create_shell_runner(cmd)
|
45
|
+
|
46
|
+
set_verbose_option(options)
|
47
|
+
verbose = options.delete :verbose
|
48
|
+
noop = options.delete(:noop) || Rake::FileUtilsExt.nowrite_flag
|
49
|
+
|
50
|
+
Rake.rake_output_message sh_show_command cmd if verbose
|
51
|
+
|
52
|
+
unless noop
|
53
|
+
res = system(*cmd, options)
|
54
|
+
status = $?
|
55
|
+
status = Rake::PseudoStatus.new(1) if !res && status.nil?
|
56
|
+
shell_runner.call(res, status)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def create_shell_runner(cmd) # :nodoc:
|
61
|
+
show_command = sh_show_command cmd
|
62
|
+
show_command = show_command[0, 42] + "..." unless $trace
|
63
|
+
|
64
|
+
lambda do |ok, status|
|
65
|
+
ok or
|
66
|
+
fail "Command failed with status (#{status.exitstatus}): " +
|
67
|
+
"[#{show_command}]"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
private :create_shell_runner
|
71
|
+
|
72
|
+
def sh_show_command(cmd) # :nodoc:
|
73
|
+
cmd = cmd.dup
|
74
|
+
|
75
|
+
if Hash === cmd.first
|
76
|
+
env = cmd.first
|
77
|
+
env = env.map { |name, value| "#{name}=#{value}" }.join " "
|
78
|
+
cmd[0] = env
|
79
|
+
end
|
80
|
+
|
81
|
+
cmd.join " "
|
82
|
+
end
|
83
|
+
private :sh_show_command
|
84
|
+
|
85
|
+
def set_verbose_option(options) # :nodoc:
|
86
|
+
unless options.key? :verbose
|
87
|
+
options[:verbose] =
|
88
|
+
(Rake::FileUtilsExt.verbose_flag == Rake::FileUtilsExt::DEFAULT) ||
|
89
|
+
Rake::FileUtilsExt.verbose_flag
|
90
|
+
end
|
91
|
+
end
|
92
|
+
private :set_verbose_option
|
93
|
+
|
94
|
+
# Run a Ruby interpreter with the given arguments.
|
95
|
+
#
|
96
|
+
# Example:
|
97
|
+
# ruby %{-pe '$_.upcase!' <README}
|
98
|
+
#
|
99
|
+
def ruby(*args, &block)
|
100
|
+
options = (Hash === args.last) ? args.pop : {}
|
101
|
+
if args.length > 1
|
102
|
+
sh(*([RUBY] + args + [options]), &block)
|
103
|
+
else
|
104
|
+
sh("#{RUBY} #{args.first}", options, &block)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
LN_SUPPORTED = [true]
|
109
|
+
|
110
|
+
# Attempt to do a normal file link, but fall back to a copy if the link
|
111
|
+
# fails.
|
112
|
+
def safe_ln(*args)
|
113
|
+
if ! LN_SUPPORTED[0]
|
114
|
+
cp(*args)
|
115
|
+
else
|
116
|
+
begin
|
117
|
+
ln(*args)
|
118
|
+
rescue StandardError, NotImplementedError
|
119
|
+
LN_SUPPORTED[0] = false
|
120
|
+
cp(*args)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# Split a file path into individual directory names.
|
126
|
+
#
|
127
|
+
# Example:
|
128
|
+
# split_all("a/b/c") => ['a', 'b', 'c']
|
129
|
+
#
|
130
|
+
def split_all(path)
|
131
|
+
head, tail = File.split(path)
|
132
|
+
return [tail] if head == "." || tail == "/"
|
133
|
+
return [head, tail] if head == "/"
|
134
|
+
return split_all(head) + [tail]
|
135
|
+
end
|
136
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
require "rake/file_utils"
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
#
|
5
|
+
# FileUtilsExt provides a custom version of the FileUtils methods
|
6
|
+
# that respond to the <tt>verbose</tt> and <tt>nowrite</tt>
|
7
|
+
# commands.
|
8
|
+
#
|
9
|
+
module FileUtilsExt
|
10
|
+
include FileUtils
|
11
|
+
|
12
|
+
class << self
|
13
|
+
attr_accessor :verbose_flag, :nowrite_flag
|
14
|
+
end
|
15
|
+
|
16
|
+
DEFAULT = Object.new
|
17
|
+
|
18
|
+
FileUtilsExt.verbose_flag = DEFAULT
|
19
|
+
FileUtilsExt.nowrite_flag = false
|
20
|
+
|
21
|
+
FileUtils.commands.each do |name|
|
22
|
+
opts = FileUtils.options_of name
|
23
|
+
default_options = []
|
24
|
+
if opts.include?("verbose")
|
25
|
+
default_options << ":verbose => FileUtilsExt.verbose_flag"
|
26
|
+
end
|
27
|
+
if opts.include?("noop")
|
28
|
+
default_options << ":noop => FileUtilsExt.nowrite_flag"
|
29
|
+
end
|
30
|
+
|
31
|
+
next if default_options.empty?
|
32
|
+
module_eval(<<-EOS, __FILE__, __LINE__ + 1)
|
33
|
+
def #{name}( *args, &block )
|
34
|
+
super(
|
35
|
+
*rake_merge_option(args,
|
36
|
+
#{default_options.join(', ')}
|
37
|
+
), &block)
|
38
|
+
end
|
39
|
+
EOS
|
40
|
+
end
|
41
|
+
|
42
|
+
# Get/set the verbose flag controlling output from the FileUtils
|
43
|
+
# utilities. If verbose is true, then the utility method is
|
44
|
+
# echoed to standard output.
|
45
|
+
#
|
46
|
+
# Examples:
|
47
|
+
# verbose # return the current value of the
|
48
|
+
# # verbose flag
|
49
|
+
# verbose(v) # set the verbose flag to _v_.
|
50
|
+
# verbose(v) { code } # Execute code with the verbose flag set
|
51
|
+
# # temporarily to _v_. Return to the
|
52
|
+
# # original value when code is done.
|
53
|
+
def verbose(value=nil)
|
54
|
+
oldvalue = FileUtilsExt.verbose_flag
|
55
|
+
FileUtilsExt.verbose_flag = value unless value.nil?
|
56
|
+
if block_given?
|
57
|
+
begin
|
58
|
+
yield
|
59
|
+
ensure
|
60
|
+
FileUtilsExt.verbose_flag = oldvalue
|
61
|
+
end
|
62
|
+
end
|
63
|
+
FileUtilsExt.verbose_flag
|
64
|
+
end
|
65
|
+
|
66
|
+
# Get/set the nowrite flag controlling output from the FileUtils
|
67
|
+
# utilities. If verbose is true, then the utility method is
|
68
|
+
# echoed to standard output.
|
69
|
+
#
|
70
|
+
# Examples:
|
71
|
+
# nowrite # return the current value of the
|
72
|
+
# # nowrite flag
|
73
|
+
# nowrite(v) # set the nowrite flag to _v_.
|
74
|
+
# nowrite(v) { code } # Execute code with the nowrite flag set
|
75
|
+
# # temporarily to _v_. Return to the
|
76
|
+
# # original value when code is done.
|
77
|
+
def nowrite(value=nil)
|
78
|
+
oldvalue = FileUtilsExt.nowrite_flag
|
79
|
+
FileUtilsExt.nowrite_flag = value unless value.nil?
|
80
|
+
if block_given?
|
81
|
+
begin
|
82
|
+
yield
|
83
|
+
ensure
|
84
|
+
FileUtilsExt.nowrite_flag = oldvalue
|
85
|
+
end
|
86
|
+
end
|
87
|
+
oldvalue
|
88
|
+
end
|
89
|
+
|
90
|
+
# Use this function to prevent potentially destructive ruby code
|
91
|
+
# from running when the :nowrite flag is set.
|
92
|
+
#
|
93
|
+
# Example:
|
94
|
+
#
|
95
|
+
# when_writing("Building Project") do
|
96
|
+
# project.build
|
97
|
+
# end
|
98
|
+
#
|
99
|
+
# The following code will build the project under normal
|
100
|
+
# conditions. If the nowrite(true) flag is set, then the example
|
101
|
+
# will print:
|
102
|
+
#
|
103
|
+
# DRYRUN: Building Project
|
104
|
+
#
|
105
|
+
# instead of actually building the project.
|
106
|
+
#
|
107
|
+
def when_writing(msg=nil)
|
108
|
+
if FileUtilsExt.nowrite_flag
|
109
|
+
$stderr.puts "DRYRUN: #{msg}" if msg
|
110
|
+
else
|
111
|
+
yield
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# Merge the given options with the default values.
|
116
|
+
def rake_merge_option(args, defaults)
|
117
|
+
if Hash === args.last
|
118
|
+
defaults.update(args.last)
|
119
|
+
args.pop
|
120
|
+
end
|
121
|
+
args.push defaults
|
122
|
+
args
|
123
|
+
end
|
124
|
+
|
125
|
+
# Send the message to the default rake output (which is $stderr).
|
126
|
+
def rake_output_message(message)
|
127
|
+
$stderr.puts(message)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Check that the options do not contain options not listed in
|
131
|
+
# +optdecl+. An ArgumentError exception is thrown if non-declared
|
132
|
+
# options are found.
|
133
|
+
def rake_check_options(options, *optdecl)
|
134
|
+
h = options.dup
|
135
|
+
optdecl.each do |name|
|
136
|
+
h.delete name
|
137
|
+
end
|
138
|
+
raise ArgumentError, "no such option: #{h.keys.join(' ')}" unless
|
139
|
+
h.empty?
|
140
|
+
end
|
141
|
+
|
142
|
+
extend self
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# InvocationChain tracks the chain of task invocations to detect
|
4
|
+
# circular dependencies.
|
5
|
+
class InvocationChain < LinkedList
|
6
|
+
|
7
|
+
# Is the invocation already in the chain?
|
8
|
+
def member?(invocation)
|
9
|
+
head == invocation || tail.member?(invocation)
|
10
|
+
end
|
11
|
+
|
12
|
+
# Append an invocation to the chain of invocations. It is an error
|
13
|
+
# if the invocation already listed.
|
14
|
+
def append(invocation)
|
15
|
+
if member?(invocation)
|
16
|
+
fail RuntimeError, "Circular dependency detected: #{to_s} => #{invocation}"
|
17
|
+
end
|
18
|
+
conj(invocation)
|
19
|
+
end
|
20
|
+
|
21
|
+
# Convert to string, ie: TOP => invocation => invocation
|
22
|
+
def to_s
|
23
|
+
"#{prefix}#{head}"
|
24
|
+
end
|
25
|
+
|
26
|
+
# Class level append.
|
27
|
+
def self.append(invocation, chain)
|
28
|
+
chain.append(invocation)
|
29
|
+
end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def prefix
|
34
|
+
"#{tail} => "
|
35
|
+
end
|
36
|
+
|
37
|
+
# Null object for an empty chain.
|
38
|
+
class EmptyInvocationChain < LinkedList::EmptyLinkedList
|
39
|
+
@parent = InvocationChain
|
40
|
+
|
41
|
+
def member?(obj)
|
42
|
+
false
|
43
|
+
end
|
44
|
+
|
45
|
+
def append(invocation)
|
46
|
+
conj(invocation)
|
47
|
+
end
|
48
|
+
|
49
|
+
def to_s
|
50
|
+
"TOP"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
EMPTY = EmptyInvocationChain.new
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Rake
|
2
|
+
module InvocationExceptionMixin
|
3
|
+
# Return the invocation chain (list of Rake tasks) that were in
|
4
|
+
# effect when this exception was detected by rake. May be null if
|
5
|
+
# no tasks were active.
|
6
|
+
def chain
|
7
|
+
@rake_invocation_chain ||= nil
|
8
|
+
end
|
9
|
+
|
10
|
+
# Set the invocation chain in effect when this exception was
|
11
|
+
# detected.
|
12
|
+
def chain=(value)
|
13
|
+
@rake_invocation_chain = value
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Rake
|
2
|
+
# LateTime is a fake timestamp that occurs _after_ any other time value.
|
3
|
+
class LateTime
|
4
|
+
include Comparable
|
5
|
+
include Singleton
|
6
|
+
|
7
|
+
def <=>(other)
|
8
|
+
1
|
9
|
+
end
|
10
|
+
|
11
|
+
def to_s
|
12
|
+
"<LATE TIME>"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
LATE = LateTime.instance
|
17
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Polylithic linked list structure used to implement several data
|
4
|
+
# structures in Rake.
|
5
|
+
class LinkedList
|
6
|
+
include Enumerable
|
7
|
+
attr_reader :head, :tail
|
8
|
+
|
9
|
+
# Polymorphically add a new element to the head of a list. The
|
10
|
+
# type of head node will be the same list type as the tail.
|
11
|
+
def conj(item)
|
12
|
+
self.class.cons(item, self)
|
13
|
+
end
|
14
|
+
|
15
|
+
# Is the list empty?
|
16
|
+
# .make guards against a list being empty making any instantiated LinkedList
|
17
|
+
# object not empty by default
|
18
|
+
# You should consider overriding this method if you implement your own .make method
|
19
|
+
def empty?
|
20
|
+
false
|
21
|
+
end
|
22
|
+
|
23
|
+
# Lists are structurally equivalent.
|
24
|
+
def ==(other)
|
25
|
+
current = self
|
26
|
+
while !current.empty? && !other.empty?
|
27
|
+
return false if current.head != other.head
|
28
|
+
current = current.tail
|
29
|
+
other = other.tail
|
30
|
+
end
|
31
|
+
current.empty? && other.empty?
|
32
|
+
end
|
33
|
+
|
34
|
+
# Convert to string: LL(item, item...)
|
35
|
+
def to_s
|
36
|
+
items = map(&:to_s).join(", ")
|
37
|
+
"LL(#{items})"
|
38
|
+
end
|
39
|
+
|
40
|
+
# Same as +to_s+, but with inspected items.
|
41
|
+
def inspect
|
42
|
+
items = map(&:inspect).join(", ")
|
43
|
+
"LL(#{items})"
|
44
|
+
end
|
45
|
+
|
46
|
+
# For each item in the list.
|
47
|
+
def each
|
48
|
+
current = self
|
49
|
+
while !current.empty?
|
50
|
+
yield(current.head)
|
51
|
+
current = current.tail
|
52
|
+
end
|
53
|
+
self
|
54
|
+
end
|
55
|
+
|
56
|
+
# Make a list out of the given arguments. This method is
|
57
|
+
# polymorphic
|
58
|
+
def self.make(*args)
|
59
|
+
# return an EmptyLinkedList if there are no arguments
|
60
|
+
return empty if !args || args.empty?
|
61
|
+
|
62
|
+
# build a LinkedList by starting at the tail and iterating
|
63
|
+
# through each argument
|
64
|
+
# inject takes an EmptyLinkedList to start
|
65
|
+
args.reverse.inject(empty) do |list, item|
|
66
|
+
list = cons(item, list)
|
67
|
+
list # return the newly created list for each item in the block
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Cons a new head onto the tail list.
|
72
|
+
def self.cons(head, tail)
|
73
|
+
new(head, tail)
|
74
|
+
end
|
75
|
+
|
76
|
+
# The standard empty list class for the given LinkedList class.
|
77
|
+
def self.empty
|
78
|
+
self::EMPTY
|
79
|
+
end
|
80
|
+
|
81
|
+
protected
|
82
|
+
|
83
|
+
def initialize(head, tail=EMPTY)
|
84
|
+
@head = head
|
85
|
+
@tail = tail
|
86
|
+
end
|
87
|
+
|
88
|
+
# Represent an empty list, using the Null Object Pattern.
|
89
|
+
#
|
90
|
+
# When inheriting from the LinkedList class, you should implement
|
91
|
+
# a type specific Empty class as well. Make sure you set the class
|
92
|
+
# instance variable @parent to the associated list class (this
|
93
|
+
# allows conj, cons and make to work polymorphically).
|
94
|
+
class EmptyLinkedList < LinkedList
|
95
|
+
@parent = LinkedList
|
96
|
+
|
97
|
+
def initialize
|
98
|
+
end
|
99
|
+
|
100
|
+
def empty?
|
101
|
+
true
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.cons(head, tail)
|
105
|
+
@parent.cons(head, tail)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
EMPTY = EmptyLinkedList.new
|
110
|
+
end
|
111
|
+
end
|