Skip to content

Commit 1f9f055

Browse files
committed
Get Version from git describe not travis envvar
Users should get version number from git rather than a possibly non-existent environment variable.
1 parent 8192c4d commit 1f9f055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace :book do
44

55
`cp progit.asc progit.asc.bak`
66
begin
7-
version_string = ENV['TRAVIS_TAG'] || '0'
7+
version_string = `git describe --tags`.chomp
88
text = File.read('progit.asc')
99
new_contents = text.gsub("$$VERSION$$", version_string).gsub("$$DATE$$", Time.now.strftime("%Y-%m-%d"))
1010
File.open("progit.asc", "w") {|file| file.puts new_contents }

0 commit comments

Comments
 (0)