fat_free_crm 0.17.2 → 0.19.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 +5 -5
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +71 -148
- data/.travis.yml +35 -14
- data/CHANGELOG.md +88 -5
- data/CONTRIBUTORS.md +96 -53
- data/Dockerfile +45 -14
- data/Gemfile +23 -13
- data/Gemfile.lock +249 -241
- data/Procfile +1 -1
- data/README.md +9 -6
- data/Rakefile +1 -1
- data/app/assets/javascripts/crm.js.coffee +3 -3
- data/app/assets/javascripts/crm_select2.js.coffee +15 -14
- data/app/assets/stylesheets/common.scss +1 -1
- data/app/controllers/admin/application_controller.rb +1 -1
- data/app/controllers/admin/field_groups_controller.rb +9 -4
- data/app/controllers/admin/fields_controller.rb +4 -4
- data/app/controllers/admin/groups_controller.rb +1 -1
- data/app/controllers/admin/tags_controller.rb +2 -4
- data/app/controllers/admin/users_controller.rb +5 -8
- data/app/controllers/application_controller.rb +22 -45
- data/app/controllers/comments_controller.rb +16 -11
- data/{config/initializers/authlogic.rb → app/controllers/confirmations_controller.rb} +4 -2
- data/app/controllers/emails_controller.rb +0 -2
- data/app/controllers/entities/accounts_controller.rb +1 -3
- data/app/controllers/entities/campaigns_controller.rb +8 -5
- data/app/controllers/entities/contacts_controller.rb +4 -24
- data/app/controllers/entities/leads_controller.rb +16 -12
- data/app/controllers/entities/opportunities_controller.rb +17 -16
- data/app/controllers/entities_controller.rb +31 -12
- data/app/controllers/home_controller.rb +2 -4
- data/app/controllers/lists_controller.rb +5 -1
- data/app/controllers/passwords_controller.rb +3 -59
- data/{spec/features/support/maintain_sessions.rb → app/controllers/registrations_controller.rb} +12 -5
- data/{lib/development_tasks/gem.rake → app/controllers/sessions_controller.rb} +6 -6
- data/app/controllers/tasks_controller.rb +22 -17
- data/app/controllers/users_controller.rb +8 -29
- data/app/helpers/accounts_helper.rb +1 -1
- data/app/helpers/admin/users_helper.rb +1 -1
- data/app/helpers/application_helper.rb +28 -33
- data/app/helpers/campaigns_helper.rb +1 -1
- data/app/helpers/contacts_helper.rb +1 -3
- data/app/helpers/leads_helper.rb +1 -1
- data/app/helpers/opportunities_helper.rb +48 -3
- data/app/helpers/tags_helper.rb +1 -1
- data/app/helpers/tasks_helper.rb +1 -1
- data/app/helpers/users_helper.rb +1 -3
- data/{config/initializers/paper_trail.rb → app/mailers/devise_mailer.rb} +5 -1
- data/app/mailers/user_mailer.rb +0 -9
- data/app/models/entities/account.rb +10 -10
- data/app/models/entities/campaign.rb +4 -6
- data/app/models/entities/contact.rb +24 -12
- data/app/models/entities/lead.rb +7 -14
- data/app/models/entities/opportunity.rb +10 -11
- data/app/models/fields/custom_field.rb +1 -0
- data/app/models/fields/custom_field_date_pair.rb +2 -0
- data/app/models/fields/field.rb +1 -3
- data/app/models/list.rb +1 -1
- data/app/models/observers/entity_observer.rb +3 -7
- data/app/models/observers/lead_observer.rb +2 -4
- data/app/models/observers/opportunity_observer.rb +5 -7
- data/app/models/observers/task_observer.rb +1 -1
- data/app/models/polymorphic/email.rb +2 -2
- data/app/models/polymorphic/task.rb +13 -9
- data/app/models/polymorphic/version.rb +3 -2
- data/app/models/setting.rb +2 -0
- data/app/models/users/ability.rb +3 -4
- data/app/models/users/permission.rb +3 -3
- data/app/models/users/preference.rb +2 -1
- data/app/models/users/user.rb +67 -42
- data/app/views/accounts/_top_section.html.haml +1 -1
- data/app/views/accounts/edit.js.haml +1 -1
- data/app/views/accounts/update.js.haml +2 -2
- data/app/views/admin/users/_user.html.haml +4 -4
- data/app/views/campaigns/_metrics.html.haml +3 -3
- data/app/views/contacts/_index_brief.html.haml +1 -1
- data/app/views/contacts/_index_full.html.haml +1 -1
- data/app/views/contacts/_index_long.html.haml +1 -1
- data/app/views/devise/confirmations/new.html.haml +9 -0
- data/app/views/devise/mailer/confirmation_instructions.html.haml +4 -0
- data/app/views/devise/mailer/password_change.html.haml +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
- data/app/views/devise/passwords/edit.html.haml +18 -0
- data/app/views/devise/passwords/new.html.haml +10 -0
- data/app/views/devise/registrations/new.html.haml +21 -0
- data/app/views/devise/sessions/new.html.haml +32 -0
- data/app/views/home/_opportunity.html.haml +4 -19
- data/app/views/layouts/_about.html.haml +5 -5
- data/app/views/layouts/_header.html.haml +3 -3
- data/app/views/layouts/admin/_header.html.haml +1 -1
- data/app/views/opportunities/_index_long.html.haml +1 -24
- data/app/views/opportunities/_sidebar_show.html.haml +3 -3
- data/app/views/opportunities/_top_section.html.haml +1 -1
- data/app/views/shared/_address.html.haml +5 -5
- data/app/views/shared/_paginate_with_per_page.html.haml +1 -0
- data/app/views/users/_avatar.html.haml +1 -1
- data/bin/bundle +1 -1
- data/bin/rails +1 -1
- data/bin/setup +38 -0
- data/bin/update +33 -0
- data/bin/yarn +13 -0
- data/config/application.rb +8 -6
- data/config/boot.rb +1 -1
- data/config/brakeman.ignore +2 -2
- data/config/database.postgres.docker.yml +5 -5
- data/config/environment.rb +1 -1
- data/config/environments/development.rb +1 -0
- data/config/environments/test.rb +7 -0
- data/config/initializers/action_mailer.rb +1 -3
- data/config/initializers/application_controller_renderer.rb +9 -0
- data/config/initializers/assets.rb +6 -11
- data/config/initializers/backtrace_silencers.rb +0 -6
- data/config/initializers/content_security_policy.rb +26 -0
- data/config/initializers/cookies_serializer.rb +3 -6
- data/config/initializers/devise.rb +289 -0
- data/config/initializers/filter_parameter_logging.rb +0 -5
- data/config/initializers/gravatar.rb +0 -1
- data/config/initializers/inflections.rb +0 -6
- data/config/initializers/mime_types.rb +1 -9
- data/config/initializers/new_framework_defaults_5_2.rb +40 -0
- data/config/initializers/relative_url_root.rb +1 -3
- data/config/initializers/session_store.rb +1 -3
- data/config/initializers/wrap_parameters.rb +4 -9
- data/config/locales/fat_free_crm.en-GB.yml +5 -5
- data/config/locales/fat_free_crm.en-US.yml +5 -5
- data/config/locales/fat_free_crm.fr.yml +1 -1
- data/config/locales/fat_free_crm.ru.yml +1 -0
- data/config/routes.rb +20 -9
- data/db/demo/users.yml +62 -81
- data/db/migrate/20100928030620_remove_uuid.rb +1 -2
- data/db/migrate/20120316045804_activities_to_versions.rb +1 -0
- data/db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb +1 -0
- data/db/migrate/20180107082701_authlogic_to_devise.rb +58 -0
- data/db/schema.rb +48 -46
- data/docker-compose.yml +10 -0
- data/fat_free_crm.gemspec +12 -14
- data/lib/development_tasks/license.rake +2 -2
- data/lib/fat_free_crm/callback.rb +2 -2
- data/lib/fat_free_crm/comment_extensions.rb +2 -4
- data/lib/fat_free_crm/core_ext/string.rb +1 -1
- data/lib/fat_free_crm/engine.rb +2 -2
- data/lib/fat_free_crm/errors.rb +1 -1
- data/lib/fat_free_crm/export_csv.rb +1 -0
- data/lib/fat_free_crm/exportable.rb +1 -1
- data/lib/fat_free_crm/fields.rb +2 -2
- data/lib/fat_free_crm/gem_dependencies.rb +1 -1
- data/lib/fat_free_crm/gem_ext/simple_form/action_view_extensions/form_helper.rb +1 -3
- data/lib/fat_free_crm/i18n.rb +2 -2
- data/lib/fat_free_crm/mail_processor/base.rb +4 -10
- data/lib/fat_free_crm/mail_processor/dropbox.rb +5 -15
- data/lib/fat_free_crm/permissions.rb +7 -18
- data/lib/fat_free_crm/sortable.rb +1 -1
- data/lib/fat_free_crm/tabs.rb +2 -2
- data/lib/fat_free_crm/version.rb +2 -2
- data/lib/gravatar_image_tag.rb +7 -8
- data/lib/missing_translation_detector.rb +1 -0
- data/lib/tasks/ffcrm/missing_translations.rake +1 -0
- data/lib/tasks/ffcrm/setup.rake +13 -4
- data/lib/tasks/ffcrm/update_data.rake +2 -2
- data/script/rails +2 -2
- data/spec/controllers/admin/users_controller_spec.rb +25 -81
- data/spec/controllers/comments_controller_spec.rb +19 -19
- data/spec/controllers/emails_controller_spec.rb +2 -2
- data/spec/controllers/entities/accounts_controller_spec.rb +56 -56
- data/spec/controllers/entities/campaigns_controller_spec.rb +66 -66
- data/spec/controllers/entities/contacts_controller_spec.rb +69 -68
- data/spec/controllers/entities/leads_controller_spec.rb +126 -126
- data/spec/controllers/entities/opportunities_controller_spec.rb +101 -101
- data/spec/controllers/entities_controller_spec.rb +5 -0
- data/spec/controllers/home_controller_spec.rb +30 -30
- data/spec/controllers/tasks_controller_spec.rb +42 -40
- data/spec/controllers/users_controller_spec.rb +43 -113
- data/spec/factories/account_factories.rb +13 -13
- data/spec/factories/campaign_factories.rb +8 -8
- data/spec/factories/contact_factories.rb +18 -18
- data/spec/factories/field_factories.rb +11 -10
- data/spec/factories/lead_factories.rb +13 -13
- data/spec/factories/list_factories.rb +3 -3
- data/spec/factories/opportunity_factories.rb +9 -9
- data/spec/factories/sequences.rb +1 -1
- data/spec/factories/setting_factories.rb +5 -5
- data/spec/factories/shared_factories.rb +25 -23
- data/spec/factories/subscription_factories.rb +1 -1
- data/spec/factories/tag_factories.rb +1 -1
- data/spec/factories/task_factories.rb +11 -11
- data/spec/factories/user_factories.rb +27 -30
- data/spec/features/accounts_spec.rb +17 -4
- data/spec/features/admin/groups_spec.rb +2 -2
- data/spec/features/admin/users_spec.rb +4 -2
- data/spec/features/campaigns_spec.rb +5 -5
- data/spec/features/contacts_spec.rb +11 -5
- data/spec/features/dashboard_spec.rb +8 -8
- data/spec/features/devise/sign_in_spec.rb +58 -0
- data/spec/features/devise/sign_up_spec.rb +36 -0
- data/spec/features/leads_spec.rb +5 -5
- data/spec/features/opportunities_overview_spec.rb +16 -16
- data/spec/features/opportunities_spec.rb +35 -9
- data/spec/features/support/autocomlete_helper.rb +17 -0
- data/spec/features/support/browser.rb +5 -9
- data/spec/features/tasks_spec.rb +5 -5
- data/spec/helpers/admin/field_groups_helper_spec.rb +1 -1
- data/spec/helpers/application_helper_spec.rb +1 -1
- data/spec/helpers/tasks_helper_spec.rb +1 -1
- data/spec/helpers/users_helper_spec.rb +7 -7
- data/spec/lib/comment_extensions_spec.rb +11 -5
- data/spec/lib/errors_spec.rb +2 -2
- data/spec/lib/mail_processor/base_spec.rb +3 -3
- data/spec/lib/mail_processor/comment_replies_spec.rb +3 -3
- data/spec/lib/mail_processor/dropbox_spec.rb +17 -17
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +8 -8
- data/spec/lib/permissions_spec.rb +15 -28
- data/spec/mailers/devise_mailer_spec.rb +35 -0
- data/spec/mailers/user_mailer_spec.rb +6 -32
- data/spec/models/entities/account_spec.rb +58 -32
- data/spec/models/entities/campaign_spec.rb +18 -25
- data/spec/models/entities/contact_spec.rb +113 -21
- data/spec/models/entities/lead_spec.rb +9 -11
- data/spec/models/entities/opportunity_spec.rb +45 -45
- data/spec/models/fields/custom_field_date_pair_spec.rb +4 -2
- data/spec/models/fields/custom_field_spec.rb +21 -19
- data/spec/models/list_spec.rb +2 -2
- data/spec/models/observers/entity_observer_spec.rb +7 -7
- data/spec/models/polymorphic/address_spec.rb +1 -1
- data/spec/models/polymorphic/avatar_spec.rb +5 -5
- data/spec/models/polymorphic/comment_spec.rb +5 -5
- data/spec/models/polymorphic/task_spec.rb +65 -58
- data/spec/models/polymorphic/version_spec.rb +31 -31
- data/spec/models/setting_spec.rb +2 -2
- data/spec/models/users/preference_spec.rb +6 -6
- data/spec/models/users/user_spec.rb +46 -50
- data/spec/routing/users_routing_spec.rb +30 -8
- data/spec/shared/controllers.rb +3 -9
- data/spec/shared/models.rb +22 -22
- data/spec/spec_helper.rb +12 -4
- data/spec/support/assert_select.rb +1 -0
- data/spec/support/devise_helpers.rb +28 -0
- data/spec/{features/support/helpers.rb → support/feature_helpers.rb} +11 -11
- data/spec/support/macros.rb +7 -4
- data/spec/views/accounts/_edit.haml_spec.rb +1 -1
- data/spec/views/accounts/create.js.haml_spec.rb +2 -2
- data/spec/views/accounts/destroy.js.haml_spec.rb +1 -1
- data/spec/views/accounts/edit.js.haml_spec.rb +2 -2
- data/spec/views/accounts/index.haml_spec.rb +2 -2
- data/spec/views/accounts/index.js.haml_spec.rb +1 -1
- data/spec/views/accounts/show.haml_spec.rb +4 -4
- data/spec/views/accounts/update.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/destroy.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +1 -1
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/create.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/destroy.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/edit.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/index.haml_spec.rb +1 -1
- data/spec/views/admin/users/index.js.haml_spec.rb +2 -2
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/suspend.js.haml_spec.rb +1 -1
- data/spec/views/admin/users/update.js.haml_spec.rb +1 -1
- data/spec/views/application/auto_complete.haml_spec.rb +3 -3
- data/spec/views/campaigns/_edit.haml_spec.rb +1 -1
- data/spec/views/campaigns/create.js.haml_spec.rb +3 -3
- data/spec/views/campaigns/destroy.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/edit.js.haml_spec.rb +2 -2
- data/spec/views/campaigns/index.haml_spec.rb +1 -1
- data/spec/views/campaigns/index.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/show.haml_spec.rb +4 -4
- data/spec/views/campaigns/update.js.haml_spec.rb +1 -1
- data/spec/views/contacts/_edit.haml_spec.rb +7 -7
- data/spec/views/contacts/_new.haml_spec.rb +1 -1
- data/spec/views/contacts/create.js.haml_spec.rb +4 -4
- data/spec/views/contacts/destroy.js.haml_spec.rb +1 -1
- data/spec/views/contacts/edit.js.haml_spec.rb +3 -3
- data/spec/views/contacts/index.haml_spec.rb +1 -1
- data/spec/views/contacts/index.js.html_spec.rb +1 -1
- data/spec/views/contacts/new.js.haml_spec.rb +1 -1
- data/spec/views/contacts/show.haml_spec.rb +3 -3
- data/spec/views/contacts/update.js.haml_spec.rb +3 -3
- data/spec/views/home/index.haml_spec.rb +1 -1
- data/spec/views/home/index.js.haml_spec.rb +1 -1
- data/spec/views/home/options.js.haml_spec.rb +2 -2
- data/spec/views/leads/_convert.haml_spec.rb +3 -3
- data/spec/views/leads/_edit.haml_spec.rb +2 -2
- data/spec/views/leads/_new.haml_spec.rb +2 -2
- data/spec/views/leads/_sidebar_show.haml_spec.rb +5 -5
- data/spec/views/leads/convert.js.haml_spec.rb +4 -4
- data/spec/views/leads/create.js.haml_spec.rb +5 -5
- data/spec/views/leads/destroy.js.haml_spec.rb +2 -2
- data/spec/views/leads/edit.js.haml_spec.rb +4 -4
- data/spec/views/leads/index.haml_spec.rb +1 -1
- data/spec/views/leads/index.js.haml_spec.rb +1 -1
- data/spec/views/leads/new.js.haml_spec.rb +1 -1
- data/spec/views/leads/promote.js.haml_spec.rb +7 -7
- data/spec/views/leads/reject.js.haml_spec.rb +2 -2
- data/spec/views/leads/show.haml_spec.rb +2 -2
- data/spec/views/leads/update.js.haml_spec.rb +4 -4
- data/spec/views/opportunities/_edit.haml_spec.rb +7 -7
- data/spec/views/opportunities/_new.haml_spec.rb +2 -2
- data/spec/views/opportunities/create.js.haml_spec.rb +6 -6
- data/spec/views/opportunities/destroy.js.haml_spec.rb +3 -3
- data/spec/views/opportunities/edit.js.haml_spec.rb +3 -3
- data/spec/views/opportunities/index.haml_spec.rb +1 -1
- data/spec/views/opportunities/index.js.haml_spec.rb +1 -1
- data/spec/views/opportunities/new.js.haml_spec.rb +1 -1
- data/spec/views/opportunities/show.haml_spec.rb +3 -3
- data/spec/views/opportunities/update.js.haml_spec.rb +5 -5
- data/spec/views/tasks/_edit.haml_spec.rb +1 -1
- data/spec/views/tasks/complete.js.haml_spec.rb +4 -4
- data/spec/views/tasks/create.js.haml_spec.rb +6 -6
- data/spec/views/tasks/destroy.js.haml_spec.rb +2 -2
- data/spec/views/tasks/index.haml_spec.rb +4 -4
- data/spec/views/tasks/new.js.haml_spec.rb +1 -1
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +2 -2
- data/spec/views/tasks/update.js.haml_spec.rb +18 -18
- data/spec/views/users/upload_avatar.js.haml_spec.rb +2 -2
- data/vendor/gems/ransack_ui-1.3.4/.gitignore +17 -0
- data/vendor/gems/ransack_ui-1.3.4/Gemfile +7 -0
- data/vendor/gems/ransack_ui-1.3.4/LICENSE.txt +22 -0
- data/vendor/gems/ransack_ui-1.3.4/README.md +57 -0
- data/vendor/gems/ransack_ui-1.3.4/Rakefile +1 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/images/ransack_ui/calendar.png +0 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/images/ransack_ui/delete.png +0 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/javascripts/ransack/predicates.js.coffee +41 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/javascripts/ransack_ui_bootstrap/button_group_select.js.coffee +26 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/javascripts/ransack_ui_bootstrap/index.js.coffee +2 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/javascripts/ransack_ui_jquery/index.js +2 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/javascripts/ransack_ui_jquery/search_form.js.coffee.erb +499 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/stylesheets/ransack_ui_bootstrap/index.css +3 -0
- data/vendor/gems/ransack_ui-1.3.4/app/assets/stylesheets/ransack_ui_bootstrap/search.css.scss +41 -0
- data/vendor/gems/ransack_ui-1.3.4/app/views/ransack_ui/_condition_fields.html.erb +15 -0
- data/vendor/gems/ransack_ui-1.3.4/app/views/ransack_ui/_grouping_fields.html.erb +16 -0
- data/vendor/gems/ransack_ui-1.3.4/app/views/ransack_ui/_search.html.erb +29 -0
- data/vendor/gems/ransack_ui-1.3.4/app/views/ransack_ui/_sort_fields.html.erb +4 -0
- data/vendor/gems/ransack_ui-1.3.4/config/locales/en.yml +24 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui.rb +9 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/adapters/active_record.rb +6 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/adapters/active_record/base.rb +46 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/controller_helpers.rb +18 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/rails/engine.rb +21 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/adapters/active_record/base.rb +47 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/configuration.rb +15 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/context.rb +9 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/helpers/form_builder.rb +262 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/nodes/attribute.rb +13 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/nodes/condition.rb +13 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/ransack_overrides/nodes/grouping.rb +20 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/version.rb +3 -0
- data/vendor/gems/ransack_ui-1.3.4/lib/ransack_ui/view_helpers.rb +30 -0
- data/vendor/gems/ransack_ui-1.3.4/ransack_ui.gemspec +23 -0
- metadata +83 -70
- data/app/controllers/authentications_controller.rb +0 -53
- data/app/models/users/authentication.rb +0 -56
- data/app/views/authentications/new.html.haml +0 -19
- data/app/views/passwords/edit.html.haml +0 -15
- data/app/views/passwords/new.html.haml +0 -10
- data/app/views/user_mailer/password_reset_instructions.html.haml +0 -6
- data/app/views/users/new.html.haml +0 -19
- data/spec/controllers/authentications_controller_spec.rb +0 -150
- data/spec/controllers/passwords_controller_spec.rb +0 -32
- data/spec/models/users/authentication_spec.rb +0 -19
- data/spec/support/auth_macros.rb +0 -49
- data/spec/views/authentications/new.haml_spec.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c70ae137e3796004c207daf7a71731df62247a1e7c1ce014031bd9c7d2112efa
|
4
|
+
data.tar.gz: be5a75fe0f33b761b47b185265f770e69f85d1e31b7f3a68594772e425931feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b6bdf7fdc54cbf917895c0ca6931d0206bb643c3250ab882002e731ca2f6845e25bdc23f7cf250c02a35c5eb2d735061384104640266617d60ed4d44a30f0a6
|
7
|
+
data.tar.gz: 307cb193b001c4e65f877bf50e5c9dd0bad7283b626877b7273c0ea984cbfbd996c868762fb74196ec56e7a1ab6bccbb46a8ee5e7f097e3c416ebad186dcf33a
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,16 +1,33 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2019-11-08 13:13:48 +1030 using RuboCop version 0.76.0.
|
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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
10
|
-
#
|
11
|
-
|
9
|
+
# Offense count: 2
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
12
|
+
Bundler/DuplicatedGem:
|
12
13
|
Exclude:
|
13
|
-
- '
|
14
|
+
- 'Gemfile'
|
15
|
+
|
16
|
+
# Offense count: 88
|
17
|
+
# Cop supports --auto-correct.
|
18
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
19
|
+
# SupportedHashRocketStyles: key, separator, table
|
20
|
+
# SupportedColonStyles: key, separator, table
|
21
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
22
|
+
Layout/AlignHash:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# Offense count: 22
|
26
|
+
# Cop supports --auto-correct.
|
27
|
+
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
28
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
29
|
+
Layout/EndAlignment:
|
30
|
+
Enabled: false
|
14
31
|
|
15
32
|
# Offense count: 7
|
16
33
|
# Cop supports --auto-correct.
|
@@ -21,7 +38,7 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
21
38
|
Exclude:
|
22
39
|
- 'db/seeds/fields.rb'
|
23
40
|
|
24
|
-
# Offense count:
|
41
|
+
# Offense count: 21
|
25
42
|
# Configuration parameters: AllowSafeAssignment.
|
26
43
|
Lint/AssignmentInCondition:
|
27
44
|
Enabled: false
|
@@ -36,14 +53,8 @@ Lint/DuplicateMethods:
|
|
36
53
|
Exclude:
|
37
54
|
- 'lib/gravatar_image_tag.rb'
|
38
55
|
|
39
|
-
# Offense count: 22
|
40
|
-
# Cop supports --auto-correct.
|
41
|
-
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect.
|
42
|
-
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
43
|
-
Lint/EndAlignment:
|
44
|
-
Enabled: false
|
45
|
-
|
46
56
|
# Offense count: 2
|
57
|
+
# Configuration parameters: AllowComments.
|
47
58
|
Lint/HandleExceptions:
|
48
59
|
Exclude:
|
49
60
|
- 'config/environments/test.rb'
|
@@ -55,12 +66,6 @@ Lint/ImplicitStringConcatenation:
|
|
55
66
|
- 'db/migrate/20121221033947_fix_country_mapping.rb'
|
56
67
|
- 'lib/tasks/ffcrm/update_data.rake'
|
57
68
|
|
58
|
-
# Offense count: 4
|
59
|
-
Lint/IneffectiveAccessModifier:
|
60
|
-
Exclude:
|
61
|
-
- 'db/migrate/20100928030620_remove_uuid.rb'
|
62
|
-
- 'lib/gravatar_image_tag.rb'
|
63
|
-
|
64
69
|
# Offense count: 5
|
65
70
|
Lint/RescueException:
|
66
71
|
Exclude:
|
@@ -78,22 +83,12 @@ Lint/UriEscapeUnescape:
|
|
78
83
|
Exclude:
|
79
84
|
- 'lib/gravatar_image_tag.rb'
|
80
85
|
|
81
|
-
# Offense count:
|
82
|
-
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
83
|
-
Lint/UselessAccessModifier:
|
84
|
-
Exclude:
|
85
|
-
- 'app/models/fields/field.rb'
|
86
|
-
- 'app/models/users/user.rb'
|
87
|
-
- 'db/migrate/20100928030620_remove_uuid.rb'
|
88
|
-
- 'lib/gravatar_image_tag.rb'
|
89
|
-
|
90
|
-
# Offense count: 3
|
86
|
+
# Offense count: 2
|
91
87
|
Lint/UselessAssignment:
|
92
88
|
Exclude:
|
93
|
-
- 'app/helpers/application_helper.rb'
|
94
89
|
- 'app/views/home/index.atom.builder'
|
95
90
|
|
96
|
-
# Offense count:
|
91
|
+
# Offense count: 133
|
97
92
|
Metrics/AbcSize:
|
98
93
|
Max: 57
|
99
94
|
|
@@ -105,23 +100,23 @@ Metrics/BlockNesting:
|
|
105
100
|
# Offense count: 14
|
106
101
|
# Configuration parameters: CountComments.
|
107
102
|
Metrics/ClassLength:
|
108
|
-
Max:
|
103
|
+
Max: 184
|
109
104
|
|
110
|
-
# Offense count:
|
105
|
+
# Offense count: 30
|
111
106
|
Metrics/CyclomaticComplexity:
|
112
107
|
Max: 14
|
113
108
|
|
114
109
|
# Offense count: 100
|
115
|
-
# Configuration parameters: CountComments.
|
110
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
116
111
|
Metrics/MethodLength:
|
117
|
-
Max:
|
112
|
+
Max: 36
|
118
113
|
|
119
114
|
# Offense count: 2
|
120
115
|
# Configuration parameters: CountComments.
|
121
116
|
Metrics/ModuleLength:
|
122
|
-
Max:
|
117
|
+
Max: 373
|
123
118
|
|
124
|
-
# Offense count:
|
119
|
+
# Offense count: 26
|
125
120
|
Metrics/PerceivedComplexity:
|
126
121
|
Max: 15
|
127
122
|
|
@@ -141,13 +136,6 @@ Naming/AccessorMethodName:
|
|
141
136
|
- 'spec/controllers/entities/opportunities_controller_spec.rb'
|
142
137
|
- 'spec/support/macros.rb'
|
143
138
|
|
144
|
-
# Offense count: 1
|
145
|
-
# Configuration parameters: Blacklist.
|
146
|
-
# Blacklist: END, (?-mix:EO[A-Z]{1})
|
147
|
-
Naming/HeredocDelimiterNaming:
|
148
|
-
Exclude:
|
149
|
-
- 'app/controllers/passwords_controller.rb'
|
150
|
-
|
151
139
|
# Offense count: 4
|
152
140
|
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
153
141
|
# NamePrefix: is_, has_, have_
|
@@ -162,32 +150,28 @@ Naming/PredicateName:
|
|
162
150
|
- 'lib/fat_free_crm/fields.rb'
|
163
151
|
- 'lib/fat_free_crm/mail_processor/base.rb'
|
164
152
|
|
165
|
-
# Offense count: 12
|
166
|
-
# Configuration parameters: EnforcedStyle.
|
167
|
-
# SupportedStyles: snake_case, normalcase, non_integer
|
168
|
-
Naming/VariableNumber:
|
169
|
-
Exclude:
|
170
|
-
- 'spec/controllers/home_controller_spec.rb'
|
171
|
-
|
172
153
|
# Offense count: 2
|
173
154
|
# Cop supports --auto-correct.
|
174
|
-
# Configuration parameters:
|
175
|
-
|
155
|
+
# Configuration parameters: PreferredName.
|
156
|
+
Naming/RescuedExceptionsVariableName:
|
176
157
|
Exclude:
|
177
|
-
- '
|
178
|
-
- 'lib/fat_free_crm/errors.rb'
|
158
|
+
- 'spec/support/assert_select.rb'
|
179
159
|
|
180
|
-
# Offense count:
|
181
|
-
#
|
182
|
-
#
|
183
|
-
|
160
|
+
# Offense count: 3
|
161
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
162
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
163
|
+
Naming/UncommunicativeMethodParamName:
|
184
164
|
Exclude:
|
185
|
-
- 'app/
|
165
|
+
- 'app/models/fields/field.rb'
|
166
|
+
- 'app/models/polymorphic/comment.rb'
|
167
|
+
- 'lib/missing_translation_detector.rb'
|
186
168
|
|
187
|
-
# Offense count:
|
188
|
-
|
169
|
+
# Offense count: 12
|
170
|
+
# Configuration parameters: EnforcedStyle.
|
171
|
+
# SupportedStyles: snake_case, normalcase, non_integer
|
172
|
+
Naming/VariableNumber:
|
189
173
|
Exclude:
|
190
|
-
- '
|
174
|
+
- 'spec/controllers/home_controller_spec.rb'
|
191
175
|
|
192
176
|
# Offense count: 1
|
193
177
|
Security/MarshalLoad:
|
@@ -221,23 +205,31 @@ Style/ClassVars:
|
|
221
205
|
- 'lib/fat_free_crm/tabs.rb'
|
222
206
|
- 'lib/fat_free_crm/view_factory.rb'
|
223
207
|
|
224
|
-
# Offense count:
|
208
|
+
# Offense count: 1
|
225
209
|
Style/CommentedKeyword:
|
226
210
|
Exclude:
|
227
|
-
- 'app/models/users/authentication.rb'
|
228
211
|
- 'db/migrate/20100928030617_drop_openid_tables.rb'
|
229
212
|
|
230
|
-
# Offense count:
|
213
|
+
# Offense count: 2
|
231
214
|
Style/DoubleNegation:
|
232
215
|
Exclude:
|
233
216
|
- 'app/helpers/application_helper.rb'
|
234
217
|
- 'app/models/polymorphic/task.rb'
|
235
|
-
- 'lib/gravatar_image_tag.rb'
|
236
218
|
|
237
219
|
# Offense count: 1
|
238
|
-
|
220
|
+
# Configuration parameters: EnforcedStyle.
|
221
|
+
# SupportedStyles: annotated, template, unannotated
|
222
|
+
Style/FormatStringToken:
|
223
|
+
Exclude:
|
224
|
+
- 'spec/factories/shared_factories.rb'
|
225
|
+
|
226
|
+
# Offense count: 1
|
227
|
+
# Cop supports --auto-correct.
|
228
|
+
# Configuration parameters: EnforcedStyle.
|
229
|
+
# SupportedStyles: always, never
|
230
|
+
Style/FrozenStringLiteralComment:
|
239
231
|
Exclude:
|
240
|
-
- '
|
232
|
+
- 'db/schema.rb'
|
241
233
|
|
242
234
|
# Offense count: 3
|
243
235
|
# Configuration parameters: AllowedVariables.
|
@@ -246,44 +238,22 @@ Style/GlobalVars:
|
|
246
238
|
- 'db/migrate/20100928030598_create_sessions.rb'
|
247
239
|
- 'db/migrate/20120510025219_add_not_null_constraints_for_timestamp_columns.rb'
|
248
240
|
|
249
|
-
# Offense count:
|
241
|
+
# Offense count: 28
|
250
242
|
# Configuration parameters: MinBodyLength.
|
251
243
|
Style/GuardClause:
|
252
244
|
Enabled: false
|
253
245
|
|
254
246
|
# Offense count: 2
|
255
|
-
Style/
|
256
|
-
Exclude:
|
257
|
-
- 'app/helpers/application_helper.rb'
|
258
|
-
|
259
|
-
# Offense count: 49
|
260
|
-
# Cop supports --auto-correct.
|
261
|
-
Style/IfUnlessModifier:
|
262
|
-
Enabled: false
|
263
|
-
|
264
|
-
# Offense count: 16
|
265
|
-
# Cop supports --auto-correct.
|
266
|
-
# Configuration parameters: EnforcedStyle.
|
267
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
268
|
-
Style/Lambda:
|
269
|
-
Exclude:
|
270
|
-
- 'app/models/entities/account.rb'
|
271
|
-
- 'app/models/entities/campaign.rb'
|
272
|
-
- 'app/models/entities/contact.rb'
|
273
|
-
- 'app/models/entities/lead.rb'
|
274
|
-
- 'app/models/entities/opportunity.rb'
|
275
|
-
- 'app/models/polymorphic/task.rb'
|
276
|
-
- 'app/models/users/user.rb'
|
277
|
-
|
278
|
-
# Offense count: 2
|
279
|
-
Style/MethodMissing:
|
247
|
+
Style/MissingRespondToMissing:
|
280
248
|
Exclude:
|
281
249
|
- 'app/models/setting.rb'
|
282
250
|
- 'lib/fat_free_crm/fields.rb'
|
283
251
|
|
284
|
-
# Offense count:
|
252
|
+
# Offense count: 3
|
285
253
|
Style/MixinUsage:
|
286
254
|
Exclude:
|
255
|
+
- 'bin/setup'
|
256
|
+
- 'bin/update'
|
287
257
|
- 'spec/helpers/fields_helper_spec.rb'
|
288
258
|
|
289
259
|
# Offense count: 2
|
@@ -292,66 +262,19 @@ Style/MultilineBlockChain:
|
|
292
262
|
- 'lib/fat_free_crm/core_ext/string.rb'
|
293
263
|
- 'lib/tasks/ffcrm/demo.rake'
|
294
264
|
|
295
|
-
# Offense count:
|
296
|
-
Style/
|
265
|
+
# Offense count: 1
|
266
|
+
Style/MultipleComparison:
|
297
267
|
Exclude:
|
298
|
-
- 'app/models/
|
268
|
+
- 'app/models/polymorphic/task.rb'
|
299
269
|
|
300
|
-
# Offense count:
|
270
|
+
# Offense count: 5
|
301
271
|
# Cop supports --auto-correct.
|
302
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
272
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
303
273
|
# SupportedStyles: predicate, comparison
|
304
274
|
Style/NumericPredicate:
|
305
275
|
Exclude:
|
306
276
|
- 'spec/**/*'
|
307
|
-
- 'app/helpers/admin/users_helper.rb'
|
308
|
-
- 'app/helpers/application_helper.rb'
|
309
|
-
- 'app/helpers/campaigns_helper.rb'
|
310
|
-
- 'app/helpers/tasks_helper.rb'
|
311
277
|
- 'app/models/fields/custom_field.rb'
|
312
278
|
- 'app/models/polymorphic/task.rb'
|
313
279
|
- 'app/models/users/user.rb'
|
314
280
|
- 'lib/tasks/ffcrm/demo.rake'
|
315
|
-
|
316
|
-
# Offense count: 16
|
317
|
-
# Cop supports --auto-correct.
|
318
|
-
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
319
|
-
# SupportedStyles: slashes, percent_r, mixed
|
320
|
-
Style/RegexpLiteral:
|
321
|
-
Exclude:
|
322
|
-
- 'app/controllers/entities/contacts_controller.rb'
|
323
|
-
- 'app/controllers/entities/opportunities_controller.rb'
|
324
|
-
- 'app/helpers/application_helper.rb'
|
325
|
-
- 'app/models/list.rb'
|
326
|
-
- 'lib/development_tasks/license.rake'
|
327
|
-
- 'lib/fat_free_crm/core_ext/string.rb'
|
328
|
-
- 'spec/helpers/users_helper_spec.rb'
|
329
|
-
- 'spec/lib/mail_processor/dropbox_spec.rb'
|
330
|
-
- 'spec/views/contacts/update.js.haml_spec.rb'
|
331
|
-
- 'spec/views/opportunities/update.js.haml_spec.rb'
|
332
|
-
|
333
|
-
# Offense count: 8
|
334
|
-
# Cop supports --auto-correct.
|
335
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
336
|
-
Style/Semicolon:
|
337
|
-
Exclude:
|
338
|
-
- 'app/controllers/entities/leads_controller.rb'
|
339
|
-
- 'lib/fat_free_crm/permissions.rb'
|
340
|
-
- 'lib/tasks/ffcrm/setup.rake'
|
341
|
-
- 'spec/models/fields/custom_field_date_pair_spec.rb'
|
342
|
-
- 'spec/models/fields/custom_field_spec.rb'
|
343
|
-
- 'spec/support/macros.rb'
|
344
|
-
|
345
|
-
# Offense count: 2
|
346
|
-
# Cop supports --auto-correct.
|
347
|
-
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
348
|
-
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
349
|
-
Style/TrivialAccessors:
|
350
|
-
Exclude:
|
351
|
-
- 'spec/support/auth_macros.rb'
|
352
|
-
|
353
|
-
# Offense count: 1922
|
354
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
355
|
-
# URISchemes: http, https
|
356
|
-
Metrics/LineLength:
|
357
|
-
Max: 390
|
data/.travis.yml
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
sudo: false
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
4
|
+
- 2.5.7
|
5
|
+
- 2.6.5
|
6
|
+
- 2.7.1
|
7
|
+
|
8
|
+
dist: bionic
|
6
9
|
|
7
10
|
env:
|
8
11
|
global:
|
@@ -11,21 +14,34 @@ env:
|
|
11
14
|
- DB=postgres TEST_SUITE=rubocop
|
12
15
|
- DB=postgres TEST_SUITE="rake spec:features"
|
13
16
|
- DB=postgres TEST_SUITE="rake spec:models"
|
14
|
-
- DB=postgres TEST_SUITE="rake spec:mailers"
|
15
|
-
- DB=postgres TEST_SUITE="rake spec:
|
16
|
-
- DB=postgres TEST_SUITE="rake spec:helpers"
|
17
|
-
- DB=postgres TEST_SUITE="rake spec:lib"
|
18
|
-
- DB=postgres TEST_SUITE="rake spec:routing"
|
19
|
-
- DB=postgres TEST_SUITE="rake spec:views"
|
17
|
+
- DB=postgres TEST_SUITE="rake spec:controllers spec:lib spec:routing spec:mailers"
|
18
|
+
- DB=postgres TEST_SUITE="rake spec:views spec:helpers"
|
20
19
|
- DB=mysql TEST_SUITE="rake spec:models"
|
21
20
|
- DB=sqlite TEST_SUITE="rake spec:models"
|
22
21
|
|
23
22
|
matrix:
|
24
23
|
fast_finish: true
|
24
|
+
exclude:
|
25
|
+
- rvm: 2.5.7
|
26
|
+
env: DB=postgres TEST_SUITE=rubocop
|
27
|
+
- rvm: 2.6.5
|
28
|
+
env: DB=postgres TEST_SUITE=rubocop
|
25
29
|
allow_failures:
|
26
|
-
- rvm: 2.
|
30
|
+
- rvm: 2.5.7
|
31
|
+
env: DB=postgres TEST_SUITE="rake spec:features"
|
32
|
+
- rvm: 2.6.5
|
33
|
+
env: DB=postgres TEST_SUITE="rake spec:features"
|
34
|
+
- rvm: 2.7.1
|
35
|
+
env: DB=postgres TEST_SUITE="rake spec:features"
|
36
|
+
- rvm: 2.5.7
|
37
|
+
env: DB=mysql TEST_SUITE="rake spec:models"
|
38
|
+
- rvm: 2.5.7
|
39
|
+
env: DB=sqlite TEST_SUITE="rake spec:models"
|
40
|
+
- rvm: 2.6.5
|
27
41
|
env: DB=sqlite TEST_SUITE="rake spec:models"
|
28
|
-
- rvm: 2.
|
42
|
+
- rvm: 2.7.1
|
43
|
+
env: DB=mysql TEST_SUITE="rake spec:models"
|
44
|
+
- rvm: 2.7.1
|
29
45
|
env: DB=sqlite TEST_SUITE="rake spec:models"
|
30
46
|
|
31
47
|
addons:
|
@@ -35,11 +51,10 @@ bundler_args: --path=vendor/bundle --without heroku
|
|
35
51
|
|
36
52
|
cache: bundler
|
37
53
|
|
38
|
-
before_install:
|
39
|
-
- "export DISPLAY=:99.0"
|
40
|
-
- "sh -e /etc/init.d/xvfb start"
|
41
|
-
|
42
54
|
before_script:
|
55
|
+
# gem update --system is a workaround for travis-ci/travis-ci#8978
|
56
|
+
- "gem update --system"
|
57
|
+
- 'gem install bundler -v 1.17.3'
|
43
58
|
- sh -c "cp config/database.$DB.yml config/database.yml"
|
44
59
|
- sh -c "if [ \"$DB\" = 'postgres' ]; then psql -c 'create database fat_free_crm_test;' -U postgres; fi"
|
45
60
|
- sh -c "if [ \"$DB\" = 'mysql' ]; then mysql -e 'create database fat_free_crm_test;'; fi"
|
@@ -56,3 +71,9 @@ notifications:
|
|
56
71
|
on_success: change # options: [always|never|change] default: always
|
57
72
|
on_failure: always # options: [always|never|change] default: always
|
58
73
|
on_start: false # default: false
|
74
|
+
|
75
|
+
dist: xenial
|
76
|
+
services:
|
77
|
+
- xvfb
|
78
|
+
- postgresql
|
79
|
+
- mysql
|