Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Feldblum committed Jun 17, 2011
1 parent be0f2ce commit eefe8ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/librarian/lockfile/compiler.rb
Expand Up @@ -14,15 +14,14 @@ def initialize(root_module)

def compile(resolution)
out = StringIO.new
save_manifests(out, resolution.manifests)
save_sources(out, resolution.manifests)
save_dependencies(out, resolution.dependencies)
out.rewind
out.read
out.string
end

private

def save_manifests(out, manifests)
def save_sources(out, manifests)
dsl_class.source_types.map{|t| t[1]}.each do |type|
type_manifests = manifests.select{|m| type === m.source}
sources = type_manifests.map{|m| m.source}.uniq.sort_by{|s| s.to_s}
Expand Down

0 comments on commit eefe8ea

Please sign in to comment.