mini_mime 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dad29ac32b63431b2602b9d5e26157db6e98b8edcc6dbccd8e843cc0ceb78670
4
- data.tar.gz: d8eab6e3b66cd1133b95c10e08a9a9fd10bcdf9c373b4119872d9aa161e155e7
3
+ metadata.gz: 5964a78cdb6202afa80b9788475645b553cca8c21d5251688575d6f6aa4c93b1
4
+ data.tar.gz: 8db41b34cca4eaf5bc9bcef1819b856407634e8fc7e7010f3b92217f2917d05e
5
5
  SHA512:
6
- metadata.gz: 8a0954805ffe7ae7c9085516677b7e94ad7f5c1e351979fe5eb01ff63fa5c2b29e6c85b96e4b8bf109dcd2fdd204b7d79eaf10aefda891198d9433f31b79e99a
7
- data.tar.gz: 1bfee23498709b2cd132d2257b56187a411ea969c503819c616075fcfb8e10f839e3a41fa36e68a1e898b4871d695fe3084b184574dbef8a59316157fba2142e
6
+ metadata.gz: 99e35154670350af4094cf018cb7d4e51aa5a4611da19c160f47bc34e5f05c168e5c6666ccace0a6471998756cad018ad556c369f309391b4037a1923a6bd7b9
7
+ data.tar.gz: 5dab4d56f34faba6944d7837a0ca7689d7996cd93e01740739234b5543c3eedb076243b35ae0a33b8948dde24f185b9a7beae372e673add0af0cf780890410d0
@@ -19,6 +19,8 @@ jobs:
19
19
  include:
20
20
  - ruby: "ruby-head"
21
21
  experimental: true
22
+ - ruby: "truffleruby-head"
23
+ experimental: true
22
24
  - ruby: "jruby-head"
23
25
  experimental: true
24
26
  - ruby: "jruby-9.1.17.0"
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 05-04-2021
2
+ - Version 1.1.0
3
+ - MiniMime.lookup_by_extension is now case insensitive
4
+
1
5
  26-03-2021
2
6
  - Version 1.0.3
3
7
  - Update mime types from upstream
data/lib/mini_mime.rb CHANGED
@@ -56,14 +56,14 @@ module MiniMime
56
56
  extension = File.extname(filename)
57
57
  return if extension.empty?
58
58
  extension = extension[1..-1]
59
- extension.downcase!
60
59
  lookup_by_extension(extension)
61
60
  end
62
61
 
63
62
  def self.lookup_by_extension(extension)
64
63
  LOCK.synchronize do
65
64
  @db ||= new
66
- @db.lookup_by_extension(extension)
65
+ @db.lookup_by_extension(extension) ||
66
+ @db.lookup_by_extension(extension.downcase)
67
67
  end
68
68
  end
69
69
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module MiniMime
3
- VERSION = "1.0.3"
3
+ VERSION = "1.1.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_mime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler