Commit 1a0d9d7e9c90777e69608904b8f0e38c640f0e33

Authored by Carlos Morais + Paulo Meirelles
Committed by Carlos Morais
1 parent b046e2a3

[Mezuro] s/title/name/g into project_content

plugins/mezuro/lib/mezuro_plugin/project_content.rb
@@ -19,16 +19,16 @@ class MezuroPlugin::ProjectContent < Article @@ -19,16 +19,16 @@ class MezuroPlugin::ProjectContent < Article
19 19
20 # FIXME is this really needed? 20 # FIXME is this really needed?
21 def project 21 def project
22 - Kalibro::Client::ProjectClient.new.project(title) 22 + Kalibro::Client::ProjectClient.new.project(name)
23 end 23 end
24 24
25 def project_result 25 def project_result
26 - @project_result ||= Kalibro::Client::ProjectResultClient.new.last_result(title) 26 + @project_result ||= Kalibro::Client::ProjectResultClient.new.last_result(name)
27 end 27 end
28 28
29 def module_result(module_name) 29 def module_result(module_name)
30 @module_client ||= Kalibro::Client::ModuleResultClient.new 30 @module_client ||= Kalibro::Client::ModuleResultClient.new
31 - @module_client.module_result(title, module_name, project_result.date) 31 + @module_client.module_result(name, module_name, project_result.date)
32 end 32 end
33 33
34 after_save :send_project_to_service 34 after_save :send_project_to_service
@@ -38,16 +38,16 @@ class MezuroPlugin::ProjectContent < Article @@ -38,16 +38,16 @@ class MezuroPlugin::ProjectContent < Article
38 38
39 def send_project_to_service 39 def send_project_to_service
40 Kalibro::Client::ProjectClient.save(create_project) 40 Kalibro::Client::ProjectClient.save(create_project)
41 - Kalibro::Client::KalibroClient.process_project(title) 41 + Kalibro::Client::KalibroClient.process_project(name)
42 end 42 end
43 43
44 def remove_project_from_service 44 def remove_project_from_service
45 - Kalibro::Client::ProjectClient.remove(title) 45 + Kalibro::Client::ProjectClient.remove(name)
46 end 46 end
47 47
48 def create_project 48 def create_project
49 project = Kalibro::Entities::Project.new 49 project = Kalibro::Entities::Project.new
50 - project.name = title 50 + project.name = name
51 project.license = license 51 project.license = license
52 project.description = description 52 project.description = description
53 project.repository = create_repository 53 project.repository = create_repository