Skip to content

Commit

Permalink
generate tags in change_version
Browse files Browse the repository at this point in the history
  • Loading branch information
jbodah committed Dec 18, 2014
1 parent b8ebb64 commit 8fd6a1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ task :change_version do
version_file = 'lib/spy/version.rb'
text = File.read(version_file).gsub(/[\d\.]+/, ENV['TO'])
File.open(version_file, 'w') {|f| f.puts text}
system "git tag #{ENV['TO']}"
puts "Tag generated. Don't forget to push --tags! :)"
end

0 comments on commit 8fd6a1a

Please sign in to comment.