This commit is contained in:
2026-04-22 02:06:15 +09:00
parent 8ff1819d5a
commit 6b0d262040
8 changed files with 232 additions and 16 deletions
+3 -4
View File
@@ -8,10 +8,9 @@ module TagRepr
module_function
def base tag
tag.as_json(BASE)
tag.as_json(BASE).merge(aliases: tag.snapshot_aliases,
parents: tag.parents.map { _1.as_json(BASE) })
end
def many tags
tags.map { |t| base(t) }
end
def many(tags) = tags.map { |t| base(t) }
end