Sha256: ce2431d20260efb91ea6c16376cabc939e936b84aa83d3e4323a104d21af9130
Contents?: true
Size: 628 Bytes
Versions: 40
Compression:
Stored size: 628 Bytes
Contents
module Bibliothecary module MultiParsers module BundlerLikeManifest # this takes parsed Bundler and Bundler-like (CocoaPods) # manifests and turns them into a list of dependencies. def parse_ruby_manifest(manifest) manifest.dependencies.inject([]) do |deps, dep| deps.push({ name: dep.name, requirement: dep .requirement .requirements .sort_by(&:last) .map { |op, version| "#{op} #{version}" } .join(", "), type: dep.type }) end.uniq end end end end
Version data entries
40 entries across 40 versions & 1 rubygems