Take the 2008 Git User's Survey and help out! [ hide ]

public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
Search Repo:
Always include REVISION in the gemspec, and create a dummy in case it 
isn't created elsewhere.
nex3 (author)
Sat May 24 02:21:30 -0700 2008
commit  5926e43df1d3f6252acf0c209b729ed0e2399d47
tree    1cfd217e961c795d78028ee5df1fb7cfae71c8cd
parent  beb6acc23439c42c26933072157b4cbe168df097
...
18
19
20
 
 
 
 
21
22
23
24
 
25
26
27
...
18
19
20
21
22
23
24
25
26
27
 
28
29
30
31
0
@@ -18,10 +18,14 @@ HAML_GEMSPEC = Gem::Specification.new do |spec|
0
     END
0
   #'
0
 
0
+ # We need the revision file to exist,
0
+ # so we just create it if it doesn't.
0
+ # It'll usually just get overwritten, though.
0
+ File.open('REVISION', 'w') { |f| f.puts "(unknown)" } unless File.exist?('REVISION')
0
   readmes = FileList.new('*') do |list|
0
     list.exclude(/(^|[^.a-z])[a-z]+/)
0
     list.exclude('TODO')
0
- list.include('REVISION') if File.exist?('REVISION')
0
+ list.include('REVISION')
0
   end.to_a
0
   spec.executables = ['haml', 'html2haml', 'sass', 'css2sass']
0
   spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile', 'init.rb'].to_a + readmes

Comments

    No one has commented yet.