Skip to content

Commit

Permalink
Cleaned up the REV cmd [Sascha Teske]
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Apr 7, 2008
1 parent ecba5b0 commit e9c1cad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions History.txt
@@ -1,3 +1,7 @@
== 0.22.2 2008-04-07 [NOT RELEASED]

* Cleaned up the REV cmd [Sascha Teske]

== 0.22.1 2008-04-05

* moved the 'by Daniel Cadenas' reference to the correct template.rhtml
Expand Down
2 changes: 1 addition & 1 deletion app_generators/newgem/templates/config/hoe.rb
Expand Up @@ -30,7 +30,7 @@ def rubyforge_username

REV = nil
# UNCOMMENT IF REQUIRED:
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
# REV = YAML.load(`svn info`)['Revision']
VERS = <%= module_name %>::VERSION::STRING + (REV ? ".#{REV}" : "")
RDOC_OPTS = ['--quiet', '--title', '<%= gem_name %> documentation',
"--opname", "index.html",
Expand Down
2 changes: 1 addition & 1 deletion config/hoe.rb
Expand Up @@ -29,7 +29,7 @@ def rubyforge_username
end

REV = nil #File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
# REV = YAML.load(`svn info`)['Revision']
VERS = Newgem::VERSION::STRING + (REV ? ".#{REV}" : "")
CLEAN.include ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']

Expand Down

0 comments on commit e9c1cad

Please sign in to comment.