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.
- checksums.yaml +4 -4
- data/.docker/nginx/sites-enabled/ffcrm.conf +8 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +4 -1
- data/.rubocop_todo.yml +190 -89
- data/.travis.yml +10 -3
- data/CHANGELOG.md +27 -0
- data/{CONTRIBUTORS → CONTRIBUTORS.md} +2 -1
- data/Dockerfile +15 -13
- data/Gemfile +7 -4
- data/Gemfile.lock +200 -167
- data/README.md +4 -2
- data/app/assets/javascripts/crm_sortable.js.coffee +5 -0
- data/app/assets/javascripts/timeago.js.coffee +5 -0
- data/app/assets/stylesheets/about.css.scss +5 -0
- data/app/assets/stylesheets/common.scss +2 -1
- data/app/controllers/admin/fields_controller.rb +1 -1
- data/app/controllers/admin/groups_controller.rb +5 -1
- data/app/controllers/admin/tags_controller.rb +1 -1
- data/app/controllers/admin/users_controller.rb +10 -6
- data/app/controllers/application_controller.rb +13 -13
- data/app/controllers/authentications_controller.rb +2 -2
- data/app/controllers/comments_controller.rb +3 -2
- data/app/controllers/entities/contacts_controller.rb +9 -7
- data/app/controllers/entities/opportunities_controller.rb +1 -1
- data/app/controllers/entities_controller.rb +4 -4
- data/app/controllers/home_controller.rb +9 -9
- data/app/controllers/passwords_controller.rb +1 -1
- data/app/controllers/tasks_controller.rb +2 -1
- data/app/controllers/users_controller.rb +4 -2
- data/app/helpers/application_helper.rb +9 -9
- data/app/helpers/javascript_helper.rb +5 -0
- data/app/helpers/opportunities_helper.rb +1 -1
- data/app/helpers/remote_link_pagination_helper.rb +5 -0
- data/app/inputs/date_pair_input.rb +1 -1
- data/app/models/entities/account.rb +2 -2
- data/app/models/entities/account_contact.rb +1 -1
- data/app/models/entities/campaign.rb +3 -3
- data/app/models/entities/contact.rb +3 -3
- data/app/models/entities/lead.rb +2 -2
- data/app/models/entities/opportunity.rb +3 -3
- data/app/models/fields/custom_field.rb +1 -1
- data/app/models/fields/custom_field_pair.rb +2 -2
- data/app/models/fields/field.rb +1 -1
- data/app/models/polymorphic/address.rb +2 -2
- data/app/models/polymorphic/avatar.rb +4 -2
- data/app/models/polymorphic/email.rb +8 -6
- data/app/models/polymorphic/task.rb +3 -1
- data/app/models/polymorphic/version.rb +3 -3
- data/app/models/users/ability.rb +1 -1
- data/app/models/users/permission.rb +2 -0
- data/app/models/users/user.rb +2 -2
- data/app/views/accounts/index.js.haml +1 -1
- data/app/views/admin/fields/_sort_by.html.haml +1 -1
- data/app/views/admin/users/_user.html.haml +1 -1
- data/app/views/campaigns/index.js.haml +1 -1
- data/app/views/contacts/index.js.haml +1 -1
- data/app/views/entities/_basic_search.html.haml +1 -1
- data/app/views/home/_duration_menu.html.haml +1 -1
- data/app/views/home/_events_menu.html.haml +1 -1
- data/app/views/home/_users_menu.html.haml +1 -1
- data/app/views/layouts/application.html.haml +1 -1
- data/app/views/leads/index.js.haml +1 -1
- data/app/views/opportunities/index.js.haml +1 -1
- data/app/views/shared/_naming.html.haml +1 -1
- data/app/views/users/_languages.html.haml +1 -1
- data/config/application.rb +2 -3
- data/config/boot.rb +2 -0
- data/config/deploy.example.rb +1 -1
- data/config/environments/development.rb +2 -0
- data/config/environments/production.rb +1 -1
- data/config/environments/test.rb +2 -2
- data/config/initializers/assets.rb +6 -1
- data/config/initializers/backtrace_silencers.rb +5 -0
- data/config/initializers/constants.rb +1 -1
- data/config/initializers/cookies_serializer.rb +5 -0
- data/config/initializers/custom_field_ransack_translations.rb +5 -0
- data/config/initializers/filter_parameter_logging.rb +5 -0
- data/config/initializers/inflections.rb +5 -0
- data/config/initializers/paper_trail.rb +5 -0
- data/config/initializers/ransack.rb +3 -3
- data/config/initializers/session_store.rb +5 -0
- data/config/initializers/wrap_parameters.rb +5 -0
- data/config/locales/et.yml +207 -0
- data/config/locales/et_fat_free_crm.yml +928 -0
- data/config/locales/pt-BR_ransack.yml +81 -0
- data/config/locales/th.rb +1 -1
- data/config/routes.rb +18 -18
- data/db/migrate/20100928030598_create_sessions.rb +1 -1
- data/db/migrate/20100928030599_create_users.rb +2 -2
- data/db/migrate/20100928030600_create_openid_tables.rb +1 -1
- data/db/migrate/20100928030601_create_accounts.rb +2 -2
- data/db/migrate/20100928030602_create_permissions.rb +1 -1
- data/db/migrate/20100928030603_create_settings.rb +1 -1
- data/db/migrate/20100928030604_create_preferences.rb +2 -2
- data/db/migrate/20100928030605_create_campaigns.rb +2 -2
- data/db/migrate/20100928030606_create_leads.rb +2 -2
- data/db/migrate/20100928030607_create_contacts.rb +2 -2
- data/db/migrate/20100928030608_create_opportunities.rb +2 -2
- data/db/migrate/20100928030609_create_account_contacts.rb +1 -1
- data/db/migrate/20100928030610_create_account_opportunities.rb +1 -1
- data/db/migrate/20100928030611_create_contact_opportunities.rb +1 -1
- data/db/migrate/20100928030612_create_tasks.rb +2 -2
- data/db/migrate/20100928030613_create_comments.rb +1 -1
- data/db/migrate/20100928030614_create_activities.rb +1 -1
- data/db/migrate/20100928030615_create_avatars.rb +1 -1
- data/db/migrate/20100928030616_rename_remember_token.rb +1 -1
- data/db/migrate/20100928030617_drop_openid_tables.rb +1 -1
- data/db/migrate/20100928030618_add_admin_to_users.rb +1 -1
- data/db/migrate/20100928030619_add_suspended_to_users.rb +1 -1
- data/db/migrate/20100928030620_remove_uuid.rb +2 -2
- data/db/migrate/20100928030621_add_email_to_accounts.rb +1 -1
- data/db/migrate/20100928030622_add_background_info_to_models.rb +1 -1
- data/db/migrate/20100928030623_create_addresses.rb +2 -2
- data/db/migrate/20100928030624_add_index_on_permissions.rb +3 -3
- data/db/migrate/20100928030625_create_emails.rb +2 -2
- data/db/migrate/20100928030626_add_state_to_timeline_objects.rb +1 -1
- data/db/migrate/20100928030627_acts_as_taggable_on_migration.rb +2 -2
- data/db/migrate/20101221123456_add_single_access_token_to_users.rb +1 -1
- data/db/migrate/20101221345678_add_rating_and_category_to_accounts.rb +1 -1
- data/db/migrate/20110719082054_add_skype_to_contacts_and_leads.rb +1 -1
- data/db/migrate/20111101083437_create_fields.rb +1 -1
- data/db/migrate/20111101090312_create_field_groups.rb +1 -1
- data/db/migrate/20111116091952_add_field_groups_tag_id.rb +1 -1
- data/db/migrate/20111117041311_change_fields_collection_to_text.rb +1 -1
- data/db/migrate/20111201030535_add_field_groups_klass_name.rb +2 -2
- data/db/migrate/20120121054235_create_lists.rb +1 -1
- data/db/migrate/20120216031616_create_versions.rb +3 -3
- data/db/migrate/20120216042541_is_paranoid_to_paper_trail.rb +1 -1
- data/db/migrate/20120220233724_add_versions_object_changes.rb +1 -1
- data/db/migrate/20120224073107_remove_default_value_and_clear_settings.rb +1 -1
- data/db/migrate/20120309070209_add_versions_related.rb +1 -1
- data/db/migrate/20120314080441_add_subscribed_users_to_entities.rb +2 -2
- data/db/migrate/20120316045804_activities_to_versions.rb +1 -1
- data/db/migrate/20120405080727_change_subscribed_users_to_set.rb +1 -1
- data/db/migrate/20120405080742_change_further_subscribed_users_to_set.rb +2 -2
- data/db/migrate/20120406082136_create_groups.rb +2 -2
- data/db/migrate/20120413034923_add_index_on_versions_item_type.rb +1 -1
- data/db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb +3 -3
- data/db/migrate/20120528102124_increase_length_of_version_events.rb +1 -1
- data/db/migrate/20120801032706_add_pair_id_to_fields.rb +1 -1
- data/db/migrate/20121003063155_add_settings_to_custom_fields.rb +1 -1
- data/db/migrate/20121221033947_fix_country_mapping.rb +1 -1
- data/db/migrate/20131207033244_add_user_id_to_lists.rb +1 -1
- data/db/migrate/20140916011927_add_created_at_index_on_versions.rb +1 -1
- data/db/migrate/20140916012922_add_indexes_to_model_associations.rb +3 -3
- data/db/migrate/20141126031837_increase_email_to254_chars.rb +1 -1
- data/db/migrate/20141230021159_add_transaction_id_column_to_versions.rb +1 -1
- data/db/migrate/20141230205453_add_missing_unique_indices.acts_as_taggable_on_engine.rb +4 -4
- data/db/migrate/20141230205454_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +1 -1
- data/db/migrate/20141230205455_add_missing_taggable_index.acts_as_taggable_on_engine.rb +3 -3
- data/db/migrate/20150123060900_convert_radio_to_radio_buttons.rb +1 -1
- data/db/migrate/20150227123054_remove_last_request_at_from_users.rb +1 -1
- data/db/migrate/20150427131956_create_index_related_type.rb +3 -3
- data/db/migrate/20160511053730_add_account_contacts_index.rb +2 -2
- data/docker-compose.yml +17 -13
- data/fat_free_crm.gemspec +4 -6
- data/lib/development_tasks/license.rake +12 -9
- data/lib/fat_free_crm/callback.rb +4 -4
- data/lib/fat_free_crm/engine.rb +2 -2
- data/lib/fat_free_crm/exportable.rb +2 -2
- data/lib/fat_free_crm/fields.rb +2 -4
- data/lib/fat_free_crm/gem_ext.rb +0 -1
- data/lib/fat_free_crm/gem_ext/rake/task.rb +2 -0
- data/lib/fat_free_crm/mail_processor/base.rb +4 -4
- data/lib/fat_free_crm/mail_processor/dropbox.rb +1 -1
- data/lib/fat_free_crm/permissions.rb +5 -5
- data/lib/fat_free_crm/sortable.rb +1 -1
- data/lib/fat_free_crm/version.rb +1 -1
- data/lib/gravatar_image_tag.rb +1 -0
- data/lib/tasks/ffcrm/demo.rake +2 -2
- data/spec/controllers/admin/users_controller_spec.rb +25 -25
- data/spec/controllers/authentications_controller_spec.rb +9 -9
- data/spec/controllers/comments_controller_spec.rb +15 -15
- data/spec/controllers/emails_controller_spec.rb +2 -2
- data/spec/controllers/entities/accounts_controller_spec.rb +46 -46
- data/spec/controllers/entities/campaigns_controller_spec.rb +46 -46
- data/spec/controllers/entities/contacts_controller_spec.rb +55 -55
- data/spec/controllers/entities/leads_controller_spec.rb +85 -85
- data/spec/controllers/entities/opportunities_controller_spec.rb +74 -74
- data/spec/controllers/home_controller_spec.rb +11 -11
- data/spec/controllers/passwords_controller_spec.rb +2 -2
- data/spec/controllers/tasks_controller_spec.rb +37 -37
- data/spec/controllers/users_controller_spec.rb +31 -31
- data/spec/factories/campaign_factories.rb +1 -1
- data/spec/factories/contact_factories.rb +1 -1
- data/spec/factories/field_factories.rb +1 -1
- data/spec/factories/lead_factories.rb +2 -2
- data/spec/factories/opportunity_factories.rb +3 -3
- data/spec/factories/shared_factories.rb +1 -1
- data/spec/factories/task_factories.rb +1 -1
- data/spec/features/support/browser.rb +9 -1
- data/spec/lib/fields_spec.rb +2 -2
- data/spec/lib/permissions_spec.rb +38 -6
- data/spec/lib/view_factory_spec.rb +2 -2
- data/spec/models/fields/custom_field_spec.rb +3 -3
- data/spec/models/observers/entity_observer_spec.rb +1 -1
- data/spec/models/polymorphic/version_spec.rb +11 -11
- data/spec/models/users/abilities/user_ability_spec.rb +8 -3
- data/spec/models/users/permission_spec.rb +8 -0
- data/spec/models/users/user_spec.rb +1 -1
- data/spec/shared/controllers.rb +10 -10
- data/spec/spec_helper.rb +1 -1
- data/spec/views/accounts/index.haml_spec.rb +1 -1
- data/spec/views/accounts/update.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/update.js.haml_spec.rb +2 -2
- data/spec/views/application/auto_complete.haml_spec.rb +1 -1
- data/spec/views/campaigns/index.haml_spec.rb +1 -1
- data/spec/views/campaigns/update.js.haml_spec.rb +2 -2
- data/spec/views/contacts/index.haml_spec.rb +1 -1
- data/spec/views/contacts/update.js.haml_spec.rb +2 -2
- data/spec/views/home/options.js.haml_spec.rb +1 -1
- data/spec/views/leads/index.haml_spec.rb +1 -1
- data/spec/views/leads/promote.js.haml_spec.rb +2 -2
- data/spec/views/leads/update.js.haml_spec.rb +2 -2
- data/spec/views/opportunities/index.haml_spec.rb +1 -1
- data/spec/views/opportunities/update.js.haml_spec.rb +1 -1
- data/spec/views/tasks/_edit.haml_spec.rb +2 -2
- data/spec/views/tasks/create.js.haml_spec.rb +2 -2
- data/spec/views/tasks/edit.js.haml_spec.rb +1 -1
- data/spec/views/users/change_password.js.haml_spec.rb +2 -2
- data/spec/views/users/update.js.haml_spec.rb +2 -2
- data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
- metadata +17 -20
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23d04dcf059d87a7027b7340dc046767f425b64
|
4
|
+
data.tar.gz: 65ad5db88d992575f8cf033791b04b334669a917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c266d6dae3bf677e4c280148ce503f174e06dd523f3fe6a215a400f88c16b8c6add97fad64d21624d9825bdcb18059590d68a892cbe81f240ecb243ddf8e5286
|
7
|
+
data.tar.gz: ce244aa509d3446d3033ea7831ffd5594e42d52533579de1f9a4522598aa5fdc728732b2398ba8ef6c5054c062698222b511b2dbfa3fecfb0ab93bbea1f4eb39
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
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-
|
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:
|
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:
|
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:
|
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
|
-
|
393
|
-
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
394
|
-
Style/MultilineMethodCallIndentation:
|
483
|
+
Style/MultilineIfModifier:
|
395
484
|
Exclude:
|
396
|
-
- '
|
397
|
-
- '
|
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
|
-
|
8
|
-
|
9
|
-
|
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
|