lib/core/build.rb in buildr-0.20.0 vs lib/core/build.rb in buildr-0.21.0

- old
+ new

@@ -75,11 +75,11 @@ # Status check reveals modified file, but also SVN externals which we can safely ignore. status = svn("status", "--ignore-externals").reject { |line| line =~ /^X\s/ } fail "Uncommitted SVN files violate the First Principle Of Release!\n#{status}" unless status.empty? end - + # :call-seq: # with_next_version() { |filename| ... } => version # # Yields to block with upgraded version number, before committing to use it. Returns the *new* # current version number. @@ -152,10 +152,10 @@ # commit(version) # # Last, we commit what we currently have in the working copy. def commit(version) rakefile = File.read(Rake.application.rakefile). - gsub(THIS_VERSION_PATTERN) { |ver| ver.sub(/(["']).*\1/, %Q{"#{version}"}) }. + gsub(THIS_VERSION_PATTERN) { |ver| ver.sub(/(["']).*\1/, %Q{"#{version}"}) } File.open(Rake.application.rakefile, "w") { |file| file.write rakefile } svn "commit", "-m", "Changed version number to #{version}", Rake.application.rakefile end # :call-seq: