lib/autowow/features/gem.rb in autowow-0.13.0 vs lib/autowow/features/gem.rb in autowow-0.13.1
- old
+ new
@@ -28,12 +28,16 @@
# 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
@@ -79,11 +83,11 @@
def db_structure
pretty_with_output.run(rake_db_structure)
end
def bump_readme_version_information(version)
- readme = File.new("README.md")
- return unless File.file?(readme)
+ readme = "README.md"
+ return unless File.exists?(readme)
text = File.read(readme)
return unless contains_version_information?(text)
version_information = get_version_information(text)