Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
Remove RUBY_MIME_TYPES_LAZY_LOAD
Browse files Browse the repository at this point in the history
That feature has been deprecated by the upstream, cf. mime-types/ruby-mime-types#62
Setting it causes an ugly warning message to show up.
  • Loading branch information
dividedmind authored Sep 28, 2018
1 parent e06094e commit b8417fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/conjur/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
require 'xdg'
require 'fileutils'

# this makes mime/types gem load much faster by lazy loading
# mime types and caching them in binary form
ENV['RUBY_MIME_TYPES_LAZY_LOAD'] ||= 'true'
# this makes mime/types gem load much faster by caching them in binary form
ENV['RUBY_MIME_TYPES_CACHE'] ||= (
XDG['CACHE'].to_path.tap(&FileUtils.method(:mkdir_p)) + 'ruby-mime-types.cache'
).to_s
Expand Down

0 comments on commit b8417fb

Please sign in to comment.