Class: Glitter::Release::Sparkle

Inherits:
Base
  • Object
show all
Defined in:
lib/glitter/release.rb

Overview

A release consists of a binary asset, notes, a monotonically increasing version number, and lives inside of a channel.

Instance Attribute Summary collapse

Attributes inherited from Base

#channel, #logger, #version

Instance Method Summary collapse

Methods inherited from Base

#assets, #head, #initialize

Constructor Details

This class inherits a constructor from Glitter::Release::Base

Instance Attribute Details

#bundle_versionObject



88
89
90
# File 'lib/glitter/release.rb', line 88

def bundle_version
  @bundle_version || @version
end

#executableObject

Returns the value of attribute executable.



72
73
74
# File 'lib/glitter/release.rb', line 72

def executable
  @executable
end

#filenameObject

Returns the value of attribute filename.



72
73
74
# File 'lib/glitter/release.rb', line 72

def filename
  @filename
end

#minimum_system_version=(value) ⇒ Object (writeonly)

Sets the attribute minimum_system_version

Parameters:

  • value

    the value to set the attribute minimum_system_version to.



73
74
75
# File 'lib/glitter/release.rb', line 73

def minimum_system_version=(value)
  @minimum_system_version = value
end

#notesObject

Returns the value of attribute notes.



72
73
74
# File 'lib/glitter/release.rb', line 72

def notes
  @notes
end

#published_atObject

Yeah, lets publish this shiz NOW.



76
77
78
# File 'lib/glitter/release.rb', line 76

def published_at
  @published_at ||= Time.now
end

Instance Method Details

#minimum_version_attributeObject



92
93
94
95
96
# File 'lib/glitter/release.rb', line 92

def minimum_version_attribute
  unless @minimum_system_version.nil?
    "<sparkle:minimumSystemVersion>#{@minimum_system_version}</sparkle:minimumSystemVersion>"
  end
end

#push(*args) ⇒ Object

Generate assets and push



81
82
83
84
85
86
# File 'lib/glitter/release.rb', line 81

def push(*args)
  notes_asset
  appcast_asset
  executable_asset
  super(*args)
end