lib/cookbook-reader/parser.rb in cookbook-reader-0.1.0 vs lib/cookbook-reader/parser.rb in cookbook-reader-0.1.1

- old
+ new

@@ -4,33 +4,17 @@ def initialize(argv) @options = Options.new(argv) @top_list = [] end - def run - finder = Finder.from_file(@options.dictionary) - @options.words_to_find.each do |word| - anagrams = finder.lookup(word) - if anagrams - puts "Anagrams of #{word}: #{anagrams.join(', ')}" - else - puts "No anagrams of #{word} in #{@options.dictionary}" - end - end - end - def parse @metadata_list = Array.new Dir.glob("#{@options.path_to_search}/**/metadata.rb") do |filename| @metadata_list.push read_file filename - - end end def display_data - #pp @top_list - @top_list.each do |element| puts "Cookbook: #{element['name']}\n" puts " Dependancies:" element['depends'].each do |name, version| puts " #{name}, #{version}\n"