vagrant-unbundled 1.8.4.2 → 1.8.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +52 -0
- data/Gemfile.lock +9 -7
- data/RELEASE.md +37 -14
- data/lib/vagrant/action/builtin/box_add.rb +3 -1
- data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +5 -0
- data/lib/vagrant/box_collection.rb +2 -1
- data/lib/vagrant/bundler.rb +36 -1
- data/lib/vagrant/errors.rb +16 -8
- data/lib/vagrant/plugin/state_file.rb +8 -1
- data/lib/vagrant/util/platform.rb +1 -1
- data/plugins/guests/arch/cap/change_host_name.rb +13 -10
- data/plugins/guests/arch/cap/configure_networks.rb +11 -8
- data/plugins/guests/arch/cap/nfs.rb +35 -0
- data/plugins/guests/arch/cap/rsync.rb +16 -0
- data/plugins/guests/arch/cap/smb.rb +17 -0
- data/plugins/guests/arch/plugin.rb +28 -3
- data/plugins/guests/atomic/cap/change_host_name.rb +13 -10
- data/plugins/guests/atomic/plugin.rb +3 -3
- data/plugins/guests/{netbsd → bsd}/cap/halt.rb +2 -2
- data/plugins/guests/bsd/cap/nfs.rb +49 -0
- data/plugins/guests/bsd/cap/public_key.rb +65 -0
- data/plugins/guests/bsd/cap/virtualbox.rb +16 -0
- data/plugins/guests/bsd/guest.rb +9 -0
- data/plugins/guests/bsd/plugin.rb +40 -0
- data/plugins/guests/coreos/cap/change_host_name.rb +1 -1
- data/plugins/guests/coreos/plugin.rb +4 -4
- data/plugins/guests/darwin/cap/change_host_name.rb +4 -1
- data/plugins/guests/darwin/cap/configure_networks.rb +12 -5
- data/plugins/guests/darwin/cap/halt.rb +3 -1
- data/plugins/guests/darwin/cap/rsync.rb +7 -4
- data/plugins/guests/darwin/plugin.rb +13 -28
- data/plugins/guests/debian/cap/change_host_name.rb +14 -15
- data/plugins/guests/debian/cap/configure_networks.rb +2 -6
- data/plugins/guests/debian/cap/{nfs_client.rb → nfs.rb} +2 -1
- data/plugins/guests/debian/cap/rsync.rb +5 -6
- data/plugins/guests/debian/plugin.rb +8 -8
- data/plugins/guests/esxi/cap/mount_nfs_folder.rb +2 -2
- data/plugins/guests/esxi/plugin.rb +6 -6
- data/plugins/guests/fedora/cap/flavor.rb +1 -1
- data/plugins/guests/fedora/plugin.rb +2 -17
- data/plugins/guests/freebsd/cap/change_host_name.rb +2 -3
- data/plugins/guests/freebsd/cap/rsync.rb +7 -4
- data/plugins/guests/freebsd/plugin.rb +9 -29
- data/plugins/guests/funtoo/plugin.rb +3 -8
- data/plugins/guests/gentoo/cap/change_host_name.rb +21 -6
- data/plugins/guests/gentoo/cap/configure_networks.rb +35 -26
- data/plugins/guests/gentoo/plugin.rb +4 -4
- data/plugins/guests/linux/cap/choose_addressable_ip_addr.rb +2 -3
- data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +31 -45
- data/plugins/guests/linux/cap/network_interfaces.rb +20 -0
- data/plugins/guests/linux/cap/nfs.rb +57 -0
- data/plugins/guests/linux/cap/public_key.rb +65 -0
- data/plugins/guests/linux/cap/rsync.rb +7 -4
- data/plugins/guests/linux/plugin.rb +30 -25
- data/plugins/guests/mint/plugin.rb +1 -1
- data/plugins/guests/netbsd/plugin.rb +10 -30
- data/plugins/guests/nixos/plugin.rb +5 -5
- data/plugins/guests/omnios/cap/change_host_name.rb +1 -1
- data/plugins/guests/omnios/plugin.rb +4 -4
- data/plugins/guests/openbsd/cap/change_host_name.rb +21 -3
- data/plugins/guests/openbsd/plugin.rb +10 -30
- data/plugins/guests/photon/cap/change_host_name.rb +1 -1
- data/plugins/guests/photon/plugin.rb +4 -4
- data/plugins/guests/pld/cap/change_host_name.rb +1 -1
- data/plugins/guests/pld/plugin.rb +4 -4
- data/plugins/guests/redhat/cap/change_host_name.rb +4 -3
- data/plugins/guests/redhat/cap/configure_networks.rb +1 -24
- data/plugins/guests/redhat/plugin.rb +7 -7
- data/plugins/guests/slackware/cap/change_host_name.rb +1 -1
- data/plugins/guests/slackware/cap/configure_networks.rb +1 -5
- data/plugins/guests/slackware/plugin.rb +3 -3
- data/plugins/guests/smartos/plugin.rb +12 -12
- data/plugins/guests/solaris/plugin.rb +14 -14
- data/plugins/guests/solaris11/plugin.rb +12 -12
- data/plugins/guests/suse/cap/change_host_name.rb +1 -1
- data/plugins/guests/suse/cap/configure_networks.rb +1 -5
- data/plugins/guests/suse/plugin.rb +8 -8
- data/plugins/guests/tinycore/cap/mount_nfs.rb +2 -2
- data/plugins/guests/tinycore/plugin.rb +7 -7
- data/plugins/guests/trisquel/plugin.rb +1 -1
- data/plugins/guests/ubuntu/guest.rb +1 -1
- data/plugins/guests/ubuntu/plugin.rb +1 -6
- data/plugins/guests/windows/plugin.rb +2 -2
- data/plugins/kernel_v2/config/vm.rb +8 -1
- data/plugins/providers/hyperv/scripts/get_vm_status.ps1 +25 -5
- data/plugins/providers/virtualbox/driver/meta.rb +1 -0
- data/plugins/providers/virtualbox/driver/version_5_1.rb +734 -0
- data/plugins/providers/virtualbox/plugin.rb +1 -0
- data/plugins/synced_folders/nfs/synced_folder.rb +10 -2
- data/plugins/synced_folders/rsync/helper.rb +11 -4
- data/scripts/{bintray_upload.sh → sign.sh} +0 -0
- data/templates/guests/arch/network_static.erb +3 -3
- data/templates/guests/arch/network_static6.erb +8 -0
- data/templates/guests/freebsd/network_static6.erb +6 -0
- data/templates/guests/funtoo/network_static6.erb +9 -0
- data/templates/guests/gentoo/network_dhcp.erb +1 -1
- data/templates/guests/gentoo/network_static.erb +4 -4
- data/templates/guests/gentoo/network_static6.erb +7 -0
- data/templates/guests/redhat/network_dhcp.erb +1 -1
- data/templates/guests/redhat/network_static.erb +4 -1
- data/templates/guests/{fedora → redhat}/network_static6.erb +5 -2
- data/templates/locales/en.yml +40 -6
- data/test/unit/plugins/guests/arch/cap/change_host_name_test.rb +6 -6
- data/test/unit/plugins/guests/arch/cap/configure_networks_test.rb +20 -15
- data/test/unit/plugins/guests/arch/cap/rsync_test.rb +30 -0
- data/test/unit/plugins/guests/arch/cap/smb_test.rb +38 -0
- data/test/unit/plugins/guests/atomic/cap/change_host_name_test.rb +9 -8
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/halt_test.rb +11 -10
- data/test/unit/plugins/guests/{freebsd → bsd}/cap/insert_public_key_test.rb +7 -6
- data/test/unit/plugins/guests/bsd/cap/nfs_test.rb +68 -0
- data/test/unit/plugins/guests/coreos/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/change_host_name_test.rb +5 -5
- data/test/unit/plugins/guests/darwin/cap/halt_test.rb +36 -0
- data/test/unit/plugins/guests/debian/cap/change_host_name_test.rb +3 -5
- data/test/unit/plugins/guests/debian/cap/configure_networks_test.rb +13 -9
- data/test/unit/plugins/guests/debian/cap/rsync_test.rb +3 -11
- data/test/unit/plugins/guests/freebsd/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/linux/cap/mount_nfs_test.rb +16 -3
- data/test/unit/plugins/guests/omnios/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/photon/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/pld/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/redhat/cap/change_host_name_test.rb +4 -3
- data/test/unit/plugins/guests/redhat/cap/configure_networks_test.rb +17 -33
- data/test/unit/plugins/guests/slackware/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/slackware/cap/configure_networks_test.rb +8 -4
- data/test/unit/plugins/guests/suse/cap/change_host_name_test.rb +2 -2
- data/test/unit/plugins/guests/suse/cap/configure_networks_test.rb +13 -16
- data/test/unit/plugins/kernel_v2/config/vm_test.rb +10 -2
- data/test/unit/templates/guests/arch/network_static_test.rb +4 -2
- data/test/unit/templates/guests/gentoo/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/gentoo/network_static_test.rb +10 -10
- data/test/unit/templates/guests/redhat/network_dhcp_test.rb +2 -2
- data/test/unit/templates/guests/redhat/network_static_test.rb +9 -9
- data/vagrant.gemspec +3 -3
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CHANGELOG.md +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/CONTRIBUTING.md +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/README.md +297 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/bin/listen +12 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/base.rb +141 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/bsd.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/config.rb +26 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/darwin.rb +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/linux.rb +106 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/polling.rb +37 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter/windows.rb +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/adapter.rb +45 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/backend.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/change.rb +76 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/cli.rb +65 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/directory.rb +87 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/config.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/loop.rb +117 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/processor.rb +122 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/event/queue.rb +55 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/file.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/fsm.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/internals/thread_pool.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener/config.rb +41 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/listener.rb +133 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/logger.rb +32 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/options.rb +23 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/queue_optimizer.rb +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/entry.rb +64 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record/symlink_detector.rb +39 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/record.rb +118 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer/controller.rb +48 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/silencer.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/listen-3.1.5/lib/listen.rb +57 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.gitignore +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rspec +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop-disables.yml +384 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/.travis.yml +43 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/AUTHORS +98 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Gemfile +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/LICENSE +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/README.md +667 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/Rakefile +132 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/bin/restclient +92 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/history.md +310 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest-client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/rest_client.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb +226 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/exceptions.rb +244 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/params_array.rb +72 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/payload.rb +209 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/platform.rb +49 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/raw_response.rb +38 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/request.rb +904 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/resource.rb +168 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/response.rb +80 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/utils.rb +235 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/version.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows/root_certs.rb +105 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient/windows.rb +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/lib/restclient.rb +184 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.gemspec +31 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/rest-client.windows.gemspec +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/helpers.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/244b5494.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/81b9768f.0 +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_digicert/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/415660c1.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/7651b327.0 +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/README +8 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/capath_verisign/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/digicert.crt +19 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/certs/verisign.crt +14 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/httpbin_spec.rb +86 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/integration_spec.rb +125 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/integration/request_spec.rb +127 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/spec_helper.rb +29 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/_lib.rb +1 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/abstract_response_spec.rb +145 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/exceptions_spec.rb +108 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/master_shake.jpg +0 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/params_array_spec.rb +36 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/payload_spec.rb +263 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/raw_response_spec.rb +18 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request2_spec.rb +54 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/request_spec.rb +1265 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/resource_spec.rb +130 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/response_spec.rb +241 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/restclient_spec.rb +79 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/utils_spec.rb +147 -0
- data/vendor/bundle/ruby/2.3.0/gems/rest-client-2.0.0/spec/unit/windows/root_certs_spec.rb +22 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.gitignore +10 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rspec +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.rubocop.yml +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/.travis.yml +11 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/README.md +151 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/logger.rb +16 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/quiet.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/ruby_version.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis/ruby_version.rb +59 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/travis.rb +58 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/version.rb +3 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep/warning.rb +97 -0
- data/vendor/bundle/ruby/2.3.0/gems/ruby_dep-1.4.0/lib/ruby_dep.rb +2 -0
- data/vendor/bundle/ruby/2.3.0/specifications/listen-3.1.5.gemspec +44 -0
- data/vendor/bundle/ruby/2.3.0/specifications/rest-client-2.0.0.gemspec +60 -0
- data/vendor/bundle/ruby/2.3.0/specifications/ruby_dep-1.4.0.gemspec +34 -0
- data/version.txt +1 -1
- metadata +147 -44
- data/plugins/guests/darwin/cap/insert_public_key.rb +0 -33
- data/plugins/guests/darwin/cap/mount_nfs_folder.rb +0 -37
- data/plugins/guests/darwin/cap/remove_public_key.rb +0 -21
- data/plugins/guests/fedora/cap/change_host_name.rb +0 -29
- data/plugins/guests/fedora/cap/configure_networks.rb +0 -135
- data/plugins/guests/fedora/cap/network_scripts_dir.rb +0 -15
- data/plugins/guests/freebsd/cap/halt.rb +0 -16
- data/plugins/guests/freebsd/cap/insert_public_key.rb +0 -34
- data/plugins/guests/freebsd/cap/mount_nfs_folder.rb +0 -24
- data/plugins/guests/freebsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/funtoo/cap/change_host_name.rb +0 -17
- data/plugins/guests/linux/cap/insert_public_key.rb +0 -31
- data/plugins/guests/linux/cap/mount_nfs.rb +0 -50
- data/plugins/guests/linux/cap/nfs_client.rb +0 -11
- data/plugins/guests/linux/cap/remove_public_key.rb +0 -24
- data/plugins/guests/netbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/netbsd/cap/mount_nfs_folder.rb +0 -17
- data/plugins/guests/netbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/halt.rb +0 -16
- data/plugins/guests/openbsd/cap/insert_public_key.rb +0 -21
- data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +0 -14
- data/plugins/guests/openbsd/cap/remove_public_key.rb +0 -21
- data/plugins/guests/ubuntu/cap/change_host_name.rb +0 -52
- data/templates/guests/fedora/network_dhcp.erb +0 -6
- data/templates/guests/fedora/network_static.erb +0 -16
- data/test/unit/plugins/guests/freebsd/cap/mount_nfs_folder_test.rb +0 -53
- data/test/unit/plugins/guests/ubuntu/cap/change_host_name_test.rb +0 -42
- data/test/unit/templates/guests/fedora/network_dhcp_test.rb +0 -21
- data/test/unit/templates/guests/fedora/network_static6_test.rb +0 -25
- data/test/unit/templates/guests/fedora/network_static_test.rb +0 -71
@@ -0,0 +1,132 @@
|
|
1
|
+
# load `rake build/install/release tasks'
|
2
|
+
require 'bundler/setup'
|
3
|
+
require_relative './lib/restclient/version'
|
4
|
+
|
5
|
+
namespace :ruby do
|
6
|
+
Bundler::GemHelper.install_tasks(:name => 'rest-client')
|
7
|
+
end
|
8
|
+
|
9
|
+
require "rspec/core/rake_task"
|
10
|
+
|
11
|
+
desc "Run all specs"
|
12
|
+
RSpec::Core::RakeTask.new('spec')
|
13
|
+
|
14
|
+
desc "Run unit specs"
|
15
|
+
RSpec::Core::RakeTask.new('spec:unit') do |t|
|
16
|
+
t.pattern = 'spec/unit/*_spec.rb'
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Run integration specs"
|
20
|
+
RSpec::Core::RakeTask.new('spec:integration') do |t|
|
21
|
+
t.pattern = 'spec/integration/*_spec.rb'
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Print specdocs"
|
25
|
+
RSpec::Core::RakeTask.new(:doc) do |t|
|
26
|
+
t.rspec_opts = ["--format", "specdoc", "--dry-run"]
|
27
|
+
t.pattern = 'spec/**/*_spec.rb'
|
28
|
+
end
|
29
|
+
|
30
|
+
desc "Run all examples with RCov"
|
31
|
+
RSpec::Core::RakeTask.new('rcov') do |t|
|
32
|
+
t.pattern = 'spec/*_spec.rb'
|
33
|
+
t.rcov = true
|
34
|
+
t.rcov_opts = ['--exclude', 'examples']
|
35
|
+
end
|
36
|
+
|
37
|
+
desc 'Regenerate authors file'
|
38
|
+
task :authors do
|
39
|
+
Dir.chdir(File.dirname(__FILE__)) do
|
40
|
+
File.open('AUTHORS', 'w') do |f|
|
41
|
+
f.write( <<-EOM
|
42
|
+
The Ruby REST Client would not be what it is today without the help of
|
43
|
+
the following kind souls:
|
44
|
+
|
45
|
+
EOM
|
46
|
+
)
|
47
|
+
end
|
48
|
+
|
49
|
+
sh 'git shortlog -s | cut -f 2 >> AUTHORS'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
task :default do
|
54
|
+
sh 'rake -T'
|
55
|
+
end
|
56
|
+
|
57
|
+
def alias_task(alias_task, original)
|
58
|
+
desc "Alias for rake #{original}"
|
59
|
+
task alias_task, Rake.application[original].arg_names => original
|
60
|
+
end
|
61
|
+
alias_task(:test, :spec)
|
62
|
+
|
63
|
+
############################
|
64
|
+
|
65
|
+
WindowsPlatforms = %w{x86-mingw32 x64-mingw32 x86-mswin32}
|
66
|
+
|
67
|
+
namespace :all do
|
68
|
+
|
69
|
+
desc "Build rest-client #{RestClient::VERSION} for all platforms"
|
70
|
+
task :build => ['ruby:build'] + \
|
71
|
+
WindowsPlatforms.map {|p| "windows:#{p}:build"}
|
72
|
+
|
73
|
+
desc "Create tag v#{RestClient::VERSION} and for all platforms build and push " \
|
74
|
+
"rest-client #{RestClient::VERSION} to Rubygems"
|
75
|
+
task :release => ['build', 'ruby:release'] + \
|
76
|
+
WindowsPlatforms.map {|p| "windows:#{p}:push"}
|
77
|
+
|
78
|
+
end
|
79
|
+
|
80
|
+
namespace :windows do
|
81
|
+
spec_path = File.join(File.dirname(__FILE__), 'rest-client.windows.gemspec')
|
82
|
+
|
83
|
+
WindowsPlatforms.each do |platform|
|
84
|
+
namespace platform do
|
85
|
+
gem_filename = "rest-client-#{RestClient::VERSION}-#{platform}.gem"
|
86
|
+
base = File.dirname(__FILE__)
|
87
|
+
pkg_dir = File.join(base, 'pkg')
|
88
|
+
gem_file_path = File.join(pkg_dir, gem_filename)
|
89
|
+
|
90
|
+
desc "Build #{gem_filename} into the pkg directory"
|
91
|
+
task 'build' do
|
92
|
+
orig_platform = ENV['BUILD_PLATFORM']
|
93
|
+
begin
|
94
|
+
ENV['BUILD_PLATFORM'] = platform
|
95
|
+
|
96
|
+
sh("gem build -V #{spec_path}") do |ok, res|
|
97
|
+
if ok
|
98
|
+
FileUtils.mkdir_p(pkg_dir)
|
99
|
+
FileUtils.mv(File.join(base, gem_filename), pkg_dir)
|
100
|
+
Bundler.ui.confirm("rest-client #{RestClient::VERSION} " \
|
101
|
+
"built to pkg/#{gem_filename}")
|
102
|
+
else
|
103
|
+
abort "Command `gem build` failed: #{res}"
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
ensure
|
108
|
+
ENV['BUILD_PLATFORM'] = orig_platform
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
desc "Push #{gem_filename} to Rubygems"
|
113
|
+
task 'push' do
|
114
|
+
sh("gem push #{gem_file_path}")
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
|
121
|
+
############################
|
122
|
+
|
123
|
+
require 'rdoc/task'
|
124
|
+
|
125
|
+
Rake::RDocTask.new do |t|
|
126
|
+
t.rdoc_dir = 'rdoc'
|
127
|
+
t.title = "rest-client, fetch RESTful resources effortlessly"
|
128
|
+
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
129
|
+
t.options << '--charset' << 'utf-8'
|
130
|
+
t.rdoc_files.include('README.md')
|
131
|
+
t.rdoc_files.include('lib/*.rb')
|
132
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
|
4
|
+
|
5
|
+
require 'rubygems'
|
6
|
+
require 'restclient'
|
7
|
+
require 'yaml'
|
8
|
+
|
9
|
+
def usage(why = nil)
|
10
|
+
puts "failed for reason: #{why}" if why
|
11
|
+
puts "usage: restclient [get|put|post|delete] url|name [username] [password]"
|
12
|
+
puts " The verb is optional, if you leave it off you'll get an interactive shell."
|
13
|
+
puts " put and post both take the input body on stdin."
|
14
|
+
exit(1)
|
15
|
+
end
|
16
|
+
|
17
|
+
POSSIBLE_VERBS = ['get', 'put', 'post', 'delete']
|
18
|
+
|
19
|
+
if POSSIBLE_VERBS.include? ARGV.first
|
20
|
+
@verb = ARGV.shift
|
21
|
+
else
|
22
|
+
@verb = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
@url = ARGV.shift || 'http://localhost:4567'
|
26
|
+
|
27
|
+
config = YAML.load(File.read(ENV['HOME'] + "/.restclient")) rescue {}
|
28
|
+
|
29
|
+
if (c = config[@url])
|
30
|
+
@url, @username, @password = [c['url'], c['username'], c['password']]
|
31
|
+
else
|
32
|
+
@url, @username, @password = [@url, * ARGV]
|
33
|
+
end
|
34
|
+
|
35
|
+
usage("invalid url '#{@url}") unless @url =~ /^https?/
|
36
|
+
usage("too few args") unless ARGV.size < 3
|
37
|
+
|
38
|
+
def r
|
39
|
+
@r ||= RestClient::Resource.new(@url, @username, @password)
|
40
|
+
end
|
41
|
+
|
42
|
+
r # force rc to load
|
43
|
+
|
44
|
+
if @verb
|
45
|
+
begin
|
46
|
+
if %w( put post ).include? @verb
|
47
|
+
puts r.send(@verb, STDIN.read)
|
48
|
+
else
|
49
|
+
puts r.send(@verb)
|
50
|
+
end
|
51
|
+
exit 0
|
52
|
+
rescue RestClient::Exception => e
|
53
|
+
puts e.response.body if e.respond_to?(:response) && e.response
|
54
|
+
raise
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
POSSIBLE_VERBS.each do |m|
|
59
|
+
define_method(m.to_sym) do |path, *args, &b|
|
60
|
+
r[path].public_send(m.to_sym, *args, &b)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def method_missing(s, * args, & b)
|
65
|
+
if POSSIBLE_VERBS.include? s
|
66
|
+
begin
|
67
|
+
r.send(s, *args, & b)
|
68
|
+
rescue RestClient::RequestFailed => e
|
69
|
+
print STDERR, e.response.body
|
70
|
+
raise e
|
71
|
+
end
|
72
|
+
else
|
73
|
+
super
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
require 'irb'
|
78
|
+
require 'irb/completion'
|
79
|
+
|
80
|
+
if File.exist? ".irbrc"
|
81
|
+
ENV['IRBRC'] = ".irbrc"
|
82
|
+
end
|
83
|
+
|
84
|
+
rcfile = File.expand_path("~/.restclientrc")
|
85
|
+
if File.exist?(rcfile)
|
86
|
+
load(rcfile)
|
87
|
+
end
|
88
|
+
|
89
|
+
ARGV.clear
|
90
|
+
|
91
|
+
IRB.start
|
92
|
+
exit!
|
@@ -0,0 +1,310 @@
|
|
1
|
+
# 2.0.0
|
2
|
+
|
3
|
+
This release is largely API compatible, but makes several breaking changes.
|
4
|
+
|
5
|
+
- Drop support for Ruby 1.9
|
6
|
+
- Allow mime-types as new as 3.x (requires ruby 2.0)
|
7
|
+
- Respect Content-Type charset header provided by server. Previously,
|
8
|
+
rest-client would not override the string encoding chosen by Net::HTTP. Now
|
9
|
+
responses that specify a charset will yield a body string in that encoding.
|
10
|
+
For example, `Content-Type: text/plain; charset=EUC-JP` will return a String
|
11
|
+
encoded with `Encoding::EUC_JP`. (#361)
|
12
|
+
- Change exceptions raised on request timeout. Instead of
|
13
|
+
`RestClient::RequestTimeout` (which is still used for HTTP 408), network
|
14
|
+
timeouts will now raise either `RestClient::Exceptions::ReadTimeout` or
|
15
|
+
`RestClient::Exceptions::OpenTimeout`, both of which inherit from
|
16
|
+
`RestClient::Exceptions::Timeout`. For backwards compatibility, this still
|
17
|
+
inherits from `RestClient::RequestTimeout` so existing uses will still work.
|
18
|
+
This may change in a future major release. These new timeout classes also
|
19
|
+
make the original wrapped exception available as `#original_exception`.
|
20
|
+
- Unify request exceptions under `RestClient::RequestFailed`, which still
|
21
|
+
inherits from `ExceptionWithResponse`. Previously, HTTP 304, 401, and 404
|
22
|
+
inherited directly from `ExceptionWithResponse` rather than from
|
23
|
+
`RequestFailed`. Now _all_ HTTP status code exceptions inherit from both.
|
24
|
+
- Rename the `:timeout` request option to `:read_timeout`. When `:timeout` is
|
25
|
+
passed, now set both `:read_timeout` and `:open_timeout`.
|
26
|
+
- Change default HTTP Accept header to `*/*`
|
27
|
+
- Use a more descriptive User-Agent header by default
|
28
|
+
- Drop RC4-MD5 from default cipher list
|
29
|
+
- Only prepend http:// to URIs without a scheme
|
30
|
+
- Fix some support for using IPv6 addresses in URLs (still affected by Ruby
|
31
|
+
2.0+ bug https://bugs.ruby-lang.org/issues/9129, with the fix expected to be
|
32
|
+
backported to 2.0 and 2.1)
|
33
|
+
- `Response` objects are now a subclass of `String` rather than a `String` that
|
34
|
+
mixes in the response functionality. Most of the methods remain unchanged,
|
35
|
+
but this makes it much easier to understand what is happening when you look
|
36
|
+
at a RestClient response object. There are a few additional changes:
|
37
|
+
- Response objects now implement `.inspect` to make this distinction clearer.
|
38
|
+
- `Response#to_i` will now behave like `String#to_i` instead of returning the
|
39
|
+
HTTP response code, which was very surprising behavior.
|
40
|
+
- `Response#body` and `#to_s` will now return a true `String` object rather
|
41
|
+
than self. Previously there was no easy way to get the true `String`
|
42
|
+
response instead of the Frankenstein response string object with
|
43
|
+
AbstractResponse mixed in.
|
44
|
+
- Response objects no longer accept an extra request args hash, but instead
|
45
|
+
access request args directly from the request object, which reduces
|
46
|
+
confusion and duplication.
|
47
|
+
- Handle multiple HTTP response headers with the same name (except for
|
48
|
+
Set-Cookie, which is special) by joining the values with a comma space,
|
49
|
+
compliant with RFC 7230
|
50
|
+
- Rewrite cookie support to be much smarter and to use cookie jars consistently
|
51
|
+
for requests, responses, and redirection in order to resolve long-standing
|
52
|
+
complaints about the previously broken behavior: (#498)
|
53
|
+
- The `:cookies` option may now be a Hash of Strings, an Array of
|
54
|
+
HTTP::Cookie objects, or a full HTTP::CookieJar.
|
55
|
+
- Add `RestClient::Request#cookie_jar` and reimplement `Request#cookies` to
|
56
|
+
be a wrapper around the cookie jar.
|
57
|
+
- Still support passing the `:cookies` option in the headers hash, but now
|
58
|
+
raise ArgumentError if that option is also passed to `Request#initialize`.
|
59
|
+
- Warn if both `:cookies` and a `Cookie` header are supplied.
|
60
|
+
- Use the `Request#cookie_jar` as the basis for `Response#cookie_jar`,
|
61
|
+
creating a copy of the jar and adding any newly received cookies.
|
62
|
+
- When following redirection, also use this same strategy so that cookies
|
63
|
+
from the original request are carried through in a standards-compliant way
|
64
|
+
by the cookie jar.
|
65
|
+
- Don't set basic auth header if explicit `Authorization` header is specified
|
66
|
+
- Add `:proxy` option to requests, which can be used for thread-safe
|
67
|
+
per-request proxy configuration, overriding `RestClient.proxy`
|
68
|
+
- Allow overriding `ENV['http_proxy']` to disable proxies by setting
|
69
|
+
`RestClient.proxy` to a falsey value. Previously there was no way in Ruby 2.x
|
70
|
+
to turn off a proxy specified in the environment without changing `ENV`.
|
71
|
+
- Add actual support for streaming request payloads. Previously rest-client
|
72
|
+
would call `.to_s` even on RestClient::Payload::Streamed objects. Instead,
|
73
|
+
treat any object that responds to `.read` as a streaming payload and pass it
|
74
|
+
through to `.body_stream=` on the Net:HTTP object. This massively reduces the
|
75
|
+
memory required for large file uploads.
|
76
|
+
- Changes to redirection behavior: (#381, #484)
|
77
|
+
- Remove `RestClient::MaxRedirectsReached` in favor of the normal
|
78
|
+
`ExceptionWithResponse` subclasses. This makes the response accessible on
|
79
|
+
the exception object as `.response`, making it possible for callers to tell
|
80
|
+
what has actually happened when the redirect limit is reached.
|
81
|
+
- When following HTTP redirection, store a list of each previous response on
|
82
|
+
the response object as `.history`. This makes it possible to access the
|
83
|
+
original response headers and body before the redirection was followed.
|
84
|
+
- Follow redirection consistently, regardless of whether the HTTP method was
|
85
|
+
passed as a symbol or string. Under the hood rest-client now normalizes the
|
86
|
+
HTTP request method to a lowercase string.
|
87
|
+
- Add `:before_execution_proc` option to `RestClient::Request`. This makes it
|
88
|
+
possible to add procs like `RestClient.add_before_execution_proc` to a single
|
89
|
+
request without global state.
|
90
|
+
- Run tests on Travis's beta OS X support.
|
91
|
+
- Make `Request#transmit` a private method, along with a few others.
|
92
|
+
- Refactor URI parsing to happen earlier, in Request initialization.
|
93
|
+
- Improve consistency and functionality of complex URL parameter handling:
|
94
|
+
- When adding URL params, handle URLs that already contain params.
|
95
|
+
- Add new convention for handling URL params containing deeply nested arrays
|
96
|
+
and hashes, unify handling of null/empty values, and use the same code for
|
97
|
+
GET and POST params. (#437)
|
98
|
+
- Add the RestClient::ParamsArray class, a simple array-like container that
|
99
|
+
can be used to pass multiple keys with same name or keys where the ordering
|
100
|
+
is significant.
|
101
|
+
- Add a few more exception classes for obscure HTTP status codes.
|
102
|
+
- Multipart: use a much more robust multipart boundary with greater entropy.
|
103
|
+
- Make `RestClient::Payload::Base#inspect` stop pretending to be a String.
|
104
|
+
- Add `Request#redacted_uri` and `Request#redacted_url` to display the URI
|
105
|
+
with any password redacted.
|
106
|
+
|
107
|
+
# 2.0.0.rc1
|
108
|
+
|
109
|
+
Changes in the release candidate that did not persist through the final 2.0.0
|
110
|
+
release:
|
111
|
+
- RestClient::Exceptions::Timeout was originally going to be a direct subclass
|
112
|
+
of RestClient::Exception in the release candidate. This exception tree was
|
113
|
+
made a subclass of RestClient::RequestTimeout prior to the final release.
|
114
|
+
|
115
|
+
# 1.8.0
|
116
|
+
|
117
|
+
- Security: implement standards compliant cookie handling by adding a
|
118
|
+
dependency on http-cookie. This breaks compatibility, but was necessary to
|
119
|
+
address a session fixation / cookie disclosure vulnerability.
|
120
|
+
(#369 / CVE-2015-1820)
|
121
|
+
|
122
|
+
Previously, any Set-Cookie headers found in an HTTP 30x response would be
|
123
|
+
sent to the redirection target, regardless of domain. Responses now expose a
|
124
|
+
cookie jar and respect standards compliant domain / path flags in Set-Cookie
|
125
|
+
headers.
|
126
|
+
|
127
|
+
# 1.7.3
|
128
|
+
|
129
|
+
- Security: redact password in URI from logs (#349 / OSVDB-117461)
|
130
|
+
- Drop monkey patch on MIME::Types (added `type_for_extension` method, use
|
131
|
+
the public interface instead.
|
132
|
+
|
133
|
+
# 1.7.2
|
134
|
+
|
135
|
+
- Ignore duplicate certificates in CA store on Windows
|
136
|
+
|
137
|
+
# 1.7.1
|
138
|
+
|
139
|
+
- Relax mime-types dependency to continue supporting mime-types 1.x series.
|
140
|
+
There seem to be a large number of popular gems that have depended on
|
141
|
+
mime-types '~> 1.16' until very recently.
|
142
|
+
- Improve urlencode performance
|
143
|
+
- Clean up a number of style points
|
144
|
+
|
145
|
+
# 1.7.0
|
146
|
+
|
147
|
+
- This release drops support for Ruby 1.8.7 and breaks compatibility in a few
|
148
|
+
other relatively minor ways
|
149
|
+
- Upgrade to mime-types ~> 2.0
|
150
|
+
- Don't CGI.unescape cookie values sent to the server (issue #89)
|
151
|
+
- Add support for reading credentials from netrc
|
152
|
+
- Lots of SSL changes and enhancements: (#268)
|
153
|
+
- Enable peer verification by default (setting `VERIFY_PEER` with OpenSSL)
|
154
|
+
- By default, use the system default certificate store for SSL verification,
|
155
|
+
even on Windows (this uses a separate Windows build that pulls in ffi)
|
156
|
+
- Add support for SSL `ca_path`
|
157
|
+
- Add support for SSL `cert_store`
|
158
|
+
- Add support for SSL `verify_callback` (with some caveats for jruby, OS X, #277)
|
159
|
+
- Add support for SSL ciphers, and choose secure ones by default
|
160
|
+
- Run tests under travis
|
161
|
+
- Several other bugfixes and test improvements
|
162
|
+
- Convert Errno::ETIMEDOUT to RestClient::RequestTimeout
|
163
|
+
- Handle more HTTP response codes from recent standards
|
164
|
+
- Save raw responses to binary mode tempfile (#110)
|
165
|
+
- Disable timeouts with :timeout => nil rather than :timeout => -1
|
166
|
+
- Drop all Net::HTTP monkey patches
|
167
|
+
|
168
|
+
# 1.6.8
|
169
|
+
|
170
|
+
- The 1.6.x series will be the last to support Ruby 1.8.7
|
171
|
+
- Pin mime-types to < 2.0 to maintain Ruby 1.8.7 support
|
172
|
+
- Add Gemfile, AUTHORS, add license to gemspec
|
173
|
+
- Point homepage at https://github.com/rest-client/rest-client
|
174
|
+
- Clean up and fix various tests and ruby warnings
|
175
|
+
- Backport `ssl_verify_callback` functionality from 1.7.0
|
176
|
+
|
177
|
+
# 1.6.7
|
178
|
+
|
179
|
+
- rebuild with 1.8.7 to avoid https://github.com/rubygems/rubygems/pull/57
|
180
|
+
|
181
|
+
# 1.6.6
|
182
|
+
|
183
|
+
- 1.6.5 was yanked
|
184
|
+
|
185
|
+
# 1.6.5
|
186
|
+
|
187
|
+
- RFC6265 requires single SP after ';' for separating parameters pairs in the 'Cookie:' header (patch provided by Hiroshi Nakamura)
|
188
|
+
- enable url parameters for all actions
|
189
|
+
- detect file parameters in arrays
|
190
|
+
- allow disabling the timeouts by passing -1 (patch provided by Sven Böhm)
|
191
|
+
|
192
|
+
# 1.6.4
|
193
|
+
|
194
|
+
- fix restclient script compatibility with 1.9.2
|
195
|
+
- fix unlinking temp file (patch provided by Evan Smith)
|
196
|
+
- monkeypatching ruby for http patch method (patch provided by Syl Turner)
|
197
|
+
|
198
|
+
# 1.6.3
|
199
|
+
|
200
|
+
- 1.6.2 was yanked
|
201
|
+
|
202
|
+
# 1.6.2
|
203
|
+
|
204
|
+
- add support for HEAD in resources (patch provided by tpresa)
|
205
|
+
- fix shell for 1.9.2
|
206
|
+
- workaround when some gem monkeypatch net/http (patch provided by Ian Warshak)
|
207
|
+
- DELETE requests should process parameters just like GET and HEAD
|
208
|
+
- adding :block_response parameter for manual processing
|
209
|
+
- limit number of redirections (patch provided by Chris Dinn)
|
210
|
+
- close and unlink the temp file created by playload (patch provided by Chris Green)
|
211
|
+
- make gemspec Rubygems 1.8 compatible (patch provided by David Backeus)
|
212
|
+
- added RestClient.reset_before_execution_procs (patch provided by Cloudify)
|
213
|
+
- added PATCH method (patch provided by Jeff Remer)
|
214
|
+
- hack for HTTP servers that use raw DEFLATE compression, see http://www.ruby-forum.com/topic/136825 (path provided by James Reeves)
|
215
|
+
|
216
|
+
# 1.6.1
|
217
|
+
|
218
|
+
- add response body in Exception#inspect
|
219
|
+
- add support for RestClient.options
|
220
|
+
- fix tests for 1.9.2 (patch provided by Niko Dittmann)
|
221
|
+
- block passing in Resource#[] (patch provided by Niko Dittmann)
|
222
|
+
- cookies set in a response should be kept in a redirect
|
223
|
+
- HEAD requests should process parameters just like GET (patch provided by Rob Eanes)
|
224
|
+
- exception message should never be nil (patch provided by Michael Klett)
|
225
|
+
|
226
|
+
# 1.6.0
|
227
|
+
|
228
|
+
- forgot to include rest-client.rb in the gem
|
229
|
+
- user, password and user-defined headers should survive a redirect
|
230
|
+
- added all missing status codes
|
231
|
+
- added parameter passing for get request using the :param key in header
|
232
|
+
- the warning about the logger when using a string was a bad idea
|
233
|
+
- multipart parameters names should not be escaped
|
234
|
+
- remove the cookie escaping introduced by migrating to CGI cookie parsing in 1.5.1
|
235
|
+
- add a streamed payload type (patch provided by Caleb Land)
|
236
|
+
- Exception#http_body works even when no response
|
237
|
+
|
238
|
+
# 1.5.1
|
239
|
+
|
240
|
+
- only converts headers keys which are Symbols
|
241
|
+
- use CGI for cookie parsing instead of custom code
|
242
|
+
- unescape user and password before using them (patch provided by Lars Gierth)
|
243
|
+
- expand ~ in ~/.restclientrc (patch provided by Mike Fletcher)
|
244
|
+
- ssl verification raise an exception when the ca certificate is incorrect (patch provided by Braintree)
|
245
|
+
|
246
|
+
# 1.5.0
|
247
|
+
|
248
|
+
- the response is now a String with the Response module a.k.a. the change in 1.4.0 was a mistake (Response.body is returning self for compatability)
|
249
|
+
- added AbstractResponse.to_i to improve semantic
|
250
|
+
- multipart Payloads ignores the name attribute if it's not set (patch provided by Tekin Suleyman)
|
251
|
+
- correctly takes into account user headers whose keys are strings (path provided by Cyril Rohr)
|
252
|
+
- use binary mode for payload temp file
|
253
|
+
- concatenate cookies with ';'
|
254
|
+
- fixed deeper parameter handling
|
255
|
+
- do not quote the boundary in the Content-Type header (patch provided by W. Andrew Loe III)
|
256
|
+
|
257
|
+
# 1.4.2
|
258
|
+
|
259
|
+
- fixed RestClient.add_before_execution_proc (patch provided by Nicholas Wieland)
|
260
|
+
- fixed error when an exception is raised without a response (patch provided by Caleb Land)
|
261
|
+
|
262
|
+
# 1.4.1
|
263
|
+
|
264
|
+
- fixed parameters managment when using hash
|
265
|
+
|
266
|
+
# 1.4.0
|
267
|
+
|
268
|
+
- Response is no more a String, and the mixin is replaced by an abstract_response, existing calls are redirected to response body with a warning.
|
269
|
+
- enable repeated parameters RestClient.post 'http://example.com/resource', :param1 => ['one', 'two', 'three'], => :param2 => 'foo' (patch provided by Rodrigo Panachi)
|
270
|
+
- fixed the redirect code concerning relative path and query string combination (patch provided by Kevin Read)
|
271
|
+
- redirection code moved to Response so redirection can be customized using the block syntax
|
272
|
+
- only get and head redirections are now followed by default, as stated in the specification
|
273
|
+
- added RestClient.add_before_execution_proc to hack the http request, like for oauth
|
274
|
+
|
275
|
+
The response change may be breaking in rare cases.
|
276
|
+
|
277
|
+
# 1.3.1
|
278
|
+
|
279
|
+
- added compatibility to enable responses in exception to act like Net::HTTPResponse
|
280
|
+
|
281
|
+
# 1.3.0
|
282
|
+
|
283
|
+
- a block can be used to process a request's result, this enable to handle custom error codes or paththrought (design by Cyril Rohr)
|
284
|
+
- cleaner log API, add a warning for some cases but should be compatible
|
285
|
+
- accept multiple "Set-Cookie" headers, see http://www.ietf.org/rfc/rfc2109.txt (patch provided by Cyril Rohr)
|
286
|
+
- remove "Content-Length" and "Content-Type" headers when following a redirection (patch provided by haarts)
|
287
|
+
- all http error codes have now a corresponding exception class and all of them contain the Reponse -> this means that the raised exception can be different
|
288
|
+
- changed "Content-Disposition: multipart/form-data" to "Content-Disposition: form-data" per RFC 2388 (patch provided by Kyle Crawford)
|
289
|
+
|
290
|
+
The only breaking change should be the exception classes, but as the new classes inherits from the existing ones, the breaking cases should be rare.
|
291
|
+
|
292
|
+
# 1.2.0
|
293
|
+
|
294
|
+
- formatting changed from tabs to spaces
|
295
|
+
- logged requests now include generated headers
|
296
|
+
- accept and content-type headers can now be specified using extentions: RestClient.post "http://example.com/resource", { 'x' => 1 }.to_json, :content_type => :json, :accept => :json
|
297
|
+
- should be 1.1.1 but renamed to 1.2.0 because 1.1.X versions has already been packaged on Debian
|
298
|
+
|
299
|
+
# 1.1.0
|
300
|
+
|
301
|
+
- new maintainer: Archiloque, the working repo is now at http://github.com/archiloque/rest-client
|
302
|
+
- a mailing list has been created at rest.client@librelist.com and an freenode irc channel #rest-client
|
303
|
+
- François Beausoleil' multipart code from http://github.com/francois/rest-client has been merged
|
304
|
+
- ability to use hash in hash as payload
|
305
|
+
- the mime-type code now rely on the mime-types gem http://mime-types.rubyforge.org/ instead of an internal partial list
|
306
|
+
- 204 response returns a Response instead of nil (patch provided by Elliott Draper)
|
307
|
+
|
308
|
+
All changes exept the last one should be fully compatible with the previous version.
|
309
|
+
|
310
|
+
NOTE: due to a dependency problem and to the last change, heroku users should update their heroku gem to >= 1.5.3 to be able to use this version.
|