lib/tasks/statistics.rake in picky-3.0.0 vs lib/tasks/statistics.rake in picky-3.0.1
- old
+ new
@@ -2,15 +2,15 @@
#
desc "Analyzes indexes (index, category optional)."
task :analyze, [:index, :category] => :'stats:prepare' do |_, options|
index, category = options.index, options.category
- specific = Indexes
+ specific = Picky::Indexes
specific = specific[index] if index
specific = specific[category] if category
- statistics = Statistics.new
+ statistics = Picky::Statistics.new
begin
statistics.analyze specific
rescue StandardError
puts "\n\033[31mNote: rake analyze needs prepared indexes. Run rake index first.\033[m\n\n"
@@ -19,10 +19,10 @@
puts statistics
end
task :stats => :'stats:prepare' do
- stats = Statistics.new
+ stats = Picky::Statistics.new
puts stats.application
end
namespace :stats do
\ No newline at end of file