class XDep::Ruby::CSV
Public Class Methods
accepts?(filename)
click to toggle source
# File lib/xdep/ruby.rb, line 69 def self.accepts?(filename) Bundler::GemfileOutput.accepts?(filename) || RubyGems::GemspecOutput.accepts?(filename) end
Protected Instance Methods
get_rows(input)
click to toggle source
# File lib/xdep/ruby.rb, line 75 def get_rows(input) rows = [] input.each_line do |line| next if line =~ COMMENT || line !~ GEMFILE && line !~ GEMSPEC next if ignore?($3) spec = find_spec($3) if spec.nil? row = [$3, nil, "Gem not found"] else row = [spec.name, spec.version.to_s, spec.summary, spec.homepage, spec.licenses.join(", ")] end row.unshift "Ruby" rows << row end rows end