From b8417fb3c4720f6633df77e9e0138119e1fce9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Rzepecki?= Date: Fri, 28 Sep 2018 16:46:38 +0200 Subject: [PATCH] Remove RUBY_MIME_TYPES_LAZY_LOAD That feature has been deprecated by the upstream, cf. https://github.com/mime-types/ruby-mime-types/issues/62 Setting it causes an ugly warning message to show up. --- lib/conjur/cli.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/conjur/cli.rb b/lib/conjur/cli.rb index 2bc5aa7f..05bb916f 100644 --- a/lib/conjur/cli.rb +++ b/lib/conjur/cli.rb @@ -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