class Omgcnb::BitOfBuildpack
Attributes
name[R]
Public Class Methods
new(toml_contents: , changelog_contents: )
click to toggle source
# File lib/omgcnb/bit_of_buildpack.rb, line 6 def initialize(toml_contents: , changelog_contents: ) @toml = Tomlrb.parse(toml_contents, symbolize_keys: true) @name = toml.fetch(:buildpack).fetch(:id) @unreleased_markdown = UnreleasedMarkdown.new(changelog_contents) end
Public Instance Methods
changed_list()
click to toggle source
# File lib/omgcnb/bit_of_buildpack.rb, line 17 def changed_list @unreleased_markdown.changed_list end
depends_on(show_optional: false)
click to toggle source
# File lib/omgcnb/bit_of_buildpack.rb, line 25 def depends_on(show_optional: false) @depends_on = toml&.[](:order) &.map { |group_array| group_array[:group] } &.flatten &.map {|group| if show_optional || !group[:optional] group[:id] else nil end }&.compact || [] end
needs_release?()
click to toggle source
# File lib/omgcnb/bit_of_buildpack.rb, line 13 def needs_release? @unreleased_markdown.needs_release? end
toml()
click to toggle source
# File lib/omgcnb/bit_of_buildpack.rb, line 21 def toml @toml end