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,48 @@
|
|
1
|
+
require "rake/private_reader"
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
|
5
|
+
class ThreadHistoryDisplay # :nodoc: all
|
6
|
+
include Rake::PrivateReader
|
7
|
+
|
8
|
+
private_reader :stats, :items, :threads
|
9
|
+
|
10
|
+
def initialize(stats)
|
11
|
+
@stats = stats
|
12
|
+
@items = { _seq_: 1 }
|
13
|
+
@threads = { _seq_: "A" }
|
14
|
+
end
|
15
|
+
|
16
|
+
def show
|
17
|
+
puts "Job History:"
|
18
|
+
stats.each do |stat|
|
19
|
+
stat[:data] ||= {}
|
20
|
+
rename(stat, :thread, threads)
|
21
|
+
rename(stat[:data], :item_id, items)
|
22
|
+
rename(stat[:data], :new_thread, threads)
|
23
|
+
rename(stat[:data], :deleted_thread, threads)
|
24
|
+
printf("%8d %2s %-20s %s\n",
|
25
|
+
(stat[:time] * 1_000_000).round,
|
26
|
+
stat[:thread],
|
27
|
+
stat[:event],
|
28
|
+
stat[:data].map do |k, v| "#{k}:#{v}" end.join(" "))
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def rename(hash, key, renames)
|
35
|
+
if hash && hash[key]
|
36
|
+
original = hash[key]
|
37
|
+
value = renames[original]
|
38
|
+
unless value
|
39
|
+
value = renames[:_seq_]
|
40
|
+
renames[:_seq_] = renames[:_seq_].succ
|
41
|
+
renames[original] = value
|
42
|
+
end
|
43
|
+
hash[key] = value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
require "set"
|
2
|
+
|
3
|
+
require "rake/promise"
|
4
|
+
|
5
|
+
module Rake
|
6
|
+
|
7
|
+
class ThreadPool # :nodoc: all
|
8
|
+
|
9
|
+
# Creates a ThreadPool object. The +thread_count+ parameter is the size
|
10
|
+
# of the pool.
|
11
|
+
def initialize(thread_count)
|
12
|
+
@max_active_threads = [thread_count, 0].max
|
13
|
+
@threads = Set.new
|
14
|
+
@threads_mon = Monitor.new
|
15
|
+
@queue = Queue.new
|
16
|
+
@join_cond = @threads_mon.new_cond
|
17
|
+
|
18
|
+
@history_start_time = nil
|
19
|
+
@history = []
|
20
|
+
@history_mon = Monitor.new
|
21
|
+
@total_threads_in_play = 0
|
22
|
+
end
|
23
|
+
|
24
|
+
# Creates a future executed by the +ThreadPool+.
|
25
|
+
#
|
26
|
+
# The args are passed to the block when executing (similarly to
|
27
|
+
# Thread#new) The return value is an object representing
|
28
|
+
# a future which has been created and added to the queue in the
|
29
|
+
# pool. Sending #value to the object will sleep the
|
30
|
+
# current thread until the future is finished and will return the
|
31
|
+
# result (or raise an exception thrown from the future)
|
32
|
+
def future(*args, &block)
|
33
|
+
promise = Promise.new(args, &block)
|
34
|
+
promise.recorder = lambda { |*stats| stat(*stats) }
|
35
|
+
|
36
|
+
@queue.enq promise
|
37
|
+
stat :queued, item_id: promise.object_id
|
38
|
+
start_thread
|
39
|
+
promise
|
40
|
+
end
|
41
|
+
|
42
|
+
# Waits until the queue of futures is empty and all threads have exited.
|
43
|
+
def join
|
44
|
+
@threads_mon.synchronize do
|
45
|
+
begin
|
46
|
+
stat :joining
|
47
|
+
@join_cond.wait unless @threads.empty?
|
48
|
+
stat :joined
|
49
|
+
rescue Exception => e
|
50
|
+
stat :joined
|
51
|
+
$stderr.puts e
|
52
|
+
$stderr.print "Queue contains #{@queue.size} items. " +
|
53
|
+
"Thread pool contains #{@threads.count} threads\n"
|
54
|
+
$stderr.print "Current Thread #{Thread.current} status = " +
|
55
|
+
"#{Thread.current.status}\n"
|
56
|
+
$stderr.puts e.backtrace.join("\n")
|
57
|
+
@threads.each do |t|
|
58
|
+
$stderr.print "Thread #{t} status = #{t.status}\n"
|
59
|
+
$stderr.puts t.backtrace.join("\n")
|
60
|
+
end
|
61
|
+
raise e
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Enable the gathering of history events.
|
67
|
+
def gather_history #:nodoc:
|
68
|
+
@history_start_time = Time.now if @history_start_time.nil?
|
69
|
+
end
|
70
|
+
|
71
|
+
# Return a array of history events for the thread pool.
|
72
|
+
#
|
73
|
+
# History gathering must be enabled to be able to see the events
|
74
|
+
# (see #gather_history). Best to call this when the job is
|
75
|
+
# complete (i.e. after ThreadPool#join is called).
|
76
|
+
def history # :nodoc:
|
77
|
+
@history_mon.synchronize { @history.dup }.
|
78
|
+
sort_by { |i| i[:time] }.
|
79
|
+
each { |i| i[:time] -= @history_start_time }
|
80
|
+
end
|
81
|
+
|
82
|
+
# Return a hash of always collected statistics for the thread pool.
|
83
|
+
def statistics # :nodoc:
|
84
|
+
{
|
85
|
+
total_threads_in_play: @total_threads_in_play,
|
86
|
+
max_active_threads: @max_active_threads,
|
87
|
+
}
|
88
|
+
end
|
89
|
+
|
90
|
+
private
|
91
|
+
|
92
|
+
# processes one item on the queue. Returns true if there was an
|
93
|
+
# item to process, false if there was no item
|
94
|
+
def process_queue_item #:nodoc:
|
95
|
+
return false if @queue.empty?
|
96
|
+
|
97
|
+
# Even though we just asked if the queue was empty, it
|
98
|
+
# still could have had an item which by this statement
|
99
|
+
# is now gone. For this reason we pass true to Queue#deq
|
100
|
+
# because we will sleep indefinitely if it is empty.
|
101
|
+
promise = @queue.deq(true)
|
102
|
+
stat :dequeued, item_id: promise.object_id
|
103
|
+
promise.work
|
104
|
+
return true
|
105
|
+
|
106
|
+
rescue ThreadError # this means the queue is empty
|
107
|
+
false
|
108
|
+
end
|
109
|
+
|
110
|
+
def safe_thread_count
|
111
|
+
@threads_mon.synchronize do
|
112
|
+
@threads.count
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
def start_thread # :nodoc:
|
117
|
+
@threads_mon.synchronize do
|
118
|
+
next unless @threads.count < @max_active_threads
|
119
|
+
|
120
|
+
t = Thread.new do
|
121
|
+
begin
|
122
|
+
while safe_thread_count <= @max_active_threads
|
123
|
+
break unless process_queue_item
|
124
|
+
end
|
125
|
+
ensure
|
126
|
+
@threads_mon.synchronize do
|
127
|
+
@threads.delete Thread.current
|
128
|
+
stat :ended, thread_count: @threads.count
|
129
|
+
@join_cond.broadcast if @threads.empty?
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
@threads << t
|
135
|
+
stat(
|
136
|
+
:spawned,
|
137
|
+
new_thread: t.object_id,
|
138
|
+
thread_count: @threads.count)
|
139
|
+
@total_threads_in_play = @threads.count if
|
140
|
+
@threads.count > @total_threads_in_play
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
def stat(event, data=nil) # :nodoc:
|
145
|
+
return if @history_start_time.nil?
|
146
|
+
info = {
|
147
|
+
event: event,
|
148
|
+
data: data,
|
149
|
+
time: Time.now,
|
150
|
+
thread: Thread.current.object_id,
|
151
|
+
}
|
152
|
+
@history_mon.synchronize { @history << info }
|
153
|
+
end
|
154
|
+
|
155
|
+
# for testing only
|
156
|
+
|
157
|
+
def __queue__ # :nodoc:
|
158
|
+
@queue
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Rake
|
2
|
+
module TraceOutput # :nodoc: all
|
3
|
+
|
4
|
+
# Write trace output to output stream +out+.
|
5
|
+
#
|
6
|
+
# The write is done as a single IO call (to print) to lessen the
|
7
|
+
# chance that the trace output is interrupted by other tasks also
|
8
|
+
# producing output.
|
9
|
+
def trace_on(out, *strings)
|
10
|
+
sep = $\ || "\n"
|
11
|
+
if strings.empty?
|
12
|
+
output = sep
|
13
|
+
else
|
14
|
+
output = strings.map { |s|
|
15
|
+
next if s.nil?
|
16
|
+
s.end_with?(sep) ? s : s + sep
|
17
|
+
}.join
|
18
|
+
end
|
19
|
+
out.print(output)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require "rbconfig"
|
2
|
+
|
3
|
+
module Rake
|
4
|
+
# Win 32 interface methods for Rake. Windows specific functionality
|
5
|
+
# will be placed here to collect that knowledge in one spot.
|
6
|
+
module Win32 # :nodoc: all
|
7
|
+
|
8
|
+
# Error indicating a problem in locating the home directory on a
|
9
|
+
# Win32 system.
|
10
|
+
class Win32HomeError < RuntimeError
|
11
|
+
end
|
12
|
+
|
13
|
+
class << self
|
14
|
+
# True if running on a windows system.
|
15
|
+
def windows?
|
16
|
+
RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
|
17
|
+
end
|
18
|
+
|
19
|
+
# The standard directory containing system wide rake files on
|
20
|
+
# Win 32 systems. Try the following environment variables (in
|
21
|
+
# order):
|
22
|
+
#
|
23
|
+
# * HOME
|
24
|
+
# * HOMEDRIVE + HOMEPATH
|
25
|
+
# * APPDATA
|
26
|
+
# * USERPROFILE
|
27
|
+
#
|
28
|
+
# If the above are not defined, the return nil.
|
29
|
+
def win32_system_dir #:nodoc:
|
30
|
+
win32_shared_path = ENV["HOME"]
|
31
|
+
if win32_shared_path.nil? && ENV["HOMEDRIVE"] && ENV["HOMEPATH"]
|
32
|
+
win32_shared_path = ENV["HOMEDRIVE"] + ENV["HOMEPATH"]
|
33
|
+
end
|
34
|
+
|
35
|
+
win32_shared_path ||= ENV["APPDATA"]
|
36
|
+
win32_shared_path ||= ENV["USERPROFILE"]
|
37
|
+
raise Win32HomeError,
|
38
|
+
"Unable to determine home path environment variable." if
|
39
|
+
win32_shared_path.nil? or win32_shared_path.empty?
|
40
|
+
normalize(File.join(win32_shared_path, "Rake"))
|
41
|
+
end
|
42
|
+
|
43
|
+
# Normalize a win32 path so that the slashes are all forward slashes.
|
44
|
+
def normalize(path)
|
45
|
+
path.gsub(/\\/, "/")
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2
|
+
require 'rake/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rake".freeze
|
6
|
+
s.version = Rake::VERSION
|
7
|
+
s.date = "2016-12-06"
|
8
|
+
s.authors = ["Hiroshi SHIBATA".freeze, "Eric Hodel".freeze, "Jim Weirich".freeze]
|
9
|
+
s.email = ["hsbt@ruby-lang.org".freeze, "drbrain@segment7.net".freeze, "".freeze]
|
10
|
+
|
11
|
+
s.summary = "Rake is a Make-like program implemented in Ruby".freeze
|
12
|
+
s.description = <<-DESCRIPTION
|
13
|
+
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
|
14
|
+
specified in standard Ruby syntax.
|
15
|
+
Rake has the following features:
|
16
|
+
* Rakefiles (rake's version of Makefiles) are completely defined in standard Ruby syntax.
|
17
|
+
No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?)
|
18
|
+
* Users can specify tasks with prerequisites.
|
19
|
+
* Rake supports rule patterns to synthesize implicit tasks.
|
20
|
+
* Flexible FileLists that act like arrays but know about manipulating file names and paths.
|
21
|
+
* Supports parallel execution of tasks.
|
22
|
+
DESCRIPTION
|
23
|
+
s.homepage = "https://github.com/ruby/rake".freeze
|
24
|
+
s.licenses = ["MIT".freeze]
|
25
|
+
|
26
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
s.bindir = "exe"
|
28
|
+
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
s.require_paths = ["lib".freeze]
|
30
|
+
|
31
|
+
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3".freeze)
|
32
|
+
s.rubygems_version = "2.6.1".freeze
|
33
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.2".freeze)
|
34
|
+
s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
|
35
|
+
|
36
|
+
s.add_development_dependency(%q<bundler>.freeze)
|
37
|
+
s.add_development_dependency(%q<minitest>.freeze)
|
38
|
+
s.add_development_dependency(%q<rdoc>.freeze)
|
39
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
language: ruby
|
2
|
+
script: "script/test_all"
|
3
|
+
bundler_args: "--standalone --binstubs --without documentation"
|
4
|
+
rvm:
|
5
|
+
- 1.8.7
|
6
|
+
- 1.9.2
|
7
|
+
- 1.9.3
|
8
|
+
- 2.0.0
|
9
|
+
- 2.1.0
|
10
|
+
- 2.1.1
|
11
|
+
- 2.1.2
|
12
|
+
- 2.2.0
|
13
|
+
- ruby-head
|
14
|
+
- ree
|
15
|
+
- jruby-18mode
|
16
|
+
- jruby
|
17
|
+
- jruby-head
|
18
|
+
- rbx
|
19
|
+
matrix:
|
20
|
+
allow_failures:
|
21
|
+
- rvm: jruby-head
|
22
|
+
- rvm: ruby-head
|
23
|
+
- rvm: rbx
|
24
|
+
|
@@ -0,0 +1,49 @@
|
|
1
|
+
### 1.2.0 / 2015-02-06
|
2
|
+
[full changelog](http://github.com/rspec/rspec-its/compare/v1.1.0...v1.2.0)
|
3
|
+
|
4
|
+
Breaking Changes:
|
5
|
+
|
6
|
+
Enhancements:
|
7
|
+
* Introduced `are_expected` as alias for `is_expected`
|
8
|
+
|
9
|
+
Bug fixes:
|
10
|
+
* Restored ability to pass key/value metadata parameters, broken by https://github.com/rspec/rspec-its/commit/71307bc7051f482bfc2798daa390bee9142b0d5a
|
11
|
+
|
12
|
+
### 1.1.0 / 2014-04-13
|
13
|
+
[full changelog](http://github.com/rspec/rspec-its/compare/v1.0.1...v1.1.0)
|
14
|
+
|
15
|
+
Breaking Changes:
|
16
|
+
|
17
|
+
Enhancements:
|
18
|
+
* For hashes, multiple array elements are treated as successive access keys
|
19
|
+
* Metadata arguments are now supported
|
20
|
+
|
21
|
+
Bug fixes:
|
22
|
+
* Enable `its` example selection by line number in command line
|
23
|
+
|
24
|
+
|
25
|
+
### 1.0.1 / 2014-04-13
|
26
|
+
[full changelog](http://github.com/rspec/rspec-its/compare/v1.0.0...v1.0.1)
|
27
|
+
|
28
|
+
Bug fixes:
|
29
|
+
* Maintain implicit subject in all cases (addresses problem with latest RSpec 3 version)
|
30
|
+
|
31
|
+
### 1.0.0 / 2014-02-07
|
32
|
+
[full changelog](http://github.com/rspec/rspec-its/compare/v1.0.0.pre...v1.0.0)
|
33
|
+
|
34
|
+
Breaking Changes:
|
35
|
+
|
36
|
+
Enhancements:
|
37
|
+
* Add `is_expected` support to match RSpec 3.0
|
38
|
+
|
39
|
+
Deprecations:
|
40
|
+
|
41
|
+
Bug Fixes:
|
42
|
+
* Report failures and backtrace from client perspective
|
43
|
+
|
44
|
+
### 1.0.0.pre / 2013-10-11
|
45
|
+
|
46
|
+
Features
|
47
|
+
|
48
|
+
* Initial extraction of `its()` functionality to separate gem
|
49
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in rspec-its.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
%w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
|
7
|
+
branch = ENV.fetch('BRANCH','3-1-maintenance')
|
8
|
+
library_path = File.expand_path("../../#{lib}", __FILE__)
|
9
|
+
if File.exist?(library_path)
|
10
|
+
gem lib, :path => library_path
|
11
|
+
else
|
12
|
+
gem lib, :git => "git://github.com/rspec/#{lib}.git",
|
13
|
+
:branch => branch
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# test coverage
|
18
|
+
# gem 'simplecov', :require => false
|
19
|
+
|
20
|
+
gem 'coveralls', :require => false, :platform => :mri_20
|
21
|
+
|
22
|
+
eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')
|
23
|
+
|
24
|
+
platform :rbx do
|
25
|
+
gem 'rubysl'
|
26
|
+
end
|