Sha256: c4cdd74d5f75281099655272b4c98642571c975ba45fb4caa12f5e9095ac5672

Contents?: true

Size: 575 Bytes

Versions: 11

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module Getv
  class Package
    class GitHub
      # Getv::Package::GitHub::Tag class
      class Tag < 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.tags("#{opts[:owner]}/#{opts[:repo]}").map { |t| t[:name] }
        rescue StandardError
          retry if (retries += 1) < 4
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
getv-rs-2.3.5 lib/getv/package/github/tag.rb
getv-rs-2.3.4 lib/getv/package/github/tag.rb
getv-rs-2.3.3 lib/getv/package/github/tag.rb
getv-rs-2.3.2 lib/getv/package/github/tag.rb
getv-rs-2.3.1 lib/getv/package/github/tag.rb
getv-rs-2.3.0 lib/getv/package/github/tag.rb
getv-2.2.2 lib/getv/package/github/tag.rb
getv-2.2.0 lib/getv/package/github/tag.rb
getv-2.1.4 lib/getv/package/github/tag.rb
getv-2.1.3 lib/getv/package/github/tag.rb
getv-2.1.2 lib/getv/package/github/tag.rb