Sha256: eeed699f217c478bf85c82da574d8436f16c3de67f2e55a961784fb2a2276c64
Contents?: true
Size: 535 Bytes
Versions: 9
Compression:
Stored size: 535 Bytes
Contents
require 'json' require 'open-uri' module LogCabin module Modules ## # Pull state from a GitHub release module GithubRelease include Prospectus.helpers.find(:regex) include Prospectus.helpers.find(:github_api) def load! fail('No repo specified') unless @repo @state.value = regex_helper(release) end private def release @release ||= github_api.latest_release(@repo).tag_name end def repo(value) @repo = value end end end end
Version data entries
9 entries across 9 versions & 1 rubygems