def declared_dependencies(ast)
      raise_unless_xpath!(ast)

      deps = []
      # String literals.
      #
      #     depends 'foo'
      deps += field(ast, "depends").xpath("descendant::args_add/descendant::tstring_content[1]")

      # Quoted word arrays are also common.
      #
      #     %w{foo bar baz}.each do |cbk|
      #       depends cbk
      #     end
      deps += word_list_values(field(ast, "depends"))
      deps.uniq!
      deps.map! { |dep| dep["value"].strip }
      deps
    end
def declared_dependencies(ast)
      raise_unless_xpath!(ast)

      deps = []
      # String literals.
      #
      #     depends 'foo'
      deps += field(ast, "depends").xpath("descendant::args_add/descendant::tstring_content[1]")

      # Quoted word arrays are also common.
      #
      #     %w{foo bar baz}.each do |cbk|
      #       depends cbk
      #     end
      deps += word_list_values(field(ast, "depends"))
      deps.uniq!
      deps.map! { |dep| dep["value"].strip }
      deps
    end
The dependencies declared in cookbook metadata.