fat_free_crm 0.17.3 → 0.19.2
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/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +71 -148
- data/.travis.yml +35 -14
- data/CHANGELOG.md +92 -6
- data/CONTRIBUTORS.md +96 -53
- data/Dockerfile +45 -14
- data/Gemfile +23 -13
- data/Gemfile.lock +256 -248
- 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/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/_empty.html.haml +1 -1
- 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 +3 -3
- 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 +4 -4
- data/spec/views/campaigns/destroy.js.haml_spec.rb +1 -1
- data/spec/views/campaigns/edit.js.haml_spec.rb +4 -4
- data/spec/views/campaigns/index.haml_spec.rb +1 -1
- data/spec/views/campaigns/index.js.haml_spec.rb +2 -2
- data/spec/views/campaigns/show.haml_spec.rb +4 -4
- data/spec/views/campaigns/update.js.haml_spec.rb +2 -2
- 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 +5 -5
- data/spec/views/contacts/destroy.js.haml_spec.rb +1 -1
- data/spec/views/contacts/edit.js.haml_spec.rb +4 -4
- data/spec/views/contacts/index.haml_spec.rb +1 -1
- data/spec/views/contacts/index.js.html_spec.rb +2 -2
- 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 +5 -5
- 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
- metadata +49 -71
- 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
data/CHANGELOG.md
CHANGED
@@ -4,29 +4,115 @@ It does not matter how slowly you go as long as you do not stop.
|
|
4
4
|
First they ignore you, then they laugh at you, then they fight you,
|
5
5
|
then you win. –- Mahatma Gandhi
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
Wed May 09, 2021 (0.19.2)
|
8
|
+
======
|
9
|
+
CVE-2021-22885
|
10
|
+
|
11
|
+
Wed Apr 04, 2021 (0.19.1)
|
12
|
+
======
|
13
|
+
|
14
|
+
Minor gem updates
|
15
|
+
|
16
|
+
Wed Apr 04, 2021 (0.19.0)
|
17
|
+
======
|
18
|
+
|
19
|
+
### Important changes
|
9
20
|
|
10
21
|
#### Fixed XSS flaw in tags_helper
|
11
22
|
Credit Antonin Steinhauser (asteinhauser) for discovery and responsible disclosure.
|
12
23
|
|
24
|
+
#### Devise replaces Authlogic for user authentication
|
25
|
+
Ticket #742 replaces Authlogic with the latest Devise (4.3.0) which has wider adoption.
|
26
|
+
This change requires a database migration on the User model. Please note:
|
27
|
+
- Most User fields are renamed and can hence be rolled back. Existing Authlogic passwords will continue to work.
|
28
|
+
- Users will be forced logged out. Existing user sessions will not be kept and the fields `persistence_token, single_access_token, perishable_token` will be dropped from the database.
|
29
|
+
- Though the migration is generally safe **we recommend to make a backup of your database** before migrating.
|
30
|
+
|
31
|
+
#### Existing OAuth broken
|
32
|
+
The Devise change will break any OAuth login plugins which depend on Authlogic.
|
33
|
+
You can [configure OAuth for Devise using the guides here](https://github.com/plataformatec/devise/wiki/omniauth:-overview).
|
34
|
+
|
35
|
+
#### Login and user-related routes changed
|
36
|
+
The login URL routes have been changed to use the defaults of Devise.
|
37
|
+
|
38
|
+
#### User mailers changed
|
39
|
+
Mailers related to user password reset, etc. are changed to use the defaults of Devise.
|
40
|
+
|
41
|
+
#### PaperClip version updated from 5.2.1 to 6.0.0
|
42
|
+
PaperClip now only depends on `aws-sdk-s3` instead of `aws-sdk`. For more info see https://github.com/thoughtbot/paperclip/pull/2481.
|
43
|
+
Replace the Cocaine gem with Terrapin. https://github.com/thoughtbot/terrapin/ Apart from the namespace change, this is a drop in replacement.
|
44
|
+
|
45
|
+
#### Rails 5.2
|
46
|
+
The underlying framework is now rails 5.2.*
|
47
|
+
|
48
|
+
#### Ruby 2.4 deprecated
|
49
|
+
Ruby 2.4 has reached end of life and is no longer activity tested against.
|
50
|
+
|
51
|
+
#### Other changes
|
52
|
+
* #794 Fix defect with unpermitted params in advanced search
|
53
|
+
* 2bc6184779a26070496e6f4caefa0cc9ba555d7b Remove broken support for delete links on arrays.
|
54
|
+
* #851 upgrade paper_trail
|
55
|
+
* Security fixes CVE-2019-16109, CVE-2019-16676, CVE-2019-5477, CVE-2019-16892
|
56
|
+
* Dependency updates
|
57
|
+
|
58
|
+
|
59
|
+
Sat Apr 21, 2018 (0.18.0)
|
60
|
+
---------------------------------------------------------------------
|
61
|
+
|
62
|
+
### Important changes
|
63
|
+
|
64
|
+
#### Minimum Ruby version
|
65
|
+
#665 Support for Ruby 2.3 has been dropped, with test coverage for 2.4 and 2.5 enabled.
|
66
|
+
|
67
|
+
#### Swap to FactoryBot
|
68
|
+
If you consume fat free crm as an engine and re-use any factories, you'll need to [upgrade to FactoryBot](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md).
|
69
|
+
|
70
|
+
#### Removed methods
|
71
|
+
`Lead.update_with_permissions` is removed, use user_ids and group_ids inside attributes instead and call lead.update_with_account_and_lead_counters
|
72
|
+
`FatFreeCRM::Permissions.save_with_permissions` is removed, use user_ids and group_ids inside attributes and call save
|
73
|
+
`FatFreeCRM::Permissions.update_with_permissions` is removed, use user_ids and group_ids inside attributes and call update_attributes
|
74
|
+
|
75
|
+
#### Other changes
|
76
|
+
- CVE-2018-8048 (loofah gem)
|
77
|
+
- CVE-2018-3741 (rails-html-sanitizer gem)
|
78
|
+
- #768 Fix comment creation on entities
|
79
|
+
- #762 #764 Fix bug in select menu
|
80
|
+
- #759 Improve zero revenue display
|
81
|
+
- #753 Opportunities sort by weighted amount
|
82
|
+
- #749 Fix unsafe reflection and mass assignment
|
83
|
+
|
13
84
|
Wed Jan 24, 2018 (0.17.2)
|
14
85
|
---------------------------------------------------------------------
|
15
|
-
-
|
16
|
-
-
|
86
|
+
- CVE-2017-0889
|
87
|
+
- #724 Fixes #589 Autocomplete regression
|
88
|
+
- #723 Fixes #687 Passing string to define a callback is not supported.
|
17
89
|
|
18
|
-
|
90
|
+
Wed Jan 24, 2018 (0.16.3)
|
19
91
|
---------------------------------------------------------------------
|
20
|
-
|
92
|
+
CVE-2017-0889
|
93
|
+
|
94
|
+
Wed Jan 24, 2018 (0.15.1)
|
95
|
+
---------------------------------------------------------------------
|
96
|
+
CVE-2017-0889
|
97
|
+
|
98
|
+
Wed Jan 24, 2018 (0.14.1)
|
99
|
+
---------------------------------------------------------------------
|
100
|
+
CVE-2017-0889
|
21
101
|
|
22
102
|
Sat Jan 20, 2018 (0.17.1)
|
23
103
|
---------------------------------------------------------------------
|
24
104
|
- #709 Revert accidental minimum ruby version 2.4 changes (#665)
|
105
|
+
- Fix #687 Passing string to define a callback is not supported.
|
106
|
+
|
107
|
+
Mon Jan 22, 2018 (0.16.2)
|
108
|
+
---------------------------------------------------------------------
|
109
|
+
Fix #687
|
25
110
|
|
26
111
|
Sat Jan 20, 2018 (0.17.0)
|
27
112
|
---------------------------------------------------------------------
|
28
113
|
|
29
114
|
### Important changes
|
115
|
+
|
30
116
|
#### Select2 for select boxes
|
31
117
|
This release replaces [Chozen](https://harvesthq.github.io/chosen/) with [Select2](https://select2.org/) consistently across the app.
|
32
118
|
This may break plugins which rely on Chozen. To fix any issues please
|
data/CONTRIBUTORS.md
CHANGED
@@ -2,91 +2,134 @@ The following people have contributed code, patches, bug fixes, and language
|
|
2
2
|
translations to the Fat Free CRM:
|
3
3
|
|
4
4
|
* Aaron Brethorst
|
5
|
+
* Adis Osmonov ªº
|
5
6
|
* Adrian Klingel
|
6
|
-
*
|
7
|
+
* Ain Tohvri
|
8
|
+
* Alejandro
|
9
|
+
* Aleksander Madland Stapnes
|
10
|
+
* Alexander Kabanov
|
7
11
|
* Alex Tomlins
|
8
|
-
*
|
9
|
-
*
|
10
|
-
*
|
11
|
-
*
|
12
|
-
*
|
12
|
+
* AndrewsHerrera
|
13
|
+
* Anton Oslyak
|
14
|
+
* Antonin Steinhauser
|
15
|
+
* Apirak
|
16
|
+
* Apirak Panatkool
|
17
|
+
* Ashwin Phatak
|
18
|
+
* Avery Pennarun
|
19
|
+
* Ben Tillman
|
13
20
|
* Brook
|
14
|
-
*
|
21
|
+
* Bryan Helmkamp
|
15
22
|
* Chris Carter
|
16
23
|
* Codemis
|
17
|
-
*
|
18
|
-
* Daniel Jabbour
|
19
|
-
* Daniel O'Connor
|
24
|
+
* Cody Swann
|
25
|
+
* Daniel Jabbour
|
26
|
+
* Daniel O'Connor
|
27
|
+
* Danilo Lacoste
|
28
|
+
* David Chua
|
20
29
|
* David Cornu
|
21
30
|
* David Keita
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
31
|
+
* David Westerink
|
32
|
+
* deppbot
|
33
|
+
* Dirk Kelly
|
34
|
+
* DmitriySalko
|
35
|
+
* Dmitry
|
36
|
+
* Dmitry Avramets
|
37
|
+
* Dmitry Dudin
|
38
|
+
* Douglas Campos
|
25
39
|
* Drew Neil
|
26
|
-
* Dr. Nic Williams (Australia)
|
27
40
|
* dup2
|
28
|
-
* Elad Meidar (Israel)
|
29
41
|
* Electron-libre
|
30
|
-
* Enderson Maia
|
31
|
-
* Eric
|
32
|
-
*
|
33
|
-
* Fritz Thielemann
|
34
|
-
*
|
42
|
+
* Enderson Maia
|
43
|
+
* Eric Shelley
|
44
|
+
* François Koessler
|
45
|
+
* Fritz Thielemann
|
46
|
+
* Gaston Arbeletche -VAIRIX-
|
47
|
+
* Gavin Baker
|
48
|
+
* Grzegorz Unijewski
|
35
49
|
* guesxy
|
36
|
-
*
|
37
|
-
*
|
38
|
-
* James Zhang (China)
|
50
|
+
* James Cook
|
51
|
+
* James Zhang
|
39
52
|
* Jan Schulz-Hofen
|
40
|
-
* Jim Gay
|
41
|
-
*
|
53
|
+
* Jim Gay
|
54
|
+
* johnnyshields
|
55
|
+
* Johnny Shields
|
56
|
+
* John W. M. Carneiro
|
42
57
|
* Josef Chmel
|
43
|
-
*
|
58
|
+
* jose-gordo
|
59
|
+
* jose.gordo
|
60
|
+
* Jose Luis Gordo
|
61
|
+
* Jose Luis Gordo Romero
|
44
62
|
* Joseph Near
|
45
|
-
*
|
63
|
+
* Josh Adams
|
64
|
+
* Kamil Politowicz
|
65
|
+
* ken-wong
|
46
66
|
* Kevin Fullerton
|
47
67
|
* Kiran Jonnalagadda
|
48
68
|
* Kouichi Kishikami
|
49
|
-
*
|
50
|
-
*
|
51
|
-
*
|
52
|
-
*
|
69
|
+
* Koustubh Sinkar
|
70
|
+
* Lana Dvorkin
|
71
|
+
* Lincoln Lee
|
72
|
+
* Louis Nyffenegger
|
73
|
+
* Lukasz Kosewski
|
74
|
+
* m
|
75
|
+
* Malachai
|
76
|
+
* Marcelo M. Leal
|
53
77
|
* Marian Mrózek
|
54
78
|
* Mark Friedgan
|
55
|
-
* Martin Gajdos
|
56
|
-
* Martin Trejo
|
79
|
+
* Martin Gajdos
|
80
|
+
* Martin Trejo
|
81
|
+
* Martin Villero
|
57
82
|
* Masaki Muranaka
|
58
|
-
*
|
83
|
+
* Matthew Lehner
|
59
84
|
* Mauro Alloro
|
60
|
-
* Michael Dvorkin
|
61
|
-
*
|
62
|
-
*
|
85
|
+
* Michael Dvorkin
|
86
|
+
* Mike Dvorkin
|
87
|
+
* Murray Steele
|
88
|
+
* Nathan B
|
89
|
+
* Nathan Broadbent
|
63
90
|
* Nicholas Fine
|
64
|
-
* Nicholas Rowe
|
65
|
-
*
|
66
|
-
*
|
67
|
-
*
|
91
|
+
* Nicholas Rowe
|
92
|
+
* Nicolas Leger
|
93
|
+
* nigh7m4r3
|
94
|
+
* Nobuhito OKADA
|
95
|
+
* Olle Jonsson
|
96
|
+
* Olmo Maldonado
|
97
|
+
* orthographic-pedant
|
98
|
+
* papilip
|
99
|
+
* Patrick Mulder
|
68
100
|
* Paul
|
69
|
-
* Peter McCurdy
|
101
|
+
* Peter McCurdy
|
70
102
|
* Philipp Ullmann
|
71
|
-
* Ralf Ebert
|
103
|
+
* Ralf Ebert
|
104
|
+
* Reuben Salagaras
|
72
105
|
* rickerbh
|
73
|
-
* Rit Li
|
106
|
+
* Rit Li
|
107
|
+
* Road Tang
|
74
108
|
* Robert Fletcher
|
75
109
|
* Rob Esposito
|
76
|
-
* Roman Smirnov
|
77
|
-
*
|
78
|
-
*
|
79
|
-
* Scott
|
110
|
+
* Roman Smirnov
|
111
|
+
* Ryan Stenhouse
|
112
|
+
* Satoru Ishikawa
|
113
|
+
* Scott
|
114
|
+
* Scott Dudley
|
115
|
+
* Scott Miller
|
80
116
|
* Sebastian Castro
|
81
117
|
* Seb Jacobs
|
82
118
|
* Serafim Junior Dos Santos Fagundes
|
83
|
-
*
|
119
|
+
* Stanley Hansen
|
120
|
+
* Steve Kenworthy
|
121
|
+
* steveyken
|
122
|
+
* Szeto Bo
|
84
123
|
* tarbalazs
|
85
|
-
*
|
86
|
-
*
|
87
|
-
*
|
124
|
+
* Thomas Pike
|
125
|
+
* Tim Adler
|
126
|
+
* Todd Makinster
|
127
|
+
* Tom Meier
|
128
|
+
* Trevor Oke
|
88
129
|
* William Lawson
|
89
130
|
* Xughaa
|
90
|
-
*
|
131
|
+
* Yann Hourdel
|
132
|
+
* Yury Kotlyarov
|
133
|
+
* Zlatko Zahariev
|
91
134
|
|
92
135
|
Generated using "git shortlog -s -n | cut -f 2 | sort"
|
data/Dockerfile
CHANGED
@@ -1,20 +1,51 @@
|
|
1
1
|
# Usage:
|
2
|
+
# docker volume create pgdata
|
3
|
+
# docker volume create gems
|
2
4
|
# docker-compose up
|
3
|
-
# docker-compose exec web bundle exec rake db:create db:schema:load ffcrm:demo:load
|
5
|
+
# docker-compose exec web bundle exec rake db:create db:schema:load ffcrm:demo:load
|
4
6
|
|
5
|
-
FROM
|
6
|
-
|
7
|
+
FROM ruby:2.4
|
8
|
+
|
9
|
+
LABEL author="Steve Kenworthy"
|
7
10
|
|
8
11
|
ENV HOME /home/app
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
RUN mkdir -p $HOME
|
14
|
+
|
15
|
+
WORKDIR $HOME
|
16
|
+
|
17
|
+
ADD . $HOME
|
18
|
+
RUN apt-get update && \
|
19
|
+
apt-get install -y imagemagick tzdata && \
|
20
|
+
apt-get autoremove -y && \
|
21
|
+
cp config/database.postgres.docker.yml config/database.yml && \
|
22
|
+
gem install bundler && \
|
23
|
+
bundle install --deployment && \
|
24
|
+
bundle exec rails assets:precompile
|
25
|
+
|
26
|
+
CMD ["bundle","exec","rails","s"]
|
27
|
+
|
28
|
+
EXPOSE 3000
|
29
|
+
|
30
|
+
# # Usage:
|
31
|
+
# # docker volume create pgdata
|
32
|
+
# # docker volume create gems
|
33
|
+
# # docker-compose up
|
34
|
+
# # docker-compose exec web bundle exec rake db:create db:schema:load ffcrm:demo:load assets:precompile
|
35
|
+
|
36
|
+
# FROM phusion/passenger-ruby24
|
37
|
+
# MAINTAINER Steve Kenworthy
|
38
|
+
|
39
|
+
# ENV HOME /home/app
|
40
|
+
|
41
|
+
# ADD . /home/app
|
42
|
+
# WORKDIR /home/app
|
43
|
+
|
44
|
+
# RUN apt-get update \
|
45
|
+
# && apt-get install -y imagemagick firefox tzdata \
|
46
|
+
# && apt-get autoremove -y \
|
47
|
+
# && cp config/database.postgres.docker.yml config/database.yml \
|
48
|
+
# && chown -R app:app /home/app \
|
49
|
+
# && rm -f /etc/service/nginx/down /etc/nginx/sites-enabled/default \
|
50
|
+
# && cp .docker/nginx/sites-enabled/ffcrm.conf /etc/nginx/sites-enabled/ffcrm.conf \
|
51
|
+
# && bundle install --deployment
|
data/Gemfile
CHANGED
@@ -4,13 +4,17 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Uncomment the database that you have configured in config/database.yml
|
6
6
|
# ----------------------------------------------------------------------
|
7
|
-
db_drivers = {
|
8
|
-
"mysql" => "mysql2",
|
9
|
-
"sqlite" => "sqlite3",
|
10
|
-
"postgres" => "pg"
|
11
|
-
}
|
12
7
|
|
13
|
-
|
8
|
+
case ENV['CI'] && ENV['DB']
|
9
|
+
when 'sqlite'
|
10
|
+
gem 'sqlite3', '~> 1.3.13'
|
11
|
+
when 'mysql'
|
12
|
+
gem 'mysql2'
|
13
|
+
when 'postgres'
|
14
|
+
gem 'pg'
|
15
|
+
else
|
16
|
+
gem 'pg'
|
17
|
+
end
|
14
18
|
|
15
19
|
# Removes a gem dependency
|
16
20
|
def remove(name)
|
@@ -26,7 +30,7 @@ end
|
|
26
30
|
# Bundler no longer treats runtime dependencies as base dependencies.
|
27
31
|
# The following code restores this behaviour.
|
28
32
|
# (See https://github.com/carlhuda/bundler/issues/1041)
|
29
|
-
spec = Bundler.load_gemspec(File.expand_path(
|
33
|
+
spec = Bundler.load_gemspec(File.expand_path('fat_free_crm.gemspec', __dir__))
|
30
34
|
spec.runtime_dependencies.each do |dep|
|
31
35
|
gem dep.name, *dep.requirement.as_list
|
32
36
|
end
|
@@ -40,7 +44,6 @@ remove 'fat_free_crm'
|
|
40
44
|
group :development do
|
41
45
|
# don't load these gems in travis
|
42
46
|
unless ENV["CI"]
|
43
|
-
gem 'puma'
|
44
47
|
gem 'capistrano'
|
45
48
|
gem 'capistrano-bundler'
|
46
49
|
gem 'capistrano-rails'
|
@@ -62,26 +65,28 @@ group :development, :test do
|
|
62
65
|
gem 'headless'
|
63
66
|
gem 'byebug'
|
64
67
|
gem 'pry-rails' unless ENV["CI"]
|
65
|
-
gem '
|
66
|
-
gem 'rubocop', '~> 0.
|
68
|
+
gem 'factory_bot_rails', '~> 5.0' # Was Pinned due to minor failing view tests to 4.0
|
69
|
+
gem 'rubocop', '~> 0.76.0' # Pinned because upgrades require regenerating rubocop_todo.yml
|
67
70
|
gem 'rainbow'
|
71
|
+
gem 'puma' # used by capybara 3
|
68
72
|
end
|
69
73
|
|
70
74
|
group :test do
|
71
75
|
gem 'capybara'
|
72
76
|
gem 'selenium-webdriver'
|
73
|
-
gem '
|
77
|
+
gem 'webdrivers'
|
74
78
|
gem 'database_cleaner'
|
75
|
-
gem 'acts_as_fu'
|
76
79
|
gem 'zeus', platform: :ruby unless ENV["CI"]
|
77
80
|
gem 'timecop'
|
81
|
+
gem 'sqlite3', '~> 1.3.13'
|
78
82
|
end
|
79
83
|
|
80
84
|
group :heroku do
|
81
85
|
gem 'rails_12factor'
|
86
|
+
gem 'puma'
|
82
87
|
end
|
83
88
|
|
84
|
-
gem 'sass-rails'
|
89
|
+
gem 'sass-rails', '~> 5.0.3' # sass-rails 6 requires GCC 4.5+
|
85
90
|
gem 'coffee-rails'
|
86
91
|
gem 'uglifier'
|
87
92
|
gem 'execjs'
|
@@ -89,4 +94,9 @@ gem 'therubyracer', platform: :ruby unless ENV["CI"]
|
|
89
94
|
gem 'nokogiri', '>= 1.8.1'
|
90
95
|
gem 'activemodel-serializers-xml'
|
91
96
|
gem 'bootsnap', require: false
|
97
|
+
gem 'devise', '~>4.6'
|
98
|
+
gem 'devise-i18n'
|
99
|
+
gem "devise-encryptable"
|
92
100
|
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
|
101
|
+
gem 'activejob', '~> 5.2.0'
|
102
|
+
gem 'ransack_ui'
|