fat_free_crm 0.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fat_free_crm might be problematic. Click here for more details.

Files changed (850) hide show
  1. data/.gitignore +32 -0
  2. data/.travis.yml +48 -0
  3. data/CHANGELOG +1839 -0
  4. data/CONTRIBUTORS +50 -0
  5. data/Gemfile +40 -0
  6. data/Gemfile.ci +13 -0
  7. data/Gemfile.lock +256 -0
  8. data/Guardfile +45 -0
  9. data/LICENSE +620 -0
  10. data/Procfile +1 -0
  11. data/README.md +239 -0
  12. data/Rakefile +9 -0
  13. data/acceptance/acceptance_helper.rb +7 -0
  14. data/acceptance/accounts_spec.rb +74 -0
  15. data/acceptance/support/browser.rb +13 -0
  16. data/acceptance/support/database_cleaner.rb +16 -0
  17. data/acceptance/support/headless.rb +15 -0
  18. data/acceptance/support/helpers.rb +19 -0
  19. data/acceptance/support/maintain_sessions.rb +5 -0
  20. data/acceptance/support/paths.rb +9 -0
  21. data/app/assets/images/1x1.gif +0 -0
  22. data/app/assets/images/asterisk.gif +0 -0
  23. data/app/assets/images/avatar.jpg +0 -0
  24. data/app/assets/images/blog.gif +0 -0
  25. data/app/assets/images/facebook-close.gif +0 -0
  26. data/app/assets/images/facebook.gif +0 -0
  27. data/app/assets/images/iconset_attribution.png +0 -0
  28. data/app/assets/images/info.png +0 -0
  29. data/app/assets/images/info_tiny.png +0 -0
  30. data/app/assets/images/linkedin.gif +0 -0
  31. data/app/assets/images/loading.gif +0 -0
  32. data/app/assets/images/skype.gif +0 -0
  33. data/app/assets/images/sortable.gif +0 -0
  34. data/app/assets/images/stars.gif +0 -0
  35. data/app/assets/images/twitter.gif +0 -0
  36. data/app/assets/javascripts/admin/field_groups.js.coffee +3 -0
  37. data/app/assets/javascripts/application.js.erb +42 -0
  38. data/app/assets/javascripts/crm.js +487 -0
  39. data/app/assets/javascripts/crm_chosen.js.coffee +28 -0
  40. data/app/assets/javascripts/crm_classes.js +230 -0
  41. data/app/assets/javascripts/crm_fields.js +47 -0
  42. data/app/assets/javascripts/crm_loginout.js +41 -0
  43. data/app/assets/javascripts/jquery-noconflict.js +1 -0
  44. data/app/assets/javascripts/lists.js.coffee +37 -0
  45. data/app/assets/javascripts/search.js.coffee +40 -0
  46. data/app/assets/stylesheets/admin/field_groups.css.scss +3 -0
  47. data/app/assets/stylesheets/application.css.erb +37 -0
  48. data/app/assets/stylesheets/base.scss +90 -0
  49. data/app/assets/stylesheets/common.scss +688 -0
  50. data/app/assets/stylesheets/ffcrm_chosen.scss +64 -0
  51. data/app/assets/stylesheets/fields.scss +8 -0
  52. data/app/assets/stylesheets/header.scss +129 -0
  53. data/app/assets/stylesheets/lists.css.scss +3 -0
  54. data/app/assets/stylesheets/print.css.scss +80 -0
  55. data/app/assets/stylesheets/rails.scss +136 -0
  56. data/app/assets/stylesheets/safari.scss +23 -0
  57. data/app/controllers/accounts_controller.rb +207 -0
  58. data/app/controllers/admin/application_controller.rb +42 -0
  59. data/app/controllers/admin/field_groups_controller.rb +128 -0
  60. data/app/controllers/admin/fields_controller.rb +148 -0
  61. data/app/controllers/admin/plugins_controller.rb +33 -0
  62. data/app/controllers/admin/settings_controller.rb +31 -0
  63. data/app/controllers/admin/tags_controller.rb +131 -0
  64. data/app/controllers/admin/users_controller.rb +200 -0
  65. data/app/controllers/application_controller.rb +219 -0
  66. data/app/controllers/authentications_controller.rb +66 -0
  67. data/app/controllers/base_controller.rb +155 -0
  68. data/app/controllers/campaigns_controller.rb +205 -0
  69. data/app/controllers/comments_controller.rb +145 -0
  70. data/app/controllers/contacts_controller.rb +214 -0
  71. data/app/controllers/emails_controller.rb +64 -0
  72. data/app/controllers/home_controller.rb +170 -0
  73. data/app/controllers/leads_controller.rb +286 -0
  74. data/app/controllers/lists_controller.rb +27 -0
  75. data/app/controllers/opportunities_controller.rb +256 -0
  76. data/app/controllers/passwords_controller.rb +78 -0
  77. data/app/controllers/tasks_controller.rb +213 -0
  78. data/app/controllers/users_controller.rb +163 -0
  79. data/app/helpers/accounts_helper.rb +54 -0
  80. data/app/helpers/addresses_helper.rb +28 -0
  81. data/app/helpers/admin/application_helper.rb +29 -0
  82. data/app/helpers/admin/field_groups_helper.rb +36 -0
  83. data/app/helpers/admin/fields_helper.rb +32 -0
  84. data/app/helpers/admin/plugins_helper.rb +20 -0
  85. data/app/helpers/admin/settings_helper.rb +20 -0
  86. data/app/helpers/admin/tags_helper.rb +22 -0
  87. data/app/helpers/admin/users_helper.rb +65 -0
  88. data/app/helpers/application_helper.rb +421 -0
  89. data/app/helpers/authentications_helper.rb +20 -0
  90. data/app/helpers/campaigns_helper.rb +55 -0
  91. data/app/helpers/comments_helper.rb +20 -0
  92. data/app/helpers/contacts_helper.rb +34 -0
  93. data/app/helpers/crm_tags_helper.rb +50 -0
  94. data/app/helpers/emails_helper.rb +19 -0
  95. data/app/helpers/fields_helper.rb +20 -0
  96. data/app/helpers/home_helper.rb +70 -0
  97. data/app/helpers/leads_helper.rb +116 -0
  98. data/app/helpers/lists_helper.rb +2 -0
  99. data/app/helpers/opportunities_helper.rb +53 -0
  100. data/app/helpers/passwords_helper.rb +20 -0
  101. data/app/helpers/tasks_helper.rb +176 -0
  102. data/app/helpers/users_helper.rb +40 -0
  103. data/app/inputs/date_time_input.rb +39 -0
  104. data/app/inputs/text_input.rb +6 -0
  105. data/app/models/base/account.rb +138 -0
  106. data/app/models/base/account_contact.rb +37 -0
  107. data/app/models/base/account_opportunity.rb +37 -0
  108. data/app/models/base/campaign.rb +123 -0
  109. data/app/models/base/contact.rb +191 -0
  110. data/app/models/base/contact_opportunity.rb +38 -0
  111. data/app/models/base/lead.rb +188 -0
  112. data/app/models/base/opportunity.rb +188 -0
  113. data/app/models/base/task.rb +241 -0
  114. data/app/models/fields/core_field.rb +48 -0
  115. data/app/models/fields/custom_field.rb +138 -0
  116. data/app/models/fields/field.rb +124 -0
  117. data/app/models/fields/field_group.rb +81 -0
  118. data/app/models/list.rb +8 -0
  119. data/app/models/mailers/notifier.rb +44 -0
  120. data/app/models/observers/activity_observer.rb +84 -0
  121. data/app/models/polymorphic/activity.rb +106 -0
  122. data/app/models/polymorphic/address.rb +58 -0
  123. data/app/models/polymorphic/avatar.rb +58 -0
  124. data/app/models/polymorphic/comment.rb +55 -0
  125. data/app/models/polymorphic/email.rb +69 -0
  126. data/app/models/polymorphic/tag.rb +14 -0
  127. data/app/models/polymorphic/tagging.rb +2 -0
  128. data/app/models/setting.rb +142 -0
  129. data/app/models/users/authentication.rb +64 -0
  130. data/app/models/users/permission.rb +36 -0
  131. data/app/models/users/preference.rb +62 -0
  132. data/app/models/users/user.rb +171 -0
  133. data/app/views/accounts/_account.html.haml +35 -0
  134. data/app/views/accounts/_contact_info.html.haml +37 -0
  135. data/app/views/accounts/_edit.html.haml +19 -0
  136. data/app/views/accounts/_new.html.haml +19 -0
  137. data/app/views/accounts/_options.html.haml +20 -0
  138. data/app/views/accounts/_permissions.html.haml +24 -0
  139. data/app/views/accounts/_sidebar_index.html.haml +21 -0
  140. data/app/views/accounts/_sidebar_show.html.haml +57 -0
  141. data/app/views/accounts/_top_section.html.haml +29 -0
  142. data/app/views/accounts/contacts.js.rjs +3 -0
  143. data/app/views/accounts/create.js.rjs +15 -0
  144. data/app/views/accounts/destroy.js.rjs +3 -0
  145. data/app/views/accounts/edit.js.rjs +35 -0
  146. data/app/views/accounts/index.html.haml +25 -0
  147. data/app/views/accounts/index.js.rjs +6 -0
  148. data/app/views/accounts/new.js.rjs +11 -0
  149. data/app/views/accounts/opportunities.js.rjs +3 -0
  150. data/app/views/accounts/options.js.rjs +10 -0
  151. data/app/views/accounts/show.html.haml +42 -0
  152. data/app/views/accounts/update.js.rjs +17 -0
  153. data/app/views/admin/field_groups/_confirm.html.haml +5 -0
  154. data/app/views/admin/field_groups/_edit.html.haml +8 -0
  155. data/app/views/admin/field_groups/_field_group.html.haml +27 -0
  156. data/app/views/admin/field_groups/_new.html.haml +10 -0
  157. data/app/views/admin/field_groups/_top_section.html.haml +13 -0
  158. data/app/views/admin/field_groups/confirm.js.rjs +6 -0
  159. data/app/views/admin/field_groups/create.js.rjs +21 -0
  160. data/app/views/admin/field_groups/destroy.js.rjs +11 -0
  161. data/app/views/admin/field_groups/edit.js.rjs +14 -0
  162. data/app/views/admin/field_groups/new.js.rjs +9 -0
  163. data/app/views/admin/field_groups/update.js.rjs +9 -0
  164. data/app/views/admin/fields/_edit.html.haml +9 -0
  165. data/app/views/admin/fields/_field.html.haml +15 -0
  166. data/app/views/admin/fields/_new.html.haml +10 -0
  167. data/app/views/admin/fields/_options.html.haml +12 -0
  168. data/app/views/admin/fields/_sidebar_index.html.haml +1 -0
  169. data/app/views/admin/fields/_sidebar_show.html.haml +1 -0
  170. data/app/views/admin/fields/_sort_by.html.haml +10 -0
  171. data/app/views/admin/fields/_top_section.html.haml +54 -0
  172. data/app/views/admin/fields/create.js.rjs +16 -0
  173. data/app/views/admin/fields/destroy.js.rjs +11 -0
  174. data/app/views/admin/fields/edit.js.rjs +35 -0
  175. data/app/views/admin/fields/index.html.haml +36 -0
  176. data/app/views/admin/fields/index.js.rjs +6 -0
  177. data/app/views/admin/fields/new.js.rjs +8 -0
  178. data/app/views/admin/fields/options.js.rjs +10 -0
  179. data/app/views/admin/fields/show.html.haml +41 -0
  180. data/app/views/admin/fields/update.js.rjs +17 -0
  181. data/app/views/admin/plugins/_plugin.html.haml +13 -0
  182. data/app/views/admin/plugins/index.html.haml +9 -0
  183. data/app/views/admin/settings/index.html.haml +3 -0
  184. data/app/views/admin/tags/_confirm.html.haml +5 -0
  185. data/app/views/admin/tags/_edit.html.haml +9 -0
  186. data/app/views/admin/tags/_new.html.haml +10 -0
  187. data/app/views/admin/tags/_tag.html.haml +29 -0
  188. data/app/views/admin/tags/_top_section.html.haml +6 -0
  189. data/app/views/admin/tags/confirm.js.rjs +6 -0
  190. data/app/views/admin/tags/create.js.rjs +12 -0
  191. data/app/views/admin/tags/destroy.js.rjs +11 -0
  192. data/app/views/admin/tags/edit.js.rjs +21 -0
  193. data/app/views/admin/tags/index.html.haml +17 -0
  194. data/app/views/admin/tags/new.js.rjs +8 -0
  195. data/app/views/admin/tags/update.js.rjs +10 -0
  196. data/app/views/admin/users/_confirm.html.haml +5 -0
  197. data/app/views/admin/users/_edit.html.haml +11 -0
  198. data/app/views/admin/users/_new.html.haml +11 -0
  199. data/app/views/admin/users/_profile.html.haml +43 -0
  200. data/app/views/admin/users/_sidebar_index.html.haml +2 -0
  201. data/app/views/admin/users/_user.html.haml +56 -0
  202. data/app/views/admin/users/confirm.js.rjs +6 -0
  203. data/app/views/admin/users/create.js.rjs +11 -0
  204. data/app/views/admin/users/destroy.js.rjs +11 -0
  205. data/app/views/admin/users/edit.js.rjs +21 -0
  206. data/app/views/admin/users/index.html.haml +13 -0
  207. data/app/views/admin/users/index.js.rjs +2 -0
  208. data/app/views/admin/users/new.js.rjs +8 -0
  209. data/app/views/admin/users/reactivate.js.rjs +3 -0
  210. data/app/views/admin/users/show.html.haml +5 -0
  211. data/app/views/admin/users/suspend.js.rjs +3 -0
  212. data/app/views/admin/users/update.js.rjs +10 -0
  213. data/app/views/authentications/new.html.haml +31 -0
  214. data/app/views/base/_advanced_search.html.haml +12 -0
  215. data/app/views/base/_condition_fields.html.haml +14 -0
  216. data/app/views/base/_grouping_fields.html.haml +12 -0
  217. data/app/views/base/_sort_fields.html.haml +3 -0
  218. data/app/views/base/advanced_search.js.rjs +9 -0
  219. data/app/views/campaigns/_campaign.html.haml +17 -0
  220. data/app/views/campaigns/_edit.html.haml +16 -0
  221. data/app/views/campaigns/_metrics.html.haml +16 -0
  222. data/app/views/campaigns/_new.html.haml +15 -0
  223. data/app/views/campaigns/_objectives.html.haml +30 -0
  224. data/app/views/campaigns/_options.html.haml +20 -0
  225. data/app/views/campaigns/_permissions.html.haml +24 -0
  226. data/app/views/campaigns/_sidebar_index.html.haml +20 -0
  227. data/app/views/campaigns/_sidebar_show.html.haml +91 -0
  228. data/app/views/campaigns/_status.html.haml +24 -0
  229. data/app/views/campaigns/_top_section.html.haml +29 -0
  230. data/app/views/campaigns/create.js.rjs +21 -0
  231. data/app/views/campaigns/destroy.js.rjs +3 -0
  232. data/app/views/campaigns/edit.js.rjs +38 -0
  233. data/app/views/campaigns/index.html.haml +25 -0
  234. data/app/views/campaigns/index.js.rjs +6 -0
  235. data/app/views/campaigns/leads.js.rjs +3 -0
  236. data/app/views/campaigns/new.js.rjs +13 -0
  237. data/app/views/campaigns/opportunities.js.rjs +3 -0
  238. data/app/views/campaigns/options.js.rjs +10 -0
  239. data/app/views/campaigns/show.html.haml +44 -0
  240. data/app/views/campaigns/update.js.rjs +23 -0
  241. data/app/views/comments/_comment.html.haml +25 -0
  242. data/app/views/comments/_edit.html.haml +12 -0
  243. data/app/views/comments/_new.html.haml +27 -0
  244. data/app/views/comments/create.js.rjs +11 -0
  245. data/app/views/comments/destroy.js.rjs +6 -0
  246. data/app/views/comments/edit.js.rjs +11 -0
  247. data/app/views/comments/new.js.rjs +12 -0
  248. data/app/views/comments/update.js.rjs +11 -0
  249. data/app/views/contacts/_contact.html.haml +34 -0
  250. data/app/views/contacts/_edit.html.haml +17 -0
  251. data/app/views/contacts/_extra.html.haml +36 -0
  252. data/app/views/contacts/_new.html.haml +17 -0
  253. data/app/views/contacts/_options.html.haml +21 -0
  254. data/app/views/contacts/_permissions.html.haml +24 -0
  255. data/app/views/contacts/_sidebar_index.html.haml +3 -0
  256. data/app/views/contacts/_sidebar_show.html.haml +41 -0
  257. data/app/views/contacts/_top_section.html.haml +54 -0
  258. data/app/views/contacts/_web.html.haml +31 -0
  259. data/app/views/contacts/create.js.rjs +20 -0
  260. data/app/views/contacts/destroy.js.rjs +7 -0
  261. data/app/views/contacts/edit.js.rjs +38 -0
  262. data/app/views/contacts/index.html.haml +26 -0
  263. data/app/views/contacts/index.js.rjs +6 -0
  264. data/app/views/contacts/new.js.rjs +13 -0
  265. data/app/views/contacts/opportunities.js.rjs +3 -0
  266. data/app/views/contacts/options.js.rjs +10 -0
  267. data/app/views/contacts/show.html.haml +38 -0
  268. data/app/views/contacts/update.js.rjs +22 -0
  269. data/app/views/emails/_email.html.haml +27 -0
  270. data/app/views/emails/destroy.js.rjs +6 -0
  271. data/app/views/fields/_group.html.haml +20 -0
  272. data/app/views/fields/_groups.html.haml +11 -0
  273. data/app/views/fields/_sidebar_show.html.haml +8 -0
  274. data/app/views/fields/group.js.rjs +7 -0
  275. data/app/views/home/_actions_menu.html.haml +8 -0
  276. data/app/views/home/_activity.html.haml +22 -0
  277. data/app/views/home/_assets_menu.html.haml +7 -0
  278. data/app/views/home/_duration_menu.html.haml +8 -0
  279. data/app/views/home/_options.html.haml +14 -0
  280. data/app/views/home/_users_menu.html.haml +8 -0
  281. data/app/views/home/index.atom.builder +24 -0
  282. data/app/views/home/index.html.haml +19 -0
  283. data/app/views/home/index.js.rjs +6 -0
  284. data/app/views/home/index.rss.builder +20 -0
  285. data/app/views/home/options.js.rjs +8 -0
  286. data/app/views/layouts/500.html.haml +29 -0
  287. data/app/views/layouts/_about.html.haml +17 -0
  288. data/app/views/layouts/_footer.html.haml +13 -0
  289. data/app/views/layouts/_header.html.haml +20 -0
  290. data/app/views/layouts/_jumpbox.html.haml +32 -0
  291. data/app/views/layouts/_sidebar.html.haml +14 -0
  292. data/app/views/layouts/_tabbed.html.haml +19 -0
  293. data/app/views/layouts/_tabless.html.haml +3 -0
  294. data/app/views/layouts/admin/_header.html.haml +14 -0
  295. data/app/views/layouts/admin/application.html.haml +25 -0
  296. data/app/views/layouts/application.html.haml +43 -0
  297. data/app/views/leads/_contact.html.haml +38 -0
  298. data/app/views/leads/_convert.html.haml +36 -0
  299. data/app/views/leads/_convert_permissions.html.haml +26 -0
  300. data/app/views/leads/_edit.html.haml +21 -0
  301. data/app/views/leads/_lead.html.haml +43 -0
  302. data/app/views/leads/_new.html.haml +21 -0
  303. data/app/views/leads/_opportunity.html.haml +37 -0
  304. data/app/views/leads/_options.html.haml +21 -0
  305. data/app/views/leads/_permissions.html.haml +28 -0
  306. data/app/views/leads/_sidebar_index.html.haml +20 -0
  307. data/app/views/leads/_sidebar_show.html.haml +58 -0
  308. data/app/views/leads/_status.html.haml +36 -0
  309. data/app/views/leads/_top_section.html.haml +29 -0
  310. data/app/views/leads/_web.html.haml +31 -0
  311. data/app/views/leads/convert.js.rjs +38 -0
  312. data/app/views/leads/create.js.rjs +20 -0
  313. data/app/views/leads/destroy.js.rjs +7 -0
  314. data/app/views/leads/edit.js.rjs +38 -0
  315. data/app/views/leads/index.html.haml +25 -0
  316. data/app/views/leads/index.js.rjs +6 -0
  317. data/app/views/leads/new.js.rjs +11 -0
  318. data/app/views/leads/options.js.rjs +10 -0
  319. data/app/views/leads/promote.js.rjs +28 -0
  320. data/app/views/leads/reject.js.rjs +10 -0
  321. data/app/views/leads/show.html.haml +35 -0
  322. data/app/views/leads/update.js.rjs +27 -0
  323. data/app/views/lists/create.js.rjs +9 -0
  324. data/app/views/lists/destroy.js.rjs +1 -0
  325. data/app/views/notifier/dropbox_ack_notification.html.haml +9 -0
  326. data/app/views/notifier/password_reset_instructions.html.haml +6 -0
  327. data/app/views/opportunities/_edit.html.haml +16 -0
  328. data/app/views/opportunities/_new.html.haml +16 -0
  329. data/app/views/opportunities/_opportunity.html.haml +45 -0
  330. data/app/views/opportunities/_options.html.haml +20 -0
  331. data/app/views/opportunities/_permissions.html.haml +24 -0
  332. data/app/views/opportunities/_sidebar_index.html.haml +20 -0
  333. data/app/views/opportunities/_sidebar_show.html.haml +61 -0
  334. data/app/views/opportunities/_top_section.html.haml +65 -0
  335. data/app/views/opportunities/contacts.js.rjs +3 -0
  336. data/app/views/opportunities/create.js.rjs +31 -0
  337. data/app/views/opportunities/destroy.js.rjs +11 -0
  338. data/app/views/opportunities/edit.js.rjs +39 -0
  339. data/app/views/opportunities/index.html.haml +28 -0
  340. data/app/views/opportunities/index.js.rjs +6 -0
  341. data/app/views/opportunities/new.js.rjs +16 -0
  342. data/app/views/opportunities/options.js.rjs +10 -0
  343. data/app/views/opportunities/show.html.haml +36 -0
  344. data/app/views/opportunities/update.js.rjs +27 -0
  345. data/app/views/passwords/edit.html.haml +15 -0
  346. data/app/views/passwords/new.html.haml +10 -0
  347. data/app/views/shared/_address.html.haml +44 -0
  348. data/app/views/shared/_address_show.html.haml +24 -0
  349. data/app/views/shared/_comment.html.haml +11 -0
  350. data/app/views/shared/_edit_comment.html.haml +13 -0
  351. data/app/views/shared/_empty.html.haml +8 -0
  352. data/app/views/shared/_export.html.haml +1 -0
  353. data/app/views/shared/_inline_styles.html.haml +31 -0
  354. data/app/views/shared/_lists.html.haml +25 -0
  355. data/app/views/shared/_naming.html.haml +9 -0
  356. data/app/views/shared/_outline.html.haml +9 -0
  357. data/app/views/shared/_paginate.haml +1 -0
  358. data/app/views/shared/_per_page.html.haml +10 -0
  359. data/app/views/shared/_recent.html.haml +4 -0
  360. data/app/views/shared/_recently.html.haml +7 -0
  361. data/app/views/shared/_search.html.haml +11 -0
  362. data/app/views/shared/_select_popup.html.haml +21 -0
  363. data/app/views/shared/_sort_by.html.haml +10 -0
  364. data/app/views/shared/_tags.html.haml +9 -0
  365. data/app/views/shared/_tasks.html.haml +10 -0
  366. data/app/views/shared/_timeline.html.haml +3 -0
  367. data/app/views/shared/_total.html.haml +4 -0
  368. data/app/views/shared/attach.js.rjs +24 -0
  369. data/app/views/shared/auto_complete.html.haml +10 -0
  370. data/app/views/shared/discard.rjs +7 -0
  371. data/app/views/shared/index.atom.builder +34 -0
  372. data/app/views/shared/index.rss.builder +31 -0
  373. data/app/views/tasks/_assigned.html.haml +47 -0
  374. data/app/views/tasks/_completed.html.haml +23 -0
  375. data/app/views/tasks/_edit.html.haml +19 -0
  376. data/app/views/tasks/_empty.html.haml +4 -0
  377. data/app/views/tasks/_new.html.haml +14 -0
  378. data/app/views/tasks/_pending.html.haml +52 -0
  379. data/app/views/tasks/_related.html.haml +33 -0
  380. data/app/views/tasks/_selector.html.haml +8 -0
  381. data/app/views/tasks/_sidebar_index.html.haml +18 -0
  382. data/app/views/tasks/_title.html.haml +8 -0
  383. data/app/views/tasks/_top_section.html.haml +32 -0
  384. data/app/views/tasks/complete.js.rjs +17 -0
  385. data/app/views/tasks/create.js.rjs +42 -0
  386. data/app/views/tasks/destroy.js.rjs +7 -0
  387. data/app/views/tasks/discard.rjs +1 -0
  388. data/app/views/tasks/edit.js.rjs +25 -0
  389. data/app/views/tasks/filter.js.rjs +1 -0
  390. data/app/views/tasks/index.html.haml +20 -0
  391. data/app/views/tasks/new.js.rjs +11 -0
  392. data/app/views/tasks/update.js.rjs +22 -0
  393. data/app/views/users/_avatar.html.haml +20 -0
  394. data/app/views/users/_languages.html.haml +9 -0
  395. data/app/views/users/_password.html.haml +27 -0
  396. data/app/views/users/_profile.html.haml +67 -0
  397. data/app/views/users/_user.html.haml +28 -0
  398. data/app/views/users/avatar.js.rjs +10 -0
  399. data/app/views/users/change_password.js.rjs +15 -0
  400. data/app/views/users/edit.js.rjs +10 -0
  401. data/app/views/users/index.html.haml +3 -0
  402. data/app/views/users/new.html.haml +19 -0
  403. data/app/views/users/password.js.rjs +11 -0
  404. data/app/views/users/show.html.haml +16 -0
  405. data/app/views/users/update.js.rjs +10 -0
  406. data/app/views/users/upload_avatar.js.rjs +8 -0
  407. data/app/views/versions/_version.html.haml +30 -0
  408. data/config.ru +4 -0
  409. data/config/application.rb +75 -0
  410. data/config/boot.rb +6 -0
  411. data/config/database.mysql.mac.yml +31 -0
  412. data/config/database.mysql.yml +32 -0
  413. data/config/database.postgres.yml +25 -0
  414. data/config/database.sqlite.yml +22 -0
  415. data/config/environment.rb +5 -0
  416. data/config/environments/development.rb +39 -0
  417. data/config/environments/production.rb +67 -0
  418. data/config/environments/staging.rb +14 -0
  419. data/config/environments/test.rb +48 -0
  420. data/config/initializers/action_mailer.rb +3 -0
  421. data/config/initializers/authlogic.rb +1 -0
  422. data/config/initializers/mime_types.rb +8 -0
  423. data/config/initializers/paginate_arrays.rb +7 -0
  424. data/config/initializers/paper_trail.rb +1 -0
  425. data/config/initializers/sass.rb +13 -0
  426. data/config/initializers/secret_token.rb +13 -0
  427. data/config/initializers/simple_form.rb +96 -0
  428. data/config/locales/cz.yml +213 -0
  429. data/config/locales/cz_fat_free_crm.yml +695 -0
  430. data/config/locales/de.yml +193 -0
  431. data/config/locales/de_fat_free_crm.yml +637 -0
  432. data/config/locales/en-GB.yml +180 -0
  433. data/config/locales/en-GB_fat_free_crm.yml +670 -0
  434. data/config/locales/en-US.yml +182 -0
  435. data/config/locales/en-US_fat_free_crm.yml +832 -0
  436. data/config/locales/es.yml +184 -0
  437. data/config/locales/es_fat_free_crm.yml +642 -0
  438. data/config/locales/fr-CA.yml +187 -0
  439. data/config/locales/fr-CA_fat_free_crm.yml +635 -0
  440. data/config/locales/fr.yml +182 -0
  441. data/config/locales/fr_fat_free_crm.yml +633 -0
  442. data/config/locales/it.yml +183 -0
  443. data/config/locales/it_fat_free_crm.yml +665 -0
  444. data/config/locales/ja.yml +188 -0
  445. data/config/locales/ja_fat_free_crm.yml +636 -0
  446. data/config/locales/pl.yml +194 -0
  447. data/config/locales/pl_fat_free_crm.yml +646 -0
  448. data/config/locales/pt-BR.yml +199 -0
  449. data/config/locales/pt-BR_fat_free_crm.yml +639 -0
  450. data/config/locales/ru.yml +303 -0
  451. data/config/locales/ru_fat_free_crm.yml +661 -0
  452. data/config/locales/simple_form.en.yml +24 -0
  453. data/config/locales/sv-SE.yml +232 -0
  454. data/config/locales/sv-SE_fat_free_crm.yml +638 -0
  455. data/config/locales/th.rb +200 -0
  456. data/config/locales/th_fat_free_crm.yml +643 -0
  457. data/config/locales/zh-CN.yml +210 -0
  458. data/config/locales/zh-CN_fat_free_crm.yml +631 -0
  459. data/config/routes.rb +172 -0
  460. data/config/settings.default.yml +325 -0
  461. data/db/demo/account_contacts.yml +24 -0
  462. data/db/demo/account_opportunities.yml +24 -0
  463. data/db/demo/accounts.yml +48 -0
  464. data/db/demo/activities.yml +16 -0
  465. data/db/demo/addresses.yml +46 -0
  466. data/db/demo/avatars.yml +16 -0
  467. data/db/demo/campaigns.yml +144 -0
  468. data/db/demo/comments.yml +30 -0
  469. data/db/demo/contact_opportunities.yml +25 -0
  470. data/db/demo/contacts.yml +70 -0
  471. data/db/demo/emails.yml +53 -0
  472. data/db/demo/leads.yml +71 -0
  473. data/db/demo/opportunities.yml +48 -0
  474. data/db/demo/permissions.yml +13 -0
  475. data/db/demo/preferences.yml +13 -0
  476. data/db/demo/settings.yml +12 -0
  477. data/db/demo/tasks.yml +64 -0
  478. data/db/demo/users.yml +249 -0
  479. data/db/migrate/20100928030598_create_sessions.rb +17 -0
  480. data/db/migrate/20100928030599_create_users.rb +46 -0
  481. data/db/migrate/20100928030600_create_openid_tables.rb +24 -0
  482. data/db/migrate/20100928030601_create_accounts.rb +27 -0
  483. data/db/migrate/20100928030602_create_permissions.rb +16 -0
  484. data/db/migrate/20100928030603_create_settings.rb +16 -0
  485. data/db/migrate/20100928030604_create_preferences.rb +16 -0
  486. data/db/migrate/20100928030605_create_campaigns.rb +35 -0
  487. data/db/migrate/20100928030606_create_leads.rb +39 -0
  488. data/db/migrate/20100928030607_create_contacts.rb +39 -0
  489. data/db/migrate/20100928030608_create_opportunities.rb +28 -0
  490. data/db/migrate/20100928030609_create_account_contacts.rb +15 -0
  491. data/db/migrate/20100928030610_create_account_opportunities.rb +15 -0
  492. data/db/migrate/20100928030611_create_contact_opportunities.rb +16 -0
  493. data/db/migrate/20100928030612_create_tasks.rb +27 -0
  494. data/db/migrate/20100928030613_create_comments.rb +17 -0
  495. data/db/migrate/20100928030614_create_activities.rb +20 -0
  496. data/db/migrate/20100928030615_create_avatars.rb +17 -0
  497. data/db/migrate/20100928030616_rename_remember_token.rb +12 -0
  498. data/db/migrate/20100928030617_drop_openid_tables.rb +23 -0
  499. data/db/migrate/20100928030618_add_admin_to_users.rb +12 -0
  500. data/db/migrate/20100928030619_add_suspended_to_users.rb +12 -0
  501. data/db/migrate/20100928030620_remove_uuid.rb +24 -0
  502. data/db/migrate/20100928030621_add_email_to_accounts.rb +10 -0
  503. data/db/migrate/20100928030622_add_background_info_to_models.rb +20 -0
  504. data/db/migrate/20100928030623_create_addresses.rb +51 -0
  505. data/db/migrate/20100928030624_add_index_on_permissions.rb +10 -0
  506. data/db/migrate/20100928030625_create_emails.rb +27 -0
  507. data/db/migrate/20100928030626_add_state_to_timeline_objects.rb +14 -0
  508. data/db/migrate/20100928030627_acts_as_taggable_on_migration.rb +30 -0
  509. data/db/migrate/20101221123456_add_single_access_token_to_users.rb +10 -0
  510. data/db/migrate/20101221345678_add_rating_and_category_to_accounts.rb +12 -0
  511. data/db/migrate/20110719082054_add_skype_to_contacts_and_leads.rb +12 -0
  512. data/db/migrate/20111101083437_create_fields.rb +28 -0
  513. data/db/migrate/20111101090312_create_field_groups.rb +16 -0
  514. data/db/migrate/20111116091952_add_field_groups_tag_id.rb +10 -0
  515. data/db/migrate/20111117041311_change_fields_collection_to_text.rb +10 -0
  516. data/db/migrate/20111201030535_add_field_groups_klass_name.rb +21 -0
  517. data/db/migrate/20120121054235_create_lists.rb +10 -0
  518. data/db/migrate/20120216031616_create_versions.rb +18 -0
  519. data/db/migrate/20120216042541_is_paranoid_to_paper_trail.rb +13 -0
  520. data/db/migrate/20120220233724_add_versions_object_changes.rb +9 -0
  521. data/db/migrate/20120224073107_remove_default_value_and_clear_settings.rb +16 -0
  522. data/db/schema.rb +415 -0
  523. data/db/seeds.rb +10 -0
  524. data/db/seeds/fields.rb +94 -0
  525. data/fat_free_crm.gemspec +45 -0
  526. data/lib/country_select/MIT-LICENSE +20 -0
  527. data/lib/country_select/README +14 -0
  528. data/lib/country_select/init.rb +1 -0
  529. data/lib/country_select/install.rb +2 -0
  530. data/lib/country_select/lib/country_select.rb +551 -0
  531. data/lib/country_select/uninstall.rb +2 -0
  532. data/lib/development_tasks/gem.rake +8 -0
  533. data/lib/development_tasks/license.rake +99 -0
  534. data/lib/development_tasks/rdoc.rake +15 -0
  535. data/lib/development_tasks/rspec.rake +23 -0
  536. data/lib/dynamic_form/MIT-LICENSE +20 -0
  537. data/lib/dynamic_form/README +13 -0
  538. data/lib/dynamic_form/Rakefile +10 -0
  539. data/lib/dynamic_form/dynamic_form.gemspec +12 -0
  540. data/lib/dynamic_form/init.rb +2 -0
  541. data/lib/dynamic_form/lib/action_view/helpers/dynamic_form.rb +301 -0
  542. data/lib/dynamic_form/lib/action_view/locale/en-US.yml +8 -0
  543. data/lib/dynamic_form/lib/dynamic_form.rb +6 -0
  544. data/lib/dynamic_form/test/dynamic_form_i18n_test.rb +42 -0
  545. data/lib/dynamic_form/test/dynamic_form_test.rb +370 -0
  546. data/lib/dynamic_form/test/test_helper.rb +10 -0
  547. data/lib/fat_free_crm.rb +52 -0
  548. data/lib/fat_free_crm/callback.rb +144 -0
  549. data/lib/fat_free_crm/core_ext.rb +18 -0
  550. data/lib/fat_free_crm/core_ext/array.rb +95 -0
  551. data/lib/fat_free_crm/core_ext/nil.rb +29 -0
  552. data/lib/fat_free_crm/core_ext/string.rb +74 -0
  553. data/lib/fat_free_crm/dropbox.rb +429 -0
  554. data/lib/fat_free_crm/engine.rb +9 -0
  555. data/lib/fat_free_crm/errors.rb +51 -0
  556. data/lib/fat_free_crm/exceptions.rb +34 -0
  557. data/lib/fat_free_crm/exportable.rb +63 -0
  558. data/lib/fat_free_crm/fields.rb +76 -0
  559. data/lib/fat_free_crm/gem_dependencies.rb +16 -0
  560. data/lib/fat_free_crm/gem_ext.rb +8 -0
  561. data/lib/fat_free_crm/gem_ext/action_controller/base.rb +28 -0
  562. data/lib/fat_free_crm/gem_ext/active_model/serializers/xml/serializer/attribute.rb +29 -0
  563. data/lib/fat_free_crm/gem_ext/active_record/schema_dumper.rb +22 -0
  564. data/lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb +32 -0
  565. data/lib/fat_free_crm/gem_ext/authlogic/session/cookies.rb +11 -0
  566. data/lib/fat_free_crm/gem_ext/rails/engine.rb +17 -0
  567. data/lib/fat_free_crm/gem_ext/rails/text_helper.rb +125 -0
  568. data/lib/fat_free_crm/gem_ext/rake/task.rb +8 -0
  569. data/lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb +20 -0
  570. data/lib/fat_free_crm/i18n.rb +51 -0
  571. data/lib/fat_free_crm/permissions.rb +111 -0
  572. data/lib/fat_free_crm/plugin.rb +106 -0
  573. data/lib/fat_free_crm/plugin_dependencies.rb +6 -0
  574. data/lib/fat_free_crm/renderers.rb +21 -0
  575. data/lib/fat_free_crm/sortable.rb +59 -0
  576. data/lib/fat_free_crm/syck_yaml.rb +4 -0
  577. data/lib/fat_free_crm/tabs.rb +35 -0
  578. data/lib/fat_free_crm/version.rb +27 -0
  579. data/lib/gravatar_image_tag/Gemfile +8 -0
  580. data/lib/gravatar_image_tag/README.textile +108 -0
  581. data/lib/gravatar_image_tag/ROADMAP.textile +33 -0
  582. data/lib/gravatar_image_tag/Rakefile +50 -0
  583. data/lib/gravatar_image_tag/VERSION +1 -0
  584. data/lib/gravatar_image_tag/gravatar_image_tag.gemspec +45 -0
  585. data/lib/gravatar_image_tag/init.rb +2 -0
  586. data/lib/gravatar_image_tag/lib/gravatar_image_tag.rb +63 -0
  587. data/lib/gravatar_image_tag/spec/gravatar_image_tag_spec.rb +83 -0
  588. data/lib/gravatar_image_tag/spec/test_helper.rb +12 -0
  589. data/lib/responds_to_parent/MIT-LICENSE +20 -0
  590. data/lib/responds_to_parent/README +47 -0
  591. data/lib/responds_to_parent/Rakefile +22 -0
  592. data/lib/responds_to_parent/init.rb +2 -0
  593. data/lib/responds_to_parent/install.rb +2 -0
  594. data/lib/responds_to_parent/lib/responds_to_parent.rb +70 -0
  595. data/lib/responds_to_parent/test/responds_to_parent_test.rb +11 -0
  596. data/lib/responds_to_parent/test/test_helper.rb +7 -0
  597. data/lib/responds_to_parent/uninstall.rb +2 -0
  598. data/lib/tasks/.gitkeep +0 -0
  599. data/lib/tasks/.gitkeep~master +0 -0
  600. data/lib/tasks/demo.rake +72 -0
  601. data/lib/tasks/dropbox.rake +32 -0
  602. data/lib/tasks/fat_free_crm.rake +130 -0
  603. data/lib/tasks/plugins.rake +77 -0
  604. data/lib/tasks/schema_upgrade.rake +31 -0
  605. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  606. data/public/404.html +26 -0
  607. data/public/422.html +26 -0
  608. data/public/500.html +26 -0
  609. data/public/blank_iframe.html +2 -0
  610. data/public/favicon.ico +0 -0
  611. data/public/robots.txt +5 -0
  612. data/script/rails +6 -0
  613. data/spec/controllers/accounts_controller_spec.rb +626 -0
  614. data/spec/controllers/admin/users_controller_spec.rb +309 -0
  615. data/spec/controllers/authentications_controller_spec.rb +147 -0
  616. data/spec/controllers/campaigns_controller_spec.rb +666 -0
  617. data/spec/controllers/comments_controller_spec.rb +274 -0
  618. data/spec/controllers/contacts_controller_spec.rb +699 -0
  619. data/spec/controllers/emails_controller_spec.rb +32 -0
  620. data/spec/controllers/home_controller_spec.rb +99 -0
  621. data/spec/controllers/leads_controller_spec.rb +1047 -0
  622. data/spec/controllers/lists_controller_spec.rb +5 -0
  623. data/spec/controllers/opportunities_controller_spec.rb +932 -0
  624. data/spec/controllers/passwords_controller_spec.rb +11 -0
  625. data/spec/controllers/tasks_controller_spec.rb +508 -0
  626. data/spec/controllers/users_controller_spec.rb +344 -0
  627. data/spec/factories/account_factories.rb +35 -0
  628. data/spec/factories/campaign_factories.rb +23 -0
  629. data/spec/factories/contact_factories.rb +39 -0
  630. data/spec/factories/field_factories.rb +34 -0
  631. data/spec/factories/lead_factories.rb +29 -0
  632. data/spec/factories/list_factories.rb +6 -0
  633. data/spec/factories/opportunity_factories.rb +20 -0
  634. data/spec/factories/sequences.rb +26 -0
  635. data/spec/factories/setting_factories.rb +8 -0
  636. data/spec/factories/shared_factories.rb +70 -0
  637. data/spec/factories/tag_factories.rb +5 -0
  638. data/spec/factories/task_factories.rb +18 -0
  639. data/spec/factories/user_factories.rb +57 -0
  640. data/spec/fixtures/rails.png +0 -0
  641. data/spec/helpers/accounts_helper_spec.rb +12 -0
  642. data/spec/helpers/admin/field_groups_helper_spec.rb +13 -0
  643. data/spec/helpers/admin/plugins_helper_spec.rb +5 -0
  644. data/spec/helpers/admin/settings_helper_spec.rb +5 -0
  645. data/spec/helpers/admin/users_helper_spec.rb +5 -0
  646. data/spec/helpers/application_helper_spec.rb +67 -0
  647. data/spec/helpers/authentications_helper_spec.rb +12 -0
  648. data/spec/helpers/campaigns_helper_spec.rb +12 -0
  649. data/spec/helpers/comments_helper_spec.rb +12 -0
  650. data/spec/helpers/contacts_helper_spec.rb +12 -0
  651. data/spec/helpers/emails_helper_spec.rb +5 -0
  652. data/spec/helpers/fields_helper_spec.rb +6 -0
  653. data/spec/helpers/home_helper_spec.rb +12 -0
  654. data/spec/helpers/leads_helper_spec.rb +12 -0
  655. data/spec/helpers/lists_helper_spec.rb +15 -0
  656. data/spec/helpers/opportunities_helper_spec.rb +12 -0
  657. data/spec/helpers/passwords_helper_spec.rb +12 -0
  658. data/spec/helpers/tasks_helper_spec.rb +12 -0
  659. data/spec/helpers/users_helper_spec.rb +12 -0
  660. data/spec/lib/core_ext/string.rb +17 -0
  661. data/spec/lib/dropbox/email_samples.rb +77 -0
  662. data/spec/lib/dropbox_spec.rb +410 -0
  663. data/spec/lib/errors_spec.rb +25 -0
  664. data/spec/models/base/account_contact_spec.rb +27 -0
  665. data/spec/models/base/account_opportunity_spec.rb +27 -0
  666. data/spec/models/base/account_spec.rb +136 -0
  667. data/spec/models/base/campaign_spec.rb +135 -0
  668. data/spec/models/base/contact_opportunity_spec.rb +28 -0
  669. data/spec/models/base/contact_spec.rb +160 -0
  670. data/spec/models/base/lead_spec.rb +101 -0
  671. data/spec/models/base/opportunity_spec.rb +173 -0
  672. data/spec/models/base/task_spec.rb +263 -0
  673. data/spec/models/fields/custom_field_spec.rb +106 -0
  674. data/spec/models/fields/field_group_spec.rb +23 -0
  675. data/spec/models/fields/field_spec.rb +64 -0
  676. data/spec/models/list_spec.rb +12 -0
  677. data/spec/models/polymorphic/activity_spec.rb +303 -0
  678. data/spec/models/polymorphic/address_spec.rb +33 -0
  679. data/spec/models/polymorphic/avatar_spec.rb +41 -0
  680. data/spec/models/polymorphic/comment_spec.rb +29 -0
  681. data/spec/models/polymorphic/email_spec.rb +36 -0
  682. data/spec/models/setting_spec.rb +51 -0
  683. data/spec/models/users/authentication_spec.rb +13 -0
  684. data/spec/models/users/permission_spec.rb +27 -0
  685. data/spec/models/users/preference_spec.rb +60 -0
  686. data/spec/models/users/user_spec.rb +169 -0
  687. data/spec/routing/accounts_routing_spec.rb +55 -0
  688. data/spec/routing/admin/users_routing_spec.rb +35 -0
  689. data/spec/routing/campaigns_routing_spec.rb +58 -0
  690. data/spec/routing/comments_routing_spec.rb +35 -0
  691. data/spec/routing/contacts_routing_spec.rb +55 -0
  692. data/spec/routing/emails_routing_spec.rb +35 -0
  693. data/spec/routing/leads_routing_spec.rb +83 -0
  694. data/spec/routing/opportunities_routing_spec.rb +59 -0
  695. data/spec/routing/tasks_routing_spec.rb +62 -0
  696. data/spec/routing/users_routing_spec.rb +79 -0
  697. data/spec/shared/controllers.rb +102 -0
  698. data/spec/shared/models.rb +37 -0
  699. data/spec/spec_helper.rb +110 -0
  700. data/spec/support/assert_select.rb +158 -0
  701. data/spec/support/auth_macros.rb +44 -0
  702. data/spec/support/macros.rb +40 -0
  703. data/spec/support/rjs_support.rb +9 -0
  704. data/spec/views/accounts/_edit.haml_spec.rb +38 -0
  705. data/spec/views/accounts/_new.haml_spec.rb +37 -0
  706. data/spec/views/accounts/create.rjs_spec.rb +54 -0
  707. data/spec/views/accounts/destroy.rjs_spec.rb +30 -0
  708. data/spec/views/accounts/edit.rjs_spec.rb +69 -0
  709. data/spec/views/accounts/index.haml_spec.rb +33 -0
  710. data/spec/views/accounts/index.rjs_spec.rb +32 -0
  711. data/spec/views/accounts/new.rjs_spec.rb +47 -0
  712. data/spec/views/accounts/options.rjs_spec.rb +59 -0
  713. data/spec/views/accounts/show.haml_spec.rb +30 -0
  714. data/spec/views/accounts/update.rjs_spec.rb +99 -0
  715. data/spec/views/admin/users/_create.haml_spec.rb +17 -0
  716. data/spec/views/admin/users/create.rjs_spec.rb +42 -0
  717. data/spec/views/admin/users/destroy.rjs_spec.rb +47 -0
  718. data/spec/views/admin/users/edit.rjs_spec.rb +45 -0
  719. data/spec/views/admin/users/index.haml_spec.rb +16 -0
  720. data/spec/views/admin/users/index.rjs_spec.rb +23 -0
  721. data/spec/views/admin/users/new.rjs_spec.rb +31 -0
  722. data/spec/views/admin/users/reactivate.rjs_spec.rb +17 -0
  723. data/spec/views/admin/users/show.haml_spec.rb +12 -0
  724. data/spec/views/admin/users/suspend.rjs_spec.rb +17 -0
  725. data/spec/views/admin/users/update.rjs_spec.rb +36 -0
  726. data/spec/views/authentications/new.haml_spec.rb +25 -0
  727. data/spec/views/campaigns/_edit.haml_spec.rb +37 -0
  728. data/spec/views/campaigns/_new.haml_spec.rb +35 -0
  729. data/spec/views/campaigns/create.rjs_spec.rb +52 -0
  730. data/spec/views/campaigns/destroy.rjs_spec.rb +28 -0
  731. data/spec/views/campaigns/edit.rjs_spec.rb +78 -0
  732. data/spec/views/campaigns/index.haml_spec.rb +28 -0
  733. data/spec/views/campaigns/index.rjs_spec.rb +32 -0
  734. data/spec/views/campaigns/new.rjs_spec.rb +57 -0
  735. data/spec/views/campaigns/options.rjs_spec.rb +60 -0
  736. data/spec/views/campaigns/show.haml_spec.rb +31 -0
  737. data/spec/views/campaigns/update.rjs_spec.rb +87 -0
  738. data/spec/views/comments/new.rjs_spec.rb +21 -0
  739. data/spec/views/common/auto_complete.haml_spec.rb +43 -0
  740. data/spec/views/contacts/_edit.haml_spec.rb +67 -0
  741. data/spec/views/contacts/_new.haml_spec.rb +47 -0
  742. data/spec/views/contacts/create.rjs_spec.rb +69 -0
  743. data/spec/views/contacts/destroy.rjs_spec.rb +41 -0
  744. data/spec/views/contacts/edit.rjs_spec.rb +77 -0
  745. data/spec/views/contacts/index.haml_spec.rb +28 -0
  746. data/spec/views/contacts/index.rjs_spec.rb +32 -0
  747. data/spec/views/contacts/new.rjs_spec.rb +51 -0
  748. data/spec/views/contacts/options.rjs_spec.rb +61 -0
  749. data/spec/views/contacts/show.haml_spec.rb +27 -0
  750. data/spec/views/contacts/update.rjs_spec.rb +141 -0
  751. data/spec/views/home/index.haml_spec.rb +26 -0
  752. data/spec/views/home/index.rjs_spec.rb +30 -0
  753. data/spec/views/home/options.rjs_spec.rb +52 -0
  754. data/spec/views/leads/_convert.haml_spec.rb +25 -0
  755. data/spec/views/leads/_edit.haml_spec.rb +41 -0
  756. data/spec/views/leads/_new.haml_spec.rb +39 -0
  757. data/spec/views/leads/_sidebar_show.haml_spec.rb +25 -0
  758. data/spec/views/leads/convert.rjs_spec.rb +83 -0
  759. data/spec/views/leads/create.rjs_spec.rb +70 -0
  760. data/spec/views/leads/destroy.rjs_spec.rb +46 -0
  761. data/spec/views/leads/edit.rjs_spec.rb +79 -0
  762. data/spec/views/leads/index.haml_spec.rb +28 -0
  763. data/spec/views/leads/index.rjs_spec.rb +32 -0
  764. data/spec/views/leads/new.rjs_spec.rb +52 -0
  765. data/spec/views/leads/options.rjs_spec.rb +61 -0
  766. data/spec/views/leads/promote.rjs_spec.rb +154 -0
  767. data/spec/views/leads/reject.rjs_spec.rb +49 -0
  768. data/spec/views/leads/show.haml_spec.rb +24 -0
  769. data/spec/views/leads/update.rjs_spec.rb +134 -0
  770. data/spec/views/opportunities/_edit.haml_spec.rb +64 -0
  771. data/spec/views/opportunities/_new.haml_spec.rb +46 -0
  772. data/spec/views/opportunities/create.rjs_spec.rb +94 -0
  773. data/spec/views/opportunities/destroy.rjs_spec.rb +64 -0
  774. data/spec/views/opportunities/edit.rjs_spec.rb +79 -0
  775. data/spec/views/opportunities/index.haml_spec.rb +29 -0
  776. data/spec/views/opportunities/index.rjs_spec.rb +34 -0
  777. data/spec/views/opportunities/new.rjs_spec.rb +60 -0
  778. data/spec/views/opportunities/options.rjs_spec.rb +60 -0
  779. data/spec/views/opportunities/show.haml_spec.rb +27 -0
  780. data/spec/views/opportunities/update.rjs_spec.rb +162 -0
  781. data/spec/views/tasks/_edit.haml_spec.rb +45 -0
  782. data/spec/views/tasks/complete.rjs_spec.rb +68 -0
  783. data/spec/views/tasks/create.rjs_spec.rb +124 -0
  784. data/spec/views/tasks/destroy.rjs_spec.rb +53 -0
  785. data/spec/views/tasks/edit.rjs_spec.rb +78 -0
  786. data/spec/views/tasks/index.haml_spec.rb +40 -0
  787. data/spec/views/tasks/new.rjs_spec.rb +62 -0
  788. data/spec/views/tasks/update.rjs_spec.rb +152 -0
  789. data/spec/views/users/avatar.rjs_spec.rb +32 -0
  790. data/spec/views/users/change_password.rjs_spec.rb +49 -0
  791. data/spec/views/users/edit.rjs_spec.rb +32 -0
  792. data/spec/views/users/password.rjs_spec.rb +32 -0
  793. data/spec/views/users/update.rjs_spec.rb +50 -0
  794. data/spec/views/users/upload_avatar.rjs_spec.rb +42 -0
  795. data/vendor/assets/images/calendar_date_select/calendar.gif +0 -0
  796. data/vendor/assets/images/delete.png +0 -0
  797. data/vendor/assets/images/tab_icons/accounts.png +0 -0
  798. data/vendor/assets/images/tab_icons/accounts_active.png +0 -0
  799. data/vendor/assets/images/tab_icons/campaigns.png +0 -0
  800. data/vendor/assets/images/tab_icons/campaigns_active.png +0 -0
  801. data/vendor/assets/images/tab_icons/contacts.png +0 -0
  802. data/vendor/assets/images/tab_icons/contacts_active.png +0 -0
  803. data/vendor/assets/images/tab_icons/dashboard.png +0 -0
  804. data/vendor/assets/images/tab_icons/dashboard_active.png +0 -0
  805. data/vendor/assets/images/tab_icons/leads.png +0 -0
  806. data/vendor/assets/images/tab_icons/leads_active.png +0 -0
  807. data/vendor/assets/images/tab_icons/opportunities.png +0 -0
  808. data/vendor/assets/images/tab_icons/opportunities_active.png +0 -0
  809. data/vendor/assets/images/tab_icons/tasks.png +0 -0
  810. data/vendor/assets/images/tab_icons/tasks_active.png +0 -0
  811. data/vendor/assets/javascripts/calendar_date_select/calendar_date_select.js +446 -0
  812. data/vendor/assets/javascripts/calendar_date_select/format_american.js +35 -0
  813. data/vendor/assets/javascripts/calendar_date_select/format_danish.js +31 -0
  814. data/vendor/assets/javascripts/calendar_date_select/format_db.js +27 -0
  815. data/vendor/assets/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
  816. data/vendor/assets/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
  817. data/vendor/assets/javascripts/calendar_date_select/format_finnish.js +32 -0
  818. data/vendor/assets/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
  819. data/vendor/assets/javascripts/calendar_date_select/format_iso_date.js +29 -0
  820. data/vendor/assets/javascripts/calendar_date_select/format_italian.js +24 -0
  821. data/vendor/assets/javascripts/calendar_date_select/locale/ar.js +10 -0
  822. data/vendor/assets/javascripts/calendar_date_select/locale/da.js +11 -0
  823. data/vendor/assets/javascripts/calendar_date_select/locale/de.js +11 -0
  824. data/vendor/assets/javascripts/calendar_date_select/locale/es.js +11 -0
  825. data/vendor/assets/javascripts/calendar_date_select/locale/fi.js +10 -0
  826. data/vendor/assets/javascripts/calendar_date_select/locale/fr.js +11 -0
  827. data/vendor/assets/javascripts/calendar_date_select/locale/it.js +9 -0
  828. data/vendor/assets/javascripts/calendar_date_select/locale/ja.js +11 -0
  829. data/vendor/assets/javascripts/calendar_date_select/locale/nl.js +11 -0
  830. data/vendor/assets/javascripts/calendar_date_select/locale/pl.js +11 -0
  831. data/vendor/assets/javascripts/calendar_date_select/locale/pt.js +11 -0
  832. data/vendor/assets/javascripts/calendar_date_select/locale/ru.js +10 -0
  833. data/vendor/assets/javascripts/calendar_date_select/locale/sl.js +11 -0
  834. data/vendor/assets/javascripts/calendar_date_select/locale/sv.js +9 -0
  835. data/vendor/assets/javascripts/event.simulate.js +64 -0
  836. data/vendor/assets/javascripts/facebooklist.js +548 -0
  837. data/vendor/assets/javascripts/facebooklist.simulate.js +28 -0
  838. data/vendor/assets/javascripts/modalbox.js +506 -0
  839. data/vendor/assets/javascripts/rating.js +162 -0
  840. data/vendor/assets/stylesheets/calendar_date_select/blue.css +130 -0
  841. data/vendor/assets/stylesheets/calendar_date_select/default.css +135 -0
  842. data/vendor/assets/stylesheets/calendar_date_select/green.css +142 -0
  843. data/vendor/assets/stylesheets/calendar_date_select/plain.css +128 -0
  844. data/vendor/assets/stylesheets/calendar_date_select/red.css +135 -0
  845. data/vendor/assets/stylesheets/calendar_date_select/silver.css +133 -0
  846. data/vendor/assets/stylesheets/facebooklist.css +47 -0
  847. data/vendor/assets/stylesheets/modalbox.css +107 -0
  848. data/vendor/plugins/.gitkeep +0 -0
  849. data/vendor/plugins/.gitkeep~master +0 -0
  850. metadata +1196 -0
data/CONTRIBUTORS ADDED
@@ -0,0 +1,50 @@
1
+ The following people have contributed code, patches, bug fixes, and language
2
+ translations to the Fat Free CRM:
3
+
4
+ * Alexander Kabanov (USA)
5
+ * Andrew Neil (United Kingdom)
6
+ * Apirak Panatkool (Thailand)
7
+ * Avery Pennarun (Canada)
8
+ * Beatriz Garcia Parrilla (Spain)
9
+ * Ben Tillman (Hong Kong)
10
+ * Cédric Brancourt (France)
11
+ * Craig Ulliott (USA)
12
+ * Dirk Kelly (Australia)
13
+ * Dmitry Dudin (Russia)
14
+ * Douglas Campos (Brasil)
15
+ * Dr. Nic Williams (Australia)
16
+ * Elad Meidar (Israel)
17
+ * Enderson Maia (Brasil)
18
+ * Eric Davis (USA)
19
+ * Eric Shelley (USA)
20
+ * Fritz Thielemann (Germany)
21
+ * Gavin Baker (USA)
22
+ * Hamish Rickerby (United Kingdom)
23
+ * Jack Tang (China)
24
+ * James Zhang (China)
25
+ * Jim Gay (USA)
26
+ * Jose Luis Gordo Romero (Spain)
27
+ * Kamil Politowicz (Germany)
28
+ * Lana Dvorkin (USA)
29
+ * Leonid Dinershtein (Russia)
30
+ * Louis Nyffenegger (Australia)
31
+ * Lukasz Kosewski (Canada)
32
+ * Matt Beedle (Spain)
33
+ * Martin Gajdos (Switzerland)
34
+ * Martin Trejo (Mexico)
35
+ * Miles Togoe (USA)
36
+ * Nathan Broadbent (Hong Kong)
37
+ * Nicholas Rowe (USA)
38
+ * Nobuhito Okada (Japan)
39
+ * Peter McCurdy (Canada)
40
+ * Ralf Ebert (Germany)
41
+ * Rit Li (USA)
42
+ * Roman Smirnov (Russia)
43
+ * Russell Niller (USA)
44
+ * Ryan Stenhouse (Scotland)
45
+ * Scott Miller (USA)
46
+ * Steve Kenworthy (Hong Kong)
47
+ * Todd Makinster (USA)
48
+ * Tom Meier (Australia)
49
+ * Trevor Oke (Canada)
50
+ * Yury Kotlyarov (Russia)
data/Gemfile ADDED
@@ -0,0 +1,40 @@
1
+ source :rubygems
2
+
3
+ # Removes a gem dependency
4
+ def remove(name)
5
+ @dependencies.reject! {|d| d.name == name }
6
+ end
7
+
8
+ # Replaces an existing gem dependency (e.g. from gemspec) with an alternate source.
9
+ def gem(name, *args)
10
+ remove(name)
11
+ super
12
+ end
13
+
14
+ # Load development dependencies from gemspec
15
+ gemspec
16
+
17
+ # Bundler no longer treats runtime dependencies as base dependencies.
18
+ # The following code restores this behaviour.
19
+ # (See https://github.com/carlhuda/bundler/issues/1041)
20
+ spec = Bundler.load_gemspec(Dir["./{,*}.gemspec"].first)
21
+ spec.runtime_dependencies.each do |dep|
22
+ gem dep.name, *(dep.requirement.as_list)
23
+ end
24
+
25
+ gem 'ransack', :git => "git://github.com/ndbroadbent/ransack.git"
26
+
27
+ # Remove fat_free_crm from dependencies, to stop it from being auto-required.
28
+ remove 'fat_free_crm'
29
+
30
+ gem 'pg', '~> 0.12.2'
31
+
32
+ group :development, :test do
33
+ gem 'rspec-rails'
34
+ gem 'steak', :require => false
35
+ gem 'headless'
36
+ unless ENV["CI"]
37
+ gem 'ruby-debug', :platform => :mri_18
38
+ gem 'ruby-debug19', :platform => :mri_19
39
+ end
40
+ end
data/Gemfile.ci ADDED
@@ -0,0 +1,13 @@
1
+ case ENV['DB']
2
+ when "mysql"; gem "mysql2", "0.3.10"
3
+ when "sqlite"; gem "sqlite3"
4
+ when "postgres"; gem "pg", "~> 0.12.2"
5
+ end
6
+
7
+ def gem(*args)
8
+ # Override 'gem' method to block any other database gems in the 'real' Gemfile
9
+ super unless %w(pg sqlite3 mysql2).include?(args.first)
10
+ end
11
+
12
+ # Eval Gemfile
13
+ eval(IO.read(File.join(File.dirname(__FILE__), 'Gemfile')), binding)
data/Gemfile.lock ADDED
@@ -0,0 +1,256 @@
1
+ GIT
2
+ remote: git://github.com/ndbroadbent/ransack.git
3
+ revision: 92f5812d4320e5f1959f844d19d0386bb5654a08
4
+ specs:
5
+ ransack (0.6.0)
6
+ actionpack (~> 3.0)
7
+ activerecord (~> 3.0)
8
+ chronic (~> 0.6.7)
9
+ polyamorous (~> 0.5.0)
10
+
11
+ PATH
12
+ remote: .
13
+ specs:
14
+
15
+ GEM
16
+ remote: http://rubygems.org/
17
+ specs:
18
+ actionmailer (3.2.2)
19
+ actionpack (= 3.2.2)
20
+ mail (~> 2.4.0)
21
+ actionpack (3.2.2)
22
+ activemodel (= 3.2.2)
23
+ activesupport (= 3.2.2)
24
+ builder (~> 3.0.0)
25
+ erubis (~> 2.7.0)
26
+ journey (~> 1.0.1)
27
+ rack (~> 1.4.0)
28
+ rack-cache (~> 1.1)
29
+ rack-test (~> 0.6.1)
30
+ sprockets (~> 2.1.2)
31
+ activemodel (3.2.2)
32
+ activesupport (= 3.2.2)
33
+ builder (~> 3.0.0)
34
+ activerecord (3.2.2)
35
+ activemodel (= 3.2.2)
36
+ activesupport (= 3.2.2)
37
+ arel (~> 3.0.2)
38
+ tzinfo (~> 0.3.29)
39
+ activeresource (3.2.2)
40
+ activemodel (= 3.2.2)
41
+ activesupport (= 3.2.2)
42
+ activesupport (3.2.2)
43
+ i18n (~> 0.6)
44
+ multi_json (~> 1.0)
45
+ acts-as-taggable-on (2.2.2)
46
+ rails (~> 3.0)
47
+ acts_as_commentable (3.0.1)
48
+ acts_as_list (0.1.5)
49
+ ajax-chosen-rails (0.1.5)
50
+ chosen-rails
51
+ railties (~> 3.0)
52
+ thor (~> 0.14)
53
+ archive-tar-minitar (0.5.2)
54
+ arel (3.0.2)
55
+ authlogic (3.1.0)
56
+ activerecord (>= 3.0.7)
57
+ activerecord (>= 3.0.7)
58
+ builder (3.0.0)
59
+ capybara (1.1.2)
60
+ mime-types (>= 1.16)
61
+ nokogiri (>= 1.3.3)
62
+ rack (>= 1.0.0)
63
+ rack-test (>= 0.5.4)
64
+ selenium-webdriver (~> 2.0)
65
+ xpath (~> 0.1.4)
66
+ childprocess (0.3.1)
67
+ ffi (~> 1.0.6)
68
+ chosen-rails (0.9.7.1)
69
+ railties (~> 3.0)
70
+ thor (~> 0.14)
71
+ chronic (0.6.7)
72
+ cocaine (0.2.1)
73
+ coffee-rails (3.2.2)
74
+ coffee-script (>= 2.2.0)
75
+ railties (~> 3.2.0)
76
+ coffee-script (2.2.0)
77
+ coffee-script-source
78
+ execjs
79
+ coffee-script-source (1.2.0)
80
+ columnize (0.3.6)
81
+ database_cleaner (0.7.1)
82
+ diff-lcs (1.1.3)
83
+ erubis (2.7.0)
84
+ execjs (1.3.0)
85
+ multi_json (~> 1.0)
86
+ factory_girl (2.6.1)
87
+ activesupport (>= 2.3.9)
88
+ ffaker (1.13.0)
89
+ ffi (1.0.11)
90
+ fuubar (1.0.0)
91
+ rspec (~> 2.0)
92
+ rspec-instafail (~> 0.2.0)
93
+ ruby-progressbar (~> 0.0.10)
94
+ haml (3.1.4)
95
+ headless (0.2.2)
96
+ hike (1.2.1)
97
+ i18n (0.6.0)
98
+ journey (1.0.3)
99
+ jquery-rails (2.0.1)
100
+ railties (>= 3.2.0, < 5.0)
101
+ thor (~> 0.14)
102
+ json (1.6.5)
103
+ libv8 (3.3.10.4)
104
+ linecache (0.46)
105
+ rbx-require-relative (> 0.0.4)
106
+ linecache19 (0.5.12)
107
+ ruby_core_source (>= 0.1.4)
108
+ mail (2.4.1)
109
+ i18n (>= 0.4.0)
110
+ mime-types (~> 1.16)
111
+ treetop (~> 1.4.8)
112
+ mime-types (1.17.2)
113
+ multi_json (1.1.0)
114
+ nokogiri (1.5.0)
115
+ paper_trail (2.6.0)
116
+ rails (~> 3)
117
+ paperclip (2.5.2)
118
+ activerecord (>= 2.3.0)
119
+ activesupport (>= 2.3.2)
120
+ cocaine (>= 0.0.2)
121
+ mime-types
122
+ pg (0.12.2)
123
+ polyamorous (0.5.0)
124
+ activerecord (~> 3.0)
125
+ polyglot (0.3.3)
126
+ prototype-rails (3.2.1)
127
+ rails (~> 3.2)
128
+ rack (1.4.1)
129
+ rack-cache (1.1)
130
+ rack (>= 0.4)
131
+ rack-ssl (1.3.2)
132
+ rack
133
+ rack-test (0.6.1)
134
+ rack (>= 1.0)
135
+ rails (3.2.2)
136
+ actionmailer (= 3.2.2)
137
+ actionpack (= 3.2.2)
138
+ activerecord (= 3.2.2)
139
+ activeresource (= 3.2.2)
140
+ activesupport (= 3.2.2)
141
+ bundler (~> 1.0)
142
+ railties (= 3.2.2)
143
+ railties (3.2.2)
144
+ actionpack (= 3.2.2)
145
+ activesupport (= 3.2.2)
146
+ rack-ssl (~> 1.3.2)
147
+ rake (>= 0.8.7)
148
+ rdoc (~> 3.4)
149
+ thor (~> 0.14.6)
150
+ rake (0.9.2.2)
151
+ rbx-require-relative (0.0.9)
152
+ rdoc (3.12)
153
+ json (~> 1.4)
154
+ rspec (2.8.0)
155
+ rspec-core (~> 2.8.0)
156
+ rspec-expectations (~> 2.8.0)
157
+ rspec-mocks (~> 2.8.0)
158
+ rspec-core (2.8.0)
159
+ rspec-expectations (2.8.0)
160
+ diff-lcs (~> 1.1.2)
161
+ rspec-instafail (0.2.2)
162
+ rspec-mocks (2.8.0)
163
+ rspec-rails (2.8.1)
164
+ actionpack (>= 3.0)
165
+ activesupport (>= 3.0)
166
+ railties (>= 3.0)
167
+ rspec (~> 2.8.0)
168
+ ruby-debug (0.10.4)
169
+ columnize (>= 0.1)
170
+ ruby-debug-base (~> 0.10.4.0)
171
+ ruby-debug-base (0.10.4)
172
+ linecache (>= 0.3)
173
+ ruby-debug-base19 (0.11.25)
174
+ columnize (>= 0.3.1)
175
+ linecache19 (>= 0.5.11)
176
+ ruby_core_source (>= 0.1.4)
177
+ ruby-debug19 (0.11.6)
178
+ columnize (>= 0.3.1)
179
+ linecache19 (>= 0.5.11)
180
+ ruby-debug-base19 (>= 0.11.19)
181
+ ruby-progressbar (0.0.10)
182
+ ruby_core_source (0.1.5)
183
+ archive-tar-minitar (>= 0.5.2)
184
+ rubyzip (0.9.6.1)
185
+ sass (3.1.15)
186
+ sass-rails (3.2.4)
187
+ railties (~> 3.2.0)
188
+ sass (>= 3.1.10)
189
+ tilt (~> 1.3)
190
+ selenium-webdriver (2.20.0)
191
+ childprocess (>= 0.2.5)
192
+ ffi (~> 1.0)
193
+ multi_json (~> 1.0)
194
+ rubyzip
195
+ simple_form (1.5.2)
196
+ actionpack (~> 3.0)
197
+ activemodel (~> 3.0)
198
+ spork (0.9.0)
199
+ sprockets (2.1.2)
200
+ hike (~> 1.2)
201
+ rack (~> 1.0)
202
+ tilt (~> 1.1, != 1.3.0)
203
+ steak (2.0.0)
204
+ capybara (>= 1.0.0)
205
+ rspec-rails (>= 2.5.0)
206
+ therubyracer (0.9.10)
207
+ libv8 (~> 3.3.10)
208
+ thor (0.14.6)
209
+ tilt (1.3.3)
210
+ treetop (1.4.10)
211
+ polyglot
212
+ polyglot (>= 0.3.1)
213
+ tzinfo (0.3.31)
214
+ uglifier (1.2.3)
215
+ execjs (>= 0.3.0)
216
+ multi_json (>= 1.0.2)
217
+ will_paginate (3.0.3)
218
+ xpath (0.1.4)
219
+ nokogiri (~> 1.3)
220
+
221
+ PLATFORMS
222
+ ruby
223
+
224
+ DEPENDENCIES
225
+ acts-as-taggable-on (~> 2.2.1)
226
+ acts_as_commentable (~> 3.0.1)
227
+ acts_as_list (~> 0.1.4)
228
+ ajax-chosen-rails (>= 0.1.5)
229
+ authlogic (~> 3.1.0)
230
+ capybara
231
+ chosen-rails
232
+ coffee-rails
233
+ database_cleaner
234
+ factory_girl (~> 2.6.1)
235
+ ffaker (>= 1.12.0)
236
+ fuubar
237
+ haml (~> 3.1.3)
238
+ headless
239
+ jquery-rails
240
+ paper_trail
241
+ paperclip (~> 2.5.2)
242
+ pg (~> 0.12.2)
243
+ prototype-rails
244
+ rails (~> 3.2.2)
245
+ ransack!
246
+ rspec-rails
247
+ ruby-debug
248
+ ruby-debug19
249
+ sass (~> 3.1.15)
250
+ sass-rails
251
+ simple_form (~> 1.5.2)
252
+ spork
253
+ steak
254
+ therubyracer
255
+ uglifier
256
+ will_paginate (~> 3.0.2)
data/Guardfile ADDED
@@ -0,0 +1,45 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rails', :timeout => 45, :server => :thin do
5
+ watch('Gemfile.lock')
6
+ watch(%r{^(config|lib)/.*})
7
+ end
8
+
9
+ # Necessary so that livereload can reload changed css
10
+ guard 'sass', :input => 'app/assets/stylesheets', :output => 'public/assets'
11
+
12
+ guard 'livereload' do
13
+ watch(%r{app/.+\.(erb|haml)})
14
+ watch(%r{app/helpers/.+\.rb})
15
+ watch(%r{(public/|app/assets).+\.(css|js|html)})
16
+ watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
17
+ watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
18
+ watch(%r{config/locales/.+\.yml})
19
+ end
20
+
21
+ guard 'spork', :wait => 60, :rspec_env => { 'RAILS_ENV' => 'test' } do
22
+ watch('config/application.rb')
23
+ watch('config/environment.rb')
24
+ watch(%r{^config/environments/.+\.rb$})
25
+ watch(%r{^config/initializers/.+\.rb$})
26
+ watch('Gemfile')
27
+ watch('Gemfile.lock')
28
+ watch('spec/spec_helper.rb') { :rspec }
29
+ end
30
+
31
+ guard 'rspec', :all_on_start => false, :all_after_pass => false, :cli => "--color --format nested --fail-fast --drb" do
32
+ watch(%r{^spec/.+_spec\.rb$})
33
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
34
+ watch('spec/spec_helper.rb') { "spec" }
35
+
36
+ # Rails example
37
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
38
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
39
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
40
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
41
+ watch('config/routes.rb') { "spec/routing" }
42
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
43
+ # Capybara request specs
44
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
45
+ end
data/LICENSE ADDED
@@ -0,0 +1,620 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+