更新「gallery.gemspec」

This commit is contained in:
chiu 2023-04-08 04:24:06 +00:00
parent 1bd1a39132
commit 8ddce60cba
1 changed files with 3 additions and 3 deletions

View File

@ -10,12 +10,12 @@ if bundle_update_flag
require ::File.expand_path('app/helpers/bundler_helper.rb', env_pwd) require ::File.expand_path('app/helpers/bundler_helper.rb', env_pwd)
extend BundlerHelper extend BundlerHelper
rescue LoadError rescue LoadError
def bundler_with_clean_env def bundler_with_clean_env(&block)
if block_given? if block_given?
if Bundler.respond_to?(:with_unbundled_env) if Bundler.respond_to?(:with_unbundled_env)
Bundler.with_unbundled_env(&Proc.new) Bundler.with_unbundled_env(&block)
else else
Bundler.with_clean_env(&Proc.new) Bundler.with_clean_env(&block)
end end
end end
end end