Module: CompactIndex
- Defined in:
- lib/compact_index.rb,
lib/compact_index/version.rb
Defined Under Namespace
Classes: GemInfo, VersionsFile
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.info(conn, name) ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/compact_index.rb', line 14
def self.info(conn, name)
output = "---\n"
name = [name] if name.kind_of? String
GemInfo.new(conn).deps_for(name).each do |row|
output << version_line(row) << "\n"
end
output
end
|
.names(conn) ⇒ Object
6
7
8
|
# File 'lib/compact_index.rb', line 6
def self.names(conn)
"---\n" + GemInfo.new(conn).names.join("\n") + "\n"
end
|