diff --git a/lib/docurium.rb b/lib/docurium.rb index e4bafbda6..9cc944d6b 100644 --- a/lib/docurium.rb +++ b/lib/docurium.rb @@ -266,8 +266,8 @@ def show_warnings(data) # check for changed signatures sigchanges = [] - @sigs.each do |fun, data| - if data[:changes]['HEAD'] + @sigs.each do |fun, sig_data| + if sig_data[:changes]['HEAD'] sigchanges << fun end end @@ -383,7 +383,6 @@ def group_functions!(data) func[group] << key func[group].sort! end - misc = [] func.to_a.sort end @@ -395,7 +394,7 @@ def find_type_usage!(data) h.merge!(data[:callbacks]) h.each do |func, fdata| data[:types].each_with_index do |tdata, i| - type, typeData = tdata + type = tdata[0] data[:types][i][1][:used] ||= {:returns => [], :needs => []} if fdata[:return][:type].index(/#{type}[ ;\)\*]?/) data[:types][i][1][:used][:returns] << func diff --git a/lib/docurium/docparser.rb b/lib/docurium/docparser.rb index fd50fec02..5d581e48c 100644 --- a/lib/docurium/docparser.rb +++ b/lib/docurium/docparser.rb @@ -30,11 +30,9 @@ def parse_file(orig_filename, files) FileUtils.remove_entry(tmpdir) - cursor = tu.cursor - recs = [] - cursor.visit_children do |cursor, parent| + tu.cursor.visit_children do |cursor, parent| #puts "visiting #{cursor.kind} - #{cursor.spelling}" location = cursor.location next :continue if location.file == nil diff --git a/lib/docurium/layout.rb b/lib/docurium/layout.rb index 8177dd62b..1b703bb92 100644 --- a/lib/docurium/layout.rb +++ b/lib/docurium/layout.rb @@ -1,7 +1,4 @@ # adding some stuff I need class Rocco::Layout attr_accessor :version - def version - @version - end end diff --git a/test/docurium_test.rb b/test/docurium_test.rb index 7851f8913..5764d73a9 100644 --- a/test/docurium_test.rb +++ b/test/docurium_test.rb @@ -9,15 +9,6 @@ def setup @repo = Rugged::Repository.init_at(@dir, :bare) - config = <