Sha256: 2055a8f1383f11d8f40a2f2f7273d00a1bb87a07b2b12fc25c6c20a6b405e64c
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
class Library attr_accessor :name attr_accessor :manifests def versions versions = release_manifests.map { |m| m["version"] } end def generic_manifest @manifests.each do |m| if m["schema_type"] == "generic" return m end end nil end def release_manifests result = @manifests.reject { |m| m["schema_type"] == "generic" } result.sort! do |m1,m2| m1["release_date"] <=> m2["release_date"] end result end def latest_manifest if release_manifests.empty? return generic_manifest else return release_manifests.last end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inqlude-0.7.0 | lib/library.rb |