Class: Rake::Delphi::GitChangelog

Inherits:
BasicTask
  • Object
show all
Defined in:
lib/rake/common/git.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasicTask

#trace?

Constructor Details

#initialize(task, opts) {|_self| ... } ⇒ GitChangelog

Returns a new instance of GitChangelog.

Yields:

  • (_self)

Yield Parameters:



34
35
36
37
38
39
40
41
# File 'lib/rake/common/git.rb', line 34

def initialize(task, opts)
    super(task)
    @opts = {:filter => '.', :format => '%B'}
    @opts.merge!(opts) if opts.kind_of?(Hash)
    @changelog = @processed = []
    get_changelog
    yield self if block_given?
end

Instance Attribute Details

#changelogObject (readonly)

Returns the value of attribute changelog.



32
33
34
# File 'lib/rake/common/git.rb', line 32

def changelog
  @changelog
end

#optsObject (readonly)

Returns the value of attribute opts.



32
33
34
# File 'lib/rake/common/git.rb', line 32

def opts
  @opts
end

#processedObject (readonly)

Returns the value of attribute processed.



32
33
34
# File 'lib/rake/common/git.rb', line 32

def processed
  @processed
end

Instance Method Details

#changelog_stringObject



47
48
49
# File 'lib/rake/common/git.rb', line 47

def changelog_string
    @changelog.join("\n")
end

#processed_stringObject



43
44
45
# File 'lib/rake/common/git.rb', line 43

def processed_string
    @processed.join("\n")
end