vagrant-unbundled 2.2.18.0 → 2.2.19.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 +15 -0
- data/Gemfile.lock +6 -6
- data/contrib/zsh/generate_zsh_completion.rb +2 -2
- data/lib/vagrant/errors.rb +8 -0
- data/plugins/commands/upload/command.rb +1 -1
- data/plugins/guests/atomic/guest.rb +1 -1
- data/plugins/guests/coreos/cap/configure_networks.rb +65 -0
- data/plugins/guests/darwin/cap/mount_smb_shared_folder.rb +6 -3
- data/plugins/guests/suse/cap/halt.rb +5 -1
- data/plugins/guests/windows/cap/rsync.rb +5 -1
- data/plugins/hosts/darwin/cap/path.rb +4 -0
- data/plugins/hosts/darwin/cap/version.rb +23 -0
- data/plugins/hosts/darwin/plugin.rb +5 -0
- data/plugins/hosts/windows/cap/ssh.rb +1 -1
- data/plugins/providers/virtualbox/action/network.rb +39 -2
- data/plugins/provisioners/chef/cap/freebsd/chef_installed.rb +5 -3
- data/plugins/provisioners/chef/cap/linux/chef_installed.rb +5 -3
- data/plugins/provisioners/chef/cap/omnios/chef_installed.rb +7 -5
- data/plugins/provisioners/chef/cap/windows/chef_installed.rb +3 -2
- data/templates/locales/en.yml +25 -0
- data/vagrant.gemspec +1 -1
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/CONTRIBUTING.md +23 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/CONTRIBUTORS.md +140 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/LICENSE.md +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/README.md +492 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/data/cacert.pem +3232 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/excon.gemspec +45 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/connection.rb +599 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/constants.rb +172 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/error.rb +229 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/extensions/uri.rb +34 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/headers.rb +85 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/instrumentors/logging_instrumentor.rb +48 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/instrumentors/standard_instrumentor.rb +21 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/base.rb +31 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/capture_cookies.rb +32 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/decompress.rb +44 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/escape_path.rb +12 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/expects.rb +25 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/idempotent.rb +57 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/instrumentor.rb +49 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/mock.rb +61 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/redirect_follower.rb +87 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/response_parser.rb +16 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/pretty_printer.rb +39 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/response.rb +234 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/socket.rb +297 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/ssl_socket.rb +194 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/exec.rb +26 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/puma.rb +23 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/unicorn.rb +40 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/webrick.rb +26 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/server.rb +106 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/unix_socket.rb +42 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/utils.rb +143 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/version.rb +4 -0
- data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon.rb +255 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/README.md +122 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/base.rb +289 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cache.rb +113 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cache_file.rb +36 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cascade.rb +56 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/chain.rb +130 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/fallbacks.rb +97 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/flatten.rb +118 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/gettext.rb +85 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/interpolation_compiler.rb +123 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/key_value.rb +206 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/memoize.rb +54 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/metadata.rb +71 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/pluralization.rb +55 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/simple.rb +108 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/transliterator.rb +108 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend.rb +21 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/config.rb +165 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/core_ext/hash.rb +59 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/exceptions.rb +111 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext/helpers.rb +75 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext/po_parser.rb +329 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext.rb +28 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/interpolate/ruby.rb +39 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/fallbacks.rb +99 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/parents.rb +24 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/rfc4646.rb +74 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/simple.rb +39 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag.rb +28 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale.rb +8 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/middleware.rb +17 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/basics.rb +60 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/defaults.rb +52 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/interpolation.rb +163 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/link.rb +66 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date.rb +117 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date_time.rb +103 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/procs.rb +117 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/time.rb +103 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization.rb +19 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/lookup.rb +81 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/pluralization.rb +35 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/procs.rb +60 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests.rb +14 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/version.rb +5 -0
- data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n.rb +415 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Code-of-Conduct.md +73 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Contributing.md +132 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/History.md +269 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Licence.md +25 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Manifest.txt +31 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/README.rdoc +194 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Rakefile +270 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/type/columnar.rb +57 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/type.rb +634 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb +137 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/cache.rb +58 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/columnar.rb +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/container.rb +96 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/deprecations.rb +36 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/full.rb +19 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/loader.rb +159 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/logger.rb +37 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/registry.rb +90 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types.rb +233 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime-types.rb +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/bad-fixtures/malformed +9 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/json.json +1 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/old-data +9 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/yaml.yaml +55 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/minitest_helper.rb +11 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_type.rb +621 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types.rb +169 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_cache.rb +118 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_class.rb +159 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_lazy.rb +49 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_loader.rb +32 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Code-of-Conduct.md +75 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Contributing.md +241 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/History.md +494 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Licence.md +24 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Manifest.txt +34 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/README.md +73 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Rakefile +155 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/content_type_mime.db +878 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/ext_mime.db +1198 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime-types.json +1 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.content_type.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.docs.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.encoding.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.flags.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.friendly.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.pext.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.use_instead.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.xrefs.column +2376 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/lib/mime/types/data.rb +21 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/lib/mime-types-data.rb +3 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/application.yaml +17254 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/audio.yaml +1716 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/chemical.yaml +71 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/conference.yaml +9 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/drawing.yaml +15 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/font.yaml +65 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/image.yaml +1251 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/message.yaml +200 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/model.yaml +390 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/multipart.yaml +179 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/provisional-standard-types.yaml +129 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/text.yaml +1166 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/video.yaml +1121 -0
- data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/world.yaml +8 -0
- data/vendor/bundle/ruby/3.0.0/specifications/excon-0.89.0.gemspec +58 -0
- data/vendor/bundle/ruby/3.0.0/specifications/i18n-1.8.11.gemspec +32 -0
- data/vendor/bundle/ruby/3.0.0/specifications/mime-types-3.4.1.gemspec +63 -0
- data/vendor/bundle/ruby/3.0.0/specifications/mime-types-data-3.2021.1115.gemspec +54 -0
- data/version.txt +1 -1
- metadata +157 -4
@@ -0,0 +1,241 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Contributions to mime-types-data is encouraged in any form: a bug report, new
|
4
|
+
MIME type definitions, or additional code to help manage the MIME types. As with
|
5
|
+
many of my projects, I have a few suggestions for improving the chance of
|
6
|
+
acceptance of your code contributions:
|
7
|
+
|
8
|
+
- The support files are written in Ruby and should remain in the coding style
|
9
|
+
that already exists, and I use hoe for releasing the mime-types-data RubyGem.
|
10
|
+
- Use a thoughtfully-named topic branch that contains your change. Rebase your
|
11
|
+
commits into logical chunks as necessary.
|
12
|
+
- Use [quality commit messages][qcm].
|
13
|
+
- Do not change the version number; when your patch is accepted and a release
|
14
|
+
is made, the version will be updated at that point.
|
15
|
+
- Submit a GitHub pull request with your changes.
|
16
|
+
- New or changed behaviours require new or updated documentation.
|
17
|
+
|
18
|
+
Although mime-types-data was extracted from the [Ruby mime-types][rmt] gem and
|
19
|
+
the support files are written in Ruby, the _target_ of mime-types-data is any
|
20
|
+
implementation that wishes to use the data as a MIME types registry, so I am
|
21
|
+
particularly interested in tools that will create a mime-types-data package for
|
22
|
+
other languages.
|
23
|
+
|
24
|
+
### Adding or Modifying MIME Types
|
25
|
+
|
26
|
+
The Ruby mime-types gem loads its data from files encoded in the `data`
|
27
|
+
directory in this gem by loading `mime-types-data` and reading
|
28
|
+
MIME::Types::Data::PATH. These files are compiled files from the collection of
|
29
|
+
data in the `types` directory. Pull requests that include changes to these files
|
30
|
+
will require amendment to revert these files.
|
31
|
+
|
32
|
+
New or modified MIME types should be edited in the appropriate YAML file under
|
33
|
+
`types`. The format is as shown below for the `application/xml` MIME type in
|
34
|
+
`types/application.yml`.
|
35
|
+
|
36
|
+
```yaml
|
37
|
+
- !ruby/object:MIME::Type
|
38
|
+
content-type: application/xml
|
39
|
+
encoding: 8bit
|
40
|
+
extensions:
|
41
|
+
- xml
|
42
|
+
- xsl
|
43
|
+
references:
|
44
|
+
- IANA
|
45
|
+
- RFC3023
|
46
|
+
xrefs:
|
47
|
+
rfc:
|
48
|
+
- rfc3023
|
49
|
+
registered: true
|
50
|
+
```
|
51
|
+
|
52
|
+
There are other fields that can be added, matching the fields discussed in the
|
53
|
+
documentation for MIME::Type. Pull requests for MIME types should just contain
|
54
|
+
the changes to the YAML files for the new or modified MIME types; I will convert
|
55
|
+
the YAML files to JSON prior to a new release. I would rather not have to verify
|
56
|
+
that the JSON matches the YAML changes, which is why it is not necessary to
|
57
|
+
convert for the pull request.
|
58
|
+
|
59
|
+
If you are making a change for a private fork, use `rake convert:yaml:json` to
|
60
|
+
convert the YAML to JSON, or `rake convert:yaml:columnar` to convert it to the
|
61
|
+
new columnar format.
|
62
|
+
|
63
|
+
#### Updating Types from the IANA or Apache Lists
|
64
|
+
|
65
|
+
If you are maintaining a private fork and wish to update your copy of the MIME
|
66
|
+
types registry used by this gem, you can do this with the rake tasks:
|
67
|
+
|
68
|
+
```sh
|
69
|
+
$ rake mime:iana
|
70
|
+
$ rake mime:apache
|
71
|
+
```
|
72
|
+
|
73
|
+
##### A Note on Provisional Types
|
74
|
+
|
75
|
+
The file `types/provisional-standard-types.yaml` contains the provisionally
|
76
|
+
registered types from IANA. Per IANA,
|
77
|
+
|
78
|
+
> This registry, unlike some other provisional IANA registries, is only for
|
79
|
+
> temporary use. Entries in this registry are either finalized and moved to the
|
80
|
+
> main media types registry or are abandoned and deleted. Entries in this
|
81
|
+
> registry are suitable for use for development and test purposes only.
|
82
|
+
|
83
|
+
The provisional types file is rewritten when updated, so pull requests to
|
84
|
+
manually promote or customize provisional types (such as with extensions). It is
|
85
|
+
recommended that any updates required to the data be performed in your
|
86
|
+
application if you require provisional types.
|
87
|
+
|
88
|
+
### Development Dependencies
|
89
|
+
|
90
|
+
mime-types-data uses Ryan Davis’s {Hoe}[https://github.com/seattlerb/hoe] to
|
91
|
+
manage the release process, and it adds a number of rake tasks. You will mostly
|
92
|
+
be interested in:
|
93
|
+
|
94
|
+
```sh
|
95
|
+
$ rake
|
96
|
+
```
|
97
|
+
|
98
|
+
which runs the tests the same way that:
|
99
|
+
|
100
|
+
```sh
|
101
|
+
$ rake test
|
102
|
+
$ rake travis
|
103
|
+
```
|
104
|
+
|
105
|
+
will do.
|
106
|
+
|
107
|
+
To assist with the installation of the development dependencies for
|
108
|
+
mime-types-data, I have provided the simplest possible Gemfile pointing to the
|
109
|
+
(generated) `mime-types-data.gemspec` file. This will permit you to do:
|
110
|
+
|
111
|
+
```sh
|
112
|
+
$ bundle install
|
113
|
+
```
|
114
|
+
|
115
|
+
to get the development dependencies. If you aleady have `hoe` installed, you
|
116
|
+
can accomplish the same thing with:
|
117
|
+
|
118
|
+
```sh
|
119
|
+
$ rake newb
|
120
|
+
```
|
121
|
+
|
122
|
+
This task will install any missing dependencies, run the tests/specs, and
|
123
|
+
generate the RDoc.
|
124
|
+
|
125
|
+
You can run tests with code coverage analysis by running:
|
126
|
+
|
127
|
+
```sh
|
128
|
+
$ rake test:coverage
|
129
|
+
```
|
130
|
+
|
131
|
+
### Workflow
|
132
|
+
|
133
|
+
Here's the most direct way to get your work merged into the project:
|
134
|
+
|
135
|
+
- Fork the project.
|
136
|
+
- Clone down your fork (`git clone git://github.com/<username>/mime-types-data.git`).
|
137
|
+
- Create a topic branch to contain your change (`git checkout -b my\_awesome\_feature`).
|
138
|
+
- Hack away, add tests. Not necessarily in that order.
|
139
|
+
- Make sure everything still passes by running `rake`.
|
140
|
+
- If necessary, rebase your commits into logical chunks, without errors.
|
141
|
+
- Push the branch up (`git push origin my\_awesome\_feature`).
|
142
|
+
- Create a pull request against mime-types/mime-types-data and describe what
|
143
|
+
your change does and the why you think it should be merged.
|
144
|
+
|
145
|
+
### The Release Process
|
146
|
+
|
147
|
+
The release process needs automation; as it includes generating code and
|
148
|
+
committing to the repository, it is not clear how this will happen safely.
|
149
|
+
|
150
|
+
1. Review any outstanding issues or pull requests to see if anything needs to be
|
151
|
+
addressed. This is necessary because there is currently no automated source
|
152
|
+
for extensions for the thousands of MIME entries. (Suggestions and/or pull
|
153
|
+
requests for same would be deeply appreciated.)
|
154
|
+
2. `bundle install`
|
155
|
+
3. `bundle exec rake mime:apache`
|
156
|
+
4. `bundle exec rake mime:iana`
|
157
|
+
5. Review the changes to make sure that the changes are sane. The IANA data
|
158
|
+
source changes from time to time, resulting in big changes or even a broken
|
159
|
+
step 4. (The most recent change was the addition of the font/\* top-level
|
160
|
+
category.)
|
161
|
+
6. `bundle exec rake convert`
|
162
|
+
7. `bundle exec rake update:version`
|
163
|
+
8. Write up the changes in History.md. If any PRs have been merged, these should
|
164
|
+
be noted specifically.
|
165
|
+
9. Commit the changes and push to GitHub.
|
166
|
+
10. `bundle exec rake release VERSION=newversion`
|
167
|
+
|
168
|
+
### Automating the Release
|
169
|
+
|
170
|
+
If anyone wishes to provide suggestions on automation, this would be a two-phase
|
171
|
+
process:
|
172
|
+
|
173
|
+
1. A system would need to periodically create PRs to the GitHub repository with
|
174
|
+
the output of the following commands (steps 2, 3, and 4):
|
175
|
+
|
176
|
+
```sh
|
177
|
+
bundle install
|
178
|
+
bundle exec rake mime:apache
|
179
|
+
bundle exec rake mime:iana
|
180
|
+
git add .
|
181
|
+
git commit -m "[Automated] MIME Type update for $(date)"
|
182
|
+
# Somehow make the PR from here.
|
183
|
+
```
|
184
|
+
|
185
|
+
2. Once this PR is approved and merged, the next steps would be conversion,
|
186
|
+
version update, automatic update of History.md, and release (steps 6–10).
|
187
|
+
|
188
|
+
This is based on an issue [#18][].
|
189
|
+
|
190
|
+
### Contributors
|
191
|
+
|
192
|
+
- Austin Ziegler created mime-types.
|
193
|
+
|
194
|
+
Thanks to everyone else who has contributed to mime-types:
|
195
|
+
|
196
|
+
- Aaron Patterson
|
197
|
+
- Aggelos Avgerinos
|
198
|
+
- Alessio Parma
|
199
|
+
- Alex Balhatchet
|
200
|
+
- Andre Pankratz
|
201
|
+
- Andrey Eremin
|
202
|
+
- Andy Brody
|
203
|
+
- Arnaud Meuret
|
204
|
+
- Bradley Meck
|
205
|
+
- Brandon Galbraith
|
206
|
+
- Chris Gat
|
207
|
+
- David Genord
|
208
|
+
- Eric Marden
|
209
|
+
- Garret Alfert
|
210
|
+
- Godfrey Chan
|
211
|
+
- Greg Brockman
|
212
|
+
- Hans de Graaff
|
213
|
+
- Henrik Hodne
|
214
|
+
- Jeremy Evans
|
215
|
+
- John Gardner
|
216
|
+
- Jon Sneyers
|
217
|
+
- Jonas Petersen
|
218
|
+
- Juanito Fatas
|
219
|
+
- Keerthi Siva
|
220
|
+
- Ken Ip
|
221
|
+
- Łukasz Śliwa
|
222
|
+
- Lucia
|
223
|
+
- Martin d'Allens
|
224
|
+
- Mauricio Linhares
|
225
|
+
- Myk Klemme
|
226
|
+
- nycvotes-dev
|
227
|
+
- Postmodern
|
228
|
+
- Richard Hirner
|
229
|
+
- Richard Hurt
|
230
|
+
- Richard Schneeman
|
231
|
+
- Robert Buchberger
|
232
|
+
- Sergio Baptista
|
233
|
+
- Tao Guo
|
234
|
+
- Thomas Leese
|
235
|
+
- Tibor Szolár
|
236
|
+
- Todd Carrico
|
237
|
+
- Yoran Brondsema
|
238
|
+
|
239
|
+
[qcm]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
240
|
+
[rmt]: https://github.com/mime-types/ruby-mime-types/
|
241
|
+
[#18]: https://github.com/mime-types/mime-types-data/issues/18
|