diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-15 19:35:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-12-16 00:26:37 +0900 |
commit | e15d690db147fb059a48f87bf639fdf0c006a22b (patch) | |
tree | 6a2cf3bbb4589383998031b0c5d2335c5986b176 /lib/rdoc/parser/changelog.rb | |
parent | 578eb02b16218ce842a30bf794bf52a68e680a38 (diff) |
[ruby/rdoc] [DOC] Add missing documents
https://github.com/ruby/rdoc/commit/e4c90340d0
Diffstat (limited to 'lib/rdoc/parser/changelog.rb')
-rw-r--r-- | lib/rdoc/parser/changelog.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/rdoc/parser/changelog.rb b/lib/rdoc/parser/changelog.rb index 2a685d1d79..a046241870 100644 --- a/lib/rdoc/parser/changelog.rb +++ b/lib/rdoc/parser/changelog.rb @@ -216,12 +216,22 @@ class RDoc::Parser::ChangeLog < RDoc::Parser @top_level end + ## + # The extension for Git commit log + module Git + ## + # Parses auxiliary info. Currentry `base-url` to expand + # references is effective. + def parse_info(info) /^\s*base-url\s*=\s*(.*\S)/ =~ info @base_url = $1 end + ## + # Parses the entries in the Git commit logs + def parse_entries entries = [] @@ -244,6 +254,11 @@ class RDoc::Parser::ChangeLog < RDoc::Parser entries end + ## + # Returns a list of ChangeLog entries as + # RDoc::Parser::ChangeLog::Git::LogEntry list for the given + # +entries+. + def create_entries entries # git log entries have no strictly itemized style like the old # style, just assume Markdown. |