summaryrefslogtreecommitdiff
path: root/lib/mime/types.rb
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2023-02-16 21:45:29 -0500
committerAustin Ziegler <austin@zieglers.ca>2023-02-17 00:36:52 -0500
commitb9382fe8c1593c7d6589cd62d59903926cfca51b (patch)
tree62a7c891831bd155365fa5577d6a1060ccd94afa /lib/mime/types.rb
parent0bf7805068a6b8e53abbe5ac7c09aedda63ee54f (diff)
downloadmime-types-main.tar.gz
Various upgradesHEADmain
- Update the .github/workflows/ci.yml workflow to test Ruby 3.2 and more reliably test certain combinations rather than depending on exclusions. - Change `.standard.yml` configuration to format for Ruby 2.3 as certain files are not properly detected with Ruby 2.0. - Change from `hoe-git` to `hoe-git2` to support Hoe version 4. - Apply `standardrb --fix`. - Update other dependencies.
Diffstat (limited to 'lib/mime/types.rb')
-rw-r--r--lib/mime/types.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mime/types.rb b/lib/mime/types.rb
index 31692ca..e9db72b 100644
--- a/lib/mime/types.rb
+++ b/lib/mime/types.rb
@@ -125,12 +125,12 @@ class MIME::Types
def [](type_id, complete: false, registered: false)
matches =
case type_id
- when MIME::Type
- @type_variants[type_id.simplified]
- when Regexp
- match(type_id)
- else
- @type_variants[MIME::Type.simplified(type_id)]
+ when MIME::Type
+ @type_variants[type_id.simplified]
+ when Regexp
+ match(type_id)
+ else
+ @type_variants[MIME::Type.simplified(type_id)]
end
prune_matches(matches, complete, registered).sort { |a, b|