更新「announcement.gemspec」

This commit is contained in:
chiu 2023-04-08 04:23:48 +00:00
parent e13fb99423
commit 374f737449
1 changed files with 6 additions and 6 deletions

View File

@ -11,13 +11,13 @@ 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)
else
Bundler.with_clean_env(&Proc.new)
end
if Bundler.respond_to?(:with_unbundled_env)
Bundler.with_unbundled_env(&block)
else
Bundler.with_clean_env(&block)
end
end
end
end