Sha256: 90b8a8149bec23fe7dfeda0cd9b74b27b45db3a271cef44b280c975917ded1cf
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
require 'json' require_relative 'step' module Fuselage class Check < Step Contract None => Maybe[HashOf[String, String]] def version config['version'] end Contract None => HashOf[String, String] def latest fail NotImplementedError end Contract HashOf[String, String] => ArrayOf[HashOf[String, String]] def since(version) fail NotImplementedError end Contract None => String def output JSON.dump version.nil? ? [latest] : since(version) end end end
Version data entries
4 entries across 4 versions & 1 rubygems