From 410dee686a882a74e3fa90c3f4c6d6666ae983b6 Mon Sep 17 00:00:00 2001 From: Caio Date: Wed, 2 May 2012 10:44:10 -0300 Subject: [PATCH] [Mezuro] removing date variable from module_result method --- plugins/mezuro/lib/mezuro_plugin/project_content.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/mezuro/lib/mezuro_plugin/project_content.rb b/plugins/mezuro/lib/mezuro_plugin/project_content.rb index 71183cd..d2d2015 100644 --- a/plugins/mezuro/lib/mezuro_plugin/project_content.rb +++ b/plugins/mezuro/lib/mezuro_plugin/project_content.rb @@ -34,11 +34,9 @@ class MezuroPlugin::ProjectContent < Article @project_result ||= client.has_results_before(name, date) ? client.last_result_before(name, date) : client.first_result_after(name, date) end - def module_result(module_name, date) + def module_result(module_name) module_name = project.name if module_name.nil? -#FIXME date format is wrong - date = project_result.date if date.nil? - @module_client ||= module_result_client.module_result(project.name, module_name, date) + @module_client ||= module_result_client.module_result(project.name, module_name, project_result.date) end def result_history(module_name) -- libgit2 0.21.2