Sha256: 47469ed6a4d1150a3734891a915cc5fbda6b26ed94ae65730deaad4942cd8d59
Contents?: true
Size: 582 Bytes
Versions: 11
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Getv class Package class GitHub # Getv::Package::GitHub::Release class class Release < Package::GitHub def initialize(name, opts = {}) opts = defaults.merge(opts) opts = github_defaults(name).merge(opts) super name, opts end private def retrieve_versions retries ||= 0 github.releases("#{opts[:owner]}/#{opts[:repo]}").map(&:tag_name) rescue StandardError retry if (retries += 1) < 4 end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems