lib/countless/rake_tasks.rake in countless-1.2.0 vs lib/countless/rake_tasks.rake in countless-1.3.0
- old
+ new
@@ -2,27 +2,27 @@
require 'rspec/core/rake_task'
desc 'Report code statistics (KLOCs, etc)'
task :stats do
- puts Countless::Statistics.new.to_s
+ puts Countless::Statistics.new
end
desc 'Enumerate all annotations'
task :notes do
- puts Countless::Annotations.new.to_s
+ puts Countless::Annotations.new
end
namespace :notes do
Countless.configuration.annotation_tags.each do |annotation|
task annotation.downcase.to_sym do
- puts Countless::Annotations.new("@?#{annotation}").to_s
+ puts Countless::Annotations.new("@?#{annotation}")
end
end
task :custom do
annotation = ENV.fetch('ANNOTATION')
- puts Countless::Annotations.new("@?#{annotation}").to_s
+ puts Countless::Annotations.new("@?#{annotation}")
rescue KeyError
puts 'No annotation was specified.'
puts "Usage: ANNOTATION='FIXME' rake notes:custom"
exit 1
end