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,53 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Makefile loader to be used with the import file loader. Use this to
|
4
|
+
# import dependencies from make dependency tools:
|
5
|
+
#
|
6
|
+
# require 'rake/loaders/makefile'
|
7
|
+
#
|
8
|
+
# file ".depends.mf" => [SRC_LIST] do |t|
|
9
|
+
# sh "makedepend -f- -- #{CFLAGS} -- #{t.prerequisites} > #{t.name}"
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# import ".depends.mf"
|
13
|
+
#
|
14
|
+
# See {Importing Dependencies}[link:doc/rakefile_rdoc.html#label-Importing+Dependencies]
|
15
|
+
# for further details.
|
16
|
+
|
17
|
+
class MakefileLoader
|
18
|
+
include Rake::DSL
|
19
|
+
|
20
|
+
SPACE_MARK = "\0" # :nodoc:
|
21
|
+
|
22
|
+
# Load the makefile dependencies in +fn+.
|
23
|
+
def load(fn) # :nodoc:
|
24
|
+
lines = File.read fn
|
25
|
+
lines.gsub!(/\\ /, SPACE_MARK)
|
26
|
+
lines.gsub!(/#[^\n]*\n/m, "")
|
27
|
+
lines.gsub!(/\\\n/, " ")
|
28
|
+
lines.each_line do |line|
|
29
|
+
process_line(line)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
# Process one logical line of makefile data.
|
36
|
+
def process_line(line) # :nodoc:
|
37
|
+
file_tasks, args = line.split(":", 2)
|
38
|
+
return if args.nil?
|
39
|
+
dependents = args.split.map { |d| respace(d) }
|
40
|
+
file_tasks.scan(/\S+/) do |file_task|
|
41
|
+
file_task = respace(file_task)
|
42
|
+
file file_task => dependents
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def respace(str) # :nodoc:
|
47
|
+
str.tr SPACE_MARK, " "
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# Install the handler
|
52
|
+
Rake.application.add_loader("mf", MakefileLoader.new)
|
53
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Same as a regular task, but the immediate prerequisites are done in
|
4
|
+
# parallel using Ruby threads.
|
5
|
+
#
|
6
|
+
class MultiTask < Task
|
7
|
+
|
8
|
+
# Same as invoke, but explicitly pass a call chain to detect
|
9
|
+
# circular dependencies. This is largely copied from Rake::Task
|
10
|
+
# but has been updated such that if multiple tasks depend on this
|
11
|
+
# one in parallel, they will all fail if the first execution of
|
12
|
+
# this task fails.
|
13
|
+
def invoke_with_call_chain(task_args, invocation_chain)
|
14
|
+
new_chain = Rake::InvocationChain.append(self, invocation_chain)
|
15
|
+
@lock.synchronize do
|
16
|
+
begin
|
17
|
+
if @already_invoked
|
18
|
+
if @invocation_exception
|
19
|
+
if application.options.trace
|
20
|
+
application.trace "** Previous invocation of #{name} failed #{format_trace_flags}"
|
21
|
+
end
|
22
|
+
raise @invocation_exception
|
23
|
+
else
|
24
|
+
return
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
if application.options.trace
|
29
|
+
application.trace "** Invoke #{name} #{format_trace_flags}"
|
30
|
+
end
|
31
|
+
@already_invoked = true
|
32
|
+
|
33
|
+
invoke_prerequisites(task_args, new_chain)
|
34
|
+
execute(task_args) if needed?
|
35
|
+
rescue Exception => ex
|
36
|
+
add_chain_to(ex, new_chain)
|
37
|
+
@invocation_exception = ex
|
38
|
+
raise
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
private
|
44
|
+
def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
|
45
|
+
invoke_prerequisites_concurrently(task_args, invocation_chain)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
##
|
2
|
+
# The NameSpace class will lookup task names in the scope defined by a
|
3
|
+
# +namespace+ command.
|
4
|
+
|
5
|
+
class Rake::NameSpace
|
6
|
+
|
7
|
+
##
|
8
|
+
# Create a namespace lookup object using the given task manager
|
9
|
+
# and the list of scopes.
|
10
|
+
|
11
|
+
def initialize(task_manager, scope_list)
|
12
|
+
@task_manager = task_manager
|
13
|
+
@scope = scope_list.dup
|
14
|
+
end
|
15
|
+
|
16
|
+
##
|
17
|
+
# Lookup a task named +name+ in the namespace.
|
18
|
+
|
19
|
+
def [](name)
|
20
|
+
@task_manager.lookup(name, @scope)
|
21
|
+
end
|
22
|
+
|
23
|
+
##
|
24
|
+
# The scope of the namespace (a LinkedList)
|
25
|
+
|
26
|
+
def scope
|
27
|
+
@scope.dup
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# Return the list of tasks defined in this and nested namespaces.
|
32
|
+
|
33
|
+
def tasks
|
34
|
+
@task_manager.tasks_in_scope(@scope)
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1,210 @@
|
|
1
|
+
# Define a package task library to aid in the definition of
|
2
|
+
# redistributable package files.
|
3
|
+
|
4
|
+
require "rake"
|
5
|
+
require "rake/tasklib"
|
6
|
+
|
7
|
+
module Rake
|
8
|
+
|
9
|
+
# Create a packaging task that will package the project into
|
10
|
+
# distributable files (e.g zip archive or tar files).
|
11
|
+
#
|
12
|
+
# The PackageTask will create the following targets:
|
13
|
+
#
|
14
|
+
# +:package+ ::
|
15
|
+
# Create all the requested package files.
|
16
|
+
#
|
17
|
+
# +:clobber_package+ ::
|
18
|
+
# Delete all the package files. This target is automatically
|
19
|
+
# added to the main clobber target.
|
20
|
+
#
|
21
|
+
# +:repackage+ ::
|
22
|
+
# Rebuild the package files from scratch, even if they are not out
|
23
|
+
# of date.
|
24
|
+
#
|
25
|
+
# <tt>"<em>package_dir</em>/<em>name</em>-<em>version</em>.tgz"</tt> ::
|
26
|
+
# Create a gzipped tar package (if <em>need_tar</em> is true).
|
27
|
+
#
|
28
|
+
# <tt>"<em>package_dir</em>/<em>name</em>-<em>version</em>.tar.gz"</tt> ::
|
29
|
+
# Create a gzipped tar package (if <em>need_tar_gz</em> is true).
|
30
|
+
#
|
31
|
+
# <tt>"<em>package_dir</em>/<em>name</em>-<em>version</em>.tar.bz2"</tt> ::
|
32
|
+
# Create a bzip2'd tar package (if <em>need_tar_bz2</em> is true).
|
33
|
+
#
|
34
|
+
# <tt>"<em>package_dir</em>/<em>name</em>-<em>version</em>.zip"</tt> ::
|
35
|
+
# Create a zip package archive (if <em>need_zip</em> is true).
|
36
|
+
#
|
37
|
+
# Example:
|
38
|
+
#
|
39
|
+
# Rake::PackageTask.new("rake", "1.2.3") do |p|
|
40
|
+
# p.need_tar = true
|
41
|
+
# p.package_files.include("lib/**/*.rb")
|
42
|
+
# end
|
43
|
+
#
|
44
|
+
class PackageTask < TaskLib
|
45
|
+
# Name of the package (from the GEM Spec).
|
46
|
+
attr_accessor :name
|
47
|
+
|
48
|
+
# Version of the package (e.g. '1.3.2').
|
49
|
+
attr_accessor :version
|
50
|
+
|
51
|
+
# Directory used to store the package files (default is 'pkg').
|
52
|
+
attr_accessor :package_dir
|
53
|
+
|
54
|
+
# True if a gzipped tar file (tgz) should be produced (default is
|
55
|
+
# false).
|
56
|
+
attr_accessor :need_tar
|
57
|
+
|
58
|
+
# True if a gzipped tar file (tar.gz) should be produced (default
|
59
|
+
# is false).
|
60
|
+
attr_accessor :need_tar_gz
|
61
|
+
|
62
|
+
# True if a bzip2'd tar file (tar.bz2) should be produced (default
|
63
|
+
# is false).
|
64
|
+
attr_accessor :need_tar_bz2
|
65
|
+
|
66
|
+
# True if a xz'd tar file (tar.xz) should be produced (default is false)
|
67
|
+
attr_accessor :need_tar_xz
|
68
|
+
|
69
|
+
# True if a zip file should be produced (default is false)
|
70
|
+
attr_accessor :need_zip
|
71
|
+
|
72
|
+
# List of files to be included in the package.
|
73
|
+
attr_accessor :package_files
|
74
|
+
|
75
|
+
# Tar command for gzipped or bzip2ed archives. The default is 'tar'.
|
76
|
+
attr_accessor :tar_command
|
77
|
+
|
78
|
+
# Zip command for zipped archives. The default is 'zip'.
|
79
|
+
attr_accessor :zip_command
|
80
|
+
|
81
|
+
# Create a Package Task with the given name and version. Use +:noversion+
|
82
|
+
# as the version to build a package without a version or to provide a
|
83
|
+
# fully-versioned package name.
|
84
|
+
|
85
|
+
def initialize(name=nil, version=nil)
|
86
|
+
init(name, version)
|
87
|
+
yield self if block_given?
|
88
|
+
define unless name.nil?
|
89
|
+
end
|
90
|
+
|
91
|
+
# Initialization that bypasses the "yield self" and "define" step.
|
92
|
+
def init(name, version)
|
93
|
+
@name = name
|
94
|
+
@version = version
|
95
|
+
@package_files = Rake::FileList.new
|
96
|
+
@package_dir = "pkg"
|
97
|
+
@need_tar = false
|
98
|
+
@need_tar_gz = false
|
99
|
+
@need_tar_bz2 = false
|
100
|
+
@need_tar_xz = false
|
101
|
+
@need_zip = false
|
102
|
+
@tar_command = "tar"
|
103
|
+
@zip_command = "zip"
|
104
|
+
end
|
105
|
+
|
106
|
+
# Create the tasks defined by this task library.
|
107
|
+
def define
|
108
|
+
fail "Version required (or :noversion)" if @version.nil?
|
109
|
+
@version = nil if :noversion == @version
|
110
|
+
|
111
|
+
desc "Build all the packages"
|
112
|
+
task :package
|
113
|
+
|
114
|
+
desc "Force a rebuild of the package files"
|
115
|
+
task repackage: [:clobber_package, :package]
|
116
|
+
|
117
|
+
desc "Remove package products"
|
118
|
+
task :clobber_package do
|
119
|
+
rm_r package_dir rescue nil
|
120
|
+
end
|
121
|
+
|
122
|
+
task clobber: [:clobber_package]
|
123
|
+
|
124
|
+
[
|
125
|
+
[need_tar, tgz_file, "z"],
|
126
|
+
[need_tar_gz, tar_gz_file, "z"],
|
127
|
+
[need_tar_bz2, tar_bz2_file, "j"],
|
128
|
+
[need_tar_xz, tar_xz_file, "J"]
|
129
|
+
].each do |need, file, flag|
|
130
|
+
if need
|
131
|
+
task package: ["#{package_dir}/#{file}"]
|
132
|
+
file "#{package_dir}/#{file}" =>
|
133
|
+
[package_dir_path] + package_files do
|
134
|
+
chdir(package_dir) do
|
135
|
+
sh @tar_command, "#{flag}cvf", file, package_name
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
if need_zip
|
142
|
+
task package: ["#{package_dir}/#{zip_file}"]
|
143
|
+
file "#{package_dir}/#{zip_file}" =>
|
144
|
+
[package_dir_path] + package_files do
|
145
|
+
chdir(package_dir) do
|
146
|
+
sh @zip_command, "-r", zip_file, package_name
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
directory package_dir_path => @package_files do
|
152
|
+
@package_files.each do |fn|
|
153
|
+
f = File.join(package_dir_path, fn)
|
154
|
+
fdir = File.dirname(f)
|
155
|
+
mkdir_p(fdir) unless File.exist?(fdir)
|
156
|
+
if File.directory?(fn)
|
157
|
+
mkdir_p(f)
|
158
|
+
else
|
159
|
+
rm_f f
|
160
|
+
safe_ln(fn, f)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# The name of this package
|
168
|
+
|
169
|
+
def package_name
|
170
|
+
@version ? "#{@name}-#{@version}" : @name
|
171
|
+
end
|
172
|
+
|
173
|
+
# The directory this package will be built in
|
174
|
+
|
175
|
+
def package_dir_path
|
176
|
+
"#{package_dir}/#{package_name}"
|
177
|
+
end
|
178
|
+
|
179
|
+
# The package name with .tgz added
|
180
|
+
|
181
|
+
def tgz_file
|
182
|
+
"#{package_name}.tgz"
|
183
|
+
end
|
184
|
+
|
185
|
+
# The package name with .tar.gz added
|
186
|
+
|
187
|
+
def tar_gz_file
|
188
|
+
"#{package_name}.tar.gz"
|
189
|
+
end
|
190
|
+
|
191
|
+
# The package name with .tar.bz2 added
|
192
|
+
|
193
|
+
def tar_bz2_file
|
194
|
+
"#{package_name}.tar.bz2"
|
195
|
+
end
|
196
|
+
|
197
|
+
# The package name with .tar.xz added
|
198
|
+
|
199
|
+
def tar_xz_file
|
200
|
+
"#{package_name}.tar.xz"
|
201
|
+
end
|
202
|
+
|
203
|
+
# The package name with .zip added
|
204
|
+
|
205
|
+
def zip_file
|
206
|
+
"#{package_name}.zip"
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Defines a :phony task that you can use as a dependency. This allows
|
2
|
+
# file-based tasks to use non-file-based tasks as prerequisites
|
3
|
+
# without forcing them to rebuild.
|
4
|
+
#
|
5
|
+
# See FileTask#out_of_date? and Task#timestamp for more info.
|
6
|
+
|
7
|
+
require "rake"
|
8
|
+
|
9
|
+
task :phony
|
10
|
+
|
11
|
+
Rake::Task[:phony].tap do |task|
|
12
|
+
def task.timestamp # :nodoc:
|
13
|
+
Time.at 0
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Include PrivateReader to use +private_reader+.
|
4
|
+
module PrivateReader # :nodoc: all
|
5
|
+
|
6
|
+
def self.included(base)
|
7
|
+
base.extend(ClassMethods)
|
8
|
+
end
|
9
|
+
|
10
|
+
module ClassMethods
|
11
|
+
|
12
|
+
# Declare a list of private accessors
|
13
|
+
def private_reader(*names)
|
14
|
+
attr_reader(*names)
|
15
|
+
private(*names)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# A Promise object represents a promise to do work (a chore) in the
|
4
|
+
# future. The promise is created with a block and a list of
|
5
|
+
# arguments for the block. Calling value will return the value of
|
6
|
+
# the promised chore.
|
7
|
+
#
|
8
|
+
# Used by ThreadPool.
|
9
|
+
#
|
10
|
+
class Promise # :nodoc: all
|
11
|
+
NOT_SET = Object.new.freeze # :nodoc:
|
12
|
+
|
13
|
+
attr_accessor :recorder
|
14
|
+
|
15
|
+
# Create a promise to do the chore specified by the block.
|
16
|
+
def initialize(args, &block)
|
17
|
+
@mutex = Mutex.new
|
18
|
+
@result = NOT_SET
|
19
|
+
@error = NOT_SET
|
20
|
+
@args = args
|
21
|
+
@block = block
|
22
|
+
end
|
23
|
+
|
24
|
+
# Return the value of this promise.
|
25
|
+
#
|
26
|
+
# If the promised chore is not yet complete, then do the work
|
27
|
+
# synchronously. We will wait.
|
28
|
+
def value
|
29
|
+
unless complete?
|
30
|
+
stat :sleeping_on, item_id: object_id
|
31
|
+
@mutex.synchronize do
|
32
|
+
stat :has_lock_on, item_id: object_id
|
33
|
+
chore
|
34
|
+
stat :releasing_lock_on, item_id: object_id
|
35
|
+
end
|
36
|
+
end
|
37
|
+
error? ? raise(@error) : @result
|
38
|
+
end
|
39
|
+
|
40
|
+
# If no one else is working this promise, go ahead and do the chore.
|
41
|
+
def work
|
42
|
+
stat :attempting_lock_on, item_id: object_id
|
43
|
+
if @mutex.try_lock
|
44
|
+
stat :has_lock_on, item_id: object_id
|
45
|
+
chore
|
46
|
+
stat :releasing_lock_on, item_id: object_id
|
47
|
+
@mutex.unlock
|
48
|
+
else
|
49
|
+
stat :bailed_on, item_id: object_id
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
# Perform the chore promised
|
56
|
+
def chore
|
57
|
+
if complete?
|
58
|
+
stat :found_completed, item_id: object_id
|
59
|
+
return
|
60
|
+
end
|
61
|
+
stat :will_execute, item_id: object_id
|
62
|
+
begin
|
63
|
+
@result = @block.call(*@args)
|
64
|
+
rescue Exception => e
|
65
|
+
@error = e
|
66
|
+
end
|
67
|
+
stat :did_execute, item_id: object_id
|
68
|
+
discard
|
69
|
+
end
|
70
|
+
|
71
|
+
# Do we have a result for the promise
|
72
|
+
def result?
|
73
|
+
! @result.equal?(NOT_SET)
|
74
|
+
end
|
75
|
+
|
76
|
+
# Did the promise throw an error
|
77
|
+
def error?
|
78
|
+
! @error.equal?(NOT_SET)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Are we done with the promise
|
82
|
+
def complete?
|
83
|
+
result? || error?
|
84
|
+
end
|
85
|
+
|
86
|
+
# free up these items for the GC
|
87
|
+
def discard
|
88
|
+
@args = nil
|
89
|
+
@block = nil
|
90
|
+
end
|
91
|
+
|
92
|
+
# Record execution statistics if there is a recorder
|
93
|
+
def stat(*args)
|
94
|
+
@recorder.call(*args) if @recorder
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|