guara 0.0.1.rc

Sign up to get free protection for your applications and to get access to all the features.
Files changed (512) hide show
  1. data/.gitignore +23 -0
  2. data/.rspec +2 -0
  3. data/.travis.yml +33 -0
  4. data/Gemfile +82 -0
  5. data/Gemfile.lock +323 -0
  6. data/Guardfile +32 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +8 -0
  9. data/Rakefile +7 -0
  10. data/app/admin/business_activities.rb +3 -0
  11. data/app/admin/business_departments.rb +3 -0
  12. data/app/admin/business_segments.rb +13 -0
  13. data/app/admin/cities.rb +3 -0
  14. data/app/admin/company_businesses.rb +3 -0
  15. data/app/admin/dashboard.rb +39 -0
  16. data/app/admin/districts.rb +3 -0
  17. data/app/admin/states.rb +3 -0
  18. data/app/admin/task_types.rb +3 -0
  19. data/app/admin/user_groups.rb +3 -0
  20. data/app/admin/users.rb +3 -0
  21. data/app/assets/images/close.gif +0 -0
  22. data/app/assets/images/custom/logo.png +0 -0
  23. data/app/assets/images/custom/nav_logo.png +0 -0
  24. data/app/assets/images/custom/nav_logo.psd +0 -0
  25. data/app/assets/images/rails.png +0 -0
  26. data/app/assets/javascripts/active_admin.js +5 -0
  27. data/app/assets/javascripts/application.js +97 -0
  28. data/app/assets/javascripts/business_departments.js.coffee +3 -0
  29. data/app/assets/javascripts/company_businesses.js.coffee +3 -0
  30. data/app/assets/javascripts/crm.js.coffee +14 -0
  31. data/app/assets/javascripts/fcbk.js +556 -0
  32. data/app/assets/javascripts/jquery-ui-timepicker-addon.js +1326 -0
  33. data/app/assets/javascripts/jquery.mask.1.3.js +7 -0
  34. data/app/assets/javascripts/jquery.multiselect.filter.xjs +173 -0
  35. data/app/assets/javascripts/jquery.multiselect.xjs +668 -0
  36. data/app/assets/javascripts/system_task_status.js.coffee +3 -0
  37. data/app/assets/javascripts/tests/ajaxes.js.coffee +3 -0
  38. data/app/assets/stylesheets/abilities.css.scss +6 -0
  39. data/app/assets/stylesheets/active_admin.css.scss +65 -0
  40. data/app/assets/stylesheets/application.css +19 -0
  41. data/app/assets/stylesheets/business_departments.css.scss +3 -0
  42. data/app/assets/stylesheets/company_businesses.css.scss +3 -0
  43. data/app/assets/stylesheets/custom.css.scss +322 -0
  44. data/app/assets/stylesheets/customer.scss +7 -0
  45. data/app/assets/stylesheets/fcbk.css +165 -0
  46. data/app/assets/stylesheets/guara.css.scss +159 -0
  47. data/app/assets/stylesheets/jquery-ui.css +567 -0
  48. data/app/assets/stylesheets/jquery_bootstrap.css.scss +92 -0
  49. data/app/assets/stylesheets/jquery_multiselect_filter.xcss +3 -0
  50. data/app/assets/stylesheets/scaffolds.css.scss +42 -0
  51. data/app/assets/stylesheets/users.css.scss +10 -0
  52. data/app/controllers/abilities_controller.rb +37 -0
  53. data/app/controllers/application_controller.rb +12 -0
  54. data/app/controllers/business_activities_controller.rb +87 -0
  55. data/app/controllers/business_departments_controller.rb +90 -0
  56. data/app/controllers/business_segments_controller.rb +88 -0
  57. data/app/controllers/company_businesses_controller.rb +46 -0
  58. data/app/controllers/contacts_controller.rb +105 -0
  59. data/app/controllers/customers_controller.rb +117 -0
  60. data/app/controllers/microposts_controller.rb +31 -0
  61. data/app/controllers/sessions_controller.rb +32 -0
  62. data/app/controllers/static_pages_controller.rb +23 -0
  63. data/app/controllers/system_task_status_controller.rb +84 -0
  64. data/app/controllers/task_feedbacks_controller.rb +6 -0
  65. data/app/controllers/task_types_controller.rb +85 -0
  66. data/app/controllers/tasks_controller.rb +107 -0
  67. data/app/controllers/tests/ajaxes_controller.rb +115 -0
  68. data/app/controllers/tests/lab_ajax_controller.rb +27 -0
  69. data/app/controllers/users_controller.rb +62 -0
  70. data/app/helpers/ability_helper.rb +15 -0
  71. data/app/helpers/application_helper.rb +32 -0
  72. data/app/helpers/business_activities_helper.rb +2 -0
  73. data/app/helpers/business_departments_helper.rb +2 -0
  74. data/app/helpers/business_segments_helper.rb +2 -0
  75. data/app/helpers/company_businesses_helper.rb +2 -0
  76. data/app/helpers/contacts_helper.rb +2 -0
  77. data/app/helpers/customers_helper.rb +23 -0
  78. data/app/helpers/email_helper.rb +8 -0
  79. data/app/helpers/form_ajax_helper.rb +8 -0
  80. data/app/helpers/guara_views_helper.rb +38 -0
  81. data/app/helpers/locale_helper.rb +24 -0
  82. data/app/helpers/menu_helper.rb +55 -0
  83. data/app/helpers/sessions_helper.rb +56 -0
  84. data/app/helpers/tasks_helper.rb +20 -0
  85. data/app/helpers/tests/ajaxes_helper.rb +2 -0
  86. data/app/helpers/user_abilities_helper.rb +12 -0
  87. data/app/helpers/users_helper.rb +29 -0
  88. data/app/mailers/.gitkeep +0 -0
  89. data/app/models/.gitkeep +0 -0
  90. data/app/models/ability.rb +52 -0
  91. data/app/models/address.rb +7 -0
  92. data/app/models/business_activity.rb +5 -0
  93. data/app/models/business_department.rb +3 -0
  94. data/app/models/business_segment.rb +5 -0
  95. data/app/models/city.rb +7 -0
  96. data/app/models/company_business.rb +6 -0
  97. data/app/models/contact.rb +69 -0
  98. data/app/models/customer.rb +117 -0
  99. data/app/models/customer_activity.rb +9 -0
  100. data/app/models/customer_financial.rb +10 -0
  101. data/app/models/customer_has_customers.rb +7 -0
  102. data/app/models/customer_pf.rb +13 -0
  103. data/app/models/customer_pj.rb +71 -0
  104. data/app/models/customer_pj_has_customers_pj.rb +7 -0
  105. data/app/models/customer_product.rb +3 -0
  106. data/app/models/customer_segment.rb +9 -0
  107. data/app/models/district.rb +6 -0
  108. data/app/models/email.rb +7 -0
  109. data/app/models/micropost.rb +10 -0
  110. data/app/models/relationship.rb +9 -0
  111. data/app/models/search.rb +17 -0
  112. data/app/models/state.rb +3 -0
  113. data/app/models/system_ability.rb +16 -0
  114. data/app/models/system_module.rb +16 -0
  115. data/app/models/system_task_resolution.rb +26 -0
  116. data/app/models/system_task_status.rb +19 -0
  117. data/app/models/task.rb +76 -0
  118. data/app/models/task_feedback.rb +11 -0
  119. data/app/models/task_type.rb +12 -0
  120. data/app/models/tests.rb +5 -0
  121. data/app/models/tests/ajax.rb +3 -0
  122. data/app/models/user.rb +126 -0
  123. data/app/models/user_ability.rb +23 -0
  124. data/app/models/user_group.rb +9 -0
  125. data/app/models/user_type.rb +9 -0
  126. data/app/models/users_has_groups.rb +9 -0
  127. data/app/validators/customer_cnpj_validator.rb +14 -0
  128. data/app/validators/email_validator.rb +21 -0
  129. data/app/views/abilities/index.html.erb +25 -0
  130. data/app/views/active_extend/_one_to_many_inputs.html.erb +7 -0
  131. data/app/views/active_extend/_one_to_many_inputs_fields.html.erb +10 -0
  132. data/app/views/active_extend/_one_to_many_inputs_with_glyph.html.erb +21 -0
  133. data/app/views/business_activities/_business_activity.html.erb +0 -0
  134. data/app/views/business_activities/_form.html.erb +25 -0
  135. data/app/views/business_activities/edit.html.erb +6 -0
  136. data/app/views/business_activities/index.html.erb +33 -0
  137. data/app/views/business_activities/new.html.erb +5 -0
  138. data/app/views/business_activities/show.html.erb +15 -0
  139. data/app/views/business_departments/_form.html.erb +10 -0
  140. data/app/views/business_departments/edit.html.erb +6 -0
  141. data/app/views/business_departments/index.html.erb +33 -0
  142. data/app/views/business_departments/new.html.erb +5 -0
  143. data/app/views/business_departments/show.html.erb +15 -0
  144. data/app/views/business_segments/_business_segment.html.erb +8 -0
  145. data/app/views/business_segments/_form.html.erb +25 -0
  146. data/app/views/business_segments/edit.html.erb +6 -0
  147. data/app/views/business_segments/index.html.erb +33 -0
  148. data/app/views/business_segments/new.html.erb +5 -0
  149. data/app/views/business_segments/show.html.erb +15 -0
  150. data/app/views/company_businesses/_form.html.erb +10 -0
  151. data/app/views/company_businesses/edit.html.erb +6 -0
  152. data/app/views/company_businesses/index.html.erb +25 -0
  153. data/app/views/company_businesses/new.html.erb +5 -0
  154. data/app/views/company_businesses/show.html.erb +15 -0
  155. data/app/views/contacts/_form.html.erb +53 -0
  156. data/app/views/contacts/_header.html.erb +3 -0
  157. data/app/views/contacts/_list.html.erb +46 -0
  158. data/app/views/contacts/_side_panel.html.erb +61 -0
  159. data/app/views/contacts/edit.html.erb +6 -0
  160. data/app/views/contacts/index.html.erb +72 -0
  161. data/app/views/contacts/new.html.erb +5 -0
  162. data/app/views/contacts/show.html.erb +52 -0
  163. data/app/views/customers/_businesses_done.html.erb +18 -0
  164. data/app/views/customers/_customer_segment.html.erb +9 -0
  165. data/app/views/customers/_form.html.erb +177 -0
  166. data/app/views/customers/_form_search.html.erb +119 -0
  167. data/app/views/customers/_modules.html.erb +6 -0
  168. data/app/views/customers/_navbar.html.erb +23 -0
  169. data/app/views/customers/_segment.html.erb +10 -0
  170. data/app/views/customers/edit.html.erb +8 -0
  171. data/app/views/customers/index.html.erb +46 -0
  172. data/app/views/customers/new.pj.html.erb +4 -0
  173. data/app/views/customers/show.pj.html.erb +200 -0
  174. data/app/views/devise/confirmations/new.html.erb +12 -0
  175. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  176. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  177. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  178. data/app/views/devise/passwords/edit.html.erb +16 -0
  179. data/app/views/devise/passwords/new.html.erb +12 -0
  180. data/app/views/devise/registrations/edit.html.erb +25 -0
  181. data/app/views/devise/registrations/new.html.erb +18 -0
  182. data/app/views/devise/sessions/new.html.erb +24 -0
  183. data/app/views/devise/shared/_links.erb +25 -0
  184. data/app/views/devise/unlocks/new.html.erb +12 -0
  185. data/app/views/emails/_email_fields.html.erb +1 -0
  186. data/app/views/layouts/_active_admin_footer.html.erb +4 -0
  187. data/app/views/layouts/_active_admin_header.html.erb +5 -0
  188. data/app/views/layouts/_footer.html.erb +12 -0
  189. data/app/views/layouts/_header.html.erb +51 -0
  190. data/app/views/layouts/_shim.html.erb +3 -0
  191. data/app/views/layouts/active_admin.html.arb +1 -0
  192. data/app/views/layouts/application.html.erb +24 -0
  193. data/app/views/microposts/_micropost.html.erb +11 -0
  194. data/app/views/sessions/new.html.erb +18 -0
  195. data/app/views/shared/_calendar.html.erb +17 -0
  196. data/app/views/shared/_error_messages.html.erb +13 -0
  197. data/app/views/shared/_feed.html.erb +10 -0
  198. data/app/views/shared/_feed_item.html.erb +15 -0
  199. data/app/views/shared/_micropost_form.html.erb +7 -0
  200. data/app/views/shared/_multi_selection.html.erb +16 -0
  201. data/app/views/shared/_multi_selection.html_checkbox.erb +11 -0
  202. data/app/views/shared/_multi_selection_autocomple.html.erb +5 -0
  203. data/app/views/shared/_notifies.html.erb +17 -0
  204. data/app/views/shared/_user_info.html.erb +14 -0
  205. data/app/views/static_pages/about.html.erb +5 -0
  206. data/app/views/static_pages/contact.html.erb +5 -0
  207. data/app/views/static_pages/help.html.erb +5 -0
  208. data/app/views/static_pages/home.html.erb +37 -0
  209. data/app/views/static_pages/news.html.erb +2 -0
  210. data/app/views/system_task_status/_form.html.erb +9 -0
  211. data/app/views/system_task_status/edit.html.erb +6 -0
  212. data/app/views/system_task_status/index.html.erb +23 -0
  213. data/app/views/system_task_status/new.html.erb +5 -0
  214. data/app/views/system_task_status/show.html.erb +10 -0
  215. data/app/views/task_feedbacks/_list.html.erb +51 -0
  216. data/app/views/task_feedbacks/_side_form.html.erb +56 -0
  217. data/app/views/task_feedbacks/_side_panel.html.erb +64 -0
  218. data/app/views/task_types/_form.html.erb +10 -0
  219. data/app/views/task_types/edit.html.erb +6 -0
  220. data/app/views/task_types/index.html.erb +23 -0
  221. data/app/views/task_types/new.html.erb +5 -0
  222. data/app/views/task_types/show.html.erb +10 -0
  223. data/app/views/tasks/_form.html.erb +52 -0
  224. data/app/views/tasks/_header.html.erb +3 -0
  225. data/app/views/tasks/_list.html.erb +50 -0
  226. data/app/views/tasks/_side_panel.html.erb +64 -0
  227. data/app/views/tasks/create.js.erb +1 -0
  228. data/app/views/tasks/edit.html.erb +6 -0
  229. data/app/views/tasks/index.html.erb +61 -0
  230. data/app/views/tasks/new.html.erb +5 -0
  231. data/app/views/tasks/show.html.erb +46 -0
  232. data/app/views/tests/ajaxes/_form.html.erb +10 -0
  233. data/app/views/tests/ajaxes/_list.html.erb +6 -0
  234. data/app/views/tests/ajaxes/add_and_update.html.erb +22 -0
  235. data/app/views/tests/ajaxes/all.js.erb +2 -0
  236. data/app/views/tests/ajaxes/edit.html.erb +6 -0
  237. data/app/views/tests/ajaxes/index.html.erb +25 -0
  238. data/app/views/tests/ajaxes/new.html.erb +5 -0
  239. data/app/views/tests/ajaxes/show.html.erb +15 -0
  240. data/app/views/tests/js.js +51 -0
  241. data/app/views/tests/lab_ajax/multiselection.html.erb +84 -0
  242. data/app/views/users/_user.html.erb +8 -0
  243. data/app/views/users/edit.html.erb +27 -0
  244. data/app/views/users/index.html.erb +9 -0
  245. data/app/views/users/new.html.erb +24 -0
  246. data/app/views/users/show.html.erb +26 -0
  247. data/bundle +0 -0
  248. data/config.ru +4 -0
  249. data/config/application.rb +73 -0
  250. data/config/boot.rb +6 -0
  251. data/config/database.yml +38 -0
  252. data/config/environment.rb +31 -0
  253. data/config/environments/development.rb +42 -0
  254. data/config/environments/production.rb +68 -0
  255. data/config/environments/test.rb +39 -0
  256. data/config/guara/menus.rb +34 -0
  257. data/config/initializers/active_admin.rb +210 -0
  258. data/config/initializers/backtrace_silencers.rb +7 -0
  259. data/config/initializers/cmgb_rules.rb +2 -0
  260. data/config/initializers/devise.rb +216 -0
  261. data/config/initializers/formtastic.rb +77 -0
  262. data/config/initializers/inflections.rb +19 -0
  263. data/config/initializers/json_paches_utf8.rb +13 -0
  264. data/config/initializers/kaminari.rb +21 -0
  265. data/config/initializers/locale.rb +7 -0
  266. data/config/initializers/meta_search.rb +10 -0
  267. data/config/initializers/mime_types.rb +5 -0
  268. data/config/initializers/secret_token.rb +7 -0
  269. data/config/initializers/session_store.rb +8 -0
  270. data/config/initializers/string.rb +9 -0
  271. data/config/initializers/wrap_parameters.rb +14 -0
  272. data/config/locales/devise.en.yml +57 -0
  273. data/config/locales/devise.pt-BR.yml +62 -0
  274. data/config/locales/pt-BR.yml +404 -0
  275. data/config/routes.rb +129 -0
  276. data/db/migrate/20120610142404_create_users.rb +10 -0
  277. data/db/migrate/20120610183820_add_index_to_users_email.rb +5 -0
  278. data/db/migrate/20120610185217_add_password_digest_to_users.rb +5 -0
  279. data/db/migrate/20120612000411_add_remember_token_to_users.rb +6 -0
  280. data/db/migrate/20120616162515_add_admin_to_users.rb +5 -0
  281. data/db/migrate/20120616215835_create_microposts.rb +11 -0
  282. data/db/migrate/20120617224530_create_relationships.rb +14 -0
  283. data/db/migrate/20120621095918_create_customers.rb +36 -0
  284. data/db/migrate/20120621100528_create_customer_pfs.rb +14 -0
  285. data/db/migrate/20120621100534_create_customer_pjs.rb +13 -0
  286. data/db/migrate/20120621100557_create_emails.rb +13 -0
  287. data/db/migrate/20120621100618_create_tasks.rb +26 -0
  288. data/db/migrate/20120621100639_create_customer_products.rb +14 -0
  289. data/db/migrate/20120621100705_create_districts.rb +11 -0
  290. data/db/migrate/20120621100720_create_cities.rb +11 -0
  291. data/db/migrate/20120624192444_create_business_segments.rb +10 -0
  292. data/db/migrate/20120624224245_create_business_activities.rb +13 -0
  293. data/db/migrate/20120628092744_create_customer_activities.rb +9 -0
  294. data/db/migrate/20120628092754_create_customer_segments.rb +9 -0
  295. data/db/migrate/20120703102859_create_states.rb +10 -0
  296. data/db/migrate/20120705121011_create_contacts.rb +18 -0
  297. data/db/migrate/20120711233943_add_devise_to_users.rb +56 -0
  298. data/db/migrate/20120723102847_create_user_abilities.rb +10 -0
  299. data/db/migrate/20120723104500_create_system_modules.rb +9 -0
  300. data/db/migrate/20120723104639_create_system_abilities.rb +9 -0
  301. data/db/migrate/20120728181903_create_user_groups.rb +10 -0
  302. data/db/migrate/20120729112600_create_users_has_groups.rb +14 -0
  303. data/db/migrate/20120729121922_add_groups_to_users.rb +6 -0
  304. data/db/migrate/20120910002835_create_system_task_status.rb +7 -0
  305. data/db/migrate/20120910010153_create_system_task_resolutions.rb +7 -0
  306. data/db/migrate/20120911021535_create_task_types.rb +10 -0
  307. data/db/migrate/20120911070836_create_task_feedbacks.rb +14 -0
  308. data/db/migrate/20120924022719_create_tests_ajaxes.rb +10 -0
  309. data/db/migrate/20121007131035_create_business_departments.rb +10 -0
  310. data/db/migrate/20121013120849_add_notes_and_other_contacts_to_customer.rb +5 -0
  311. data/db/migrate/20121014201255_create_company_businesses.rb +10 -0
  312. data/db/migrate/20121014202449_add_company_business_to_task_type.rb +6 -0
  313. data/db/migrate/20121014212430_add_primary_company_business_to_user.rb +5 -0
  314. data/db/migrate/20121015101844_add_parent_id_to_system_task_resolution.rb +5 -0
  315. data/db/migrate/20121026231241_create_customer_has_customers.rb +10 -0
  316. data/db/migrate/20121026232755_create_customer_pj_has_customers_pjs.rb +10 -0
  317. data/db/migrate/20121029094047_create_admin_notes.rb +17 -0
  318. data/db/migrate/20121029094048_move_admin_notes_to_comments.rb +25 -0
  319. data/db/migrate/20121103183646_add_enabled_to_cities.rb +5 -0
  320. data/db/migrate/20121104135014_create_customer_financials.rb +17 -0
  321. data/db/migrate/20121104141751_create_addresses.rb +19 -0
  322. data/db/migrate/20121205150619_add_type_id_to_users.rb +5 -0
  323. data/db/schema.rb~ +378 -0
  324. data/db/seeds.rb +99 -0
  325. data/gemfiles/Gemfile.rails.3.2.x +82 -0
  326. data/guara.gemspec +31 -0
  327. data/lib/active_extend/README.md +19 -0
  328. data/lib/active_extend/active_disablable.rb +59 -0
  329. data/lib/active_extend/string_helper.rb +9 -0
  330. data/lib/active_migration.rb +4 -0
  331. data/lib/active_migration/converters/rtf_to_html.rb +123 -0
  332. data/lib/active_migration/dictionary.rb +19 -0
  333. data/lib/active_migration/migration.rb +211 -0
  334. data/lib/active_migration/schemas.rb +143 -0
  335. data/lib/active_migration/spelling_fix.rb +20 -0
  336. data/lib/active_migration/transformer/grouped_field_fixed_spelling.rb +110 -0
  337. data/lib/assets/.gitkeep +0 -0
  338. data/lib/cmgb_rules/app/models/task.rb +19 -0
  339. data/lib/guara/version.rb +3 -0
  340. data/lib/spec/asserts/sheet1.xls +0 -0
  341. data/lib/spec/lib/active_migration_schemas_spec.rb +40 -0
  342. data/lib/spec/lib/active_migration_spec.rb +78 -0
  343. data/lib/spec/spec_helper.rb +121 -0
  344. data/lib/spec/support/active_migration_helper.rb +109 -0
  345. data/lib/spec/support/utilities.rb +7 -0
  346. data/lib/tasks/.gitkeep +0 -0
  347. data/lib/tasks/add_privilegies.rake +6 -0
  348. data/lib/tasks/external_migration.rake +22 -0
  349. data/lib/tasks/sample_data.rake +77 -0
  350. data/lib/tasks/smaple_data_test.rake +13 -0
  351. data/lib/templates/erb/scaffold/_form.html.erb +11 -0
  352. data/public/404.html +26 -0
  353. data/public/422.html +26 -0
  354. data/public/500.html +25 -0
  355. data/public/data.txt +1 -0
  356. data/public/favicon.ico +0 -0
  357. data/public/javascripts/autocomplete-rails.js +16 -0
  358. data/public/robots.txt +5 -0
  359. data/script/create_db +5 -0
  360. data/script/rails +6 -0
  361. data/script/recreate_db +5 -0
  362. data/script/recreate_db.bat +9 -0
  363. data/script/recreate_db_test +5 -0
  364. data/script/recreate_development_db +10 -0
  365. data/spec/controllers/business_activities_controller_spec.disabled +167 -0
  366. data/spec/controllers/business_departments_controller_spec.disabled +164 -0
  367. data/spec/controllers/business_segments_controller_spec.disabled +165 -0
  368. data/spec/controllers/company_businesses_controller_spec.disabled +164 -0
  369. data/spec/controllers/system_task_status_controller_spec.disabled +164 -0
  370. data/spec/controllers/system_task_status_spec.disabled +11 -0
  371. data/spec/controllers/task_types_controller_spec.disabled +164 -0
  372. data/spec/controllers/tasks_controller_spec.disabled +23 -0
  373. data/spec/controllers/tests/ajaxes_controller_spec.disabled +164 -0
  374. data/spec/factories.rb +101 -0
  375. data/spec/factories/addresses.rb +13 -0
  376. data/spec/factories/business_departments.rb +8 -0
  377. data/spec/factories/company_businesses.rb +8 -0
  378. data/spec/factories/customer_financials.rb +11 -0
  379. data/spec/factories/customer_has_customers.rb +8 -0
  380. data/spec/factories/customer_pj_has_customers_pjs.rb +8 -0
  381. data/spec/factories/system_task_resolutions.rb +7 -0
  382. data/spec/factories/system_task_status.rb +7 -0
  383. data/spec/factories/task.rb +17 -0
  384. data/spec/factories/task_feedbacks.rb +19 -0
  385. data/spec/factories/task_types.rb +8 -0
  386. data/spec/factories/tests_ajaxes.rb +8 -0
  387. data/spec/helpers/business_activities_helper_spec.rb +15 -0
  388. data/spec/helpers/business_departments_helper_spec.rb +15 -0
  389. data/spec/helpers/business_segments_helper_spec.rb +15 -0
  390. data/spec/helpers/company_businesses_helper_spec.rb +15 -0
  391. data/spec/helpers/customers/contacts_helper_spec.rb +15 -0
  392. data/spec/helpers/menu_helper_spec.rb +25 -0
  393. data/spec/helpers/tests/ajaxes_helper_spec.rb +15 -0
  394. data/spec/helpers/users_helpers_spec.rb +32 -0
  395. data/spec/models/address_spec.rb +5 -0
  396. data/spec/models/business_activity_spec.rb +5 -0
  397. data/spec/models/business_department_spec.rb +5 -0
  398. data/spec/models/business_segment_spec.rb +5 -0
  399. data/spec/models/city_spec.rb +5 -0
  400. data/spec/models/company_business_spec.rb +19 -0
  401. data/spec/models/contact_spec.rb +60 -0
  402. data/spec/models/customer_activity_spec.rb +5 -0
  403. data/spec/models/customer_financial_spec.rb +48 -0
  404. data/spec/models/customer_has_customers_spec.rb +18 -0
  405. data/spec/models/customer_pf_spec.rb +24 -0
  406. data/spec/models/customer_pj_has_customers_pj_spec.rb +34 -0
  407. data/spec/models/customer_pj_spec.rb +72 -0
  408. data/spec/models/customer_product_spec.rb +5 -0
  409. data/spec/models/customer_segment_spec.rb +5 -0
  410. data/spec/models/customer_spec.rb +135 -0
  411. data/spec/models/district_spec.rb +5 -0
  412. data/spec/models/emails_spec.rb +24 -0
  413. data/spec/models/micropost_spec.rb +49 -0
  414. data/spec/models/relationship_spec.rb +38 -0
  415. data/spec/models/state_spec.rb +5 -0
  416. data/spec/models/system_ability_spec.rb +5 -0
  417. data/spec/models/system_module_spec.rb +5 -0
  418. data/spec/models/system_task_resolution_spec.rb +17 -0
  419. data/spec/models/system_task_status_spec.rb +17 -0
  420. data/spec/models/task_feedback_spec.rb +46 -0
  421. data/spec/models/task_spec.rb +176 -0
  422. data/spec/models/task_type_spec.rb +27 -0
  423. data/spec/models/tests/ajax_spec.rb +5 -0
  424. data/spec/models/user_ability_spec.rb +35 -0
  425. data/spec/models/user_group_spec.rb +26 -0
  426. data/spec/models/user_spec.rb +274 -0
  427. data/spec/models/users_has_groups_spec.rb +29 -0
  428. data/spec/requests/authentication_pages_spec.rb +157 -0
  429. data/spec/requests/business_activities_spec.rb +7 -0
  430. data/spec/requests/business_departments_spec.rb +7 -0
  431. data/spec/requests/business_segments_spec.rb +7 -0
  432. data/spec/requests/company_businesses_spec.rb +11 -0
  433. data/spec/requests/customer_contacts_pages_spec.rb +96 -0
  434. data/spec/requests/customer_pages_spec.rb +60 -0
  435. data/spec/requests/micropost_pages_spec.rb +58 -0
  436. data/spec/requests/static_pages_spec.rb +57 -0
  437. data/spec/requests/task_pages_spec.rb +124 -0
  438. data/spec/requests/tests/tests_ajaxes_spec.rb +11 -0
  439. data/spec/requests/user_abilities_pages_spec.rb +73 -0
  440. data/spec/requests/user_pages_spec.rb +116 -0
  441. data/spec/routing/business_activities_routing_spec.rb +35 -0
  442. data/spec/routing/business_departments_routing_spec.rb +35 -0
  443. data/spec/routing/business_segments_routing_spec.rb +35 -0
  444. data/spec/routing/company_businesses_routing_spec.rb +35 -0
  445. data/spec/routing/system_task_status_routing_spec.rb +35 -0
  446. data/spec/routing/task_types_routing_spec.rb +35 -0
  447. data/spec/routing/tests/ajaxes_routing_spec.rb +35 -0
  448. data/spec/spec_helper.rb +123 -0
  449. data/spec/support/custom_matchers.rb +9 -0
  450. data/spec/support/utilities.rb +120 -0
  451. data/spec/views/business_departments/edit.html.erb_spec.rb +20 -0
  452. data/spec/views/business_departments/index.html.erb_spec.disabled +23 -0
  453. data/spec/views/business_departments/new.html.erb_spec.rb +20 -0
  454. data/spec/views/business_departments/show.html.erb_spec.rb +17 -0
  455. data/spec/views/company_businesses/edit.html.erb_spec.rb +20 -0
  456. data/spec/views/company_businesses/index.html.erb_spec.rb +23 -0
  457. data/spec/views/company_businesses/new.html.erb_spec.rb +20 -0
  458. data/spec/views/company_businesses/show.html.erb_spec.rb +17 -0
  459. data/spec/views/task_types/edit.html.erb_spec.rb +18 -0
  460. data/spec/views/task_types/index.html.erb_spec.rb +20 -0
  461. data/spec/views/task_types/new.html.erb_spec.rb +18 -0
  462. data/spec/views/task_types/show.html.erb_spec.rb +15 -0
  463. data/test/fixtures/.gitkeep +0 -0
  464. data/test/functional/.gitkeep +0 -0
  465. data/test/integration/.gitkeep +0 -0
  466. data/test/performance/browsing_test.rb +12 -0
  467. data/test/test_helper.rb +13 -0
  468. data/test/unit/.gitkeep +0 -0
  469. data/vendor/assets/javascripts/.gitkeep +0 -0
  470. data/vendor/assets/stylesheets/.gitkeep +0 -0
  471. data/vendor/assets/stylesheets/active_admin/_base.css.scss +45 -0
  472. data/vendor/assets/stylesheets/active_admin/_forms.css.scss +270 -0
  473. data/vendor/assets/stylesheets/active_admin/_header.css.scss +137 -0
  474. data/vendor/assets/stylesheets/active_admin/_mixins.css.scss +1 -0
  475. data/vendor/assets/stylesheets/active_admin/_typography.css.scss +100 -0
  476. data/vendor/assets/stylesheets/active_admin/components/_batch_actions.css.scss +11 -0
  477. data/vendor/assets/stylesheets/active_admin/components/_blank_slates.scss +31 -0
  478. data/vendor/assets/stylesheets/active_admin/components/_breadcrumbs.scss +20 -0
  479. data/vendor/assets/stylesheets/active_admin/components/_buttons.scss +11 -0
  480. data/vendor/assets/stylesheets/active_admin/components/_columns.scss +3 -0
  481. data/vendor/assets/stylesheets/active_admin/components/_comments.css.scss +40 -0
  482. data/vendor/assets/stylesheets/active_admin/components/_date_picker.css.scss +123 -0
  483. data/vendor/assets/stylesheets/active_admin/components/_dropdown_menu.scss +151 -0
  484. data/vendor/assets/stylesheets/active_admin/components/_flash_messages.css.scss +39 -0
  485. data/vendor/assets/stylesheets/active_admin/components/_grid.scss +9 -0
  486. data/vendor/assets/stylesheets/active_admin/components/_links.scss +5 -0
  487. data/vendor/assets/stylesheets/active_admin/components/_pagination.scss +34 -0
  488. data/vendor/assets/stylesheets/active_admin/components/_panels.scss +6 -0
  489. data/vendor/assets/stylesheets/active_admin/components/_popovers.css.scss +123 -0
  490. data/vendor/assets/stylesheets/active_admin/components/_scopes.scss +10 -0
  491. data/vendor/assets/stylesheets/active_admin/components/_status_tags.scss +12 -0
  492. data/vendor/assets/stylesheets/active_admin/components/_table_tools.css.scss +94 -0
  493. data/vendor/assets/stylesheets/active_admin/components/_tables.css.scss +108 -0
  494. data/vendor/assets/stylesheets/active_admin/mixins/_all.css.scss +11 -0
  495. data/vendor/assets/stylesheets/active_admin/mixins/_buttons.css.scss +66 -0
  496. data/vendor/assets/stylesheets/active_admin/mixins/_gradients.css.scss +37 -0
  497. data/vendor/assets/stylesheets/active_admin/mixins/_icons.css.scss +24 -0
  498. data/vendor/assets/stylesheets/active_admin/mixins/_reset.css.scss +165 -0
  499. data/vendor/assets/stylesheets/active_admin/mixins/_rounded.css.scss +43 -0
  500. data/vendor/assets/stylesheets/active_admin/mixins/_sections.css.scss +36 -0
  501. data/vendor/assets/stylesheets/active_admin/mixins/_shadows.css.scss +22 -0
  502. data/vendor/assets/stylesheets/active_admin/mixins/_typography.scss +3 -0
  503. data/vendor/assets/stylesheets/active_admin/mixins/_utilities.scss +26 -0
  504. data/vendor/assets/stylesheets/active_admin/mixins/_variables.css.scss +24 -0
  505. data/vendor/assets/stylesheets/active_admin/pages/_dashboard.scss +5 -0
  506. data/vendor/assets/stylesheets/active_admin/pages/_logged_out.scss +44 -0
  507. data/vendor/assets/stylesheets/active_admin/print.css.scss +290 -0
  508. data/vendor/assets/stylesheets/active_admin/structure/_footer.scss +14 -0
  509. data/vendor/assets/stylesheets/active_admin/structure/_main_structure.scss +26 -0
  510. data/vendor/assets/stylesheets/active_admin/structure/_title_bar.scss +44 -0
  511. data/vendor/plugins/.gitkeep +0 -0
  512. metadata +731 -0
@@ -0,0 +1,14 @@
1
+ #footer {
2
+ padding: 30px 30px;
3
+ font-size: 0.8em;
4
+ clear: both;
5
+
6
+ p {
7
+ padding-top: 10px
8
+ }
9
+ }
10
+
11
+ // -------------------------------------- Index Footer (Under Table)
12
+ #index_footer { padding-top: 5px; text-align: right; font-size: 0.85em; }
13
+
14
+ .index_content { clear: both; }
@@ -0,0 +1,26 @@
1
+ #wrapper {
2
+ display: table;
3
+ width: 100%;
4
+ }
5
+
6
+ #active_admin_content {
7
+ margin: 0;
8
+ padding: 25px $horizontal-page-margin;
9
+
10
+ #main_content_wrapper {
11
+ float: left;
12
+ width: 100%;
13
+
14
+ #main_content{
15
+ margin-right: 300px;
16
+ }
17
+ }
18
+
19
+ &.without_sidebar #main_content_wrapper #main_content{ margin-right: 0; }
20
+
21
+ #sidebar {
22
+ float: left;
23
+ width: $sidebar-width;
24
+ margin-left: -$sidebar-width;
25
+ }
26
+ }
@@ -0,0 +1,44 @@
1
+ #title_bar {
2
+ @include section-header;
3
+ @include clearfix;
4
+ @include box-sizing(border-box);
5
+ @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.37));
6
+ display: table;
7
+ border-bottom-color: #EEE;
8
+ width: 100%;
9
+ position: relative;
10
+ margin: 0;
11
+ margin-bottom: 15px;
12
+ padding: 10px $horizontal-page-margin;
13
+ z-index: 800;
14
+
15
+ #titlebar_left, #titlebar_right {
16
+ height: 50px;
17
+ vertical-align: middle;
18
+ display: table-cell;
19
+ }
20
+
21
+ #titlebar_right {
22
+ text-align: right;
23
+ }
24
+
25
+ h2 {
26
+ margin: 0;
27
+ padding: 0;
28
+ font-size: 2.6em;
29
+ font-weight: bold;
30
+ }
31
+
32
+ .action_items {
33
+ a {
34
+ @include light-button;
35
+ padding: 12px 17px 10px;
36
+ span.icon { vertical-align: bottom; margin-right: 4px;}
37
+ margin: 0px;
38
+
39
+ &:hover{
40
+ @include icon-color(#000);
41
+ }
42
+ }
43
+ }
44
+ }
File without changes
metadata ADDED
@@ -0,0 +1,731 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guara
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.rc
5
+ prerelease: 6
6
+ platform: ruby
7
+ authors:
8
+ - Bruno Guerra
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: formtastic-bootstrap
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.0.1
30
+ - !ruby/object:Gem::Dependency
31
+ name: will_paginate
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.3
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.3
46
+ - !ruby/object:Gem::Dependency
47
+ name: devise
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.1.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: cancan
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.6.8
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.6.8
78
+ - !ruby/object:Gem::Dependency
79
+ name: jquery-rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 2.1.3
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.1.3
94
+ - !ruby/object:Gem::Dependency
95
+ name: meta_search
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 1.1.3
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 1.1.3
110
+ - !ruby/object:Gem::Dependency
111
+ name: bcrypt-ruby
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '3.0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: railties
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '3.1'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '3.1'
142
+ description: Base Enterprise Application
143
+ email: ti@woese.com
144
+ executables: []
145
+ extensions: []
146
+ extra_rdoc_files: []
147
+ files:
148
+ - .DS_Store
149
+ - .gitignore
150
+ - .rspec
151
+ - .travis.yml
152
+ - Gemfile
153
+ - Gemfile.lock
154
+ - Guardfile
155
+ - MIT-LICENSE
156
+ - README.md
157
+ - Rakefile
158
+ - app/.DS_Store
159
+ - app/admin/.DS_Store
160
+ - app/admin/business_activities.rb
161
+ - app/admin/business_departments.rb
162
+ - app/admin/business_segments.rb
163
+ - app/admin/cities.rb
164
+ - app/admin/company_businesses.rb
165
+ - app/admin/dashboard.rb
166
+ - app/admin/districts.rb
167
+ - app/admin/states.rb
168
+ - app/admin/task_types.rb
169
+ - app/admin/user_groups.rb
170
+ - app/admin/users.rb
171
+ - app/assets/images/close.gif
172
+ - app/assets/images/custom/logo.png
173
+ - app/assets/images/custom/nav_logo.png
174
+ - app/assets/images/custom/nav_logo.psd
175
+ - app/assets/images/rails.png
176
+ - app/assets/javascripts/active_admin.js
177
+ - app/assets/javascripts/application.js
178
+ - app/assets/javascripts/business_departments.js.coffee
179
+ - app/assets/javascripts/company_businesses.js.coffee
180
+ - app/assets/javascripts/crm.js.coffee
181
+ - app/assets/javascripts/fcbk.js
182
+ - app/assets/javascripts/jquery-ui-timepicker-addon.js
183
+ - app/assets/javascripts/jquery.mask.1.3.js
184
+ - app/assets/javascripts/jquery.multiselect.filter.xjs
185
+ - app/assets/javascripts/jquery.multiselect.xjs
186
+ - app/assets/javascripts/system_task_status.js.coffee
187
+ - app/assets/javascripts/tests/ajaxes.js.coffee
188
+ - app/assets/stylesheets/abilities.css.scss
189
+ - app/assets/stylesheets/active_admin.css.scss
190
+ - app/assets/stylesheets/application.css
191
+ - app/assets/stylesheets/business_departments.css.scss
192
+ - app/assets/stylesheets/company_businesses.css.scss
193
+ - app/assets/stylesheets/custom.css.scss
194
+ - app/assets/stylesheets/customer.scss
195
+ - app/assets/stylesheets/fcbk.css
196
+ - app/assets/stylesheets/guara.css.scss
197
+ - app/assets/stylesheets/jquery-ui.css
198
+ - app/assets/stylesheets/jquery_bootstrap.css.scss
199
+ - app/assets/stylesheets/jquery_multiselect_filter.xcss
200
+ - app/assets/stylesheets/scaffolds.css.scss
201
+ - app/assets/stylesheets/users.css.scss
202
+ - app/controllers/abilities_controller.rb
203
+ - app/controllers/application_controller.rb
204
+ - app/controllers/business_activities_controller.rb
205
+ - app/controllers/business_departments_controller.rb
206
+ - app/controllers/business_segments_controller.rb
207
+ - app/controllers/company_businesses_controller.rb
208
+ - app/controllers/contacts_controller.rb
209
+ - app/controllers/customers_controller.rb
210
+ - app/controllers/microposts_controller.rb
211
+ - app/controllers/sessions_controller.rb
212
+ - app/controllers/static_pages_controller.rb
213
+ - app/controllers/system_task_status_controller.rb
214
+ - app/controllers/task_feedbacks_controller.rb
215
+ - app/controllers/task_types_controller.rb
216
+ - app/controllers/tasks_controller.rb
217
+ - app/controllers/tests/ajaxes_controller.rb
218
+ - app/controllers/tests/lab_ajax_controller.rb
219
+ - app/controllers/users_controller.rb
220
+ - app/helpers/ability_helper.rb
221
+ - app/helpers/application_helper.rb
222
+ - app/helpers/business_activities_helper.rb
223
+ - app/helpers/business_departments_helper.rb
224
+ - app/helpers/business_segments_helper.rb
225
+ - app/helpers/company_businesses_helper.rb
226
+ - app/helpers/contacts_helper.rb
227
+ - app/helpers/customers_helper.rb
228
+ - app/helpers/email_helper.rb
229
+ - app/helpers/form_ajax_helper.rb
230
+ - app/helpers/guara_views_helper.rb
231
+ - app/helpers/locale_helper.rb
232
+ - app/helpers/menu_helper.rb
233
+ - app/helpers/sessions_helper.rb
234
+ - app/helpers/tasks_helper.rb
235
+ - app/helpers/tests/ajaxes_helper.rb
236
+ - app/helpers/user_abilities_helper.rb
237
+ - app/helpers/users_helper.rb
238
+ - app/mailers/.gitkeep
239
+ - app/maintence/.DS_Store
240
+ - app/models/.DS_Store
241
+ - app/models/.gitkeep
242
+ - app/models/ability.rb
243
+ - app/models/address.rb
244
+ - app/models/business_activity.rb
245
+ - app/models/business_department.rb
246
+ - app/models/business_segment.rb
247
+ - app/models/city.rb
248
+ - app/models/company_business.rb
249
+ - app/models/contact.rb
250
+ - app/models/customer.rb
251
+ - app/models/customer_activity.rb
252
+ - app/models/customer_financial.rb
253
+ - app/models/customer_has_customers.rb
254
+ - app/models/customer_pf.rb
255
+ - app/models/customer_pj.rb
256
+ - app/models/customer_pj_has_customers_pj.rb
257
+ - app/models/customer_product.rb
258
+ - app/models/customer_segment.rb
259
+ - app/models/district.rb
260
+ - app/models/email.rb
261
+ - app/models/micropost.rb
262
+ - app/models/relationship.rb
263
+ - app/models/search.rb
264
+ - app/models/state.rb
265
+ - app/models/system_ability.rb
266
+ - app/models/system_module.rb
267
+ - app/models/system_task_resolution.rb
268
+ - app/models/system_task_status.rb
269
+ - app/models/task.rb
270
+ - app/models/task_feedback.rb
271
+ - app/models/task_type.rb
272
+ - app/models/tests.rb
273
+ - app/models/tests/ajax.rb
274
+ - app/models/user.rb
275
+ - app/models/user_ability.rb
276
+ - app/models/user_group.rb
277
+ - app/models/user_type.rb
278
+ - app/models/users_has_groups.rb
279
+ - app/validators/customer_cnpj_validator.rb
280
+ - app/validators/email_validator.rb
281
+ - app/views/.DS_Store
282
+ - app/views/abilities/.DS_Store
283
+ - app/views/abilities/index.html.erb
284
+ - app/views/active_extend/.DS_Store
285
+ - app/views/active_extend/_one_to_many_inputs.html.erb
286
+ - app/views/active_extend/_one_to_many_inputs_fields.html.erb
287
+ - app/views/active_extend/_one_to_many_inputs_with_glyph.html.erb
288
+ - app/views/business_activities/_business_activity.html.erb
289
+ - app/views/business_activities/_form.html.erb
290
+ - app/views/business_activities/edit.html.erb
291
+ - app/views/business_activities/index.html.erb
292
+ - app/views/business_activities/new.html.erb
293
+ - app/views/business_activities/show.html.erb
294
+ - app/views/business_departments/_form.html.erb
295
+ - app/views/business_departments/edit.html.erb
296
+ - app/views/business_departments/index.html.erb
297
+ - app/views/business_departments/new.html.erb
298
+ - app/views/business_departments/show.html.erb
299
+ - app/views/business_segments/_business_segment.html.erb
300
+ - app/views/business_segments/_form.html.erb
301
+ - app/views/business_segments/edit.html.erb
302
+ - app/views/business_segments/index.html.erb
303
+ - app/views/business_segments/new.html.erb
304
+ - app/views/business_segments/show.html.erb
305
+ - app/views/company_businesses/_form.html.erb
306
+ - app/views/company_businesses/edit.html.erb
307
+ - app/views/company_businesses/index.html.erb
308
+ - app/views/company_businesses/new.html.erb
309
+ - app/views/company_businesses/show.html.erb
310
+ - app/views/contacts/_form.html.erb
311
+ - app/views/contacts/_header.html.erb
312
+ - app/views/contacts/_list.html.erb
313
+ - app/views/contacts/_side_panel.html.erb
314
+ - app/views/contacts/edit.html.erb
315
+ - app/views/contacts/index.html.erb
316
+ - app/views/contacts/new.html.erb
317
+ - app/views/contacts/show.html.erb
318
+ - app/views/customers/_businesses_done.html.erb
319
+ - app/views/customers/_customer_segment.html.erb
320
+ - app/views/customers/_form.html.erb
321
+ - app/views/customers/_form_search.html.erb
322
+ - app/views/customers/_modules.html.erb
323
+ - app/views/customers/_navbar.html.erb
324
+ - app/views/customers/_segment.html.erb
325
+ - app/views/customers/edit.html.erb
326
+ - app/views/customers/index.html.erb
327
+ - app/views/customers/new.pj.html.erb
328
+ - app/views/customers/show.pj.html.erb
329
+ - app/views/devise/confirmations/new.html.erb
330
+ - app/views/devise/mailer/confirmation_instructions.html.erb
331
+ - app/views/devise/mailer/reset_password_instructions.html.erb
332
+ - app/views/devise/mailer/unlock_instructions.html.erb
333
+ - app/views/devise/passwords/edit.html.erb
334
+ - app/views/devise/passwords/new.html.erb
335
+ - app/views/devise/registrations/edit.html.erb
336
+ - app/views/devise/registrations/new.html.erb
337
+ - app/views/devise/sessions/new.html.erb
338
+ - app/views/devise/shared/_links.erb
339
+ - app/views/devise/unlocks/new.html.erb
340
+ - app/views/emails/_email_fields.html.erb
341
+ - app/views/layouts/_active_admin_footer.html.erb
342
+ - app/views/layouts/_active_admin_header.html.erb
343
+ - app/views/layouts/_footer.html.erb
344
+ - app/views/layouts/_header.html.erb
345
+ - app/views/layouts/_shim.html.erb
346
+ - app/views/layouts/active_admin.html.arb
347
+ - app/views/layouts/application.html.erb
348
+ - app/views/microposts/_micropost.html.erb
349
+ - app/views/sessions/new.html.erb
350
+ - app/views/shared/_calendar.html.erb
351
+ - app/views/shared/_error_messages.html.erb
352
+ - app/views/shared/_feed.html.erb
353
+ - app/views/shared/_feed_item.html.erb
354
+ - app/views/shared/_micropost_form.html.erb
355
+ - app/views/shared/_multi_selection.html.erb
356
+ - app/views/shared/_multi_selection.html_checkbox.erb
357
+ - app/views/shared/_multi_selection_autocomple.html.erb
358
+ - app/views/shared/_notifies.html.erb
359
+ - app/views/shared/_user_info.html.erb
360
+ - app/views/static_pages/about.html.erb
361
+ - app/views/static_pages/contact.html.erb
362
+ - app/views/static_pages/help.html.erb
363
+ - app/views/static_pages/home.html.erb
364
+ - app/views/static_pages/news.html.erb
365
+ - app/views/system_task_status/_form.html.erb
366
+ - app/views/system_task_status/edit.html.erb
367
+ - app/views/system_task_status/index.html.erb
368
+ - app/views/system_task_status/new.html.erb
369
+ - app/views/system_task_status/show.html.erb
370
+ - app/views/task_feedbacks/.DS_Store
371
+ - app/views/task_feedbacks/_list.html.erb
372
+ - app/views/task_feedbacks/_side_form.html.erb
373
+ - app/views/task_feedbacks/_side_panel.html.erb
374
+ - app/views/task_types/_form.html.erb
375
+ - app/views/task_types/edit.html.erb
376
+ - app/views/task_types/index.html.erb
377
+ - app/views/task_types/new.html.erb
378
+ - app/views/task_types/show.html.erb
379
+ - app/views/tasks/.DS_Store
380
+ - app/views/tasks/_form.html.erb
381
+ - app/views/tasks/_header.html.erb
382
+ - app/views/tasks/_list.html.erb
383
+ - app/views/tasks/_side_panel.html.erb
384
+ - app/views/tasks/create.js.erb
385
+ - app/views/tasks/edit.html.erb
386
+ - app/views/tasks/index.html.erb
387
+ - app/views/tasks/new.html.erb
388
+ - app/views/tasks/show.html.erb
389
+ - app/views/tests/ajaxes/_form.html.erb
390
+ - app/views/tests/ajaxes/_list.html.erb
391
+ - app/views/tests/ajaxes/add_and_update.html.erb
392
+ - app/views/tests/ajaxes/all.js.erb
393
+ - app/views/tests/ajaxes/edit.html.erb
394
+ - app/views/tests/ajaxes/index.html.erb
395
+ - app/views/tests/ajaxes/new.html.erb
396
+ - app/views/tests/ajaxes/show.html.erb
397
+ - app/views/tests/js.js
398
+ - app/views/tests/lab_ajax/multiselection.html.erb
399
+ - app/views/users/_user.html.erb
400
+ - app/views/users/edit.html.erb
401
+ - app/views/users/index.html.erb
402
+ - app/views/users/new.html.erb
403
+ - app/views/users/show.html.erb
404
+ - bundle
405
+ - config.ru
406
+ - config/.DS_Store
407
+ - config/application.rb
408
+ - config/boot.rb
409
+ - config/database.yml
410
+ - config/environment.rb
411
+ - config/environments/development.rb
412
+ - config/environments/production.rb
413
+ - config/environments/test.rb
414
+ - config/guara/menus.rb
415
+ - config/initializers/active_admin.rb
416
+ - config/initializers/backtrace_silencers.rb
417
+ - config/initializers/cmgb_rules.rb
418
+ - config/initializers/devise.rb
419
+ - config/initializers/formtastic.rb
420
+ - config/initializers/inflections.rb
421
+ - config/initializers/json_paches_utf8.rb
422
+ - config/initializers/kaminari.rb
423
+ - config/initializers/locale.rb
424
+ - config/initializers/meta_search.rb
425
+ - config/initializers/mime_types.rb
426
+ - config/initializers/secret_token.rb
427
+ - config/initializers/session_store.rb
428
+ - config/initializers/string.rb
429
+ - config/initializers/wrap_parameters.rb
430
+ - config/locales/devise.en.yml
431
+ - config/locales/devise.pt-BR.yml
432
+ - config/locales/pt-BR.yml
433
+ - config/routes.rb
434
+ - db/.DS_Store
435
+ - db/migrate/20120610142404_create_users.rb
436
+ - db/migrate/20120610183820_add_index_to_users_email.rb
437
+ - db/migrate/20120610185217_add_password_digest_to_users.rb
438
+ - db/migrate/20120612000411_add_remember_token_to_users.rb
439
+ - db/migrate/20120616162515_add_admin_to_users.rb
440
+ - db/migrate/20120616215835_create_microposts.rb
441
+ - db/migrate/20120617224530_create_relationships.rb
442
+ - db/migrate/20120621095918_create_customers.rb
443
+ - db/migrate/20120621100528_create_customer_pfs.rb
444
+ - db/migrate/20120621100534_create_customer_pjs.rb
445
+ - db/migrate/20120621100557_create_emails.rb
446
+ - db/migrate/20120621100618_create_tasks.rb
447
+ - db/migrate/20120621100639_create_customer_products.rb
448
+ - db/migrate/20120621100705_create_districts.rb
449
+ - db/migrate/20120621100720_create_cities.rb
450
+ - db/migrate/20120624192444_create_business_segments.rb
451
+ - db/migrate/20120624224245_create_business_activities.rb
452
+ - db/migrate/20120628092744_create_customer_activities.rb
453
+ - db/migrate/20120628092754_create_customer_segments.rb
454
+ - db/migrate/20120703102859_create_states.rb
455
+ - db/migrate/20120705121011_create_contacts.rb
456
+ - db/migrate/20120711233943_add_devise_to_users.rb
457
+ - db/migrate/20120723102847_create_user_abilities.rb
458
+ - db/migrate/20120723104500_create_system_modules.rb
459
+ - db/migrate/20120723104639_create_system_abilities.rb
460
+ - db/migrate/20120728181903_create_user_groups.rb
461
+ - db/migrate/20120729112600_create_users_has_groups.rb
462
+ - db/migrate/20120729121922_add_groups_to_users.rb
463
+ - db/migrate/20120910002835_create_system_task_status.rb
464
+ - db/migrate/20120910010153_create_system_task_resolutions.rb
465
+ - db/migrate/20120911021535_create_task_types.rb
466
+ - db/migrate/20120911070836_create_task_feedbacks.rb
467
+ - db/migrate/20120924022719_create_tests_ajaxes.rb
468
+ - db/migrate/20121007131035_create_business_departments.rb
469
+ - db/migrate/20121013120849_add_notes_and_other_contacts_to_customer.rb
470
+ - db/migrate/20121014201255_create_company_businesses.rb
471
+ - db/migrate/20121014202449_add_company_business_to_task_type.rb
472
+ - db/migrate/20121014212430_add_primary_company_business_to_user.rb
473
+ - db/migrate/20121015101844_add_parent_id_to_system_task_resolution.rb
474
+ - db/migrate/20121026231241_create_customer_has_customers.rb
475
+ - db/migrate/20121026232755_create_customer_pj_has_customers_pjs.rb
476
+ - db/migrate/20121029094047_create_admin_notes.rb
477
+ - db/migrate/20121029094048_move_admin_notes_to_comments.rb
478
+ - db/migrate/20121103183646_add_enabled_to_cities.rb
479
+ - db/migrate/20121104135014_create_customer_financials.rb
480
+ - db/migrate/20121104141751_create_addresses.rb
481
+ - db/migrate/20121205150619_add_type_id_to_users.rb
482
+ - db/schema.rb~
483
+ - db/seeds.rb
484
+ - doc/.DS_Store
485
+ - doc/README_FOR_APP
486
+ - doc/Todo.1.1
487
+ - doc/historico/.DS_Store
488
+ - doc/historico/pomodoro_2012_08_27.txt
489
+ - doc/historico/pomodoro_2012_09_01.txt
490
+ - doc/historico/pomodoro_2012_09_22.yaml
491
+ - doc/historico/pomodoro_2012_09_26.yaml
492
+ - doc/historico/pomodoro_2012_09_27.yaml
493
+ - doc/historico/pomodoro_2012_10_01.yaml
494
+ - doc/historico/pomodoro_2012_10_12.yaml
495
+ - doc/historico/pomodoro_2012_10_14.yaml
496
+ - doc/historico/pomodoro_2012_10_22.yaml
497
+ - doc/historico/pomodoro_2012_10_24.yaml
498
+ - doc/historico/pomodoro_2012_10_25.yaml
499
+ - doc/historico/pomodoro_2012_10_27.yaml
500
+ - doc/historico/pomodoro_2012_10_30.yaml
501
+ - doc/historico/pomodoro_access_rules_20120711.txt
502
+ - doc/historico/pomodoro_access_rules_20120728.txt
503
+ - doc/historico/pomodoro_model_security_20120721.txt
504
+ - doc/historico/pomodoro_model_security_20121007.yaml
505
+ - doc/historico/pomodoro_release_01.txt
506
+ - doc/todo.yaml
507
+ - gemfiles/Gemfile.rails.3.2.x
508
+ - guara.gemspec
509
+ - lib/.DS_Store
510
+ - lib/active_extend/.DS_Store
511
+ - lib/active_extend/README.md
512
+ - lib/active_extend/active_disablable.rb
513
+ - lib/active_extend/string_helper.rb
514
+ - lib/active_migration.rb
515
+ - lib/active_migration/converters/rtf_to_html.rb
516
+ - lib/active_migration/dictionary.rb
517
+ - lib/active_migration/migration.rb
518
+ - lib/active_migration/schemas.rb
519
+ - lib/active_migration/spelling_fix.rb
520
+ - lib/active_migration/transformer/grouped_field_fixed_spelling.rb
521
+ - lib/assets/.gitkeep
522
+ - lib/cmgb_rules/.DS_Store
523
+ - lib/cmgb_rules/app/.DS_Store
524
+ - lib/cmgb_rules/app/models/task.rb
525
+ - lib/guara/version.rb
526
+ - lib/spec/asserts/sheet1.xls
527
+ - lib/spec/lib/active_migration_schemas_spec.rb
528
+ - lib/spec/lib/active_migration_spec.rb
529
+ - lib/spec/spec_helper.rb
530
+ - lib/spec/support/active_migration_helper.rb
531
+ - lib/spec/support/utilities.rb
532
+ - lib/tasks/.gitkeep
533
+ - lib/tasks/add_privilegies.rake
534
+ - lib/tasks/external_migration.rake
535
+ - lib/tasks/sample_data.rake
536
+ - lib/tasks/smaple_data_test.rake
537
+ - lib/templates/erb/scaffold/_form.html.erb
538
+ - public/404.html
539
+ - public/422.html
540
+ - public/500.html
541
+ - public/data.txt
542
+ - public/favicon.ico
543
+ - public/javascripts/autocomplete-rails.js
544
+ - public/robots.txt
545
+ - script/create_db
546
+ - script/rails
547
+ - script/recreate_db
548
+ - script/recreate_db.bat
549
+ - script/recreate_db_test
550
+ - script/recreate_development_db
551
+ - spec/controllers/business_activities_controller_spec.disabled
552
+ - spec/controllers/business_departments_controller_spec.disabled
553
+ - spec/controllers/business_segments_controller_spec.disabled
554
+ - spec/controllers/company_businesses_controller_spec.disabled
555
+ - spec/controllers/system_task_status_controller_spec.disabled
556
+ - spec/controllers/system_task_status_spec.disabled
557
+ - spec/controllers/task_types_controller_spec.disabled
558
+ - spec/controllers/tasks_controller_spec.disabled
559
+ - spec/controllers/tests/ajaxes_controller_spec.disabled
560
+ - spec/factories.rb
561
+ - spec/factories/addresses.rb
562
+ - spec/factories/business_departments.rb
563
+ - spec/factories/company_businesses.rb
564
+ - spec/factories/customer_financials.rb
565
+ - spec/factories/customer_has_customers.rb
566
+ - spec/factories/customer_pj_has_customers_pjs.rb
567
+ - spec/factories/system_task_resolutions.rb
568
+ - spec/factories/system_task_status.rb
569
+ - spec/factories/task.rb
570
+ - spec/factories/task_feedbacks.rb
571
+ - spec/factories/task_types.rb
572
+ - spec/factories/tests_ajaxes.rb
573
+ - spec/helpers/business_activities_helper_spec.rb
574
+ - spec/helpers/business_departments_helper_spec.rb
575
+ - spec/helpers/business_segments_helper_spec.rb
576
+ - spec/helpers/company_businesses_helper_spec.rb
577
+ - spec/helpers/customers/contacts_helper_spec.rb
578
+ - spec/helpers/menu_helper_spec.rb
579
+ - spec/helpers/tests/ajaxes_helper_spec.rb
580
+ - spec/helpers/users_helpers_spec.rb
581
+ - spec/models/address_spec.rb
582
+ - spec/models/business_activity_spec.rb
583
+ - spec/models/business_department_spec.rb
584
+ - spec/models/business_segment_spec.rb
585
+ - spec/models/city_spec.rb
586
+ - spec/models/company_business_spec.rb
587
+ - spec/models/contact_spec.rb
588
+ - spec/models/customer_activity_spec.rb
589
+ - spec/models/customer_financial_spec.rb
590
+ - spec/models/customer_has_customers_spec.rb
591
+ - spec/models/customer_pf_spec.rb
592
+ - spec/models/customer_pj_has_customers_pj_spec.rb
593
+ - spec/models/customer_pj_spec.rb
594
+ - spec/models/customer_product_spec.rb
595
+ - spec/models/customer_segment_spec.rb
596
+ - spec/models/customer_spec.rb
597
+ - spec/models/district_spec.rb
598
+ - spec/models/emails_spec.rb
599
+ - spec/models/micropost_spec.rb
600
+ - spec/models/relationship_spec.rb
601
+ - spec/models/state_spec.rb
602
+ - spec/models/system_ability_spec.rb
603
+ - spec/models/system_module_spec.rb
604
+ - spec/models/system_task_resolution_spec.rb
605
+ - spec/models/system_task_status_spec.rb
606
+ - spec/models/task_feedback_spec.rb
607
+ - spec/models/task_spec.rb
608
+ - spec/models/task_type_spec.rb
609
+ - spec/models/tests/ajax_spec.rb
610
+ - spec/models/user_ability_spec.rb
611
+ - spec/models/user_group_spec.rb
612
+ - spec/models/user_spec.rb
613
+ - spec/models/users_has_groups_spec.rb
614
+ - spec/requests/authentication_pages_spec.rb
615
+ - spec/requests/business_activities_spec.rb
616
+ - spec/requests/business_departments_spec.rb
617
+ - spec/requests/business_segments_spec.rb
618
+ - spec/requests/company_businesses_spec.rb
619
+ - spec/requests/customer_contacts_pages_spec.rb
620
+ - spec/requests/customer_pages_spec.rb
621
+ - spec/requests/micropost_pages_spec.rb
622
+ - spec/requests/static_pages_spec.rb
623
+ - spec/requests/task_pages_spec.rb
624
+ - spec/requests/tests/tests_ajaxes_spec.rb
625
+ - spec/requests/user_abilities_pages_spec.rb
626
+ - spec/requests/user_pages_spec.rb
627
+ - spec/routing/business_activities_routing_spec.rb
628
+ - spec/routing/business_departments_routing_spec.rb
629
+ - spec/routing/business_segments_routing_spec.rb
630
+ - spec/routing/company_businesses_routing_spec.rb
631
+ - spec/routing/system_task_status_routing_spec.rb
632
+ - spec/routing/task_types_routing_spec.rb
633
+ - spec/routing/tests/ajaxes_routing_spec.rb
634
+ - spec/spec_helper.rb
635
+ - spec/support/custom_matchers.rb
636
+ - spec/support/utilities.rb
637
+ - spec/views/business_departments/edit.html.erb_spec.rb
638
+ - spec/views/business_departments/index.html.erb_spec.disabled
639
+ - spec/views/business_departments/new.html.erb_spec.rb
640
+ - spec/views/business_departments/show.html.erb_spec.rb
641
+ - spec/views/company_businesses/edit.html.erb_spec.rb
642
+ - spec/views/company_businesses/index.html.erb_spec.rb
643
+ - spec/views/company_businesses/new.html.erb_spec.rb
644
+ - spec/views/company_businesses/show.html.erb_spec.rb
645
+ - spec/views/task_types/edit.html.erb_spec.rb
646
+ - spec/views/task_types/index.html.erb_spec.rb
647
+ - spec/views/task_types/new.html.erb_spec.rb
648
+ - spec/views/task_types/show.html.erb_spec.rb
649
+ - test/fixtures/.gitkeep
650
+ - test/functional/.gitkeep
651
+ - test/integration/.gitkeep
652
+ - test/performance/browsing_test.rb
653
+ - test/test_helper.rb
654
+ - test/unit/.gitkeep
655
+ - vendor/.DS_Store
656
+ - vendor/assets/.DS_Store
657
+ - vendor/assets/javascripts/.gitkeep
658
+ - vendor/assets/stylesheets/.DS_Store
659
+ - vendor/assets/stylesheets/.gitkeep
660
+ - vendor/assets/stylesheets/active_admin/_base.css.scss
661
+ - vendor/assets/stylesheets/active_admin/_forms.css.scss
662
+ - vendor/assets/stylesheets/active_admin/_header.css.scss
663
+ - vendor/assets/stylesheets/active_admin/_mixins.css.scss
664
+ - vendor/assets/stylesheets/active_admin/_typography.css.scss
665
+ - vendor/assets/stylesheets/active_admin/components/_batch_actions.css.scss
666
+ - vendor/assets/stylesheets/active_admin/components/_blank_slates.scss
667
+ - vendor/assets/stylesheets/active_admin/components/_breadcrumbs.scss
668
+ - vendor/assets/stylesheets/active_admin/components/_buttons.scss
669
+ - vendor/assets/stylesheets/active_admin/components/_columns.scss
670
+ - vendor/assets/stylesheets/active_admin/components/_comments.css.scss
671
+ - vendor/assets/stylesheets/active_admin/components/_date_picker.css.scss
672
+ - vendor/assets/stylesheets/active_admin/components/_dropdown_menu.scss
673
+ - vendor/assets/stylesheets/active_admin/components/_flash_messages.css.scss
674
+ - vendor/assets/stylesheets/active_admin/components/_grid.scss
675
+ - vendor/assets/stylesheets/active_admin/components/_links.scss
676
+ - vendor/assets/stylesheets/active_admin/components/_pagination.scss
677
+ - vendor/assets/stylesheets/active_admin/components/_panels.scss
678
+ - vendor/assets/stylesheets/active_admin/components/_popovers.css.scss
679
+ - vendor/assets/stylesheets/active_admin/components/_scopes.scss
680
+ - vendor/assets/stylesheets/active_admin/components/_status_tags.scss
681
+ - vendor/assets/stylesheets/active_admin/components/_table_tools.css.scss
682
+ - vendor/assets/stylesheets/active_admin/components/_tables.css.scss
683
+ - vendor/assets/stylesheets/active_admin/mixins/_all.css.scss
684
+ - vendor/assets/stylesheets/active_admin/mixins/_buttons.css.scss
685
+ - vendor/assets/stylesheets/active_admin/mixins/_gradients.css.scss
686
+ - vendor/assets/stylesheets/active_admin/mixins/_icons.css.scss
687
+ - vendor/assets/stylesheets/active_admin/mixins/_reset.css.scss
688
+ - vendor/assets/stylesheets/active_admin/mixins/_rounded.css.scss
689
+ - vendor/assets/stylesheets/active_admin/mixins/_sections.css.scss
690
+ - vendor/assets/stylesheets/active_admin/mixins/_shadows.css.scss
691
+ - vendor/assets/stylesheets/active_admin/mixins/_typography.scss
692
+ - vendor/assets/stylesheets/active_admin/mixins/_utilities.scss
693
+ - vendor/assets/stylesheets/active_admin/mixins/_variables.css.scss
694
+ - vendor/assets/stylesheets/active_admin/pages/_dashboard.scss
695
+ - vendor/assets/stylesheets/active_admin/pages/_logged_out.scss
696
+ - vendor/assets/stylesheets/active_admin/print.css.scss
697
+ - vendor/assets/stylesheets/active_admin/structure/_footer.scss
698
+ - vendor/assets/stylesheets/active_admin/structure/_main_structure.scss
699
+ - vendor/assets/stylesheets/active_admin/structure/_title_bar.scss
700
+ - vendor/plugins/.gitkeep
701
+ homepage: http://guara.woese.com
702
+ licenses: []
703
+ post_install_message:
704
+ rdoc_options: []
705
+ require_paths:
706
+ - lib
707
+ required_ruby_version: !ruby/object:Gem::Requirement
708
+ none: false
709
+ requirements:
710
+ - - ! '>='
711
+ - !ruby/object:Gem::Version
712
+ version: '0'
713
+ required_rubygems_version: !ruby/object:Gem::Requirement
714
+ none: false
715
+ requirements:
716
+ - - ! '>'
717
+ - !ruby/object:Gem::Version
718
+ version: 1.3.1
719
+ requirements: []
720
+ rubyforge_project: guara
721
+ rubygems_version: 1.8.24
722
+ signing_key:
723
+ specification_version: 3
724
+ summary: Base Enterprise Application
725
+ test_files:
726
+ - test/fixtures/.gitkeep
727
+ - test/functional/.gitkeep
728
+ - test/integration/.gitkeep
729
+ - test/performance/browsing_test.rb
730
+ - test/test_helper.rb
731
+ - test/unit/.gitkeep