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,23 @@
|
|
1
|
+
module Rake
|
2
|
+
module Backtrace # :nodoc: all
|
3
|
+
SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
|
4
|
+
SYS_PATHS = RbConfig::CONFIG.values_at(*SYS_KEYS).uniq +
|
5
|
+
[ File.join(File.dirname(__FILE__), "..") ]
|
6
|
+
|
7
|
+
SUPPRESSED_PATHS = SYS_PATHS.
|
8
|
+
map { |s| s.tr("\\", "/") }.
|
9
|
+
map { |f| File.expand_path(f) }.
|
10
|
+
reject { |s| s.nil? || s =~ /^ *$/ }
|
11
|
+
SUPPRESSED_PATHS_RE = SUPPRESSED_PATHS.map { |f| Regexp.quote(f) }.join("|")
|
12
|
+
SUPPRESSED_PATHS_RE << "|^org\\/jruby\\/\\w+\\.java" if
|
13
|
+
Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == "jruby"
|
14
|
+
|
15
|
+
SUPPRESS_PATTERN = %r!(\A(#{SUPPRESSED_PATHS_RE})|bin/rake:\d+)!i
|
16
|
+
|
17
|
+
def self.collapse(backtrace)
|
18
|
+
pattern = Rake.application.options.suppress_backtrace_pattern ||
|
19
|
+
SUPPRESS_PATTERN
|
20
|
+
backtrace.reject { |elem| elem =~ pattern }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# The 'rake/clean' file defines two file lists (CLEAN and CLOBBER) and
|
2
|
+
# two rake tasks (:clean and :clobber).
|
3
|
+
#
|
4
|
+
# [:clean] Clean up the project by deleting scratch files and backup
|
5
|
+
# files. Add files to the CLEAN file list to have the :clean
|
6
|
+
# target handle them.
|
7
|
+
#
|
8
|
+
# [:clobber] Clobber all generated and non-source files in a project.
|
9
|
+
# The task depends on :clean, so all the clean files will
|
10
|
+
# be deleted as well as files in the CLOBBER file list.
|
11
|
+
# The intent of this task is to return a project to its
|
12
|
+
# pristine, just unpacked state.
|
13
|
+
|
14
|
+
require "rake"
|
15
|
+
|
16
|
+
# :stopdoc:
|
17
|
+
|
18
|
+
module Rake
|
19
|
+
module Cleaner
|
20
|
+
extend FileUtils
|
21
|
+
|
22
|
+
module_function
|
23
|
+
|
24
|
+
def cleanup_files(file_names)
|
25
|
+
file_names.each do |file_name|
|
26
|
+
cleanup(file_name)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def cleanup(file_name, opts={})
|
31
|
+
begin
|
32
|
+
opts = { verbose: Rake.application.options.trace }.merge(opts)
|
33
|
+
rm_r file_name, opts
|
34
|
+
rescue StandardError => ex
|
35
|
+
puts "Failed to remove #{file_name}: #{ex}" unless file_already_gone?(file_name)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def file_already_gone?(file_name)
|
40
|
+
return false if File.exist?(file_name)
|
41
|
+
|
42
|
+
path = file_name
|
43
|
+
prev = nil
|
44
|
+
|
45
|
+
while path = File.dirname(path)
|
46
|
+
return false if cant_be_deleted?(path)
|
47
|
+
break if [prev, "."].include?(path)
|
48
|
+
prev = path
|
49
|
+
end
|
50
|
+
true
|
51
|
+
end
|
52
|
+
private_class_method :file_already_gone?
|
53
|
+
|
54
|
+
def cant_be_deleted?(path_name)
|
55
|
+
File.exist?(path_name) &&
|
56
|
+
(!File.readable?(path_name) || !File.executable?(path_name))
|
57
|
+
end
|
58
|
+
private_class_method :cant_be_deleted?
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
CLEAN = ::Rake::FileList["**/*~", "**/*.bak", "**/core"]
|
63
|
+
CLEAN.clear_exclude.exclude { |fn|
|
64
|
+
fn.pathmap("%f").downcase == "core" && File.directory?(fn)
|
65
|
+
}
|
66
|
+
|
67
|
+
desc "Remove any temporary products."
|
68
|
+
task :clean do
|
69
|
+
Rake::Cleaner.cleanup_files(CLEAN)
|
70
|
+
end
|
71
|
+
|
72
|
+
CLOBBER = ::Rake::FileList.new
|
73
|
+
|
74
|
+
desc "Remove any generated files."
|
75
|
+
task clobber: [:clean] do
|
76
|
+
Rake::Cleaner.cleanup_files(CLOBBER)
|
77
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Rake
|
2
|
+
##
|
3
|
+
# Mixin for creating easily cloned objects.
|
4
|
+
|
5
|
+
module Cloneable # :nodoc:
|
6
|
+
# The hook that is invoked by 'clone' and 'dup' methods.
|
7
|
+
def initialize_copy(source)
|
8
|
+
super
|
9
|
+
source.instance_variables.each do |var|
|
10
|
+
src_value = source.instance_variable_get(var)
|
11
|
+
value = src_value.clone rescue src_value
|
12
|
+
instance_variable_set(var, value)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# Based on a script at:
|
4
|
+
# http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed
|
5
|
+
class CpuCounter # :nodoc: all
|
6
|
+
def self.count
|
7
|
+
new.count_with_default
|
8
|
+
end
|
9
|
+
|
10
|
+
def count_with_default(default=4)
|
11
|
+
count || default
|
12
|
+
rescue StandardError
|
13
|
+
default
|
14
|
+
end
|
15
|
+
|
16
|
+
begin
|
17
|
+
require "etc"
|
18
|
+
rescue LoadError
|
19
|
+
else
|
20
|
+
if Etc.respond_to?(:nprocessors)
|
21
|
+
def count
|
22
|
+
return Etc.nprocessors
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
unless Rake::CpuCounter.method_defined?(:count)
|
30
|
+
Rake::CpuCounter.class_eval <<-'end;', __FILE__, __LINE__+1
|
31
|
+
require 'rbconfig'
|
32
|
+
|
33
|
+
def count
|
34
|
+
if defined?(Java::Java)
|
35
|
+
count_via_java_runtime
|
36
|
+
else
|
37
|
+
case RbConfig::CONFIG['host_os']
|
38
|
+
when /linux/
|
39
|
+
count_via_cpuinfo
|
40
|
+
when /darwin|bsd/
|
41
|
+
count_via_sysctl
|
42
|
+
when /mswin|mingw/
|
43
|
+
count_via_win32
|
44
|
+
else
|
45
|
+
# Try everything
|
46
|
+
count_via_win32 ||
|
47
|
+
count_via_sysctl ||
|
48
|
+
count_via_cpuinfo
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def count_via_java_runtime
|
54
|
+
Java::Java.lang.Runtime.getRuntime.availableProcessors
|
55
|
+
rescue StandardError
|
56
|
+
nil
|
57
|
+
end
|
58
|
+
|
59
|
+
def count_via_win32
|
60
|
+
require 'win32ole'
|
61
|
+
wmi = WIN32OLE.connect("winmgmts://")
|
62
|
+
cpu = wmi.ExecQuery("select NumberOfCores from Win32_Processor") # TODO count hyper-threaded in this
|
63
|
+
cpu.to_enum.first.NumberOfCores
|
64
|
+
rescue StandardError, LoadError
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
|
68
|
+
def count_via_cpuinfo
|
69
|
+
open('/proc/cpuinfo') { |f| f.readlines }.grep(/processor/).size
|
70
|
+
rescue StandardError
|
71
|
+
nil
|
72
|
+
end
|
73
|
+
|
74
|
+
def count_via_sysctl
|
75
|
+
run 'sysctl', '-n', 'hw.ncpu'
|
76
|
+
end
|
77
|
+
|
78
|
+
def run(command, *args)
|
79
|
+
cmd = resolve_command(command)
|
80
|
+
if cmd
|
81
|
+
IO.popen [cmd, *args] do |io|
|
82
|
+
io.read.to_i
|
83
|
+
end
|
84
|
+
else
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def resolve_command(command)
|
90
|
+
look_for_command("/usr/sbin", command) ||
|
91
|
+
look_for_command("/sbin", command) ||
|
92
|
+
in_path_command(command)
|
93
|
+
end
|
94
|
+
|
95
|
+
def look_for_command(dir, command)
|
96
|
+
path = File.join(dir, command)
|
97
|
+
File.exist?(path) ? path : nil
|
98
|
+
end
|
99
|
+
|
100
|
+
def in_path_command(command)
|
101
|
+
IO.popen ['which', command] do |io|
|
102
|
+
io.eof? ? nil : command
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end;
|
106
|
+
end
|
@@ -0,0 +1,194 @@
|
|
1
|
+
# Rake DSL functions.
|
2
|
+
require "rake/file_utils_ext"
|
3
|
+
|
4
|
+
module Rake
|
5
|
+
|
6
|
+
##
|
7
|
+
# DSL is a module that provides #task, #desc, #namespace, etc. Use this
|
8
|
+
# when you'd like to use rake outside the top level scope.
|
9
|
+
#
|
10
|
+
# For a Rakefile you run from the command line this module is automatically
|
11
|
+
# included.
|
12
|
+
|
13
|
+
module DSL
|
14
|
+
|
15
|
+
#--
|
16
|
+
# Include the FileUtils file manipulation functions in the top
|
17
|
+
# level module, but mark them private so that they don't
|
18
|
+
# unintentionally define methods on other objects.
|
19
|
+
#++
|
20
|
+
|
21
|
+
include FileUtilsExt
|
22
|
+
private(*FileUtils.instance_methods(false))
|
23
|
+
private(*FileUtilsExt.instance_methods(false))
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
# :call-seq:
|
28
|
+
# task task_name
|
29
|
+
# task task_name: dependencies
|
30
|
+
# task task_name, arguments => dependencies
|
31
|
+
#
|
32
|
+
# Declare a basic task. The +task_name+ is always the first argument. If
|
33
|
+
# the task name contains a ":" it is defined in that namespace.
|
34
|
+
#
|
35
|
+
# The +dependencies+ may be a single task name or an Array of task names.
|
36
|
+
# The +argument+ (a single name) or +arguments+ (an Array of names) define
|
37
|
+
# the arguments provided to the task.
|
38
|
+
#
|
39
|
+
# The task, argument and dependency names may be either symbols or
|
40
|
+
# strings.
|
41
|
+
#
|
42
|
+
# A task with a single dependency:
|
43
|
+
#
|
44
|
+
# task clobber: %w[clean] do
|
45
|
+
# rm_rf "html"
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# A task with an argument and a dependency:
|
49
|
+
#
|
50
|
+
# task :package, [:version] => :test do |t, args|
|
51
|
+
# # ...
|
52
|
+
# end
|
53
|
+
#
|
54
|
+
# To invoke this task from the command line:
|
55
|
+
#
|
56
|
+
# $ rake package[1.2.3]
|
57
|
+
#
|
58
|
+
def task(*args, &block) # :doc:
|
59
|
+
Rake::Task.define_task(*args, &block)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Declare a file task.
|
63
|
+
#
|
64
|
+
# Example:
|
65
|
+
# file "config.cfg" => ["config.template"] do
|
66
|
+
# open("config.cfg", "w") do |outfile|
|
67
|
+
# open("config.template") do |infile|
|
68
|
+
# while line = infile.gets
|
69
|
+
# outfile.puts line
|
70
|
+
# end
|
71
|
+
# end
|
72
|
+
# end
|
73
|
+
# end
|
74
|
+
#
|
75
|
+
def file(*args, &block) # :doc:
|
76
|
+
Rake::FileTask.define_task(*args, &block)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Declare a file creation task.
|
80
|
+
# (Mainly used for the directory command).
|
81
|
+
def file_create(*args, &block)
|
82
|
+
Rake::FileCreationTask.define_task(*args, &block)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Declare a set of files tasks to create the given directories on
|
86
|
+
# demand.
|
87
|
+
#
|
88
|
+
# Example:
|
89
|
+
# directory "testdata/doc"
|
90
|
+
#
|
91
|
+
def directory(*args, &block) # :doc:
|
92
|
+
result = file_create(*args, &block)
|
93
|
+
dir, _ = *Rake.application.resolve_args(args)
|
94
|
+
dir = Rake.from_pathname(dir)
|
95
|
+
Rake.each_dir_parent(dir) do |d|
|
96
|
+
file_create d do |t|
|
97
|
+
mkdir_p t.name unless File.exist?(t.name)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
result
|
101
|
+
end
|
102
|
+
|
103
|
+
# Declare a task that performs its prerequisites in
|
104
|
+
# parallel. Multitasks does *not* guarantee that its prerequisites
|
105
|
+
# will execute in any given order (which is obvious when you think
|
106
|
+
# about it)
|
107
|
+
#
|
108
|
+
# Example:
|
109
|
+
# multitask deploy: %w[deploy_gem deploy_rdoc]
|
110
|
+
#
|
111
|
+
def multitask(*args, &block) # :doc:
|
112
|
+
Rake::MultiTask.define_task(*args, &block)
|
113
|
+
end
|
114
|
+
|
115
|
+
# Create a new rake namespace and use it for evaluating the given
|
116
|
+
# block. Returns a NameSpace object that can be used to lookup
|
117
|
+
# tasks defined in the namespace.
|
118
|
+
#
|
119
|
+
# Example:
|
120
|
+
#
|
121
|
+
# ns = namespace "nested" do
|
122
|
+
# # the "nested:run" task
|
123
|
+
# task :run
|
124
|
+
# end
|
125
|
+
# task_run = ns[:run] # find :run in the given namespace.
|
126
|
+
#
|
127
|
+
# Tasks can also be defined in a namespace by using a ":" in the task
|
128
|
+
# name:
|
129
|
+
#
|
130
|
+
# task "nested:test" do
|
131
|
+
# # ...
|
132
|
+
# end
|
133
|
+
#
|
134
|
+
def namespace(name=nil, &block) # :doc:
|
135
|
+
name = name.to_s if name.kind_of?(Symbol)
|
136
|
+
name = name.to_str if name.respond_to?(:to_str)
|
137
|
+
unless name.kind_of?(String) || name.nil?
|
138
|
+
raise ArgumentError, "Expected a String or Symbol for a namespace name"
|
139
|
+
end
|
140
|
+
Rake.application.in_namespace(name, &block)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Declare a rule for auto-tasks.
|
144
|
+
#
|
145
|
+
# Example:
|
146
|
+
# rule '.o' => '.c' do |t|
|
147
|
+
# sh 'cc', '-o', t.name, t.source
|
148
|
+
# end
|
149
|
+
#
|
150
|
+
def rule(*args, &block) # :doc:
|
151
|
+
Rake::Task.create_rule(*args, &block)
|
152
|
+
end
|
153
|
+
|
154
|
+
# Describes the next rake task. Duplicate descriptions are discarded.
|
155
|
+
# Descriptions are shown with <code>rake -T</code> (up to the first
|
156
|
+
# sentence) and <code>rake -D</code> (the entire description).
|
157
|
+
#
|
158
|
+
# Example:
|
159
|
+
# desc "Run the Unit Tests"
|
160
|
+
# task test: [:build]
|
161
|
+
# # ... run tests
|
162
|
+
# end
|
163
|
+
#
|
164
|
+
def desc(description) # :doc:
|
165
|
+
Rake.application.last_description = description
|
166
|
+
end
|
167
|
+
|
168
|
+
# Import the partial Rakefiles +fn+. Imported files are loaded
|
169
|
+
# _after_ the current file is completely loaded. This allows the
|
170
|
+
# import statement to appear anywhere in the importing file, and yet
|
171
|
+
# allowing the imported files to depend on objects defined in the
|
172
|
+
# importing file.
|
173
|
+
#
|
174
|
+
# A common use of the import statement is to include files
|
175
|
+
# containing dependency declarations.
|
176
|
+
#
|
177
|
+
# See also the --rakelibdir command line option.
|
178
|
+
#
|
179
|
+
# Example:
|
180
|
+
# import ".depend", "my_rules"
|
181
|
+
#
|
182
|
+
def import(*fns) # :doc:
|
183
|
+
fns.each do |fn|
|
184
|
+
Rake.application.add_import(fn)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
extend FileUtilsExt
|
189
|
+
end
|
190
|
+
|
191
|
+
# Extend the main object with the DSL commands. This allows top-level
|
192
|
+
# calls to task, etc. to work from a Rakefile without polluting the
|
193
|
+
# object inheritance tree.
|
194
|
+
self.extend Rake::DSL
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Rake
|
2
|
+
|
3
|
+
# EarlyTime is a fake timestamp that occurs _before_ any other time value.
|
4
|
+
class EarlyTime
|
5
|
+
include Comparable
|
6
|
+
include Singleton
|
7
|
+
|
8
|
+
##
|
9
|
+
# The EarlyTime always comes before +other+!
|
10
|
+
|
11
|
+
def <=>(other)
|
12
|
+
-1
|
13
|
+
end
|
14
|
+
|
15
|
+
def to_s # :nodoc:
|
16
|
+
"<EARLY TIME>"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
EARLY = EarlyTime.instance
|
21
|
+
end
|