We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8192c4d commit 1f9f055Copy full SHA for 1f9f055
Rakefile
@@ -4,7 +4,7 @@ namespace :book do
4
5
`cp progit.asc progit.asc.bak`
6
begin
7
- version_string = ENV['TRAVIS_TAG'] || '0'
+ version_string = `git describe --tags`.chomp
8
text = File.read('progit.asc')
9
new_contents = text.gsub("$$VERSION$$", version_string).gsub("$$DATE$$", Time.now.strftime("%Y-%m-%d"))
10
File.open("progit.asc", "w") {|file| file.puts new_contents }
0 commit comments