data/tasks/setup.rb in bones-1.1.1 vs data/tasks/setup.rb in bones-1.1.2

- old
+ new

@@ -14,11 +14,11 @@ PROJ.authors = nil PROJ.email = nil PROJ.url = nil PROJ.version = ENV['VERSION'] || '0.0.0' PROJ.rubyforge_name = nil -PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn) +PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn ^pkg ^doc) # Rspec PROJ.specs = FileList['spec/**/*_spec.rb'] PROJ.spec_opts = [] @@ -122,8 +122,19 @@ # Adds the given _path_ to the include path if it is not already there # def ensure_in_path( path ) path = File.expand_path(path) $:.unshift(path) if test(?d, path) and not $:.include?(path) +end + +# Find a rake task using the task name and remove any description text. This +# will prevent the task from being displayed in the list of available tasks. +# +def remove_desc_for_task( names ) + Array(names).each do |task_name| + task = Rake.application.tasks.find {|t| t.name == task_name} + next if task.nil? + task.instance_variable_set :@comment, nil + end end # EOF