From 8ddce60cbae6ee43d13b4ae3bc41269aca961f04 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 8 Apr 2023 04:24:06 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=8Cgallery.gemspec?= =?UTF-8?q?=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gallery.gemspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gallery.gemspec b/gallery.gemspec index db21c54..aaf8c79 100644 --- a/gallery.gemspec +++ b/gallery.gemspec @@ -10,12 +10,12 @@ if bundle_update_flag require ::File.expand_path('app/helpers/bundler_helper.rb', env_pwd) extend BundlerHelper rescue LoadError - def bundler_with_clean_env + def bundler_with_clean_env(&block) if block_given? if Bundler.respond_to?(:with_unbundled_env) - Bundler.with_unbundled_env(&Proc.new) + Bundler.with_unbundled_env(&block) else - Bundler.with_clean_env(&Proc.new) + Bundler.with_clean_env(&block) end end end