lib/bundler/cli/gem.rb in bundler-1.15.3 vs lib/bundler/cli/gem.rb in bundler-1.15.4
- old
+ new
@@ -139,12 +139,13 @@
thor.template("newgem/#{src}", destination, config)
end
end
executables.each do |file|
- path = target.join(file)
- executable = (path.stat.mode | 0o111)
- path.chmod(executable)
+ SharedHelpers.filesystem_access(target.join(file)) do |path|
+ executable = (path.stat.mode | 0o111)
+ path.chmod(executable)
+ end
end
if Bundler.git_present?
Bundler.ui.info "Initializing git repo in #{target}"
Dir.chdir(target) do