lib/autowow/features/gem.rb in autowow-0.13.1 vs lib/autowow/features/gem.rb in autowow-0.13.2

- old
+ new

@@ -28,16 +28,12 @@ # Full command is needed because of faulty escaping otherwise pretty.run("git add README.md *version.rb") pretty.run("git commit -m \"Bumps version to v#{version}\"") end - sleep 1 - pretty.run(push) - sleep 1 - Vcs.on_branch("release") do pretty.run(pull) pretty.run(rebase(start_branch)) pretty_with_output.run(release) end @@ -106,10 +102,10 @@ text.gsub!(version_information, new_version_information.chomp) File.write(readme, text) end def change_readme_version_information_to_development(version) - readme = File.new("README.md") + readme = "README.md" return false unless File.file?(readme) text = File.read(readme) return false unless contains_version_information?(text) version_information = get_version_information(text) return false if version_information.include?("development version")