class Torba::RemoteSources::GithubRelease

Represents {help.github.com/articles/about-releases/ Github release}.

Attributes

repository_name[R]

@return [String] @since 0.2.0

repository_user[R]

@return [String] @since 0.2.0

source[R]

@return [String] repository user and name. @example

"jashkenas/underscore"

@see repository_name @see repository_user

tag[R]

@return [String] repository tag. @example

"v1.8.3"

Public Class Methods

new(source, tag) click to toggle source

@param source see {#source} @param tag see {#tag}

Calls superclass method
# File lib/torba/remote_sources/github_release.rb, line 29
def initialize(source, tag)
  @source = source
  @tag = tag
  @repository_user, @repository_name = source.split("/")
  super("https://github.com/#{source}/archive/#{tag}.zip")
  @digest = "#{repository_name}-#{Torba.digest(url)}"
end