data/tasks/setup.rb in bones-2.0.1 vs data/tasks/setup.rb in bones-2.0.2

- old
+ new

@@ -16,11 +16,11 @@ :changes => nil, :authors => nil, :email => nil, :url => "\000", :version => ENV['VERSION'] || '0.0.0', - :exclude => %w(tmp$ bak$ ~$ CVS .svn/ ^pkg/), + :exclude => %w(tmp$ bak$ ~$ CVS \.svn/ \.git/ ^pkg/), :release_name => ENV['RELEASE'], # System Defaults :ruby_opts => %w(-w), :libs => [], @@ -56,11 +56,11 @@ :extras => {} ), # File Annotations :notes => OpenStruct.new( - :exclude => %w(^tasks/setup.rb$), + :exclude => %w(^tasks/setup\.rb$), :extensions => %w(.txt .rb .erb) << '', :tags => %w(FIXME OPTIMIZE TODO) ), # Rcov @@ -72,12 +72,12 @@ ), # Rdoc :rdoc => OpenStruct.new( :opts => [], - :include => %w(^lib/ ^bin/ ^ext/ .txt$), - :exclude => %w(extconf.rb$), + :include => %w(^lib/ ^bin/ ^ext/ \.txt$), + :exclude => %w(extconf\.rb$), :main => nil, :dir => 'doc', :remote_dir => nil ), @@ -157,9 +157,11 @@ Object.instance_eval {const_set "HAVE_#{lib.tr('/','_').upcase}", false} end end HAVE_SVN = (Dir.entries(Dir.pwd).include?('.svn') and system("svn --version 2>&1 > #{DEV_NULL}")) +HAVE_GIT = (Dir.entries(Dir.pwd).include?('.git') and + system("git --version 2>&1 > #{DEV_NULL}")) # Reads a file at +path+ and spits out an array of the +paragraphs+ # specified. # # changes = paragraphs_of('History.txt', 0..1).join("\n\n")