In Files
Parent
- Component
Methods
Class Index
![show/hide quicksearch [+]](../../assets/icon/find.png)
- WebRI
- WebRI::Blackfish
- WebRI::Component
- WebRI::Generator
- WebRI::GeneratorOne
- WebRI::GitHub
- WebRI::Heirarchy
- WebRI::Highlight
- WebRI::Icons
- WebRI::JSONFile
- WebRI::Longfish
- WebRI::Metadata
- WebRI::Newfish
- WebRI::Oldfish
- WebRI::Onefish
- WebRI::Prettify
- WebRI::Redfish
- WebRI::RiService
- WebRI::Search
- WebRI::Search::FilesTree
- WebRI::Server
- WebRI::Subversion
- WebRI::Template
- WebRI::TimeDelta
- WebRI::Twofish
- RDoc
- RDoc::AnyMethod
- RDoc::ClassModule
- RDoc::Options
- RDoc::Parser
- RDoc::Parser::C
- RDoc::TopLevel
- Syckle
- Syckle::Plugins
- Syckle::Plugins::WebRI
- Object
- OpEsc
Subversion
Constants
Public Instance Methods
get_svninfo(klass)
click to toggle source
Try to extract Subversion information out of the first constant whose value looks like a subversion Id tag. If no matching constant is found, and empty hash is returned.
# File lib/webri/components/subversion.rb, line 29 def get_svninfo(klass) constants = klass.constants or return {} constants.find {|c| c.value =~ SVNID_PATTERN } or return {} filename, rev, date, time, committer = $~.captures commitdate = Time.parse( date + ' ' + time ) return { :filename => filename, :rev => Integer( rev ), :commitdate => commitdate, :commitdelta => (Time.now.to_i - commitdate.to_i).time_delta_string, :committer => committer, } end
initialize_methods()
click to toggle source
# File lib/webri/components/subversion.rb, line 17 def initialize_methods provision :svninfo end
Disabled; run with --debug to generate this.