vagrant-unbundled 2.2.4.0 → 2.2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -0
- data/Gemfile.lock +10 -10
- data/LICENSE +1 -1
- data/README.md +10 -0
- data/RELEASE.md +11 -25
- data/contrib/bash/completion.sh +1 -1
- data/lib/vagrant/action/builtin/mixin_synced_folders.rb +7 -1
- data/lib/vagrant/action/general/package.rb +18 -0
- data/lib/vagrant/action/runner.rb +1 -1
- data/lib/vagrant/action/warden.rb +1 -1
- data/lib/vagrant/batch_action.rb +14 -0
- data/lib/vagrant/box_collection.rb +1 -1
- data/lib/vagrant/bundler.rb +29 -8
- data/lib/vagrant/cli.rb +1 -1
- data/lib/vagrant/environment.rb +50 -5
- data/lib/vagrant/machine.rb +4 -1
- data/lib/vagrant/plugin/v2/trigger.rb +12 -3
- data/lib/vagrant/shared_helpers.rb +8 -0
- data/lib/vagrant/util/guest_inspection.rb +19 -0
- data/lib/vagrant/vagrantfile.rb +18 -14
- data/plugins/commands/box/command/update.rb +8 -2
- data/plugins/commands/cloud/box/create.rb +1 -1
- data/plugins/commands/cloud/box/delete.rb +1 -1
- data/plugins/commands/cloud/provider/create.rb +1 -1
- data/plugins/commands/cloud/provider/delete.rb +1 -1
- data/plugins/commands/cloud/provider/update.rb +1 -1
- data/plugins/commands/cloud/provider/upload.rb +1 -1
- data/plugins/commands/cloud/publish.rb +1 -1
- data/plugins/commands/cloud/search.rb +1 -1
- data/plugins/commands/cloud/version/create.rb +1 -1
- data/plugins/commands/cloud/version/delete.rb +1 -1
- data/plugins/commands/cloud/version/release.rb +1 -1
- data/plugins/commands/cloud/version/revoke.rb +1 -1
- data/plugins/commands/cloud/version/update.rb +1 -1
- data/plugins/commands/global-status/command.rb +11 -0
- data/plugins/commands/snapshot/command/list.rb +2 -1
- data/plugins/commands/snapshot/command/pop.rb +3 -1
- data/plugins/communicators/ssh/communicator.rb +0 -1
- data/plugins/guests/bsd/cap/{virtualbox.rb → mount_virtualbox_shared_folder.rb} +1 -1
- data/plugins/guests/bsd/plugin.rb +2 -2
- data/plugins/guests/coreos/cap/change_host_name.rb +24 -7
- data/plugins/guests/coreos/cap/configure_networks.rb +48 -64
- data/plugins/guests/freebsd/cap/configure_networks.rb +2 -2
- data/plugins/guests/freebsd/cap/mount_virtualbox_shared_folder.rb +76 -0
- data/plugins/guests/freebsd/plugin.rb +10 -0
- data/plugins/hosts/bsd/cap/nfs.rb +1 -1
- data/plugins/hosts/freebsd/cap/nfs.rb +1 -1
- data/plugins/hosts/void/cap/nfs.rb +1 -1
- data/plugins/kernel_v2/config/vm_trigger.rb +1 -1
- data/plugins/providers/docker/action/connect_networks.rb +77 -0
- data/plugins/providers/docker/action/destroy_network.rb +50 -0
- data/plugins/providers/docker/action/prepare_networks.rb +355 -0
- data/plugins/providers/docker/action.rb +9 -3
- data/plugins/providers/docker/driver/compose.rb +13 -1
- data/plugins/providers/docker/driver.rb +148 -4
- data/plugins/providers/docker/errors.rb +28 -0
- data/plugins/providers/docker/provider.rb +8 -0
- data/plugins/providers/virtualbox/cap.rb +1 -0
- data/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb +5 -5
- data/plugins/provisioners/ansible/cap/guest/fedora/ansible_install.rb +5 -5
- data/plugins/provisioners/ansible/cap/guest/pip/pip.rb +15 -2
- data/plugins/provisioners/ansible/cap/guest/redhat/ansible_install.rb +5 -5
- data/plugins/provisioners/ansible/cap/guest/ubuntu/ansible_install.rb +2 -2
- data/plugins/provisioners/ansible/config/guest.rb +3 -0
- data/plugins/provisioners/ansible/provisioner/guest.rb +5 -2
- data/plugins/provisioners/chef/cap/freebsd/chef_installed.rb +1 -1
- data/plugins/provisioners/chef/cap/linux/chef_installed.rb +1 -1
- data/plugins/provisioners/chef/cap/omnios/chef_installed.rb +1 -1
- data/plugins/provisioners/chef/cap/windows/chef_installed.rb +2 -2
- data/plugins/provisioners/chef/provisioner/base.rb +1 -1
- data/plugins/synced_folders/rsync/command/rsync_auto.rb +5 -1
- data/plugins/synced_folders/rsync/default_unix_cap.rb +1 -1
- data/plugins/synced_folders/rsync/helper.rb +8 -7
- data/plugins/synced_folders/smb/synced_folder.rb +21 -0
- data/templates/locales/en.yml +8 -4
- data/templates/locales/providers_docker.yml +70 -0
- data/templates/nfs/{exports_freebsd.erb → exports_bsd.erb} +0 -0
- data/vendor/bundle/ruby/2.6.0/bundler/gems/vagrant-spec-abfc34474d12/vagrant-spec.gemspec +3 -3
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bcrypt_pbkdf-1.0.1/bcrypt_pbkdf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bcrypt_pbkdf-1.0.1/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bcrypt_pbkdf-1.0.1/gem_make.out +19 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/unf_ext-0.0.7.6/gem.build_complete +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/unf_ext-0.0.7.6/gem_make.out +16 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/unf_ext-0.0.7.6/mkmf.log +35 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/unf_ext-0.0.7.6/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/.travis.yml +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/CHANGELOG.md +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/COPYING +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Gemfile +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Gemfile.lock +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/README.md +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/Rakefile +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/bcrypt_pbkdf.gemspec +29 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/Makefile +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/bcrypt_pbkdf.c +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/bcrypt_pbkdf.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/bcrypt_pbkdf_ext.c +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/bcrypt_pbkdf_ext.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/bcrypt_pbkdf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/blf.h +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/blowfish.c +698 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/blowfish.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/crypto_api.h +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/crypto_hash_sha512.h +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/explicit_bzero.c +20 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/explicit_bzero.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/extconf.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/hash_sha512.c +320 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/hash_sha512.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/includes.h +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/sha2.h +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/util.h +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/ext/mri/utils.h +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/lib/bcrypt_pbkdf.rb +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/lib/bcrypt_pbkdf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/test/bcrypt_pnkdf/engine_test.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/bcrypt_pbkdf-1.0.1/test/test_helper.rb +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/.gitignore +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/.travis.yml +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/CHANGELOG.md +219 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/Gemfile +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/LICENSE.txt +78 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/README.md +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/Rakefile +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/data/public_suffix_list.dat +12985 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/domain_name.gemspec +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib/domain_name/etld_data.rb +8787 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib/domain_name/etld_data.rb.erb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib/domain_name/punycode.rb +283 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib/domain_name/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/lib/domain_name.rb +297 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/test/helper.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/test/test_domain_name-punycode.rb +97 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/test/test_domain_name.rb +317 -0
- data/vendor/bundle/ruby/2.6.0/gems/domain_name-0.5.20190701/tool/gen_etld_data.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/.gitignore +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/COPYING +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/Changelog.md +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/Gemfile +2 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/README.md +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/Rakefile +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/VERSION +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/examples/gss_client.rb +26 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/examples/gss_iov_client.rb +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/examples/gss_iov_helpers.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/examples/gss_iov_server.rb +67 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/examples/gss_server.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/gssapi.gemspec +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/exceptions.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/extensions.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/heimdal.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/lib_gssapi.rb +414 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/lib_gssapi_loader.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi/simple.rb +269 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/lib/gssapi.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/preamble +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/test/spec/gssapi_simple_spec.rb +70 -0
- data/vendor/bundle/ruby/2.6.0/gems/gssapi-1.3.0/test/spec/test_buffer_spec.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/Code-of-Conduct.md +73 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/Contributing.md +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/History.md +223 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/Licence.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/Manifest.txt +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/README.rdoc +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/Rakefile +284 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/type/columnar.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/type.rb +587 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/_columnar.rb +136 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/cache.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/columnar.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/container.rb +96 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/deprecations.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/full.rb +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/loader.rb +146 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/logger.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types/registry.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime/types.rb +231 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/lib/mime-types.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/bad-fixtures/malformed +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/fixture/json.json +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/fixture/old-data +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/fixture/yaml.yaml +55 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/minitest_helper.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_type.rb +610 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_types.rb +169 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_types_cache.rb +118 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_types_class.rb +159 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_types_lazy.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-3.3/test/test_mime_types_loader.rb +32 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/Code-of-Conduct.md +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/Contributing.md +161 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/History.md +396 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/Licence.md +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/Manifest.txt +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/README.md +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/Rakefile +94 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime-types.json +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.content_type.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.docs.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.encoding.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.flags.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.friendly.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.pext.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.use_instead.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/data/mime.xrefs.column +2212 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/lib/mime/types/data.rb +21 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/lib/mime-types-data.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/application.yaml +16342 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/audio.yaml +1644 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/chemical.yaml +71 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/conference.yaml +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/drawing.yaml +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/font.yaml +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/image.yaml +1069 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/message.yaml +200 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/model.yaml +302 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/multipart.yaml +179 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/text.yaml +1046 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/video.yaml +1070 -0
- data/vendor/bundle/ruby/2.6.0/gems/mime-types-data-3.2019.0904/types/world.yaml +8 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/README.md +313 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/Rakefile +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/TODO +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/central_directory.rb +208 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/compressor.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/constants.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/crypto/encryption.rb +11 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/crypto/null_encryption.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/crypto/traditional_encryption.rb +99 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/decompressor.rb +13 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/deflater.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/dos_time.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/entry.rb +688 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/entry_set.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/errors.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/generic.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/ntfs.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/old_unix.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/universal_time.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/unix.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/zip64.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field/zip64_placeholder.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/extra_field.rb +101 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/file.rb +436 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/filesystem.rb +627 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/inflater.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/input_stream.rb +173 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/ioextras/abstract_input_stream.rb +111 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/ioextras/abstract_output_stream.rb +43 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/ioextras.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/null_compressor.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/null_decompressor.rb +27 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/null_input_stream.rb +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/output_stream.rb +189 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/pass_thru_compressor.rb +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/pass_thru_decompressor.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/streamable_directory.rb +15 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/streamable_stream.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip/version.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/lib/zip.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/example.rb +81 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/example_filesystem.rb +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/example_recursive.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/gtk_ruby_zip.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/qtzip.rb +92 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/write_simple.rb +12 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/samples/zipfind.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/basic_zip_file_test.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/case_sensitivity_test.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/central_directory_entry_test.rb +69 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/central_directory_test.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/crypto/null_encryption_test.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/crypto/traditional_encryption_test.rb +80 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/WarnInvalidDate.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/file1.txt +46 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/file1.txt.deflatedData +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/file2.txt +1504 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/globTest/foo/bar/baz/foo.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/globTest/foo.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/globTest/food.txt +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/globTest.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/gpbit3stored.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/mimetype +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/notzippedruby.rb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/ntfs.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/oddExtraField.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/Makefile +10 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/README.md +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/absolute1.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/absolute2.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/dirsymlink.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/dirsymlink2a.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/dirsymlink2b.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/relative0.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/relative2.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/jwilk/symlink.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/relative1.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/tilde.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/tuzovakaoff/README.md +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/tuzovakaoff/absolutepath.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/path_traversal/tuzovakaoff/symlink.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/rubycode.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/rubycode2.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/test.xls +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/testDirectory.bin +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/zip64-sample.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/zipWithDirs.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/data/zipWithEncryption.zip +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/deflater_test.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/encryption_test.rb +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/entry_set_test.rb +163 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/entry_test.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/errors_test.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/extra_field_test.rb +76 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/file_extract_directory_test.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/file_extract_test.rb +83 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/file_permissions_test.rb +65 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/file_split_test.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/file_test.rb +646 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/filesystem/dir_iterator_test.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/filesystem/directory_test.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/filesystem/file_mutating_test.rb +87 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/filesystem/file_nonmutating_test.rb +508 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/filesystem/file_stat_test.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/gentestfiles.rb +126 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/inflater_test.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/input_stream_test.rb +182 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/ioextras/abstract_input_stream_test.rb +102 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/ioextras/abstract_output_stream_test.rb +106 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/ioextras/fake_io_test.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/local_entry_test.rb +154 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/output_stream_test.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/pass_thru_compressor_test.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/pass_thru_decompressor_test.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/path_traversal_test.rb +141 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/samples/example_recursive_test.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/settings_test.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/test_helper.rb +234 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/unicode_file_names_and_comments_test.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/zip64_full_test.rb +51 -0
- data/vendor/bundle/ruby/2.6.0/gems/rubyzip-1.2.4/test/zip64_support_test.rb +14 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/.document +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/.gitignore +19 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/.travis.yml +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/CHANGELOG.md +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/Gemfile +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/README.md +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/Rakefile +31 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/Makefile +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/extconf.rb +50 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/normalizer.hh +139 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/table.hh +13617 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/trie/char_stream.hh +150 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/trie/node.hh +25 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/trie/searcher.hh +194 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf/util.hh +24 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf.cc +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/ext/unf_ext/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/lib/unf_ext/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/lib/unf_ext.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/lib/unf_ext.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/test/helper.rb +18 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/test/normalization-test.txt +112332 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/test/test_unf_ext.rb +41 -0
- data/vendor/bundle/ruby/2.6.0/gems/unf_ext-0.0.7.6/unf_ext.gemspec +42 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/LICENSE +202 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/README.md +276 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/bin/rwinrm +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/connection.rb +84 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/connection_opts.rb +90 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/exceptions.rb +88 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/http/response_handler.rb +127 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/http/transport.rb +462 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/http/transport_factory.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/output.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/create_pipeline.xml.erb +167 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/fragment.rb +68 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/init_runspace_pool.xml.erb +224 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/base.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/error_record.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/pipeline_host_call.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/pipeline_output.rb +48 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/pipeline_state.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/runspacepool_host_call.rb +30 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/runspacepool_state.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data/session_capability.rb +34 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_data.rb +40 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_defragmenter.rb +62 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_factory.rb +74 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/message_fragmenter.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/powershell_output_decoder.rb +142 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/receive_response_reader.rb +95 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/session_capability.xml.erb +7 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/psrp/uuid.rb +39 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/shells/base.rb +187 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/shells/cmd.rb +63 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/shells/power_shell.rb +206 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/shells/retryable.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/shells/shell_factory.rb +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/base.rb +57 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/cleanup_command.rb +60 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/close_shell.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/command.rb +100 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/command_output.rb +75 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/command_output_decoder.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/configuration.rb +44 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/create_pipeline.rb +64 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/create_shell.rb +115 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/header.rb +213 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/init_runspace_pool.rb +96 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/iso8601_duration.rb +58 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/keep_alive.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/receive_response_reader.rb +128 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/send_data.rb +66 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/soap.rb +49 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/wql_pull.rb +54 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/wql_query.rb +98 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm/wsmv/write_stdin.rb +86 -0
- data/vendor/bundle/ruby/2.6.0/gems/winrm-2.3.2/lib/winrm.rb +37 -0
- data/vendor/bundle/ruby/2.6.0/specifications/bcrypt_pbkdf-1.0.1.gemspec +49 -0
- data/vendor/bundle/ruby/2.6.0/specifications/domain_name-0.5.20190701.gemspec +46 -0
- data/vendor/bundle/ruby/2.6.0/specifications/gssapi-1.3.0.gemspec +36 -0
- data/vendor/bundle/ruby/2.6.0/specifications/mime-types-3.3.gemspec +84 -0
- data/vendor/bundle/ruby/2.6.0/specifications/mime-types-data-3.2019.0904.gemspec +60 -0
- data/vendor/bundle/ruby/2.6.0/specifications/rubyzip-1.2.4.gemspec +44 -0
- data/vendor/bundle/ruby/2.6.0/specifications/unf_ext-0.0.7.6.gemspec +51 -0
- data/vendor/bundle/ruby/2.6.0/specifications/winrm-2.3.2.gemspec +73 -0
- data/version.txt +1 -1
- metadata +365 -6
- data/templates/nfs/exports.erb +0 -5
@@ -0,0 +1,313 @@
|
|
1
|
+
# rubyzip
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/rubyzip.svg)](http://badge.fury.io/rb/rubyzip)
|
4
|
+
[![Build Status](https://secure.travis-ci.org/rubyzip/rubyzip.svg)](http://travis-ci.org/rubyzip/rubyzip)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/rubyzip/rubyzip.svg)](https://codeclimate.com/github/rubyzip/rubyzip)
|
6
|
+
[![Coverage Status](https://img.shields.io/coveralls/rubyzip/rubyzip.svg)](https://coveralls.io/r/rubyzip/rubyzip?branch=master)
|
7
|
+
|
8
|
+
Rubyzip is a ruby library for reading and writing zip files.
|
9
|
+
|
10
|
+
## Important note
|
11
|
+
|
12
|
+
The Rubyzip interface has changed!!! No need to do `require "zip/zip"` and `Zip` prefix in class names removed.
|
13
|
+
|
14
|
+
If you have issues with any third-party gems that require an old version of rubyzip, you can use this workaround:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem 'rubyzip', '>= 1.0.0' # will load new rubyzip version
|
18
|
+
gem 'zip-zip' # will load compatibility for old rubyzip API.
|
19
|
+
```
|
20
|
+
|
21
|
+
## Requirements
|
22
|
+
|
23
|
+
- Ruby 1.9.2 or greater
|
24
|
+
|
25
|
+
## Installation
|
26
|
+
|
27
|
+
Rubyzip is available on RubyGems:
|
28
|
+
|
29
|
+
```
|
30
|
+
gem install rubyzip
|
31
|
+
```
|
32
|
+
|
33
|
+
Or in your Gemfile:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
gem 'rubyzip'
|
37
|
+
```
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
### Basic zip archive creation
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
require 'rubygems'
|
45
|
+
require 'zip'
|
46
|
+
|
47
|
+
folder = "Users/me/Desktop/stuff_to_zip"
|
48
|
+
input_filenames = ['image.jpg', 'description.txt', 'stats.csv']
|
49
|
+
|
50
|
+
zipfile_name = "/Users/me/Desktop/archive.zip"
|
51
|
+
|
52
|
+
Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
|
53
|
+
input_filenames.each do |filename|
|
54
|
+
# Two arguments:
|
55
|
+
# - The name of the file as it will appear in the archive
|
56
|
+
# - The original file, including the path to find it
|
57
|
+
zipfile.add(filename, File.join(folder, filename))
|
58
|
+
end
|
59
|
+
zipfile.get_output_stream("myFile") { |f| f.write "myFile contains just this" }
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Zipping a directory recursively
|
64
|
+
|
65
|
+
Copy from [here](https://github.com/rubyzip/rubyzip/blob/9d891f7353e66052283562d3e252fe380bb4b199/samples/example_recursive.rb)
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
require 'zip'
|
69
|
+
|
70
|
+
# This is a simple example which uses rubyzip to
|
71
|
+
# recursively generate a zip file from the contents of
|
72
|
+
# a specified directory. The directory itself is not
|
73
|
+
# included in the archive, rather just its contents.
|
74
|
+
#
|
75
|
+
# Usage:
|
76
|
+
# directory_to_zip = "/tmp/input"
|
77
|
+
# output_file = "/tmp/out.zip"
|
78
|
+
# zf = ZipFileGenerator.new(directory_to_zip, output_file)
|
79
|
+
# zf.write()
|
80
|
+
class ZipFileGenerator
|
81
|
+
# Initialize with the directory to zip and the location of the output archive.
|
82
|
+
def initialize(input_dir, output_file)
|
83
|
+
@input_dir = input_dir
|
84
|
+
@output_file = output_file
|
85
|
+
end
|
86
|
+
|
87
|
+
# Zip the input directory.
|
88
|
+
def write
|
89
|
+
entries = Dir.entries(@input_dir) - %w[. ..]
|
90
|
+
|
91
|
+
::Zip::File.open(@output_file, ::Zip::File::CREATE) do |zipfile|
|
92
|
+
write_entries entries, '', zipfile
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
private
|
97
|
+
|
98
|
+
# A helper method to make the recursion work.
|
99
|
+
def write_entries(entries, path, zipfile)
|
100
|
+
entries.each do |e|
|
101
|
+
zipfile_path = path == '' ? e : File.join(path, e)
|
102
|
+
disk_file_path = File.join(@input_dir, zipfile_path)
|
103
|
+
|
104
|
+
if File.directory? disk_file_path
|
105
|
+
recursively_deflate_directory(disk_file_path, zipfile, zipfile_path)
|
106
|
+
else
|
107
|
+
put_into_archive(disk_file_path, zipfile, zipfile_path)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def recursively_deflate_directory(disk_file_path, zipfile, zipfile_path)
|
113
|
+
zipfile.mkdir zipfile_path
|
114
|
+
subdir = Dir.entries(disk_file_path) - %w[. ..]
|
115
|
+
write_entries subdir, zipfile_path, zipfile
|
116
|
+
end
|
117
|
+
|
118
|
+
def put_into_archive(disk_file_path, zipfile, zipfile_path)
|
119
|
+
zipfile.add(zipfile_path, disk_file_path)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
```
|
123
|
+
|
124
|
+
### Save zip archive entries in sorted by name state
|
125
|
+
|
126
|
+
To save zip archives in sorted order like below, you need to set `::Zip.sort_entries` to `true`
|
127
|
+
|
128
|
+
```
|
129
|
+
Vegetable/
|
130
|
+
Vegetable/bean
|
131
|
+
Vegetable/carrot
|
132
|
+
Vegetable/celery
|
133
|
+
fruit/
|
134
|
+
fruit/apple
|
135
|
+
fruit/kiwi
|
136
|
+
fruit/mango
|
137
|
+
fruit/orange
|
138
|
+
```
|
139
|
+
|
140
|
+
After this, entries in the zip archive will be saved in ordered state.
|
141
|
+
|
142
|
+
### Default permissions of zip archives
|
143
|
+
|
144
|
+
On Posix file systems the default file permissions applied to a new archive
|
145
|
+
are (0666 - umask), which mimics the behavior of standard tools such as `touch`.
|
146
|
+
|
147
|
+
On Windows the default file permissions are set to 0644 as suggested by the
|
148
|
+
[Ruby File documentation](http://ruby-doc.org/core-2.2.2/File.html).
|
149
|
+
|
150
|
+
When modifying a zip archive the file permissions of the archive are preserved.
|
151
|
+
|
152
|
+
### Reading a Zip file
|
153
|
+
|
154
|
+
```ruby
|
155
|
+
Zip::File.open('foo.zip') do |zip_file|
|
156
|
+
# Handle entries one by one
|
157
|
+
zip_file.each do |entry|
|
158
|
+
# Extract to file/directory/symlink
|
159
|
+
puts "Extracting #{entry.name}"
|
160
|
+
entry.extract(dest_file)
|
161
|
+
|
162
|
+
# Read into memory
|
163
|
+
content = entry.get_input_stream.read
|
164
|
+
end
|
165
|
+
|
166
|
+
# Find specific entry
|
167
|
+
entry = zip_file.glob('*.csv').first
|
168
|
+
puts entry.get_input_stream.read
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
#### Notice about ::Zip::InputStream
|
173
|
+
|
174
|
+
`::Zip::InputStream` usable for fast reading zip file content because it not read Central directory.
|
175
|
+
|
176
|
+
But there is one exception when it is not working - General Purpose Flag Bit 3.
|
177
|
+
|
178
|
+
> If bit 3 (0x08) of the general-purpose flags field is set, then the CRC-32 and file sizes are not known when the header is written. The fields in the local header are filled with zero, and the CRC-32 and size are appended in a 12-byte structure (optionally preceded by a 4-byte signature) immediately after the compressed data
|
179
|
+
|
180
|
+
If `::Zip::InputStream` finds such entry in the zip archive it will raise an exception.
|
181
|
+
|
182
|
+
### Password Protection (Experimental)
|
183
|
+
|
184
|
+
Rubyzip supports reading/writing zip files with traditional zip encryption (a.k.a. "ZipCrypto"). AES encryption is not yet supported. It can be used with buffer streams, e.g.:
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
Zip::OutputStream.write_buffer(::StringIO.new(''), Zip::TraditionalEncrypter.new('password')) do |out|
|
188
|
+
out.put_next_entry("my_file.txt")
|
189
|
+
out.write my_data
|
190
|
+
end.string
|
191
|
+
```
|
192
|
+
|
193
|
+
This is an experimental feature and the interface for encryption may change in future versions.
|
194
|
+
|
195
|
+
## Known issues
|
196
|
+
|
197
|
+
### Modify docx file with rubyzip
|
198
|
+
|
199
|
+
Use `write_buffer` instead `open`. Thanks to @jondruse
|
200
|
+
|
201
|
+
```ruby
|
202
|
+
buffer = Zip::OutputStream.write_buffer do |out|
|
203
|
+
@zip_file.entries.each do |e|
|
204
|
+
unless [DOCUMENT_FILE_PATH, RELS_FILE_PATH].include?(e.name)
|
205
|
+
out.put_next_entry(e.name)
|
206
|
+
out.write e.get_input_stream.read
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
out.put_next_entry(DOCUMENT_FILE_PATH)
|
211
|
+
out.write xml_doc.to_xml(:indent => 0).gsub("\n","")
|
212
|
+
|
213
|
+
out.put_next_entry(RELS_FILE_PATH)
|
214
|
+
out.write rels.to_xml(:indent => 0).gsub("\n","")
|
215
|
+
end
|
216
|
+
|
217
|
+
File.open(new_path, "wb") {|f| f.write(buffer.string) }
|
218
|
+
```
|
219
|
+
|
220
|
+
## Configuration
|
221
|
+
|
222
|
+
By default, rubyzip will not overwrite files if they already exist inside of the extracted path. To change this behavior, you may specify a configuration option like so:
|
223
|
+
|
224
|
+
```ruby
|
225
|
+
Zip.on_exists_proc = true
|
226
|
+
```
|
227
|
+
|
228
|
+
If you're using rubyzip with rails, consider placing this snippet of code in an initializer file such as `config/initializers/rubyzip.rb`
|
229
|
+
|
230
|
+
Additionally, if you want to configure rubyzip to overwrite existing files while creating a .zip file, you can do so with the following:
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
Zip.continue_on_exists_proc = true
|
234
|
+
```
|
235
|
+
|
236
|
+
If you want to store non-english names and want to open them on Windows(pre 7) you need to set this option:
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
Zip.unicode_names = true
|
240
|
+
```
|
241
|
+
|
242
|
+
Some zip files might have an invalid date format, which will raise a warning. You can hide this warning with the following setting:
|
243
|
+
|
244
|
+
```ruby
|
245
|
+
Zip.warn_invalid_date = false
|
246
|
+
```
|
247
|
+
|
248
|
+
You can set the default compression level like so:
|
249
|
+
|
250
|
+
```ruby
|
251
|
+
Zip.default_compression = Zlib::DEFAULT_COMPRESSION
|
252
|
+
```
|
253
|
+
|
254
|
+
It defaults to `Zlib::DEFAULT_COMPRESSION`. Possible values are `Zlib::BEST_COMPRESSION`, `Zlib::DEFAULT_COMPRESSION` and `Zlib::NO_COMPRESSION`
|
255
|
+
|
256
|
+
Sometimes file names inside zip contain non-ASCII characters. If you can assume which encoding was used for such names and want to be able to find such entries using `find_entry` then you can force assumed encoding like so:
|
257
|
+
|
258
|
+
```ruby
|
259
|
+
Zip.force_entry_names_encoding = 'UTF-8'
|
260
|
+
```
|
261
|
+
|
262
|
+
Allowed encoding names are the same as accepted by `String#force_encoding`
|
263
|
+
|
264
|
+
You can set multiple settings at the same time by using a block:
|
265
|
+
|
266
|
+
```ruby
|
267
|
+
Zip.setup do |c|
|
268
|
+
c.on_exists_proc = true
|
269
|
+
c.continue_on_exists_proc = true
|
270
|
+
c.unicode_names = true
|
271
|
+
c.default_compression = Zlib::BEST_COMPRESSION
|
272
|
+
end
|
273
|
+
```
|
274
|
+
|
275
|
+
By default, Zip64 support is disabled for writing. To enable it do this:
|
276
|
+
|
277
|
+
```ruby
|
278
|
+
Zip.write_zip64_support = true
|
279
|
+
```
|
280
|
+
|
281
|
+
_NOTE_: If you will enable Zip64 writing then you will need zip extractor with Zip64 support to extract archive.
|
282
|
+
|
283
|
+
## Developing
|
284
|
+
|
285
|
+
To run the test you need to do this:
|
286
|
+
|
287
|
+
```
|
288
|
+
bundle install
|
289
|
+
rake
|
290
|
+
```
|
291
|
+
|
292
|
+
## Website and Project Home
|
293
|
+
|
294
|
+
http://github.com/rubyzip/rubyzip
|
295
|
+
|
296
|
+
http://rdoc.info/github/rubyzip/rubyzip/master/frames
|
297
|
+
|
298
|
+
## Authors
|
299
|
+
|
300
|
+
Alexander Simonov ( alex at simonov.me)
|
301
|
+
|
302
|
+
Alan Harper ( alan at aussiegeek.net)
|
303
|
+
|
304
|
+
Thomas Sondergaard (thomas at sondergaard.cc)
|
305
|
+
|
306
|
+
Technorama Ltd. (oss-ruby-zip at technorama.net)
|
307
|
+
|
308
|
+
extra-field support contributed by Tatsuki Sugiura (sugi at nemui.org)
|
309
|
+
|
310
|
+
## License
|
311
|
+
|
312
|
+
Rubyzip is distributed under the same license as ruby. See
|
313
|
+
http://www.ruby-lang.org/en/LICENSE.txt
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
|
+
|
4
|
+
task default: :test
|
5
|
+
|
6
|
+
Rake::TestTask.new(:test) do |test|
|
7
|
+
test.libs << 'lib'
|
8
|
+
test.libs << 'test'
|
9
|
+
test.pattern = 'test/**/*_test.rb'
|
10
|
+
test.verbose = true
|
11
|
+
end
|
12
|
+
|
13
|
+
# Rake::TestTask.new(:zip64_full_test) do |test|
|
14
|
+
# test.libs << File.join(File.dirname(__FILE__), 'lib')
|
15
|
+
# test.libs << File.join(File.dirname(__FILE__), 'test')
|
16
|
+
# test.pattern = File.join(File.dirname(__FILE__), 'test/zip64_full_test.rb')
|
17
|
+
# test.verbose = true
|
18
|
+
# end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
* ZipInputStream: Support zip-files with trailing data descriptors
|
3
|
+
* Adjust rdoc stylesheet to advertise inherited methods if possible
|
4
|
+
* Suggestion: Add ZipFile/ZipInputStream example that demonstrates extracting all entries.
|
5
|
+
* Suggestion: ZipFile#extract destination should default to "."
|
6
|
+
* Suggestion: ZipEntry should have extract(), get_input_stream() methods etc
|
7
|
+
* (is buffering used anywhere with write?)
|
8
|
+
* Inflater.sysread should pass the buffer to produce_input.
|
9
|
+
* Implement ZipFsDir.glob
|
10
|
+
* ZipFile.checkIntegrity method
|
11
|
+
* non-MSDOS permission attributes
|
12
|
+
** See mail from Ned Konz to ruby-talk subj. "Re: SV: [ANN] Archive 0.2"
|
13
|
+
* Packager version, required unpacker version in zip headers
|
14
|
+
** See mail from Ned Konz to ruby-talk subj. "Re: SV: [ANN] Archive 0.2"
|
15
|
+
* implement storing attributes and ownership information
|
@@ -0,0 +1,208 @@
|
|
1
|
+
module Zip
|
2
|
+
class CentralDirectory
|
3
|
+
include Enumerable
|
4
|
+
|
5
|
+
END_OF_CDS = 0x06054b50
|
6
|
+
ZIP64_END_OF_CDS = 0x06064b50
|
7
|
+
ZIP64_EOCD_LOCATOR = 0x07064b50
|
8
|
+
MAX_END_OF_CDS_SIZE = 65_536 + 18
|
9
|
+
STATIC_EOCD_SIZE = 22
|
10
|
+
|
11
|
+
attr_reader :comment
|
12
|
+
|
13
|
+
# Returns an Enumerable containing the entries.
|
14
|
+
def entries
|
15
|
+
@entry_set.entries
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(entries = EntrySet.new, comment = '') #:nodoc:
|
19
|
+
super()
|
20
|
+
@entry_set = entries.kind_of?(EntrySet) ? entries : EntrySet.new(entries)
|
21
|
+
@comment = comment
|
22
|
+
end
|
23
|
+
|
24
|
+
def write_to_stream(io) #:nodoc:
|
25
|
+
cdir_offset = io.tell
|
26
|
+
@entry_set.each { |entry| entry.write_c_dir_entry(io) }
|
27
|
+
eocd_offset = io.tell
|
28
|
+
cdir_size = eocd_offset - cdir_offset
|
29
|
+
if ::Zip.write_zip64_support
|
30
|
+
need_zip64_eocd = cdir_offset > 0xFFFFFFFF || cdir_size > 0xFFFFFFFF || @entry_set.size > 0xFFFF
|
31
|
+
need_zip64_eocd ||= @entry_set.any? { |entry| entry.extra['Zip64'] }
|
32
|
+
if need_zip64_eocd
|
33
|
+
write_64_e_o_c_d(io, cdir_offset, cdir_size)
|
34
|
+
write_64_eocd_locator(io, eocd_offset)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
write_e_o_c_d(io, cdir_offset, cdir_size)
|
38
|
+
end
|
39
|
+
|
40
|
+
def write_e_o_c_d(io, offset, cdir_size) #:nodoc:
|
41
|
+
tmp = [
|
42
|
+
END_OF_CDS,
|
43
|
+
0, # @numberOfThisDisk
|
44
|
+
0, # @numberOfDiskWithStartOfCDir
|
45
|
+
@entry_set ? [@entry_set.size, 0xFFFF].min : 0,
|
46
|
+
@entry_set ? [@entry_set.size, 0xFFFF].min : 0,
|
47
|
+
[cdir_size, 0xFFFFFFFF].min,
|
48
|
+
[offset, 0xFFFFFFFF].min,
|
49
|
+
@comment ? @comment.bytesize : 0
|
50
|
+
]
|
51
|
+
io << tmp.pack('VvvvvVVv')
|
52
|
+
io << @comment
|
53
|
+
end
|
54
|
+
|
55
|
+
private :write_e_o_c_d
|
56
|
+
|
57
|
+
def write_64_e_o_c_d(io, offset, cdir_size) #:nodoc:
|
58
|
+
tmp = [
|
59
|
+
ZIP64_END_OF_CDS,
|
60
|
+
44, # size of zip64 end of central directory record (excludes signature and field itself)
|
61
|
+
VERSION_MADE_BY,
|
62
|
+
VERSION_NEEDED_TO_EXTRACT_ZIP64,
|
63
|
+
0, # @numberOfThisDisk
|
64
|
+
0, # @numberOfDiskWithStartOfCDir
|
65
|
+
@entry_set ? @entry_set.size : 0, # number of entries on this disk
|
66
|
+
@entry_set ? @entry_set.size : 0, # number of entries total
|
67
|
+
cdir_size, # size of central directory
|
68
|
+
offset, # offset of start of central directory in its disk
|
69
|
+
]
|
70
|
+
io << tmp.pack('VQ<vvVVQ<Q<Q<Q<')
|
71
|
+
end
|
72
|
+
|
73
|
+
private :write_64_e_o_c_d
|
74
|
+
|
75
|
+
def write_64_eocd_locator(io, zip64_eocd_offset)
|
76
|
+
tmp = [
|
77
|
+
ZIP64_EOCD_LOCATOR,
|
78
|
+
0, # number of disk containing the start of zip64 eocd record
|
79
|
+
zip64_eocd_offset, # offset of the start of zip64 eocd record in its disk
|
80
|
+
1 # total number of disks
|
81
|
+
]
|
82
|
+
io << tmp.pack('VVQ<V')
|
83
|
+
end
|
84
|
+
|
85
|
+
private :write_64_eocd_locator
|
86
|
+
|
87
|
+
def read_64_e_o_c_d(buf) #:nodoc:
|
88
|
+
buf = get_64_e_o_c_d(buf)
|
89
|
+
@size_of_zip64_e_o_c_d = Entry.read_zip_64_long(buf)
|
90
|
+
@version_made_by = Entry.read_zip_short(buf)
|
91
|
+
@version_needed_for_extract = Entry.read_zip_short(buf)
|
92
|
+
@number_of_this_disk = Entry.read_zip_long(buf)
|
93
|
+
@number_of_disk_with_start_of_cdir = Entry.read_zip_long(buf)
|
94
|
+
@total_number_of_entries_in_cdir_on_this_disk = Entry.read_zip_64_long(buf)
|
95
|
+
@size = Entry.read_zip_64_long(buf)
|
96
|
+
@size_in_bytes = Entry.read_zip_64_long(buf)
|
97
|
+
@cdir_offset = Entry.read_zip_64_long(buf)
|
98
|
+
@zip_64_extensible = buf.slice!(0, buf.bytesize)
|
99
|
+
raise Error, 'Zip consistency problem while reading eocd structure' unless buf.empty?
|
100
|
+
end
|
101
|
+
|
102
|
+
def read_e_o_c_d(buf) #:nodoc:
|
103
|
+
buf = get_e_o_c_d(buf)
|
104
|
+
@number_of_this_disk = Entry.read_zip_short(buf)
|
105
|
+
@number_of_disk_with_start_of_cdir = Entry.read_zip_short(buf)
|
106
|
+
@total_number_of_entries_in_cdir_on_this_disk = Entry.read_zip_short(buf)
|
107
|
+
@size = Entry.read_zip_short(buf)
|
108
|
+
@size_in_bytes = Entry.read_zip_long(buf)
|
109
|
+
@cdir_offset = Entry.read_zip_long(buf)
|
110
|
+
comment_length = Entry.read_zip_short(buf)
|
111
|
+
@comment = if comment_length.to_i <= 0
|
112
|
+
buf.slice!(0, buf.size)
|
113
|
+
else
|
114
|
+
buf.read(comment_length)
|
115
|
+
end
|
116
|
+
raise Error, 'Zip consistency problem while reading eocd structure' unless buf.empty?
|
117
|
+
end
|
118
|
+
|
119
|
+
def read_central_directory_entries(io) #:nodoc:
|
120
|
+
begin
|
121
|
+
io.seek(@cdir_offset, IO::SEEK_SET)
|
122
|
+
rescue Errno::EINVAL
|
123
|
+
raise Error, 'Zip consistency problem while reading central directory entry'
|
124
|
+
end
|
125
|
+
@entry_set = EntrySet.new
|
126
|
+
@size.times do
|
127
|
+
@entry_set << Entry.read_c_dir_entry(io)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
def read_from_stream(io) #:nodoc:
|
132
|
+
buf = start_buf(io)
|
133
|
+
if zip64_file?(buf)
|
134
|
+
read_64_e_o_c_d(buf)
|
135
|
+
else
|
136
|
+
read_e_o_c_d(buf)
|
137
|
+
end
|
138
|
+
read_central_directory_entries(io)
|
139
|
+
end
|
140
|
+
|
141
|
+
def get_e_o_c_d(buf) #:nodoc:
|
142
|
+
sig_index = buf.rindex([END_OF_CDS].pack('V'))
|
143
|
+
raise Error, 'Zip end of central directory signature not found' unless sig_index
|
144
|
+
buf = buf.slice!((sig_index + 4)..(buf.bytesize))
|
145
|
+
|
146
|
+
def buf.read(count)
|
147
|
+
slice!(0, count)
|
148
|
+
end
|
149
|
+
|
150
|
+
buf
|
151
|
+
end
|
152
|
+
|
153
|
+
def zip64_file?(buf)
|
154
|
+
buf.rindex([ZIP64_END_OF_CDS].pack('V')) && buf.rindex([ZIP64_EOCD_LOCATOR].pack('V'))
|
155
|
+
end
|
156
|
+
|
157
|
+
def start_buf(io)
|
158
|
+
begin
|
159
|
+
io.seek(-MAX_END_OF_CDS_SIZE, IO::SEEK_END)
|
160
|
+
rescue Errno::EINVAL
|
161
|
+
io.seek(0, IO::SEEK_SET)
|
162
|
+
end
|
163
|
+
io.read
|
164
|
+
end
|
165
|
+
|
166
|
+
def get_64_e_o_c_d(buf) #:nodoc:
|
167
|
+
zip_64_start = buf.rindex([ZIP64_END_OF_CDS].pack('V'))
|
168
|
+
raise Error, 'Zip64 end of central directory signature not found' unless zip_64_start
|
169
|
+
zip_64_locator = buf.rindex([ZIP64_EOCD_LOCATOR].pack('V'))
|
170
|
+
raise Error, 'Zip64 end of central directory signature locator not found' unless zip_64_locator
|
171
|
+
buf = buf.slice!((zip_64_start + 4)..zip_64_locator)
|
172
|
+
|
173
|
+
def buf.read(count)
|
174
|
+
slice!(0, count)
|
175
|
+
end
|
176
|
+
|
177
|
+
buf
|
178
|
+
end
|
179
|
+
|
180
|
+
# For iterating over the entries.
|
181
|
+
def each(&proc)
|
182
|
+
@entry_set.each(&proc)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the number of entries in the central directory (and
|
186
|
+
# consequently in the zip archive).
|
187
|
+
def size
|
188
|
+
@entry_set.size
|
189
|
+
end
|
190
|
+
|
191
|
+
def self.read_from_stream(io) #:nodoc:
|
192
|
+
cdir = new
|
193
|
+
cdir.read_from_stream(io)
|
194
|
+
return cdir
|
195
|
+
rescue Error
|
196
|
+
return nil
|
197
|
+
end
|
198
|
+
|
199
|
+
def ==(other) #:nodoc:
|
200
|
+
return false unless other.kind_of?(CentralDirectory)
|
201
|
+
@entry_set.entries.sort == other.entries.sort && comment == other.comment
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# Copyright (C) 2002, 2003 Thomas Sondergaard
|
207
|
+
# rubyzip is free software; you can redistribute it and/or
|
208
|
+
# modify it under the terms of the ruby license.
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Zip
|
2
|
+
RUNNING_ON_WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i
|
3
|
+
|
4
|
+
CENTRAL_DIRECTORY_ENTRY_SIGNATURE = 0x02014b50
|
5
|
+
CDIR_ENTRY_STATIC_HEADER_LENGTH = 46
|
6
|
+
|
7
|
+
LOCAL_ENTRY_SIGNATURE = 0x04034b50
|
8
|
+
LOCAL_ENTRY_STATIC_HEADER_LENGTH = 30
|
9
|
+
LOCAL_ENTRY_TRAILING_DESCRIPTOR_LENGTH = 4 + 4 + 4
|
10
|
+
VERSION_MADE_BY = 52 # this library's version
|
11
|
+
VERSION_NEEDED_TO_EXTRACT = 20
|
12
|
+
VERSION_NEEDED_TO_EXTRACT_ZIP64 = 45
|
13
|
+
|
14
|
+
FILE_TYPE_FILE = 0o10
|
15
|
+
FILE_TYPE_DIR = 0o04
|
16
|
+
FILE_TYPE_SYMLINK = 0o12
|
17
|
+
|
18
|
+
FSTYPE_FAT = 0
|
19
|
+
FSTYPE_AMIGA = 1
|
20
|
+
FSTYPE_VMS = 2
|
21
|
+
FSTYPE_UNIX = 3
|
22
|
+
FSTYPE_VM_CMS = 4
|
23
|
+
FSTYPE_ATARI = 5
|
24
|
+
FSTYPE_HPFS = 6
|
25
|
+
FSTYPE_MAC = 7
|
26
|
+
FSTYPE_Z_SYSTEM = 8
|
27
|
+
FSTYPE_CPM = 9
|
28
|
+
FSTYPE_TOPS20 = 10
|
29
|
+
FSTYPE_NTFS = 11
|
30
|
+
FSTYPE_QDOS = 12
|
31
|
+
FSTYPE_ACORN = 13
|
32
|
+
FSTYPE_VFAT = 14
|
33
|
+
FSTYPE_MVS = 15
|
34
|
+
FSTYPE_BEOS = 16
|
35
|
+
FSTYPE_TANDEM = 17
|
36
|
+
FSTYPE_THEOS = 18
|
37
|
+
FSTYPE_MAC_OSX = 19
|
38
|
+
FSTYPE_ATHEOS = 30
|
39
|
+
|
40
|
+
FSTYPES = {
|
41
|
+
FSTYPE_FAT => 'FAT'.freeze,
|
42
|
+
FSTYPE_AMIGA => 'Amiga'.freeze,
|
43
|
+
FSTYPE_VMS => 'VMS (Vax or Alpha AXP)'.freeze,
|
44
|
+
FSTYPE_UNIX => 'Unix'.freeze,
|
45
|
+
FSTYPE_VM_CMS => 'VM/CMS'.freeze,
|
46
|
+
FSTYPE_ATARI => 'Atari ST'.freeze,
|
47
|
+
FSTYPE_HPFS => 'OS/2 or NT HPFS'.freeze,
|
48
|
+
FSTYPE_MAC => 'Macintosh'.freeze,
|
49
|
+
FSTYPE_Z_SYSTEM => 'Z-System'.freeze,
|
50
|
+
FSTYPE_CPM => 'CP/M'.freeze,
|
51
|
+
FSTYPE_TOPS20 => 'TOPS-20'.freeze,
|
52
|
+
FSTYPE_NTFS => 'NTFS'.freeze,
|
53
|
+
FSTYPE_QDOS => 'SMS/QDOS'.freeze,
|
54
|
+
FSTYPE_ACORN => 'Acorn RISC OS'.freeze,
|
55
|
+
FSTYPE_VFAT => 'Win32 VFAT'.freeze,
|
56
|
+
FSTYPE_MVS => 'MVS'.freeze,
|
57
|
+
FSTYPE_BEOS => 'BeOS'.freeze,
|
58
|
+
FSTYPE_TANDEM => 'Tandem NSK'.freeze,
|
59
|
+
FSTYPE_THEOS => 'Theos'.freeze,
|
60
|
+
FSTYPE_MAC_OSX => 'Mac OS/X (Darwin)'.freeze,
|
61
|
+
FSTYPE_ATHEOS => 'AtheOS'.freeze
|
62
|
+
}.freeze
|
63
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module Zip
|
2
|
+
module NullEncryption
|
3
|
+
def header_bytesize
|
4
|
+
0
|
5
|
+
end
|
6
|
+
|
7
|
+
def gp_flags
|
8
|
+
0
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
class NullEncrypter < Encrypter
|
13
|
+
include NullEncryption
|
14
|
+
|
15
|
+
def header(_mtime)
|
16
|
+
''
|
17
|
+
end
|
18
|
+
|
19
|
+
def encrypt(data)
|
20
|
+
data
|
21
|
+
end
|
22
|
+
|
23
|
+
def data_descriptor(_crc32, _compressed_size, _uncomprssed_size)
|
24
|
+
''
|
25
|
+
end
|
26
|
+
|
27
|
+
def reset!; end
|
28
|
+
end
|
29
|
+
|
30
|
+
class NullDecrypter < Decrypter
|
31
|
+
include NullEncryption
|
32
|
+
|
33
|
+
def decrypt(data)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
37
|
+
def reset!(_header); end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# Copyright (C) 2002, 2003 Thomas Sondergaard
|
42
|
+
# rubyzip is free software; you can redistribute it and/or
|
43
|
+
# modify it under the terms of the ruby license.
|