class Jeweler::Commands::ReleaseGemspec
def run
def run unless clean_staging_area? system "git status" raise "Unclean staging area! Be sure to commit or .gitignore everything first. See `git status` above." end repo.checkout('master') regenerate_gemspec! commit_gemspec! if gemspec_changed? output.puts "Pushing master to origin" repo.push end