fat_free_crm 0.15.0.beta.2 → 0.15.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 (225) hide show
  1. checksums.yaml +4 -4
  2. data/.docker/nginx/sites-enabled/ffcrm.conf +8 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +4 -1
  5. data/.rubocop_todo.yml +190 -89
  6. data/.travis.yml +10 -3
  7. data/CHANGELOG.md +27 -0
  8. data/{CONTRIBUTORS → CONTRIBUTORS.md} +2 -1
  9. data/Dockerfile +15 -13
  10. data/Gemfile +7 -4
  11. data/Gemfile.lock +200 -167
  12. data/README.md +4 -2
  13. data/app/assets/javascripts/crm_sortable.js.coffee +5 -0
  14. data/app/assets/javascripts/timeago.js.coffee +5 -0
  15. data/app/assets/stylesheets/about.css.scss +5 -0
  16. data/app/assets/stylesheets/common.scss +2 -1
  17. data/app/controllers/admin/fields_controller.rb +1 -1
  18. data/app/controllers/admin/groups_controller.rb +5 -1
  19. data/app/controllers/admin/tags_controller.rb +1 -1
  20. data/app/controllers/admin/users_controller.rb +10 -6
  21. data/app/controllers/application_controller.rb +13 -13
  22. data/app/controllers/authentications_controller.rb +2 -2
  23. data/app/controllers/comments_controller.rb +3 -2
  24. data/app/controllers/entities/contacts_controller.rb +9 -7
  25. data/app/controllers/entities/opportunities_controller.rb +1 -1
  26. data/app/controllers/entities_controller.rb +4 -4
  27. data/app/controllers/home_controller.rb +9 -9
  28. data/app/controllers/passwords_controller.rb +1 -1
  29. data/app/controllers/tasks_controller.rb +2 -1
  30. data/app/controllers/users_controller.rb +4 -2
  31. data/app/helpers/application_helper.rb +9 -9
  32. data/app/helpers/javascript_helper.rb +5 -0
  33. data/app/helpers/opportunities_helper.rb +1 -1
  34. data/app/helpers/remote_link_pagination_helper.rb +5 -0
  35. data/app/inputs/date_pair_input.rb +1 -1
  36. data/app/models/entities/account.rb +2 -2
  37. data/app/models/entities/account_contact.rb +1 -1
  38. data/app/models/entities/campaign.rb +3 -3
  39. data/app/models/entities/contact.rb +3 -3
  40. data/app/models/entities/lead.rb +2 -2
  41. data/app/models/entities/opportunity.rb +3 -3
  42. data/app/models/fields/custom_field.rb +1 -1
  43. data/app/models/fields/custom_field_pair.rb +2 -2
  44. data/app/models/fields/field.rb +1 -1
  45. data/app/models/polymorphic/address.rb +2 -2
  46. data/app/models/polymorphic/avatar.rb +4 -2
  47. data/app/models/polymorphic/email.rb +8 -6
  48. data/app/models/polymorphic/task.rb +3 -1
  49. data/app/models/polymorphic/version.rb +3 -3
  50. data/app/models/users/ability.rb +1 -1
  51. data/app/models/users/permission.rb +2 -0
  52. data/app/models/users/user.rb +2 -2
  53. data/app/views/accounts/index.js.haml +1 -1
  54. data/app/views/admin/fields/_sort_by.html.haml +1 -1
  55. data/app/views/admin/users/_user.html.haml +1 -1
  56. data/app/views/campaigns/index.js.haml +1 -1
  57. data/app/views/contacts/index.js.haml +1 -1
  58. data/app/views/entities/_basic_search.html.haml +1 -1
  59. data/app/views/home/_duration_menu.html.haml +1 -1
  60. data/app/views/home/_events_menu.html.haml +1 -1
  61. data/app/views/home/_users_menu.html.haml +1 -1
  62. data/app/views/layouts/application.html.haml +1 -1
  63. data/app/views/leads/index.js.haml +1 -1
  64. data/app/views/opportunities/index.js.haml +1 -1
  65. data/app/views/shared/_naming.html.haml +1 -1
  66. data/app/views/users/_languages.html.haml +1 -1
  67. data/config/application.rb +2 -3
  68. data/config/boot.rb +2 -0
  69. data/config/deploy.example.rb +1 -1
  70. data/config/environments/development.rb +2 -0
  71. data/config/environments/production.rb +1 -1
  72. data/config/environments/test.rb +2 -2
  73. data/config/initializers/assets.rb +6 -1
  74. data/config/initializers/backtrace_silencers.rb +5 -0
  75. data/config/initializers/constants.rb +1 -1
  76. data/config/initializers/cookies_serializer.rb +5 -0
  77. data/config/initializers/custom_field_ransack_translations.rb +5 -0
  78. data/config/initializers/filter_parameter_logging.rb +5 -0
  79. data/config/initializers/inflections.rb +5 -0
  80. data/config/initializers/paper_trail.rb +5 -0
  81. data/config/initializers/ransack.rb +3 -3
  82. data/config/initializers/session_store.rb +5 -0
  83. data/config/initializers/wrap_parameters.rb +5 -0
  84. data/config/locales/et.yml +207 -0
  85. data/config/locales/et_fat_free_crm.yml +928 -0
  86. data/config/locales/pt-BR_ransack.yml +81 -0
  87. data/config/locales/th.rb +1 -1
  88. data/config/routes.rb +18 -18
  89. data/db/migrate/20100928030598_create_sessions.rb +1 -1
  90. data/db/migrate/20100928030599_create_users.rb +2 -2
  91. data/db/migrate/20100928030600_create_openid_tables.rb +1 -1
  92. data/db/migrate/20100928030601_create_accounts.rb +2 -2
  93. data/db/migrate/20100928030602_create_permissions.rb +1 -1
  94. data/db/migrate/20100928030603_create_settings.rb +1 -1
  95. data/db/migrate/20100928030604_create_preferences.rb +2 -2
  96. data/db/migrate/20100928030605_create_campaigns.rb +2 -2
  97. data/db/migrate/20100928030606_create_leads.rb +2 -2
  98. data/db/migrate/20100928030607_create_contacts.rb +2 -2
  99. data/db/migrate/20100928030608_create_opportunities.rb +2 -2
  100. data/db/migrate/20100928030609_create_account_contacts.rb +1 -1
  101. data/db/migrate/20100928030610_create_account_opportunities.rb +1 -1
  102. data/db/migrate/20100928030611_create_contact_opportunities.rb +1 -1
  103. data/db/migrate/20100928030612_create_tasks.rb +2 -2
  104. data/db/migrate/20100928030613_create_comments.rb +1 -1
  105. data/db/migrate/20100928030614_create_activities.rb +1 -1
  106. data/db/migrate/20100928030615_create_avatars.rb +1 -1
  107. data/db/migrate/20100928030616_rename_remember_token.rb +1 -1
  108. data/db/migrate/20100928030617_drop_openid_tables.rb +1 -1
  109. data/db/migrate/20100928030618_add_admin_to_users.rb +1 -1
  110. data/db/migrate/20100928030619_add_suspended_to_users.rb +1 -1
  111. data/db/migrate/20100928030620_remove_uuid.rb +2 -2
  112. data/db/migrate/20100928030621_add_email_to_accounts.rb +1 -1
  113. data/db/migrate/20100928030622_add_background_info_to_models.rb +1 -1
  114. data/db/migrate/20100928030623_create_addresses.rb +2 -2
  115. data/db/migrate/20100928030624_add_index_on_permissions.rb +3 -3
  116. data/db/migrate/20100928030625_create_emails.rb +2 -2
  117. data/db/migrate/20100928030626_add_state_to_timeline_objects.rb +1 -1
  118. data/db/migrate/20100928030627_acts_as_taggable_on_migration.rb +2 -2
  119. data/db/migrate/20101221123456_add_single_access_token_to_users.rb +1 -1
  120. data/db/migrate/20101221345678_add_rating_and_category_to_accounts.rb +1 -1
  121. data/db/migrate/20110719082054_add_skype_to_contacts_and_leads.rb +1 -1
  122. data/db/migrate/20111101083437_create_fields.rb +1 -1
  123. data/db/migrate/20111101090312_create_field_groups.rb +1 -1
  124. data/db/migrate/20111116091952_add_field_groups_tag_id.rb +1 -1
  125. data/db/migrate/20111117041311_change_fields_collection_to_text.rb +1 -1
  126. data/db/migrate/20111201030535_add_field_groups_klass_name.rb +2 -2
  127. data/db/migrate/20120121054235_create_lists.rb +1 -1
  128. data/db/migrate/20120216031616_create_versions.rb +3 -3
  129. data/db/migrate/20120216042541_is_paranoid_to_paper_trail.rb +1 -1
  130. data/db/migrate/20120220233724_add_versions_object_changes.rb +1 -1
  131. data/db/migrate/20120224073107_remove_default_value_and_clear_settings.rb +1 -1
  132. data/db/migrate/20120309070209_add_versions_related.rb +1 -1
  133. data/db/migrate/20120314080441_add_subscribed_users_to_entities.rb +2 -2
  134. data/db/migrate/20120316045804_activities_to_versions.rb +1 -1
  135. data/db/migrate/20120405080727_change_subscribed_users_to_set.rb +1 -1
  136. data/db/migrate/20120405080742_change_further_subscribed_users_to_set.rb +2 -2
  137. data/db/migrate/20120406082136_create_groups.rb +2 -2
  138. data/db/migrate/20120413034923_add_index_on_versions_item_type.rb +1 -1
  139. data/db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb +3 -3
  140. data/db/migrate/20120528102124_increase_length_of_version_events.rb +1 -1
  141. data/db/migrate/20120801032706_add_pair_id_to_fields.rb +1 -1
  142. data/db/migrate/20121003063155_add_settings_to_custom_fields.rb +1 -1
  143. data/db/migrate/20121221033947_fix_country_mapping.rb +1 -1
  144. data/db/migrate/20131207033244_add_user_id_to_lists.rb +1 -1
  145. data/db/migrate/20140916011927_add_created_at_index_on_versions.rb +1 -1
  146. data/db/migrate/20140916012922_add_indexes_to_model_associations.rb +3 -3
  147. data/db/migrate/20141126031837_increase_email_to254_chars.rb +1 -1
  148. data/db/migrate/20141230021159_add_transaction_id_column_to_versions.rb +1 -1
  149. data/db/migrate/20141230205453_add_missing_unique_indices.acts_as_taggable_on_engine.rb +4 -4
  150. data/db/migrate/20141230205454_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +1 -1
  151. data/db/migrate/20141230205455_add_missing_taggable_index.acts_as_taggable_on_engine.rb +3 -3
  152. data/db/migrate/20150123060900_convert_radio_to_radio_buttons.rb +1 -1
  153. data/db/migrate/20150227123054_remove_last_request_at_from_users.rb +1 -1
  154. data/db/migrate/20150427131956_create_index_related_type.rb +3 -3
  155. data/db/migrate/20160511053730_add_account_contacts_index.rb +2 -2
  156. data/docker-compose.yml +17 -13
  157. data/fat_free_crm.gemspec +4 -6
  158. data/lib/development_tasks/license.rake +12 -9
  159. data/lib/fat_free_crm/callback.rb +4 -4
  160. data/lib/fat_free_crm/engine.rb +2 -2
  161. data/lib/fat_free_crm/exportable.rb +2 -2
  162. data/lib/fat_free_crm/fields.rb +2 -4
  163. data/lib/fat_free_crm/gem_ext.rb +0 -1
  164. data/lib/fat_free_crm/gem_ext/rake/task.rb +2 -0
  165. data/lib/fat_free_crm/mail_processor/base.rb +4 -4
  166. data/lib/fat_free_crm/mail_processor/dropbox.rb +1 -1
  167. data/lib/fat_free_crm/permissions.rb +5 -5
  168. data/lib/fat_free_crm/sortable.rb +1 -1
  169. data/lib/fat_free_crm/version.rb +1 -1
  170. data/lib/gravatar_image_tag.rb +1 -0
  171. data/lib/tasks/ffcrm/demo.rake +2 -2
  172. data/spec/controllers/admin/users_controller_spec.rb +25 -25
  173. data/spec/controllers/authentications_controller_spec.rb +9 -9
  174. data/spec/controllers/comments_controller_spec.rb +15 -15
  175. data/spec/controllers/emails_controller_spec.rb +2 -2
  176. data/spec/controllers/entities/accounts_controller_spec.rb +46 -46
  177. data/spec/controllers/entities/campaigns_controller_spec.rb +46 -46
  178. data/spec/controllers/entities/contacts_controller_spec.rb +55 -55
  179. data/spec/controllers/entities/leads_controller_spec.rb +85 -85
  180. data/spec/controllers/entities/opportunities_controller_spec.rb +74 -74
  181. data/spec/controllers/home_controller_spec.rb +11 -11
  182. data/spec/controllers/passwords_controller_spec.rb +2 -2
  183. data/spec/controllers/tasks_controller_spec.rb +37 -37
  184. data/spec/controllers/users_controller_spec.rb +31 -31
  185. data/spec/factories/campaign_factories.rb +1 -1
  186. data/spec/factories/contact_factories.rb +1 -1
  187. data/spec/factories/field_factories.rb +1 -1
  188. data/spec/factories/lead_factories.rb +2 -2
  189. data/spec/factories/opportunity_factories.rb +3 -3
  190. data/spec/factories/shared_factories.rb +1 -1
  191. data/spec/factories/task_factories.rb +1 -1
  192. data/spec/features/support/browser.rb +9 -1
  193. data/spec/lib/fields_spec.rb +2 -2
  194. data/spec/lib/permissions_spec.rb +38 -6
  195. data/spec/lib/view_factory_spec.rb +2 -2
  196. data/spec/models/fields/custom_field_spec.rb +3 -3
  197. data/spec/models/observers/entity_observer_spec.rb +1 -1
  198. data/spec/models/polymorphic/version_spec.rb +11 -11
  199. data/spec/models/users/abilities/user_ability_spec.rb +8 -3
  200. data/spec/models/users/permission_spec.rb +8 -0
  201. data/spec/models/users/user_spec.rb +1 -1
  202. data/spec/shared/controllers.rb +10 -10
  203. data/spec/spec_helper.rb +1 -1
  204. data/spec/views/accounts/index.haml_spec.rb +1 -1
  205. data/spec/views/accounts/update.js.haml_spec.rb +2 -2
  206. data/spec/views/admin/users/update.js.haml_spec.rb +2 -2
  207. data/spec/views/application/auto_complete.haml_spec.rb +1 -1
  208. data/spec/views/campaigns/index.haml_spec.rb +1 -1
  209. data/spec/views/campaigns/update.js.haml_spec.rb +2 -2
  210. data/spec/views/contacts/index.haml_spec.rb +1 -1
  211. data/spec/views/contacts/update.js.haml_spec.rb +2 -2
  212. data/spec/views/home/options.js.haml_spec.rb +1 -1
  213. data/spec/views/leads/index.haml_spec.rb +1 -1
  214. data/spec/views/leads/promote.js.haml_spec.rb +2 -2
  215. data/spec/views/leads/update.js.haml_spec.rb +2 -2
  216. data/spec/views/opportunities/index.haml_spec.rb +1 -1
  217. data/spec/views/opportunities/update.js.haml_spec.rb +1 -1
  218. data/spec/views/tasks/_edit.haml_spec.rb +2 -2
  219. data/spec/views/tasks/create.js.haml_spec.rb +2 -2
  220. data/spec/views/tasks/edit.js.haml_spec.rb +1 -1
  221. data/spec/views/users/change_password.js.haml_spec.rb +2 -2
  222. data/spec/views/users/update.js.haml_spec.rb +2 -2
  223. data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
  224. metadata +17 -20
  225. data/lib/fat_free_crm/gem_ext/active_record/schema_dumper.rb +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a0daf2ae9f97c0a4589f93b8cb3240f37bd57fe
4
- data.tar.gz: f3c2f54473fd92552500424d29605b56f59bf235
3
+ metadata.gz: f23d04dcf059d87a7027b7340dc046767f425b64
4
+ data.tar.gz: 65ad5db88d992575f8cf033791b04b334669a917
5
5
  SHA512:
6
- metadata.gz: bd15c7c1fd704bc6115d2c46e752fc738367fec631b5692c9b0391dfbf5c42d88d86ddf887f81c095638105c5e81e76ce77ab064467b837eac0289247c8d9aa9
7
- data.tar.gz: 05beea02b2e41b395f40d198a5035865c672e73cb4a21b28de22679bf219375cfb868c06c0c430cb90b54fa7c4c36342d8228a30e7d1148532dea8ae0cd58e21
6
+ metadata.gz: c266d6dae3bf677e4c280148ce503f174e06dd523f3fe6a215a400f88c16b8c6add97fad64d21624d9825bdcb18059590d68a892cbe81f240ecb243ddf8e5286
7
+ data.tar.gz: ce244aa509d3446d3033ea7831ffd5594e42d52533579de1f9a4522598aa5fdc728732b2398ba8ef6c5054c062698222b511b2dbfa3fecfb0ab93bbea1f4eb39
@@ -0,0 +1,8 @@
1
+ server {
2
+ listen 80;
3
+ server_name ffcrm.dev;
4
+ root /home/app/public;
5
+ passenger_enabled on;
6
+ passenger_user app;
7
+ passenger_ruby /usr/bin/ruby2.4;
8
+ }
data/.gitignore CHANGED
@@ -34,3 +34,5 @@ Design
34
34
  *~
35
35
  *.swp
36
36
  *.gem
37
+
38
+ .passenger
data/.rubocop.yml CHANGED
@@ -9,4 +9,7 @@ Metrics/LineLength:
9
9
  Enabled: false
10
10
 
11
11
  Style/MutableConstant:
12
- Enabled: false
12
+ Enabled: false
13
+
14
+ Style/SymbolArray:
15
+ EnforcedStyle: percent
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-02-10 17:37:37 +1030 using RuboCop version 0.47.0.
3
+ # on 2017-07-17 11:19:24 +0930 using RuboCop version 0.49.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -8,12 +8,133 @@
8
8
 
9
9
  # Offense count: 17
10
10
  # Cop supports --auto-correct.
11
- # Configuration parameters: Include.
11
+ # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
12
  # Include: **/Gemfile, **/gems.rb
13
13
  Bundler/OrderedGems:
14
14
  Exclude:
15
15
  - 'Gemfile'
16
16
 
17
+ # Offense count: 2
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
20
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
21
+ Layout/AlignParameters:
22
+ Exclude:
23
+ - 'app/views/leads/index.xls.builder'
24
+ - 'spec/views/leads/_sidebar_show.haml_spec.rb'
25
+
26
+ # Offense count: 28
27
+ # Cop supports --auto-correct.
28
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
29
+ # SupportedStyles: case, end
30
+ Layout/CaseIndentation:
31
+ Exclude:
32
+ - 'app/helpers/application_helper.rb'
33
+ - 'app/helpers/leads_helper.rb'
34
+ - 'app/models/polymorphic/task.rb'
35
+ - 'spec/controllers/tasks_controller_spec.rb'
36
+
37
+ # Offense count: 27
38
+ # Cop supports --auto-correct.
39
+ Layout/ClosingParenthesisIndentation:
40
+ Exclude:
41
+ - 'app/helpers/admin/application_helper.rb'
42
+ - 'app/helpers/application_helper.rb'
43
+ - 'app/helpers/leads_helper.rb'
44
+ - 'app/models/fields/custom_field.rb'
45
+ - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
46
+ - 'spec/models/entities/contact_spec.rb'
47
+ - 'spec/models/entities/opportunity_spec.rb'
48
+ - 'spec/models/polymorphic/version_spec.rb'
49
+ - 'spec/views/comments/edit.js.haml_spec.rb'
50
+
51
+ # Offense count: 3
52
+ # Cop supports --auto-correct.
53
+ Layout/EmptyLineAfterMagicComment:
54
+ Exclude:
55
+ - 'db/schema.rb'
56
+ - 'fat_free_crm.gemspec'
57
+ - 'spec/models/polymorphic/task_spec.rb'
58
+
59
+ # Offense count: 1
60
+ # Cop supports --auto-correct.
61
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
62
+ Exclude:
63
+ - 'app/controllers/comments_controller.rb'
64
+
65
+ # Offense count: 105
66
+ # Cop supports --auto-correct.
67
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
68
+ Layout/ExtraSpacing:
69
+ Enabled: false
70
+
71
+ # Offense count: 9
72
+ # Cop supports --auto-correct.
73
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
74
+ # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
75
+ Layout/FirstParameterIndentation:
76
+ Exclude:
77
+ - 'lib/fat_free_crm/mail_processor/base.rb'
78
+ - 'spec/models/entities/contact_spec.rb'
79
+ - 'spec/models/entities/opportunity_spec.rb'
80
+
81
+ # Offense count: 7
82
+ # Cop supports --auto-correct.
83
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
84
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
85
+ Layout/IndentHeredoc:
86
+ Exclude:
87
+ - 'spec/lib/mail_processor/sample_emails/dropbox.rb'
88
+
89
+ # Offense count: 2
90
+ # Cop supports --auto-correct.
91
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
92
+ # SupportedStyles: symmetrical, new_line, same_line
93
+ Layout/MultilineArrayBraceLayout:
94
+ Exclude:
95
+ - 'app/helpers/accounts_helper.rb'
96
+ - 'config/initializers/views.rb'
97
+
98
+ # Offense count: 20
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
101
+ # SupportedStyles: symmetrical, new_line, same_line
102
+ Layout/MultilineMethodCallBraceLayout:
103
+ Exclude:
104
+ - 'app/helpers/admin/application_helper.rb'
105
+ - 'app/helpers/application_helper.rb'
106
+ - 'app/helpers/leads_helper.rb'
107
+ - 'app/models/fields/custom_field.rb'
108
+ - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
109
+ - 'lib/fat_free_crm/mail_processor/base.rb'
110
+ - 'spec/models/polymorphic/version_spec.rb'
111
+ - 'spec/views/comments/edit.js.haml_spec.rb'
112
+
113
+ # Offense count: 2
114
+ # Cop supports --auto-correct.
115
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
116
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
117
+ Layout/MultilineMethodCallIndentation:
118
+ Exclude:
119
+ - 'lib/development_tasks/license.rake'
120
+ - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
121
+
122
+ # Offense count: 5
123
+ # Cop supports --auto-correct.
124
+ # Configuration parameters: AllowForAlignment.
125
+ Layout/SpaceAroundOperators:
126
+ Exclude:
127
+ - 'app/views/application/show.atom.builder'
128
+ - 'app/views/application/show.rss.builder'
129
+ - 'app/views/campaigns/index.xls.builder'
130
+
131
+ # Offense count: 1
132
+ # Cop supports --auto-correct.
133
+ # Configuration parameters: AllowForAlignment.
134
+ Layout/SpaceBeforeFirstArg:
135
+ Exclude:
136
+ - 'app/views/home/index.atom.builder'
137
+
17
138
  # Offense count: 20
18
139
  # Configuration parameters: AllowSafeAssignment.
19
140
  Lint/AssignmentInCondition:
@@ -50,6 +171,11 @@ Lint/RescueException:
50
171
  - 'lib/fat_free_crm/mail_processor/base.rb'
51
172
  - 'lib/tasks/ffcrm/update_data.rake'
52
173
 
174
+ # Offense count: 1
175
+ Lint/ScriptPermission:
176
+ Exclude:
177
+ - 'Rakefile'
178
+
53
179
  # Offense count: 4
54
180
  # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
55
181
  Lint/UselessAccessModifier:
@@ -59,16 +185,17 @@ Lint/UselessAccessModifier:
59
185
  - 'db/migrate/20100928030620_remove_uuid.rb'
60
186
  - 'lib/gravatar_image_tag.rb'
61
187
 
62
- # Offense count: 1
188
+ # Offense count: 3
63
189
  Lint/UselessAssignment:
64
190
  Exclude:
65
191
  - 'app/helpers/application_helper.rb'
192
+ - 'app/views/home/index.atom.builder'
66
193
 
67
194
  # Offense count: 131
68
195
  Metrics/AbcSize:
69
196
  Max: 55
70
197
 
71
- # Offense count: 267
198
+ # Offense count: 292
72
199
  # Configuration parameters: CountComments, ExcludedMethods.
73
200
  Metrics/BlockLength:
74
201
  Max: 775
@@ -101,6 +228,14 @@ Metrics/ModuleLength:
101
228
  Metrics/PerceivedComplexity:
102
229
  Max: 15
103
230
 
231
+ # Offense count: 3
232
+ # Cop supports --auto-correct.
233
+ Performance/CompareWithBlock:
234
+ Exclude:
235
+ - 'app/views/application/index.atom.builder'
236
+ - 'app/views/application/show.atom.builder'
237
+ - 'app/views/home/index.atom.builder'
238
+
104
239
  # Offense count: 1
105
240
  # Cop supports --auto-correct.
106
241
  # Configuration parameters: AutoCorrect.
@@ -161,14 +296,6 @@ Style/Alias:
161
296
  - 'lib/fat_free_crm/core_ext/string.rb'
162
297
  - 'spec/support/auth_macros.rb'
163
298
 
164
- # Offense count: 1
165
- # Cop supports --auto-correct.
166
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
167
- # SupportedStyles: with_first_parameter, with_fixed_indentation
168
- Style/AlignParameters:
169
- Exclude:
170
- - 'spec/views/leads/_sidebar_show.haml_spec.rb'
171
-
172
299
  # Offense count: 4
173
300
  # Cop supports --auto-correct.
174
301
  # Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -195,17 +322,6 @@ Style/CaseEquality:
195
322
  Exclude:
196
323
  - 'app/models/fields/field.rb'
197
324
 
198
- # Offense count: 28
199
- # Cop supports --auto-correct.
200
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
201
- # SupportedStyles: case, end
202
- Style/CaseIndentation:
203
- Exclude:
204
- - 'app/helpers/application_helper.rb'
205
- - 'app/helpers/leads_helper.rb'
206
- - 'app/models/polymorphic/task.rb'
207
- - 'spec/controllers/tasks_controller_spec.rb'
208
-
209
325
  # Offense count: 18
210
326
  # Configuration parameters: EnforcedStyle, SupportedStyles.
211
327
  # SupportedStyles: nested, compact
@@ -227,20 +343,6 @@ Style/ClassVars:
227
343
  - 'lib/fat_free_crm/tabs.rb'
228
344
  - 'lib/fat_free_crm/view_factory.rb'
229
345
 
230
- # Offense count: 27
231
- # Cop supports --auto-correct.
232
- Style/ClosingParenthesisIndentation:
233
- Exclude:
234
- - 'app/helpers/admin/application_helper.rb'
235
- - 'app/helpers/application_helper.rb'
236
- - 'app/helpers/leads_helper.rb'
237
- - 'app/models/fields/custom_field.rb'
238
- - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
239
- - 'spec/models/entities/contact_spec.rb'
240
- - 'spec/models/entities/opportunity_spec.rb'
241
- - 'spec/models/polymorphic/version_spec.rb'
242
- - 'spec/views/comments/edit.js.haml_spec.rb'
243
-
244
346
  # Offense count: 13
245
347
  # Cop supports --auto-correct.
246
348
  # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
@@ -290,30 +392,21 @@ Style/EmptyMethod:
290
392
  - 'db/migrate/20120316045804_activities_to_versions.rb'
291
393
  - 'db/migrate/20121221033947_fix_country_mapping.rb'
292
394
 
293
- # Offense count: 99
294
- # Cop supports --auto-correct.
295
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
296
- Style/ExtraSpacing:
297
- Enabled: false
298
-
299
- # Offense count: 9
300
- # Cop supports --auto-correct.
301
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
302
- # SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
303
- Style/FirstParameterIndentation:
304
- Exclude:
305
- - 'lib/fat_free_crm/mail_processor/base.rb'
306
- - 'spec/models/entities/contact_spec.rb'
307
- - 'spec/models/entities/opportunity_spec.rb'
308
-
309
395
  # Offense count: 1
396
+ # Cop supports --auto-correct.
310
397
  # Configuration parameters: EnforcedStyle, SupportedStyles.
311
398
  # SupportedStyles: format, sprintf, percent
312
399
  Style/FormatString:
313
400
  Exclude:
314
401
  - 'spec/factories/shared_factories.rb'
315
402
 
316
- # Offense count: 473
403
+ # Offense count: 29
404
+ # Configuration parameters: SupportedStyles.
405
+ # SupportedStyles: annotated, template
406
+ Style/FormatStringToken:
407
+ EnforcedStyle: template
408
+
409
+ # Offense count: 486
317
410
  # Cop supports --auto-correct.
318
411
  # Configuration parameters: EnforcedStyle, SupportedStyles.
319
412
  # SupportedStyles: when_needed, always, never
@@ -332,11 +425,33 @@ Style/GlobalVars:
332
425
  Style/GuardClause:
333
426
  Enabled: false
334
427
 
428
+ # Offense count: 7
429
+ # Cop supports --auto-correct.
430
+ # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
431
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
432
+ Style/HashSyntax:
433
+ Exclude:
434
+ - 'app/views/application/index.rss.builder'
435
+ - 'app/views/application/show.rss.builder'
436
+ - 'app/views/home/index.atom.builder'
437
+ - 'app/views/home/index.rss.builder'
438
+
335
439
  # Offense count: 2
336
440
  Style/IdenticalConditionalBranches:
337
441
  Exclude:
338
442
  - 'app/helpers/application_helper.rb'
339
443
 
444
+ # Offense count: 5
445
+ # Cop supports --auto-correct.
446
+ # Configuration parameters: InverseMethods, InverseBlocks.
447
+ Style/InverseMethods:
448
+ Exclude:
449
+ - 'app/models/entities/account.rb'
450
+ - 'app/models/entities/campaign.rb'
451
+ - 'app/models/entities/contact.rb'
452
+ - 'app/models/entities/lead.rb'
453
+ - 'app/models/entities/opportunity.rb'
454
+
340
455
  # Offense count: 16
341
456
  # Cop supports --auto-correct.
342
457
  # Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -357,56 +472,24 @@ Style/MethodMissing:
357
472
  - 'app/models/setting.rb'
358
473
  - 'lib/fat_free_crm/fields.rb'
359
474
 
360
- # Offense count: 2
361
- # Cop supports --auto-correct.
362
- # Configuration parameters: EnforcedStyle, SupportedStyles.
363
- # SupportedStyles: symmetrical, new_line, same_line
364
- Style/MultilineArrayBraceLayout:
365
- Exclude:
366
- - 'app/helpers/accounts_helper.rb'
367
- - 'config/initializers/views.rb'
368
-
369
475
  # Offense count: 2
370
476
  Style/MultilineBlockChain:
371
477
  Exclude:
372
478
  - 'lib/fat_free_crm/core_ext/string.rb'
373
479
  - 'lib/tasks/ffcrm/demo.rake'
374
480
 
375
- # Offense count: 20
376
- # Cop supports --auto-correct.
377
- # Configuration parameters: EnforcedStyle, SupportedStyles.
378
- # SupportedStyles: symmetrical, new_line, same_line
379
- Style/MultilineMethodCallBraceLayout:
380
- Exclude:
381
- - 'app/helpers/admin/application_helper.rb'
382
- - 'app/helpers/application_helper.rb'
383
- - 'app/helpers/leads_helper.rb'
384
- - 'app/models/fields/custom_field.rb'
385
- - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
386
- - 'lib/fat_free_crm/mail_processor/base.rb'
387
- - 'spec/models/polymorphic/version_spec.rb'
388
- - 'spec/views/comments/edit.js.haml_spec.rb'
389
-
390
481
  # Offense count: 2
391
482
  # Cop supports --auto-correct.
392
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
393
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
394
- Style/MultilineMethodCallIndentation:
483
+ Style/MultilineIfModifier:
395
484
  Exclude:
396
- - 'lib/development_tasks/license.rake'
397
- - 'lib/fat_free_crm/gem_ext/rails/engine.rb'
485
+ - 'app/views/application/index.atom.builder'
486
+ - 'app/views/application/show.atom.builder'
398
487
 
399
488
  # Offense count: 2
400
489
  Style/MultilineTernaryOperator:
401
490
  Exclude:
402
491
  - 'app/models/users/authentication.rb'
403
492
 
404
- # Offense count: 1
405
- # Cop supports --auto-correct.
406
- Style/NegatedIf:
407
- Exclude:
408
- - 'app/mailers/user_mailer.rb'
409
-
410
493
  # Offense count: 5
411
494
  # Cop supports --auto-correct.
412
495
  # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
@@ -420,6 +503,7 @@ Style/Next:
420
503
 
421
504
  # Offense count: 1
422
505
  # Cop supports --auto-correct.
506
+ # Configuration parameters: Strict.
423
507
  Style/NumericLiterals:
424
508
  MinDigits: 15
425
509
 
@@ -439,6 +523,12 @@ Style/NumericPredicate:
439
523
  - 'app/models/users/user.rb'
440
524
  - 'lib/tasks/ffcrm/demo.rake'
441
525
 
526
+ # Offense count: 190
527
+ # Cop supports --auto-correct.
528
+ # Configuration parameters: PreferredDelimiters.
529
+ Style/PercentLiteralDelimiters:
530
+ Enabled: false
531
+
442
532
  # Offense count: 4
443
533
  # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
444
534
  # NamePrefix: is_, has_, have_
@@ -501,6 +591,17 @@ Style/TrivialAccessors:
501
591
  Exclude:
502
592
  - 'spec/support/auth_macros.rb'
503
593
 
594
+ # Offense count: 6
595
+ # Cop supports --auto-correct.
596
+ Style/UnneededInterpolation:
597
+ Exclude:
598
+ - 'app/views/accounts/index.xls.builder'
599
+ - 'app/views/campaigns/index.xls.builder'
600
+ - 'app/views/contacts/index.xls.builder'
601
+ - 'app/views/leads/index.xls.builder'
602
+ - 'app/views/opportunities/index.xls.builder'
603
+ - 'app/views/tasks/index.xls.builder'
604
+
504
605
  # Offense count: 12
505
606
  # Configuration parameters: EnforcedStyle, SupportedStyles.
506
607
  # SupportedStyles: snake_case, normalcase, non_integer
data/.travis.yml CHANGED
@@ -3,10 +3,14 @@ language: ruby
3
3
  rvm:
4
4
  - 2.3.3
5
5
  # - 2.4.0
6
+
6
7
  env:
7
- - DB=mysql
8
- - DB=postgres
9
- - DB=sqlite
8
+ global:
9
+ - BROWSER=chrome
10
+ matrix:
11
+ - DB=mysql
12
+ - DB=postgres
13
+ - DB=sqlite
10
14
 
11
15
  matrix:
12
16
  exclude:
@@ -15,6 +19,9 @@ matrix:
15
19
  - rvm: 2.3.3
16
20
  env: DB=sqlite
17
21
 
22
+ addons:
23
+ chrome: stable
24
+
18
25
  bundler_args: --path=vendor/bundle --without heroku
19
26
 
20
27
  cache: bundler