Sha256: d448e2e62b00d1194a845117cc1f9b55fc4266a6cf37210a44e49bb01c2e836a
Contents?: true
Size: 657 Bytes
Versions: 19
Compression:
Stored size: 657 Bytes
Contents
require 'contracts' module GitHubStatus module Support module Source include ::Contracts::Core include ::Contracts::Builtin Contract None => String def access_token @access_token ||= source.fetch 'access_token' rescue KeyError STDERR.puts 'Source is missing access_token' abort end Contract None => String def repo @repo ||= source.fetch 'repo' rescue KeyError STDERR.puts 'Source is missing repo' abort end Contract None => String def branch @branch ||= source.fetch('branch') { 'master' } end end end end
Version data entries
19 entries across 19 versions & 1 rubygems