Skip to content

Commit

Permalink
Use each_line so it works under ruby 1.9
Browse files Browse the repository at this point in the history
This closes libgit2#4.
  • Loading branch information
carlosmn committed May 21, 2012
1 parent 5b4565e commit 779218f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/docurium.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def clean_comment(comment)
def extract_meta(data) def extract_meta(data)
file, brief, defgroup, ingroup = nil file, brief, defgroup, ingroup = nil
data.each do |block| data.each do |block|
block[:comments].each do |comment| block[:comments].each_line do |comment|
m = [] m = []
file = m[1] if m = /@file (.*?)$/.match(comment) file = m[1] if m = /@file (.*?)$/.match(comment)
brief = m[1] if m = /@brief (.*?)$/.match(comment) brief = m[1] if m = /@brief (.*?)$/.match(comment)
Expand Down

0 comments on commit 779218f

Please sign in to comment.