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,223 @@
|
|
1
|
+
## 3.3 / 2019-09-04
|
2
|
+
|
3
|
+
* 1 minor enhancement
|
4
|
+
|
5
|
+
* Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
|
6
|
+
interning various string values in each type. This is done with a
|
7
|
+
backwards-compatible call that _freezes_ the strings on older
|
8
|
+
versions of Ruby. [#141][]
|
9
|
+
|
10
|
+
* Administrivia:
|
11
|
+
|
12
|
+
* Nicholas La Roux updated Travis build configurations. [#139][]
|
13
|
+
|
14
|
+
## 3.2.2 / 2018-08-12
|
15
|
+
|
16
|
+
* Hiroto Fukui removed a stray `debugger` statement that I had used in
|
17
|
+
producing v3.2.1. [#137][]
|
18
|
+
|
19
|
+
## 3.2.1 / 2018-08-12
|
20
|
+
|
21
|
+
* A few bugs related to MIME::Types::Container and its use in the
|
22
|
+
mime-types-data helper tools reared their head because I released 3.2
|
23
|
+
before verifying against mime-types-data.
|
24
|
+
|
25
|
+
## 3.2 / 2018-08-12
|
26
|
+
|
27
|
+
* 2 minor enhancements
|
28
|
+
|
29
|
+
* Janko Marohnić contributed a change to `MIME::Type#priority_order` that
|
30
|
+
should improve on strict sorting when dealing with MIME types that
|
31
|
+
appear to be in the same family even if strict sorting would cause an
|
32
|
+
unregistered type to be sorted first. [#132][]
|
33
|
+
|
34
|
+
* Dillon Welch contributed a change that added `frozen_string_literal:
|
35
|
+
true` to files so that modern Rubies can automatically reduce duplicate
|
36
|
+
string allocations. [#135][]
|
37
|
+
|
38
|
+
* 2 bug fixes
|
39
|
+
|
40
|
+
* Burke Libbey fixed a problem with cached data loading. [#126][]
|
41
|
+
|
42
|
+
* Resolved an issue where Enumerable#inject returns +nil+ when provided
|
43
|
+
an empty enumerable and a default value has not been provided. This is
|
44
|
+
because when Enumerable#inject isn't provided a starting value, the
|
45
|
+
first value is used as the default value. In every case where this
|
46
|
+
error was happening, the result was supposed to be an array containing
|
47
|
+
Set objects so they can be reduced to a single Set. [#117][], [#127][],
|
48
|
+
[#134][].
|
49
|
+
|
50
|
+
* Fixed an uncontrolled growth bug in MIME::Types::Container where a key
|
51
|
+
miss would create a new entry with an empty Set in the container. This
|
52
|
+
was working as designed (this particular feature was heavily used
|
53
|
+
during MIME::Type registry construction), but the design was flawed in
|
54
|
+
that it did not have any way of determining the difference between
|
55
|
+
construction and querying. This would mean that, if you have a function
|
56
|
+
in your web app that queries the MIME::Types registry by extension, the
|
57
|
+
extension registry would grow uncontrollably. [#136][]
|
58
|
+
|
59
|
+
* Deprecations:
|
60
|
+
|
61
|
+
* Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
|
62
|
+
|
63
|
+
* Documentation Changes:
|
64
|
+
|
65
|
+
* Supporting files are now Markdown instead of rdoc, except for the
|
66
|
+
README.
|
67
|
+
|
68
|
+
* The history file has been modified to remove all history prior to 3.0.
|
69
|
+
This history can be found in previous commits.
|
70
|
+
|
71
|
+
* A spelling error was corrected by Edward Betts ([#129][]).
|
72
|
+
|
73
|
+
* Administrivia:
|
74
|
+
|
75
|
+
* CI configuration for more modern versions of Ruby were added by Nicolas
|
76
|
+
Leger ([#130][]), Jun Aruga ([#125][]), and Austin Ziegler. Removed
|
77
|
+
ruby-head-clang and rbx (Rubinius) from CI.
|
78
|
+
|
79
|
+
* Fixed tests which were asserting equality against nil, which will
|
80
|
+
become an error in Minitest 6.
|
81
|
+
|
82
|
+
## 3.1 / 2016-05-22
|
83
|
+
|
84
|
+
* 1 documentation change:
|
85
|
+
|
86
|
+
* Tim Smith (@tas50) updated the build badges to be SVGs to improve
|
87
|
+
readability on high-density (retina) screens with pull request
|
88
|
+
[#112][].
|
89
|
+
|
90
|
+
* 3 bug fixes
|
91
|
+
|
92
|
+
* A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
|
93
|
+
strings, [#118][]. This has been fixed.
|
94
|
+
|
95
|
+
* The JSON data has been incorrectly encoded since the release of
|
96
|
+
mime-types 3 on the `xrefs` field, because of the switch to using a Set
|
97
|
+
to store cross-reference information. This has been fixed.
|
98
|
+
|
99
|
+
* A tentative fix for [#117][] has been applied, removing the only
|
100
|
+
circular require dependencies that exist (and for which there was code
|
101
|
+
to prevent, but the current fix is simpler). I have no way to verify
|
102
|
+
this fix and depending on how things are loaded by `delayed_job`, this
|
103
|
+
fix may not be sufficient.
|
104
|
+
|
105
|
+
* 1 governance change
|
106
|
+
|
107
|
+
* Updated to Contributor Covenant 1.4.
|
108
|
+
|
109
|
+
## 3.0 / 2015-11-21
|
110
|
+
|
111
|
+
* 2 governance changes
|
112
|
+
|
113
|
+
* This project and the related mime-types-data project are now
|
114
|
+
exclusively MIT licensed. Resolves [#95][].
|
115
|
+
|
116
|
+
* All projects under the mime-types organization now have a standard code
|
117
|
+
of conduct adapted from the [Contributor Covenant][]. This text can be
|
118
|
+
found in the [Code-of-Conduct.md][] file.
|
119
|
+
|
120
|
+
* 3 major changes
|
121
|
+
|
122
|
+
* All methods deprecated in mime-types 2.x have been removed.
|
123
|
+
|
124
|
+
* mime-types now requires Ruby 2.0 compatibility or later. Resolves
|
125
|
+
[#97][].
|
126
|
+
|
127
|
+
* The registry data has been removed from mime-types and put into
|
128
|
+
mime-types-data, maintained and released separately. It can be found at
|
129
|
+
[mime-types-data][].
|
130
|
+
|
131
|
+
* 17 minor changes:
|
132
|
+
|
133
|
+
* `MIME::Type` changes:
|
134
|
+
|
135
|
+
* Changed the way that simplified types representations are created
|
136
|
+
to reflect the fact that `x-` prefixes are no longer considered
|
137
|
+
special according to IANA. A simplified MIME type is case-folded to
|
138
|
+
lowercase. A new keyword parameter, `remove_x_prefix`, can be
|
139
|
+
provided to remove `x-` prefixes.
|
140
|
+
|
141
|
+
* Improved initialization with an Array works so that extensions do
|
142
|
+
not need to be wrapped in another array. This means that
|
143
|
+
`%w(text/yaml yaml yml)` works in the same way that
|
144
|
+
`['text/yaml', %w(yaml yml)]` did (and still does).
|
145
|
+
|
146
|
+
* Changed `priority_compare` to conform with attributes that no
|
147
|
+
longer exist.
|
148
|
+
|
149
|
+
* Changed the internal implementation of extensions to use a frozen
|
150
|
+
Set.
|
151
|
+
|
152
|
+
* When extensions are set or modified with `add_extensions`, the
|
153
|
+
primary registry will be informed of a need to reindex extensions.
|
154
|
+
Resolves [#84][].
|
155
|
+
|
156
|
+
* The preferred extension can be set explicitly. If not set, it will
|
157
|
+
be the first extension. If the preferred extension is not in the
|
158
|
+
extension list, it will be added.
|
159
|
+
|
160
|
+
* Improved how xref URLs are generated.
|
161
|
+
|
162
|
+
* Converted `obsolete`, `registered` and `signature` to
|
163
|
+
`attr_accessors`.
|
164
|
+
|
165
|
+
* `MIME::Types` changes:
|
166
|
+
|
167
|
+
* Modified `MIME::Types.new` to track instances of `MIME::Types` so
|
168
|
+
that they can be told to reindex the extensions as necessary.
|
169
|
+
|
170
|
+
* Removed `data_version` attribute.
|
171
|
+
|
172
|
+
* Changed `#[]` so that the `complete` and `registered` flags are
|
173
|
+
keywords instead of a generic options parameter.
|
174
|
+
|
175
|
+
* Extracted the class methods to a separate file.
|
176
|
+
|
177
|
+
* Changed the container implementation to use a Set instead of an
|
178
|
+
Array to prevent data duplication. Resolves [#79][].
|
179
|
+
|
180
|
+
* `MIME::Types::Cache` changes:
|
181
|
+
|
182
|
+
* Caching is now based on the data gem version instead of the
|
183
|
+
mime-types version.
|
184
|
+
|
185
|
+
* Caching is compatible with columnar registry stores.
|
186
|
+
|
187
|
+
* `MIME::Types::Loader` changes:
|
188
|
+
|
189
|
+
* `MIME::Types::Loader::PATH` has been removed and replaced with
|
190
|
+
`MIME::Types::Data::PATH` from the mime-types-data gem. The
|
191
|
+
environment variable `RUBY_MIME_TYPES_DATA` is still used.
|
192
|
+
|
193
|
+
* Support for the long-deprecated mime-types v1 format has been
|
194
|
+
removed.
|
195
|
+
|
196
|
+
* The registry is default loaded from the columnar store by default.
|
197
|
+
The internal format of the columnar store has changed; many of the
|
198
|
+
boolean flags are now loaded from a single file. Resolves [#85][].
|
199
|
+
|
200
|
+
[#79]: https://github.com/mime-types/ruby-mime-types/pull/79
|
201
|
+
[#84]: https://github.com/mime-types/ruby-mime-types/pull/84
|
202
|
+
[#85]: https://github.com/mime-types/ruby-mime-types/pull/85
|
203
|
+
[#95]: https://github.com/mime-types/ruby-mime-types/pull/95
|
204
|
+
[#97]: https://github.com/mime-types/ruby-mime-types/pull/97
|
205
|
+
[#112]: https://github.com/mime-types/ruby-mime-types/pull/112
|
206
|
+
[#117]: https://github.com/mime-types/ruby-mime-types/issues/117
|
207
|
+
[#118]: https://github.com/mime-types/ruby-mime-types/pull/118
|
208
|
+
[#125]: https://github.com/mime-types/ruby-mime-types/pull/125
|
209
|
+
[#126]: https://github.com/mime-types/ruby-mime-types/pull/126
|
210
|
+
[#127]: https://github.com/mime-types/ruby-mime-types/issues/127
|
211
|
+
[#129]: https://github.com/mime-types/ruby-mime-types/pull/129
|
212
|
+
[#130]: https://github.com/mime-types/ruby-mime-types/pull/130
|
213
|
+
[#127]: https://github.com/mime-types/ruby-mime-types/issues/127
|
214
|
+
[#132]: https://github.com/mime-types/ruby-mime-types/pull/132
|
215
|
+
[#134]: https://github.com/mime-types/ruby-mime-types/issues/134
|
216
|
+
[#135]: https://github.com/mime-types/ruby-mime-types/pull/135
|
217
|
+
[#136]: https://github.com/mime-types/ruby-mime-types/issues/136
|
218
|
+
[#137]: https://github.com/mime-types/ruby-mime-types/pull/137
|
219
|
+
[#139]: https://github.com/mime-types/ruby-mime-types/pull/139
|
220
|
+
[#141]: https://github.com/mime-types/ruby-mime-types/pull/141
|
221
|
+
[Code-of-Conduct.md]: Code-of-Conduct_md.html
|
222
|
+
[Contributor Covenant]: http://contributor-covenant.org
|
223
|
+
[mime-types-data]: https://github.com/mime-types/mime-types-data
|
@@ -0,0 +1,25 @@
|
|
1
|
+
## Licence
|
2
|
+
|
3
|
+
* Copyright 2003–2019 Austin Ziegler and contributors.
|
4
|
+
|
5
|
+
The software in this repository is made available under the MIT license.
|
6
|
+
|
7
|
+
### MIT License
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
10
|
+
this software and associated documentation files (the "Software"), to deal in
|
11
|
+
the Software without restriction, including without limitation the rights to
|
12
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
13
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
14
|
+
so, subject to the following conditions:
|
15
|
+
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
17
|
+
copies or substantial portions of the Software.
|
18
|
+
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25
|
+
SOFTWARE.
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Code-of-Conduct.md
|
2
|
+
Contributing.md
|
3
|
+
History.md
|
4
|
+
Licence.md
|
5
|
+
Manifest.txt
|
6
|
+
README.rdoc
|
7
|
+
Rakefile
|
8
|
+
lib/mime-types.rb
|
9
|
+
lib/mime/type.rb
|
10
|
+
lib/mime/type/columnar.rb
|
11
|
+
lib/mime/types.rb
|
12
|
+
lib/mime/types/_columnar.rb
|
13
|
+
lib/mime/types/cache.rb
|
14
|
+
lib/mime/types/columnar.rb
|
15
|
+
lib/mime/types/container.rb
|
16
|
+
lib/mime/types/deprecations.rb
|
17
|
+
lib/mime/types/full.rb
|
18
|
+
lib/mime/types/loader.rb
|
19
|
+
lib/mime/types/logger.rb
|
20
|
+
lib/mime/types/registry.rb
|
21
|
+
test/bad-fixtures/malformed
|
22
|
+
test/fixture/json.json
|
23
|
+
test/fixture/old-data
|
24
|
+
test/fixture/yaml.yaml
|
25
|
+
test/minitest_helper.rb
|
26
|
+
test/test_mime_type.rb
|
27
|
+
test/test_mime_types.rb
|
28
|
+
test/test_mime_types_cache.rb
|
29
|
+
test/test_mime_types_class.rb
|
30
|
+
test/test_mime_types_lazy.rb
|
31
|
+
test/test_mime_types_loader.rb
|
@@ -0,0 +1,200 @@
|
|
1
|
+
= mime-types for Ruby
|
2
|
+
|
3
|
+
home :: https://github.com/mime-types/ruby-mime-types/
|
4
|
+
code :: https://github.com/mime-types/ruby-mime-types/
|
5
|
+
bugs :: https://github.com/mime-types/ruby-mime-types/issues
|
6
|
+
rdoc :: http://rdoc.info/gems/mime-types/
|
7
|
+
continuous integration :: {<img src="https://travis-ci.org/mime-types/ruby-mime-types.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/mime-types/ruby-mime-types]
|
8
|
+
test coverage :: {<img src="https://coveralls.io/repos/mime-types/ruby-mime-types/badge.svg?branch=master&service=github" alt="Coverage Status" />}[https://coveralls.io/github/mime-types/ruby-mime-types?branch=master]
|
9
|
+
|
10
|
+
== Description
|
11
|
+
|
12
|
+
The mime-types library provides a library and registry for information about
|
13
|
+
MIME content type definitions. It can be used to determine defined filename
|
14
|
+
extensions for MIME types, or to use filename extensions to look up the likely
|
15
|
+
MIME type definitions.
|
16
|
+
|
17
|
+
Version 3.0 is a major release that requires Ruby 2.0 compatibility and removes
|
18
|
+
deprecated functions. The columnar registry format introduced in 2.6 has been
|
19
|
+
made the primary format; the registry data has been extracted from this library
|
20
|
+
and put into {mime-types-data}[https://github.com/mime-types/mime-types-data].
|
21
|
+
Additionally, mime-types is now licensed exclusively under the MIT licence and
|
22
|
+
there is a code of conduct in effect. There are a number of other smaller
|
23
|
+
changes described in the History file.
|
24
|
+
|
25
|
+
=== About MIME Media Types
|
26
|
+
|
27
|
+
MIME content types are used in MIME-compliant communications, as in e-mail or
|
28
|
+
HTTP traffic, to indicate the type of content which is transmitted. The
|
29
|
+
mime-types library provides the ability for detailed information about MIME
|
30
|
+
entities (provided as an enumerable collection of MIME::Type objects) to be
|
31
|
+
determined and used. There are many types defined by RFCs and vendors, so the
|
32
|
+
list is long but by definition incomplete; don't hesitate to add additional
|
33
|
+
type definitions. MIME type definitions found in mime-types are from RFCs, W3C
|
34
|
+
recommendations, the {IANA Media Types
|
35
|
+
registry}[https://www.iana.org/assignments/media-types/media-types.xhtml], and
|
36
|
+
user contributions. It conforms to RFCs 2045 and 2231.
|
37
|
+
|
38
|
+
=== mime-types 1.x End of Life
|
39
|
+
|
40
|
+
mime-types 1.x is no longer supported as of 2015-10-27.
|
41
|
+
|
42
|
+
=== mime-types 2.x End of Life
|
43
|
+
|
44
|
+
mime-types 2.x is no longer supported as of 2017-11-21.
|
45
|
+
|
46
|
+
=== mime-types 3.x
|
47
|
+
|
48
|
+
Users are encouraged to upgrade to mime-types 3.x as soon as is practical.
|
49
|
+
mime-types 3.x requires Ruby 2.0 compatibility and a simpler licensing scheme.
|
50
|
+
|
51
|
+
== Synopsis
|
52
|
+
|
53
|
+
MIME types are used in MIME entities, as in email or HTTP traffic. It is useful
|
54
|
+
at times to have information available about MIME types (or, inversely, about
|
55
|
+
files). A MIME::Type stores the known information about one MIME type.
|
56
|
+
|
57
|
+
require 'mime/types'
|
58
|
+
|
59
|
+
plaintext = MIME::Types['text/plain'] # => [ text/plain ]
|
60
|
+
text = plaintext.first
|
61
|
+
puts text.media_type # => 'text'
|
62
|
+
puts text.sub_type # => 'plain'
|
63
|
+
|
64
|
+
puts text.extensions.join(' ') # => 'txt asc c cc h hh cpp hpp dat hlp'
|
65
|
+
puts text.preferred_extension # => 'txt'
|
66
|
+
puts text.friendly # => 'Text Document'
|
67
|
+
puts text.i18n_key # => 'text.plain'
|
68
|
+
|
69
|
+
puts text.encoding # => quoted-printable
|
70
|
+
puts text.default_encoding # => quoted-printable
|
71
|
+
puts text.binary? # => false
|
72
|
+
puts text.ascii? # => true
|
73
|
+
puts text.obsolete? # => false
|
74
|
+
puts text.registered? # => true
|
75
|
+
puts text.complete? # => true
|
76
|
+
|
77
|
+
puts text # => 'text/plain'
|
78
|
+
|
79
|
+
puts text == 'text/plain' # => true
|
80
|
+
puts 'text/plain' == text # => true
|
81
|
+
puts text == 'text/x-plain' # => false
|
82
|
+
puts 'text/x-plain' == text # => false
|
83
|
+
|
84
|
+
puts MIME::Type.simplified('x-appl/x-zip') # => 'x-appl/x-zip'
|
85
|
+
puts MIME::Type.i18n_key('x-appl/x-zip') # => 'x-appl.x-zip'
|
86
|
+
|
87
|
+
puts text.like?('text/x-plain') # => true
|
88
|
+
puts text.like?(MIME::Type.new('x-text/x-plain')) # => true
|
89
|
+
|
90
|
+
puts text.xrefs.inspect # => { "rfc" => [ "rfc2046", "rfc3676", "rfc5147" ] }
|
91
|
+
puts text.xref_urls # => [ "http://www.iana.org/go/rfc2046",
|
92
|
+
# "http://www.iana.org/go/rfc3676",
|
93
|
+
# "http://www.iana.org/go/rfc5147" ]
|
94
|
+
|
95
|
+
xtext = MIME::Type.new('x-text/x-plain')
|
96
|
+
puts xtext.media_type # => 'text'
|
97
|
+
puts xtext.raw_media_type # => 'x-text'
|
98
|
+
puts xtext.sub_type # => 'plain'
|
99
|
+
puts xtext.raw_sub_type # => 'x-plain'
|
100
|
+
puts xtext.complete? # => false
|
101
|
+
|
102
|
+
puts MIME::Types.any? { |type| type.content_type == 'text/plain' } # => true
|
103
|
+
puts MIME::Types.all?(&:registered?) # => false
|
104
|
+
|
105
|
+
# Various string representations of MIME types
|
106
|
+
qcelp = MIME::Types['audio/QCELP'].first # => audio/QCELP
|
107
|
+
puts qcelp.content_type # => 'audio/QCELP'
|
108
|
+
puts qcelp.simplified # => 'audio/qcelp'
|
109
|
+
|
110
|
+
xwingz = MIME::Types['application/x-Wingz'].first # => application/x-Wingz
|
111
|
+
puts xwingz.content_type # => 'application/x-Wingz'
|
112
|
+
puts xwingz.simplified # => 'application/x-wingz'
|
113
|
+
|
114
|
+
=== Columnar Store
|
115
|
+
|
116
|
+
mime-types uses as its primary registry storage format a columnar storage
|
117
|
+
format reducing the default memory footprint. This is done by selectively
|
118
|
+
loading the data on a per-attribute basis. When the registry is first loaded
|
119
|
+
from the columnar store, only the canonical MIME content type and known
|
120
|
+
extensions and the MIME type will be connected to its loading registry. When
|
121
|
+
other data about the type is required (including +preferred_extension+,
|
122
|
+
<tt>obsolete?</tt>, and <tt>registered?</tt>) that data is loaded from its own
|
123
|
+
column file for all types in the registry.
|
124
|
+
|
125
|
+
The load of any column data is performed with a Mutex to ensure that types are
|
126
|
+
updated safely in a multithreaded environment. Benchmarks show that while
|
127
|
+
columnar data loading is slower than the JSON store, it cuts the memory use by
|
128
|
+
a third over the JSON store.
|
129
|
+
|
130
|
+
If you prefer to load all the data at once, this can be specified in your
|
131
|
+
application Gemfile as:
|
132
|
+
|
133
|
+
gem 'mime-types', require: 'mime/types/full'
|
134
|
+
|
135
|
+
Projects that do not use Bundler should +require+ the same:
|
136
|
+
|
137
|
+
require 'mime/types/full'
|
138
|
+
|
139
|
+
Libraries that use mime-types are discouraged from choosing the JSON store.
|
140
|
+
|
141
|
+
For applications and clients that used mime-types 2.6 when the columnar store
|
142
|
+
was introduced, the require used previously will still work through at least
|
143
|
+
{version
|
144
|
+
4}[https://github.com/mime-types/ruby-mime-types/pull/96#issuecomment-100725400]
|
145
|
+
and possibly beyond; it is effectively an empty operation. You are recommended
|
146
|
+
to change your Gemfile as soon as is practical.
|
147
|
+
|
148
|
+
require 'mime/types/columnar'
|
149
|
+
|
150
|
+
Note that MIME::Type::Columnar and MIME::Types::Columnar are considered private
|
151
|
+
variant implementations of MIME::Type and MIME::Types and the specific
|
152
|
+
implementation should not be relied upon by consumers of the mime-types
|
153
|
+
library. Instead, depend on the public implementations (MIME::Type and
|
154
|
+
MIME::Types) only.
|
155
|
+
|
156
|
+
=== Cached Storage
|
157
|
+
|
158
|
+
mime-types supports a cache of MIME types using <tt>Marshal.dump</tt>. The
|
159
|
+
cache is invalidated for each version of the mime-types-data gem so that data
|
160
|
+
version 3.2015.1201 will not be reused with data version 3.2016.0101. If the
|
161
|
+
environment variable +RUBY_MIME_TYPES_CACHE+ is set to a cache file, mime-types
|
162
|
+
will attempt to load the MIME type registry from the cache file. If it cannot,
|
163
|
+
it will load the types normally and then saves the registry to the cache file.
|
164
|
+
|
165
|
+
The caching works with both full stores and columnar stores. Only the data that
|
166
|
+
has been loaded prior to saving the cache will be stored.
|
167
|
+
|
168
|
+
== mime-types Modified Semantic Versioning
|
169
|
+
|
170
|
+
The mime-types library has one version number, but this single version number
|
171
|
+
tracks both API changes and registry data changes; this is not wholly
|
172
|
+
compatible with all aspects of {Semantic Versioning}[http://semver.org/];
|
173
|
+
removing a MIME type from the registry *could* be considered a breaking change
|
174
|
+
under some interpretations of semantic versioning (as lookups for that
|
175
|
+
particular type would no longer work by default).
|
176
|
+
|
177
|
+
mime-types uses a modified semantic versioning scheme. Given the version
|
178
|
+
MAJOR.MINOR:
|
179
|
+
|
180
|
+
1. If an incompatible API (code) change is made, the MAJOR version will be
|
181
|
+
incremented, MINOR will be set to zero, and PATCH will be reset to the
|
182
|
+
implied zero.
|
183
|
+
|
184
|
+
2. If an API (code) feature is added that does not break compatibility, the
|
185
|
+
MINOR version will be incremented and PATCH will be reset to the implied zero.
|
186
|
+
|
187
|
+
3. If there is a bugfix to a feature added in the most recent MAJOR.MINOR
|
188
|
+
release, the implied PATCH value will be incremented resulting in
|
189
|
+
MAJOR.MINOR.PATCH.
|
190
|
+
|
191
|
+
In practical terms, there will be fewer releases of mime-types focussing on
|
192
|
+
features because of the existence of the [mime-types-data][] gem, and if
|
193
|
+
features are marked deprecated in the course of mime-types 3.x, they will not
|
194
|
+
be removed until mime-types 4.x or possibly later.
|
195
|
+
|
196
|
+
{Code of Conduct}[Code-of-Conduct_md.html]
|
197
|
+
|
198
|
+
{Contributing}[Contributing_md.html]
|
199
|
+
|
200
|
+
{Licence}[Licence_md.html]
|