Skip to content

Commit

Permalink
silence warnings during execution of rake tasks in Rakefile (ex: rake…
Browse files Browse the repository at this point in the history
… test)
  • Loading branch information
luke-gru committed Mar 21, 2023
1 parent 618949e commit b8ea69f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Expand Up @@ -10,8 +10,11 @@ lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

begin
old_verbose, $VERBOSE = $VERBOSE, nil
require "bundler/gem_tasks"
rescue LoadError
ensure
$VERBOSE = old_verbose
end

require "rake/testtask"
Expand Down

0 comments on commit b8ea69f

Please sign in to comment.