lib/gem/release/files/template.rb in gem-release-2.2.1 vs lib/gem/release/files/template.rb in gem-release-2.2.2

- old
+ new

@@ -1,5 +1,8 @@ +# frozen_string_literal: true + +require 'fileutils' require 'gem/release/files/template/context' module Gem module Release module Files @@ -28,9 +31,10 @@ File.basename(target) end def write return false if exists? + FileUtils.mkdir_p(File.dirname(target)) File.write(target, render) FileUtils.chmod('+x', target) if opts[:executable] true end