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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile.lock +6 -6
  4. data/contrib/zsh/generate_zsh_completion.rb +2 -2
  5. data/lib/vagrant/errors.rb +8 -0
  6. data/plugins/commands/upload/command.rb +1 -1
  7. data/plugins/guests/atomic/guest.rb +1 -1
  8. data/plugins/guests/coreos/cap/configure_networks.rb +65 -0
  9. data/plugins/guests/darwin/cap/mount_smb_shared_folder.rb +6 -3
  10. data/plugins/guests/suse/cap/halt.rb +5 -1
  11. data/plugins/guests/windows/cap/rsync.rb +5 -1
  12. data/plugins/hosts/darwin/cap/path.rb +4 -0
  13. data/plugins/hosts/darwin/cap/version.rb +23 -0
  14. data/plugins/hosts/darwin/plugin.rb +5 -0
  15. data/plugins/hosts/windows/cap/ssh.rb +1 -1
  16. data/plugins/providers/virtualbox/action/network.rb +39 -2
  17. data/plugins/provisioners/chef/cap/freebsd/chef_installed.rb +5 -3
  18. data/plugins/provisioners/chef/cap/linux/chef_installed.rb +5 -3
  19. data/plugins/provisioners/chef/cap/omnios/chef_installed.rb +7 -5
  20. data/plugins/provisioners/chef/cap/windows/chef_installed.rb +3 -2
  21. data/templates/locales/en.yml +25 -0
  22. data/vagrant.gemspec +1 -1
  23. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/CONTRIBUTING.md +23 -0
  24. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/CONTRIBUTORS.md +140 -0
  25. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/LICENSE.md +20 -0
  26. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/README.md +492 -0
  27. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/data/cacert.pem +3232 -0
  28. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/excon.gemspec +45 -0
  29. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/connection.rb +599 -0
  30. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/constants.rb +172 -0
  31. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/error.rb +229 -0
  32. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/extensions/uri.rb +34 -0
  33. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/headers.rb +85 -0
  34. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/instrumentors/logging_instrumentor.rb +48 -0
  35. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/instrumentors/standard_instrumentor.rb +21 -0
  36. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/base.rb +31 -0
  37. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/capture_cookies.rb +32 -0
  38. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/decompress.rb +44 -0
  39. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/escape_path.rb +12 -0
  40. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/expects.rb +25 -0
  41. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/idempotent.rb +57 -0
  42. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/instrumentor.rb +49 -0
  43. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/mock.rb +61 -0
  44. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/redirect_follower.rb +87 -0
  45. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/middlewares/response_parser.rb +16 -0
  46. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/pretty_printer.rb +39 -0
  47. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/response.rb +234 -0
  48. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/socket.rb +297 -0
  49. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/ssl_socket.rb +194 -0
  50. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/exec.rb +26 -0
  51. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/puma.rb +23 -0
  52. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/unicorn.rb +40 -0
  53. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/plugin/server/webrick.rb +26 -0
  54. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/test/server.rb +106 -0
  55. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/unix_socket.rb +42 -0
  56. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/utils.rb +143 -0
  57. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon/version.rb +4 -0
  58. data/vendor/bundle/ruby/3.0.0/gems/excon-0.89.0/lib/excon.rb +255 -0
  59. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/MIT-LICENSE +20 -0
  60. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/README.md +122 -0
  61. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/base.rb +289 -0
  62. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cache.rb +113 -0
  63. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cache_file.rb +36 -0
  64. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/cascade.rb +56 -0
  65. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/chain.rb +130 -0
  66. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/fallbacks.rb +97 -0
  67. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/flatten.rb +118 -0
  68. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/gettext.rb +85 -0
  69. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/interpolation_compiler.rb +123 -0
  70. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/key_value.rb +206 -0
  71. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/memoize.rb +54 -0
  72. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/metadata.rb +71 -0
  73. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/pluralization.rb +55 -0
  74. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/simple.rb +108 -0
  75. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend/transliterator.rb +108 -0
  76. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/backend.rb +21 -0
  77. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/config.rb +165 -0
  78. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/core_ext/hash.rb +59 -0
  79. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/exceptions.rb +111 -0
  80. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext/helpers.rb +75 -0
  81. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext/po_parser.rb +329 -0
  82. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/gettext.rb +28 -0
  83. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/interpolate/ruby.rb +39 -0
  84. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/fallbacks.rb +99 -0
  85. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/parents.rb +24 -0
  86. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/rfc4646.rb +74 -0
  87. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag/simple.rb +39 -0
  88. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale/tag.rb +28 -0
  89. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/locale.rb +8 -0
  90. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/middleware.rb +17 -0
  91. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/basics.rb +60 -0
  92. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/defaults.rb +52 -0
  93. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/interpolation.rb +163 -0
  94. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/link.rb +66 -0
  95. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date.rb +117 -0
  96. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/date_time.rb +103 -0
  97. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/procs.rb +117 -0
  98. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization/time.rb +103 -0
  99. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/localization.rb +19 -0
  100. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/lookup.rb +81 -0
  101. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/pluralization.rb +35 -0
  102. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests/procs.rb +60 -0
  103. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/tests.rb +14 -0
  104. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n/version.rb +5 -0
  105. data/vendor/bundle/ruby/3.0.0/gems/i18n-1.8.11/lib/i18n.rb +415 -0
  106. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Code-of-Conduct.md +73 -0
  107. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Contributing.md +132 -0
  108. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/History.md +269 -0
  109. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Licence.md +25 -0
  110. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Manifest.txt +31 -0
  111. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/README.rdoc +194 -0
  112. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/Rakefile +270 -0
  113. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/type/columnar.rb +57 -0
  114. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/type.rb +634 -0
  115. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb +137 -0
  116. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/cache.rb +58 -0
  117. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/columnar.rb +3 -0
  118. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/container.rb +96 -0
  119. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/deprecations.rb +36 -0
  120. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/full.rb +19 -0
  121. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/loader.rb +159 -0
  122. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/logger.rb +37 -0
  123. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types/registry.rb +90 -0
  124. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime/types.rb +233 -0
  125. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/lib/mime-types.rb +3 -0
  126. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/bad-fixtures/malformed +9 -0
  127. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/json.json +1 -0
  128. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/old-data +9 -0
  129. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/fixture/yaml.yaml +55 -0
  130. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/minitest_helper.rb +11 -0
  131. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_type.rb +621 -0
  132. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types.rb +169 -0
  133. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_cache.rb +118 -0
  134. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_class.rb +159 -0
  135. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_lazy.rb +49 -0
  136. data/vendor/bundle/ruby/3.0.0/gems/mime-types-3.4.1/test/test_mime_types_loader.rb +32 -0
  137. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Code-of-Conduct.md +75 -0
  138. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Contributing.md +241 -0
  139. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/History.md +494 -0
  140. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Licence.md +24 -0
  141. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Manifest.txt +34 -0
  142. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/README.md +73 -0
  143. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/Rakefile +155 -0
  144. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/content_type_mime.db +878 -0
  145. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/ext_mime.db +1198 -0
  146. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime-types.json +1 -0
  147. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.content_type.column +2376 -0
  148. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.docs.column +2376 -0
  149. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.encoding.column +2376 -0
  150. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.flags.column +2376 -0
  151. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.friendly.column +2376 -0
  152. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.pext.column +2376 -0
  153. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.use_instead.column +2376 -0
  154. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/data/mime.xrefs.column +2376 -0
  155. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/lib/mime/types/data.rb +21 -0
  156. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/lib/mime-types-data.rb +3 -0
  157. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/application.yaml +17254 -0
  158. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/audio.yaml +1716 -0
  159. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/chemical.yaml +71 -0
  160. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/conference.yaml +9 -0
  161. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/drawing.yaml +15 -0
  162. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/font.yaml +65 -0
  163. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/image.yaml +1251 -0
  164. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/message.yaml +200 -0
  165. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/model.yaml +390 -0
  166. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/multipart.yaml +179 -0
  167. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/provisional-standard-types.yaml +129 -0
  168. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/text.yaml +1166 -0
  169. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/video.yaml +1121 -0
  170. data/vendor/bundle/ruby/3.0.0/gems/mime-types-data-3.2021.1115/types/world.yaml +8 -0
  171. data/vendor/bundle/ruby/3.0.0/specifications/excon-0.89.0.gemspec +58 -0
  172. data/vendor/bundle/ruby/3.0.0/specifications/i18n-1.8.11.gemspec +32 -0
  173. data/vendor/bundle/ruby/3.0.0/specifications/mime-types-3.4.1.gemspec +63 -0
  174. data/vendor/bundle/ruby/3.0.0/specifications/mime-types-data-3.2021.1115.gemspec +54 -0
  175. data/version.txt +1 -1
  176. metadata +157 -4
@@ -0,0 +1,269 @@
1
+ # Changelog
2
+
3
+ ## 3.4.1 / 2021-11-16
4
+
5
+ - 1 bugfix:
6
+
7
+ - Fixed a Ruby < 2.3 incompatibility introduced by the use of standardrb,
8
+ where `<<-` heredocs were converted to `<<~` heredocs. These have been
9
+ reverted back to `<<-` with the indentation kept and a `.strip` call
10
+ to prevent excess whitespace.
11
+
12
+ ## 3.4.0 / 2021-11-15
13
+
14
+ - 1 minor enhancement:
15
+
16
+ - Added a new field to `MIME::Type` for checking provisional registrations
17
+ from IANA. [#157]
18
+
19
+ - Documentation:
20
+
21
+ - Kevin Menard synced the documentation so that all examples are correct.
22
+ [#153]
23
+
24
+ - Administrivia:
25
+
26
+ - Added Ruby 3.0 to the CI test matrix. Added `windows/jruby` to the
27
+ CI exclusion list; it refuses to run successfully.
28
+ - Removed the Travis CI configuration and changed it to Github Workflows
29
+ [#150]. Removed Coveralls configuration.
30
+ - Igor Victor added TruffleRuby to the Travis CI configuration. [#149]
31
+ - Koichi ITO loosened an excessively tight dependency. [#147]
32
+ - Started using `standardrb` for Ruby formatting and validation.
33
+ - Moved `deps:top` functionality to a support file.
34
+
35
+ ## 3.3.1 / 2019-12-26
36
+
37
+ - 1 minor bugfix:
38
+
39
+ - Al Snow fixed a warning with MIME::Types::Logger producing a warning
40
+ because Ruby 2.7 introduces numbered block parameters. Because of the way
41
+ that the MIME::Types::Logger works for deprecation messages, the
42
+ initializer parameters had been named `_1`, `_2`, and `_3`. This has now
43
+ been resolved. [#146]
44
+
45
+ - Administrivia:
46
+
47
+ - Olle Jonsson removed an outdated Travis configuration option (`sudo: false`). [#142]
48
+
49
+ ## 3.3 / 2019-09-04
50
+
51
+ - 1 minor enhancement
52
+
53
+ - Jean Boussier reduced memory usage for Ruby versions 2.3 or higher by
54
+ interning various string values in each type. This is done with a
55
+ backwards-compatible call that _freezes_ the strings on older versions of
56
+ Ruby. [#141]
57
+
58
+ - Administrivia:
59
+
60
+ - Nicholas La Roux updated Travis build configurations. [#139]
61
+
62
+ ## 3.2.2 / 2018-08-12
63
+
64
+ - Hiroto Fukui removed a stray `debugger` statement that I had used in
65
+ producing v3.2.1. [#137]
66
+
67
+ ## 3.2.1 / 2018-08-12
68
+
69
+ - A few bugs related to MIME::Types::Container and its use in the
70
+ mime-types-data helper tools reared their head because I released 3.2
71
+ before verifying against mime-types-data.
72
+
73
+ ## 3.2 / 2018-08-12
74
+
75
+ - 2 minor enhancements
76
+
77
+ - Janko Marohnić contributed a change to `MIME::Type#priority_order` that
78
+ should improve on strict sorting when dealing with MIME types that appear
79
+ to be in the same family even if strict sorting would cause an
80
+ unregistered type to be sorted first. [#132]
81
+
82
+ - Dillon Welch contributed a change that added `frozen_string_literal: true` to files so that modern Rubies can automatically reduce duplicate
83
+ string allocations. [#135]
84
+
85
+ - 2 bug fixes
86
+
87
+ - Burke Libbey fixed a problem with cached data loading. [#126]
88
+
89
+ - Resolved an issue where Enumerable#inject returns `nil` when provided an
90
+ empty enumerable and a default value has not been provided. This is
91
+ because when Enumerable#inject isn't provided a starting value, the first
92
+ value is used as the default value. In every case where this error was
93
+ happening, the result was supposed to be an array containing Set objects
94
+ so they can be reduced to a single Set. [#117], [#127], [#134]
95
+
96
+ - Fixed an uncontrolled growth bug in MIME::Types::Container where a key
97
+ miss would create a new entry with an empty Set in the container. This
98
+ was working as designed (this particular feature was heavily used during
99
+ MIME::Type registry construction), but the design was flawed in that it
100
+ did not have any way of determining the difference between construction
101
+ and querying. This would mean that, if you have a function in your web
102
+ app that queries the MIME::Types registry by extension, the extension
103
+ registry would grow uncontrollably. [#136]
104
+
105
+ - Deprecations:
106
+
107
+ - Lazy loading (`$RUBY_MIME_TYPES_LAZY_LOAD`) has been deprecated.
108
+
109
+ - Documentation Changes:
110
+
111
+ - Supporting files are now Markdown instead of rdoc, except for the README.
112
+
113
+ - The history file has been modified to remove all history prior to 3.0.
114
+ This history can be found in previous commits.
115
+
116
+ - A spelling error was corrected by Edward Betts ([#129]).
117
+
118
+ - Administrivia:
119
+
120
+ - CI configuration for more modern versions of Ruby were added by Nicolas
121
+ Leger ([#130]), Jun Aruga ([#125]), and Austin Ziegler. Removed
122
+ ruby-head-clang and rbx (Rubinius) from CI.
123
+
124
+ - Fixed tests which were asserting equality against nil, which will become
125
+ an error in Minitest 6.
126
+
127
+ ## 3.1 / 2016-05-22
128
+
129
+ - 1 documentation change:
130
+
131
+ - Tim Smith (@tas50) updated the build badges to be SVGs to improve
132
+ readability on high-density (retina) screens with pull request [#112].
133
+
134
+ - 3 bug fixes
135
+
136
+ - A test for `MIME::Types::Cache` fails under Ruby 2.3 because of frozen
137
+ strings, [#118]. This has been fixed.
138
+
139
+ - The JSON data has been incorrectly encoded since the release of
140
+ mime-types 3 on the `xrefs` field, because of the switch to using a Set
141
+ to store cross-reference information. This has been fixed.
142
+
143
+ - A tentative fix for [#117] has been applied, removing the only circular
144
+ require dependencies that exist (and for which there was code to prevent,
145
+ but the current fix is simpler). I have no way to verify this fix and
146
+ depending on how things are loaded by `delayed_job`, this fix may not be
147
+ sufficient.
148
+
149
+ - 1 governance change
150
+
151
+ - Updated to Contributor Covenant 1.4.
152
+
153
+ ## 3.0 / 2015-11-21
154
+
155
+ - 2 governance changes
156
+
157
+ - This project and the related mime-types-data project are now exclusively
158
+ MIT licensed. Resolves [#95].
159
+
160
+ - All projects under the mime-types organization now have a standard code
161
+ of conduct adapted from the [Contributor Covenant]. This text can be
162
+ found in the [Code-of-Conduct.md] file.
163
+
164
+ - 3 major changes
165
+
166
+ - All methods deprecated in mime-types 2.x have been removed.
167
+
168
+ - mime-types now requires Ruby 2.0 compatibility or later. Resolves
169
+ [#97].
170
+
171
+ - The registry data has been removed from mime-types and put into
172
+ mime-types-data, maintained and released separately. It can be found at
173
+ [mime-types-data].
174
+
175
+ - 17 minor changes:
176
+
177
+ - `MIME::Type` changes:
178
+
179
+ - Changed the way that simplified types representations are created to
180
+ reflect the fact that `x-` prefixes are no longer considered special
181
+ according to IANA. A simplified MIME type is case-folded to lowercase.
182
+ A new keyword parameter, `remove_x_prefix`, can be provided to remove
183
+ `x-` prefixes.
184
+
185
+ - Improved initialization with an Array works so that extensions do not
186
+ need to be wrapped in another array. This means that `%w(text/yaml yaml yml)` works in the same way that `['text/yaml', %w(yaml yml)]` did (and
187
+ still does).
188
+
189
+ - Changed `priority_compare` to conform with attributes that no longer
190
+ exist.
191
+
192
+ - Changed the internal implementation of extensions to use a frozen Set.
193
+
194
+ - When extensions are set or modified with `add_extensions`, the primary
195
+ registry will be informed of a need to reindex extensions. Resolves
196
+ [#84].
197
+
198
+ - The preferred extension can be set explicitly. If not set, it will be
199
+ the first extension. If the preferred extension is not in the extension
200
+ list, it will be added.
201
+
202
+ - Improved how xref URLs are generated.
203
+
204
+ - Converted `obsolete`, `registered` and `signature` to `attr_accessors`.
205
+
206
+ - `MIME::Types` changes:
207
+
208
+ - Modified `MIME::Types.new` to track instances of `MIME::Types` so that
209
+ they can be told to reindex the extensions as necessary.
210
+
211
+ - Removed `data_version` attribute.
212
+
213
+ - Changed `#[]` so that the `complete` and `registered` flags are
214
+ keywords instead of a generic options parameter.
215
+
216
+ - Extracted the class methods to a separate file.
217
+
218
+ - Changed the container implementation to use a Set instead of an Array
219
+ to prevent data duplication. Resolves [#79].
220
+
221
+ - `MIME::Types::Cache` changes:
222
+
223
+ - Caching is now based on the data gem version instead of the mime-types
224
+ version.
225
+
226
+ - Caching is compatible with columnar registry stores.
227
+
228
+ - `MIME::Types::Loader` changes:
229
+
230
+ - `MIME::Types::Loader::PATH` has been removed and replaced with
231
+ `MIME::Types::Data::PATH` from the mime-types-data gem. The environment
232
+ variable `RUBY_MIME_TYPES_DATA` is still used.
233
+
234
+ - Support for the long-deprecated mime-types v1 format has been removed.
235
+
236
+ - The registry is default loaded from the columnar store by default. The
237
+ internal format of the columnar store has changed; many of the boolean
238
+ flags are now loaded from a single file. Resolves [#85].
239
+
240
+ [#79]: https://github.com/mime-types/ruby-mime-types/pull/79
241
+ [#84]: https://github.com/mime-types/ruby-mime-types/pull/84
242
+ [#85]: https://github.com/mime-types/ruby-mime-types/pull/85
243
+ [#95]: https://github.com/mime-types/ruby-mime-types/pull/95
244
+ [#97]: https://github.com/mime-types/ruby-mime-types/pull/97
245
+ [#112]: https://github.com/mime-types/ruby-mime-types/pull/112
246
+ [#117]: https://github.com/mime-types/ruby-mime-types/issues/117
247
+ [#118]: https://github.com/mime-types/ruby-mime-types/pull/118
248
+ [#125]: https://github.com/mime-types/ruby-mime-types/pull/125
249
+ [#126]: https://github.com/mime-types/ruby-mime-types/pull/126
250
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
251
+ [#129]: https://github.com/mime-types/ruby-mime-types/pull/129
252
+ [#130]: https://github.com/mime-types/ruby-mime-types/pull/130
253
+ [#127]: https://github.com/mime-types/ruby-mime-types/issues/127
254
+ [#132]: https://github.com/mime-types/ruby-mime-types/pull/132
255
+ [#134]: https://github.com/mime-types/ruby-mime-types/issues/134
256
+ [#135]: https://github.com/mime-types/ruby-mime-types/pull/135
257
+ [#136]: https://github.com/mime-types/ruby-mime-types/issues/136
258
+ [#137]: https://github.com/mime-types/ruby-mime-types/pull/137
259
+ [#139]: https://github.com/mime-types/ruby-mime-types/pull/139
260
+ [#141]: https://github.com/mime-types/ruby-mime-types/pull/141
261
+ [#142]: https://github.com/mime-types/ruby-mime-types/pull/142
262
+ [#146]: https://github.com/mime-types/ruby-mime-types/pull/146
263
+ [#147]: https://github.com/mime-types/ruby-mime-types/pull/147
264
+ [#149]: https://github.com/mime-types/ruby-mime-types/pull/149
265
+ [#150]: https://github.com/mime-types/ruby-mime-types/pull/150
266
+ [#153]: https://github.com/mime-types/ruby-mime-types/pull/153
267
+ [code-of-conduct.md]: Code-of-Conduct_md.html
268
+ [contributor covenant]: http://contributor-covenant.org
269
+ [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,194 @@
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
+ clog :: https://github.com/mime-types/ruby-mime-types/blob/master/History.md
8
+ 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]
9
+ 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]
10
+
11
+ == Description
12
+
13
+ The mime-types library provides a library and registry for information about
14
+ MIME content type definitions. It can be used to determine defined filename
15
+ extensions for MIME types, or to use filename extensions to look up the likely
16
+ MIME type definitions.
17
+
18
+ Version 3.0 is a major release that requires Ruby 2.0 compatibility and removes
19
+ deprecated functions. The columnar registry format introduced in 2.6 has been
20
+ made the primary format; the registry data has been extracted from this library
21
+ and put into {mime-types-data}[https://github.com/mime-types/mime-types-data].
22
+ Additionally, mime-types is now licensed exclusively under the MIT licence and
23
+ there is a code of conduct in effect. There are a number of other smaller
24
+ changes described in the History file.
25
+
26
+ === About MIME Media Types
27
+
28
+ MIME content types are used in MIME-compliant communications, as in e-mail or
29
+ HTTP traffic, to indicate the type of content which is transmitted. The
30
+ mime-types library provides the ability for detailed information about MIME
31
+ entities (provided as an enumerable collection of MIME::Type objects) to be
32
+ determined and used. There are many types defined by RFCs and vendors, so the
33
+ list is long but by definition incomplete; don't hesitate to add additional
34
+ type definitions. MIME type definitions found in mime-types are from RFCs, W3C
35
+ recommendations, the {IANA Media Types
36
+ registry}[https://www.iana.org/assignments/media-types/media-types.xhtml], and
37
+ user contributions. It conforms to RFCs 2045 and 2231.
38
+
39
+ === mime-types 3.x
40
+
41
+ Users are encouraged to upgrade to mime-types 3.x as soon as is practical.
42
+ mime-types 3.x requires Ruby 2.0 compatibility and a simpler licensing scheme.
43
+
44
+ == Synopsis
45
+
46
+ MIME types are used in MIME entities, as in email or HTTP traffic. It is useful
47
+ at times to have information available about MIME types (or, inversely, about
48
+ files). A MIME::Type stores the known information about one MIME type.
49
+
50
+ require 'mime/types'
51
+
52
+ plaintext = MIME::Types['text/plain'] # => [ text/plain ]
53
+ text = plaintext.first
54
+ puts text.media_type # => 'text'
55
+ puts text.sub_type # => 'plain'
56
+
57
+ puts text.extensions.join(' ') # => 'txt asc c cc h hh cpp hpp dat hlp'
58
+ puts text.preferred_extension # => 'txt'
59
+ puts text.friendly # => 'Text Document'
60
+ puts text.i18n_key # => 'text.plain'
61
+
62
+ puts text.encoding # => quoted-printable
63
+ puts text.default_encoding # => quoted-printable
64
+ puts text.binary? # => false
65
+ puts text.ascii? # => true
66
+ puts text.obsolete? # => false
67
+ puts text.registered? # => true
68
+ puts text.provisional? # => false
69
+ puts text.complete? # => true
70
+
71
+ puts text # => 'text/plain'
72
+
73
+ puts text == 'text/plain' # => true
74
+ puts 'text/plain' == text # => true
75
+ puts text == 'text/x-plain' # => false
76
+ puts 'text/x-plain' == text # => false
77
+
78
+ puts MIME::Type.simplified('x-appl/x-zip') # => 'x-appl/x-zip'
79
+ puts MIME::Type.i18n_key('x-appl/x-zip') # => 'x-appl.x-zip'
80
+
81
+ puts text.like?('text/x-plain') # => true
82
+ puts text.like?(MIME::Type.new('x-text/x-plain')) # => true
83
+
84
+ puts text.xrefs.inspect # => { "rfc" => [ "rfc2046", "rfc3676", "rfc5147" ] }
85
+ puts text.xref_urls # => [ "http://www.iana.org/go/rfc2046",
86
+ # "http://www.iana.org/go/rfc3676",
87
+ # "http://www.iana.org/go/rfc5147" ]
88
+
89
+ xtext = MIME::Type.new('x-text/x-plain')
90
+ puts xtext.media_type # => 'text'
91
+ puts xtext.raw_media_type # => 'x-text'
92
+ puts xtext.sub_type # => 'plain'
93
+ puts xtext.raw_sub_type # => 'x-plain'
94
+ puts xtext.complete? # => false
95
+
96
+ puts MIME::Types.any? { |type| type.content_type == 'text/plain' } # => true
97
+ puts MIME::Types.all?(&:registered?) # => false
98
+
99
+ # Various string representations of MIME types
100
+ qcelp = MIME::Types['audio/QCELP'].first # => audio/QCELP
101
+ puts qcelp.content_type # => 'audio/QCELP'
102
+ puts qcelp.simplified # => 'audio/qcelp'
103
+
104
+ xwingz = MIME::Types['application/x-Wingz'].first # => application/x-Wingz
105
+ puts xwingz.content_type # => 'application/x-Wingz'
106
+ puts xwingz.simplified # => 'application/x-wingz'
107
+
108
+ === Columnar Store
109
+
110
+ mime-types uses as its primary registry storage format a columnar storage
111
+ format reducing the default memory footprint. This is done by selectively
112
+ loading the data on a per-attribute basis. When the registry is first loaded
113
+ from the columnar store, only the canonical MIME content type and known
114
+ extensions and the MIME type will be connected to its loading registry. When
115
+ other data about the type is required (including +preferred_extension+,
116
+ <tt>obsolete?</tt>, and <tt>registered?</tt>) that data is loaded from its own
117
+ column file for all types in the registry.
118
+
119
+ The load of any column data is performed with a Mutex to ensure that types are
120
+ updated safely in a multithreaded environment. Benchmarks show that while
121
+ columnar data loading is slower than the JSON store, it cuts the memory use by
122
+ a third over the JSON store.
123
+
124
+ If you prefer to load all the data at once, this can be specified in your
125
+ application Gemfile as:
126
+
127
+ gem 'mime-types', require: 'mime/types/full'
128
+
129
+ Projects that do not use Bundler should +require+ the same:
130
+
131
+ require 'mime/types/full'
132
+
133
+ Libraries that use mime-types are discouraged from choosing the JSON store.
134
+
135
+ For applications and clients that used mime-types 2.6 when the columnar store
136
+ was introduced, the require used previously will still work through at least
137
+ {version
138
+ 4}[https://github.com/mime-types/ruby-mime-types/pull/96#issuecomment-100725400]
139
+ and possibly beyond; it is effectively an empty operation. You are recommended
140
+ to change your Gemfile as soon as is practical.
141
+
142
+ require 'mime/types/columnar'
143
+
144
+ Note that MIME::Type::Columnar and MIME::Types::Columnar are considered private
145
+ variant implementations of MIME::Type and MIME::Types and the specific
146
+ implementation should not be relied upon by consumers of the mime-types
147
+ library. Instead, depend on the public implementations (MIME::Type and
148
+ MIME::Types) only.
149
+
150
+ === Cached Storage
151
+
152
+ mime-types supports a cache of MIME types using <tt>Marshal.dump</tt>. The
153
+ cache is invalidated for each version of the mime-types-data gem so that data
154
+ version 3.2015.1201 will not be reused with data version 3.2016.0101. If the
155
+ environment variable +RUBY_MIME_TYPES_CACHE+ is set to a cache file, mime-types
156
+ will attempt to load the MIME type registry from the cache file. If it cannot,
157
+ it will load the types normally and then saves the registry to the cache file.
158
+
159
+ The caching works with both full stores and columnar stores. Only the data that
160
+ has been loaded prior to saving the cache will be stored.
161
+
162
+ == mime-types Modified Semantic Versioning
163
+
164
+ The mime-types library has one version number, but this single version number
165
+ tracks both API changes and registry data changes; this is not wholly
166
+ compatible with all aspects of {Semantic Versioning}[http://semver.org/];
167
+ removing a MIME type from the registry *could* be considered a breaking change
168
+ under some interpretations of semantic versioning (as lookups for that
169
+ particular type would no longer work by default).
170
+
171
+ mime-types uses a modified semantic versioning scheme. Given the version
172
+ MAJOR.MINOR:
173
+
174
+ 1. If an incompatible API (code) change is made, the MAJOR version will be
175
+ incremented, MINOR will be set to zero, and PATCH will be reset to the
176
+ implied zero.
177
+
178
+ 2. If an API (code) feature is added that does not break compatibility, the
179
+ MINOR version will be incremented and PATCH will be reset to the implied zero.
180
+
181
+ 3. If there is a bugfix to a feature added in the most recent MAJOR.MINOR
182
+ release, the implied PATCH value will be incremented resulting in
183
+ MAJOR.MINOR.PATCH.
184
+
185
+ In practical terms, there will be fewer releases of mime-types focussing on
186
+ features because of the existence of the [mime-types-data][] gem, and if
187
+ features are marked deprecated in the course of mime-types 3.x, they will not
188
+ be removed until mime-types 4.x or possibly later.
189
+
190
+ {Code of Conduct}[Code-of-Conduct_md.html]
191
+
192
+ {Contributing}[Contributing_md.html]
193
+
194
+ {Licence}[Licence_md.html]