Class: DamageControl::Tracker::RubyForge

Inherits:
SourceForge show all
Defined in:
lib/damagecontrol/tracker.rb

Constant Summary

Constants inherited from SourceForge

SourceForge::PATTERN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SourceForge

#initialize

Methods inherited from Base

classes, #htmlize, register

Methods included from Web::Configuration

#selected?, #short

Constructor Details

This class inherits a constructor from DamageControl::Tracker::SourceForge

Instance Attribute Details

#group_idObject

Returns the value of attribute group_id.



155
156
157
# File 'lib/damagecontrol/tracker.rb', line 155

def group_id
  @group_id
end

#tracker_idObject

Returns the value of attribute tracker_id.



159
160
161
# File 'lib/damagecontrol/tracker.rb', line 159

def tracker_id
  @tracker_id
end

Instance Method Details

#highlight(message) ⇒ Object



169
170
171
# File 'lib/damagecontrol/tracker.rb', line 169

def highlight(message)
  htmlize(message.gsub(PATTERN,"<a href=\"http://rubyforge.org/tracker/index.php?func=detail&aid=\\1&group_id=#{group_id}&atid=#{tracker_id}\">#\\1</a>"))
end

#nameObject



161
162
163
# File 'lib/damagecontrol/tracker.rb', line 161

def name
  "RubyForge"
end

#urlObject



165
166
167
# File 'lib/damagecontrol/tracker.rb', line 165

def url
  "http://rubyforge.org/tracker/?group_id=#{group_id}"
end