Sha256: a7755e0b17f2f9746d510385bc0610101b6d86b522d1ee65e4a0b79159895673
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
require 'terminal-table' module Buildpack module Packager module TablePresentation def to_markdown(table_contents) table_contents.split("\n")[1...-1].tap { |lines| lines[1].tr!('+', '|') }.join("\n") end def sanitize_version_string(version) version == 0 ? '-' : version end def sort_string_for(dependency) interpreter_names = %w(ruby jruby php hhvm python go node) sort_index = interpreter_names.index(dependency['name']) || 9999 sprintf '%s-%s-%s', sort_index, dependency['name'], dependency['version'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildpack-packager-2.3.4 | lib/buildpack/packager/table_presentation.rb |