fat_free_crm 0.20.1 → 0.21.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/CHANGELOG.md +170 -0
- data/README.md +3 -6
- data/app/assets/config/manifest.js +3 -0
- data/app/helpers/accounts_helper.rb +2 -0
- data/app/helpers/application_helper.rb +22 -3
- data/app/helpers/tasks_helper.rb +1 -2
- data/app/models/entities/account.rb +1 -1
- data/app/models/entities/campaign.rb +1 -1
- data/app/models/entities/contact.rb +1 -1
- data/app/models/entities/lead.rb +1 -1
- data/app/models/entities/opportunity.rb +1 -1
- data/app/models/polymorphic/avatar.rb +1 -30
- data/app/models/polymorphic/task.rb +1 -0
- data/app/views/home/index.xls.builder +1 -0
- data/app/views/shared/_address.html.haml +1 -1
- data/config/application.rb +13 -0
- data/config/environments/development.rb +3 -0
- data/config/puma.rb +2 -2
- data/config/storage.yml +34 -0
- data/db/migrate/20100928030617_drop_openid_tables.rb +2 -1
- data/db/migrate/20230526211831_create_active_storage_tables.active_storage.rb +51 -0
- data/db/migrate/20230526212613_convert_to_active_storage.rb +91 -0
- data/db/schema.rb +65 -35
- data/db/seeds/fields.rb +7 -21
- data/lib/development_tasks/license.rake +10 -10
- data/lib/fat_free_crm/errors.rb +2 -10
- data/lib/fat_free_crm/exceptions.rb +1 -0
- data/lib/fat_free_crm/fields.rb +4 -5
- data/lib/fat_free_crm/gem_dependencies.rb +0 -1
- data/lib/fat_free_crm/i18n.rb +1 -1
- data/lib/fat_free_crm/version.rb +3 -3
- metadata +16 -279
- data/.docker/nginx/sites-enabled/ffcrm.conf +0 -8
- data/.github/workflows/brakeman-analysis.yml +0 -46
- data/.github/workflows/rubocop-analysis.yml +0 -40
- data/.github/workflows/ruby.yml +0 -52
- data/.gitignore +0 -39
- data/.rubocop.yml +0 -73
- data/.rubocop_todo.yml +0 -286
- data/.teatro.yml +0 -3
- data/.travis.yml +0 -60
- data/CONTRIBUTORS.md +0 -135
- data/Capfile +0 -27
- data/Dockerfile +0 -51
- data/Gemfile +0 -106
- data/Gemfile.lock +0 -529
- data/Guardfile +0 -26
- data/Procfile +0 -1
- data/SECURITY.md +0 -11
- data/Vagrantfile +0 -92
- data/custom_plan.rb +0 -11
- data/docker-compose.yml +0 -27
- data/fat_free_crm.gemspec +0 -62
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/.gitkeep~master +0 -0
- data/script/rails +0 -8
- data/spec/controllers/admin/groups_controller_spec.rb +0 -11
- data/spec/controllers/admin/users_controller_spec.rb +0 -251
- data/spec/controllers/applications_controller_spec.rb +0 -43
- data/spec/controllers/comments_controller_spec.rb +0 -195
- data/spec/controllers/emails_controller_spec.rb +0 -37
- data/spec/controllers/entities/accounts_controller_spec.rb +0 -607
- data/spec/controllers/entities/campaigns_controller_spec.rb +0 -645
- data/spec/controllers/entities/contacts_controller_spec.rb +0 -705
- data/spec/controllers/entities/leads_controller_spec.rb +0 -1009
- data/spec/controllers/entities/opportunities_controller_spec.rb +0 -904
- data/spec/controllers/entities_controller_spec.rb +0 -47
- data/spec/controllers/home_controller_spec.rb +0 -235
- data/spec/controllers/lists_controller_spec.rb +0 -11
- data/spec/controllers/tasks_controller_spec.rb +0 -517
- data/spec/controllers/users_controller_spec.rb +0 -375
- data/spec/factories/account_factories.rb +0 -40
- data/spec/factories/campaign_factories.rb +0 -30
- data/spec/factories/contact_factories.rb +0 -45
- data/spec/factories/field_factories.rb +0 -40
- data/spec/factories/lead_factories.rb +0 -36
- data/spec/factories/list_factories.rb +0 -13
- data/spec/factories/opportunity_factories.rb +0 -39
- data/spec/factories/sequences.rb +0 -32
- data/spec/factories/setting_factories.rb +0 -15
- data/spec/factories/shared_factories.rb +0 -70
- data/spec/factories/subscription_factories.rb +0 -13
- data/spec/factories/tag_factories.rb +0 -12
- data/spec/factories/task_factories.rb +0 -29
- data/spec/factories/user_factories.rb +0 -66
- data/spec/features/acceptance_helper.rb +0 -11
- data/spec/features/accounts_spec.rb +0 -126
- data/spec/features/admin/groups_spec.rb +0 -31
- data/spec/features/admin/users_spec.rb +0 -40
- data/spec/features/campaigns_spec.rb +0 -104
- data/spec/features/contacts_spec.rb +0 -134
- data/spec/features/dashboard_spec.rb +0 -67
- data/spec/features/devise/sign_in_spec.rb +0 -58
- data/spec/features/devise/sign_up_spec.rb +0 -36
- data/spec/features/leads_spec.rb +0 -138
- data/spec/features/opportunities_overview_spec.rb +0 -88
- data/spec/features/opportunities_spec.rb +0 -132
- data/spec/features/support/autocomlete_helper.rb +0 -17
- data/spec/features/support/browser.rb +0 -28
- data/spec/features/support/headless.rb +0 -19
- data/spec/features/support/paths.rb +0 -48
- data/spec/features/support/selector_helpers.rb +0 -36
- data/spec/features/tasks_spec.rb +0 -94
- data/spec/fixtures/rails.png +0 -0
- data/spec/helpers/accounts_helper_spec.rb +0 -73
- data/spec/helpers/admin/field_groups_helper_spec.rb +0 -20
- data/spec/helpers/admin/plugins_helper_spec.rb +0 -11
- data/spec/helpers/admin/settings_helper_spec.rb +0 -11
- data/spec/helpers/admin/users_helper_spec.rb +0 -11
- data/spec/helpers/application_helper_spec.rb +0 -86
- data/spec/helpers/authentications_helper_spec.rb +0 -16
- data/spec/helpers/campaigns_helper_spec.rb +0 -16
- data/spec/helpers/comments_helper_spec.rb +0 -16
- data/spec/helpers/contacts_helper_spec.rb +0 -16
- data/spec/helpers/emails_helper_spec.rb +0 -11
- data/spec/helpers/fields_helper_spec.rb +0 -12
- data/spec/helpers/groups_helper_spec.rb +0 -21
- data/spec/helpers/home_helper_spec.rb +0 -16
- data/spec/helpers/leads_helper_spec.rb +0 -16
- data/spec/helpers/lists_helper_spec.rb +0 -21
- data/spec/helpers/opportunities_helper_spec.rb +0 -16
- data/spec/helpers/passwords_helper_spec.rb +0 -16
- data/spec/helpers/tasks_helper_spec.rb +0 -20
- data/spec/helpers/users_helper_spec.rb +0 -39
- data/spec/lib/comment_extensions_spec.rb +0 -42
- data/spec/lib/core_ext/string_spec.rb +0 -23
- data/spec/lib/errors_spec.rb +0 -32
- data/spec/lib/fields_spec.rb +0 -101
- data/spec/lib/mail_processor/base_spec.rb +0 -169
- data/spec/lib/mail_processor/comment_replies_spec.rb +0 -70
- data/spec/lib/mail_processor/dropbox_spec.rb +0 -306
- data/spec/lib/mail_processor/sample_emails/dropbox.rb +0 -173
- data/spec/lib/permissions_spec.rb +0 -155
- data/spec/lib/secret_token_generator_spec.rb +0 -69
- data/spec/lib/view_factory_spec.rb +0 -69
- data/spec/mailers/devise_mailer_spec.rb +0 -35
- data/spec/mailers/subscription_mailer_spec.rb +0 -48
- data/spec/mailers/user_mailer_spec.rb +0 -115
- data/spec/models/entities/account_contact_spec.rb +0 -34
- data/spec/models/entities/account_opportunity_spec.rb +0 -34
- data/spec/models/entities/account_spec.rb +0 -206
- data/spec/models/entities/campaign_spec.rb +0 -131
- data/spec/models/entities/contact_opportunity_spec.rb +0 -34
- data/spec/models/entities/contact_spec.rb +0 -314
- data/spec/models/entities/lead_spec.rb +0 -102
- data/spec/models/entities/opportunity_spec.rb +0 -299
- data/spec/models/fields/custom_field_date_pair_spec.rb +0 -92
- data/spec/models/fields/custom_field_pair_spec.rb +0 -76
- data/spec/models/fields/custom_field_spec.rb +0 -129
- data/spec/models/fields/field_group_spec.rb +0 -29
- data/spec/models/fields/field_spec.rb +0 -69
- data/spec/models/list_spec.rb +0 -19
- data/spec/models/observers/entity_observer_spec.rb +0 -74
- data/spec/models/polymorphic/address_spec.rb +0 -34
- data/spec/models/polymorphic/avatar_spec.rb +0 -46
- data/spec/models/polymorphic/comment_spec.rb +0 -45
- data/spec/models/polymorphic/email_spec.rb +0 -53
- data/spec/models/polymorphic/task_spec.rb +0 -395
- data/spec/models/polymorphic/version_spec.rb +0 -241
- data/spec/models/setting_spec.rb +0 -77
- data/spec/models/users/abilities/user_ability_spec.rb +0 -70
- data/spec/models/users/group_spec.rb +0 -11
- data/spec/models/users/permission_spec.rb +0 -58
- data/spec/models/users/preference_spec.rb +0 -71
- data/spec/models/users/user_spec.rb +0 -238
- data/spec/routing/accounts_routing_spec.rb +0 -60
- data/spec/routing/admin/users_routing_spec.rb +0 -40
- data/spec/routing/campaigns_routing_spec.rb +0 -64
- data/spec/routing/comments_routing_spec.rb +0 -32
- data/spec/routing/contacts_routing_spec.rb +0 -60
- data/spec/routing/emails_routing_spec.rb +0 -40
- data/spec/routing/leads_routing_spec.rb +0 -88
- data/spec/routing/opportunities_routing_spec.rb +0 -64
- data/spec/routing/tasks_routing_spec.rb +0 -68
- data/spec/routing/users_routing_spec.rb +0 -106
- data/spec/shared/controllers.rb +0 -99
- data/spec/shared/models.rb +0 -141
- data/spec/spec_helper.rb +0 -117
- data/spec/support/assert_select.rb +0 -167
- data/spec/support/devise_helpers.rb +0 -28
- data/spec/support/feature_helpers.rb +0 -32
- data/spec/support/macros.rb +0 -49
- data/spec/support/mail_processor_mocks.rb +0 -37
- data/spec/support/uploaded_file.rb +0 -10
- data/spec/views/accounts/_edit.haml_spec.rb +0 -43
- data/spec/views/accounts/_new.haml_spec.rb +0 -42
- data/spec/views/accounts/create.js.haml_spec.rb +0 -52
- data/spec/views/accounts/destroy.js.haml_spec.rb +0 -34
- data/spec/views/accounts/edit.js.haml_spec.rb +0 -66
- data/spec/views/accounts/index.haml_spec.rb +0 -43
- data/spec/views/accounts/index.js.haml_spec.rb +0 -34
- data/spec/views/accounts/new.js.haml_spec.rb +0 -44
- data/spec/views/accounts/show.haml_spec.rb +0 -38
- data/spec/views/accounts/update.js.haml_spec.rb +0 -93
- data/spec/views/admin/field_groups/create.js.haml_spec.rb +0 -30
- data/spec/views/admin/field_groups/destroy.js.haml_spec.rb +0 -31
- data/spec/views/admin/field_groups/edit.js.haml_spec.rb +0 -24
- data/spec/views/admin/field_groups/new.js.haml_spec.rb +0 -25
- data/spec/views/admin/field_groups/update.js.haml_spec.rb +0 -29
- data/spec/views/admin/users/_create.haml_spec.rb +0 -23
- data/spec/views/admin/users/create.js.haml_spec.rb +0 -41
- data/spec/views/admin/users/destroy.js.haml_spec.rb +0 -47
- data/spec/views/admin/users/edit.js.haml_spec.rb +0 -44
- data/spec/views/admin/users/index.haml_spec.rb +0 -22
- data/spec/views/admin/users/index.js.haml_spec.rb +0 -26
- data/spec/views/admin/users/new.js.haml_spec.rb +0 -34
- data/spec/views/admin/users/reactivate.js.haml_spec.rb +0 -22
- data/spec/views/admin/users/show.haml_spec.rb +0 -18
- data/spec/views/admin/users/suspend.js.haml_spec.rb +0 -22
- data/spec/views/admin/users/update.js.haml_spec.rb +0 -37
- data/spec/views/application/auto_complete.haml_spec.rb +0 -48
- data/spec/views/campaigns/_edit.haml_spec.rb +0 -44
- data/spec/views/campaigns/_new.haml_spec.rb +0 -41
- data/spec/views/campaigns/create.js.haml_spec.rb +0 -49
- data/spec/views/campaigns/destroy.js.haml_spec.rb +0 -31
- data/spec/views/campaigns/edit.js.haml_spec.rb +0 -66
- data/spec/views/campaigns/index.haml_spec.rb +0 -37
- data/spec/views/campaigns/index.js.haml_spec.rb +0 -34
- data/spec/views/campaigns/new.js.haml_spec.rb +0 -50
- data/spec/views/campaigns/show.haml_spec.rb +0 -38
- data/spec/views/campaigns/update.js.haml_spec.rb +0 -78
- data/spec/views/comments/edit.js.haml_spec.rb +0 -30
- data/spec/views/contacts/_edit.haml_spec.rb +0 -73
- data/spec/views/contacts/_new.haml_spec.rb +0 -52
- data/spec/views/contacts/create.js.haml_spec.rb +0 -65
- data/spec/views/contacts/destroy.js.haml_spec.rb +0 -45
- data/spec/views/contacts/edit.js.haml_spec.rb +0 -74
- data/spec/views/contacts/index.haml_spec.rb +0 -37
- data/spec/views/contacts/index.js.html_spec.rb +0 -34
- data/spec/views/contacts/new.js.haml_spec.rb +0 -47
- data/spec/views/contacts/show.haml_spec.rb +0 -35
- data/spec/views/contacts/update.js.haml_spec.rb +0 -128
- data/spec/views/home/index.haml_spec.rb +0 -36
- data/spec/views/home/index.js.haml_spec.rb +0 -33
- data/spec/views/home/options.js.haml_spec.rb +0 -53
- data/spec/views/leads/_convert.haml_spec.rb +0 -30
- data/spec/views/leads/_edit.haml_spec.rb +0 -47
- data/spec/views/leads/_new.haml_spec.rb +0 -45
- data/spec/views/leads/_sidebar_show.haml_spec.rb +0 -31
- data/spec/views/leads/convert.js.haml_spec.rb +0 -79
- data/spec/views/leads/create.js.haml_spec.rb +0 -67
- data/spec/views/leads/destroy.js.haml_spec.rb +0 -47
- data/spec/views/leads/edit.js.haml_spec.rb +0 -76
- data/spec/views/leads/index.haml_spec.rb +0 -37
- data/spec/views/leads/index.js.haml_spec.rb +0 -34
- data/spec/views/leads/new.js.haml_spec.rb +0 -47
- data/spec/views/leads/promote.js.haml_spec.rb +0 -135
- data/spec/views/leads/reject.js.haml_spec.rb +0 -45
- data/spec/views/leads/show.haml_spec.rb +0 -32
- data/spec/views/leads/update.js.haml_spec.rb +0 -118
- data/spec/views/opportunities/_edit.haml_spec.rb +0 -70
- data/spec/views/opportunities/_new.haml_spec.rb +0 -51
- data/spec/views/opportunities/create.js.haml_spec.rb +0 -86
- data/spec/views/opportunities/destroy.js.haml_spec.rb +0 -64
- data/spec/views/opportunities/edit.js.haml_spec.rb +0 -75
- data/spec/views/opportunities/index.haml_spec.rb +0 -38
- data/spec/views/opportunities/index.js.haml_spec.rb +0 -35
- data/spec/views/opportunities/new.js.haml_spec.rb +0 -54
- data/spec/views/opportunities/show.haml_spec.rb +0 -35
- data/spec/views/opportunities/update.js.haml_spec.rb +0 -143
- data/spec/views/tasks/_edit.haml_spec.rb +0 -50
- data/spec/views/tasks/complete.js.haml_spec.rb +0 -67
- data/spec/views/tasks/create.js.haml_spec.rb +0 -119
- data/spec/views/tasks/destroy.js.haml_spec.rb +0 -57
- data/spec/views/tasks/edit.js.haml_spec.rb +0 -76
- data/spec/views/tasks/index.haml_spec.rb +0 -46
- data/spec/views/tasks/new.js.haml_spec.rb +0 -49
- data/spec/views/tasks/uncomplete.js.haml_spec.rb +0 -45
- data/spec/views/tasks/update.js.haml_spec.rb +0 -140
- data/spec/views/users/avatar.js.haml_spec.rb +0 -35
- data/spec/views/users/change_password.js.haml_spec.rb +0 -51
- data/spec/views/users/edit.js.haml_spec.rb +0 -35
- data/spec/views/users/password.js.haml_spec.rb +0 -36
- data/spec/views/users/update.js.haml_spec.rb +0 -46
- data/spec/views/users/upload_avatar.js.haml_spec.rb +0 -45
- data/vendor/gems/globby-0.1.2/LICENSE.txt +0 -20
- data/vendor/gems/globby-0.1.2/README.md +0 -65
- data/vendor/gems/globby-0.1.2/Rakefile +0 -9
- data/vendor/gems/globby-0.1.2/lib/globby/glob.rb +0 -90
- data/vendor/gems/globby-0.1.2/lib/globby/globject.rb +0 -18
- data/vendor/gems/globby-0.1.2/lib/globby/result.rb +0 -20
- data/vendor/gems/globby-0.1.2/lib/globby.rb +0 -47
- data/vendor/gems/globby-0.1.2/spec/gitignore_spec.rb +0 -109
- data/vendor/gems/globby-0.1.2/spec/globby_spec.rb +0 -93
- data/zeus.json +0 -22
data/Gemfile.lock
DELETED
@@ -1,529 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: https://github.com/CloCkWeRX/responds_to_parent.git
|
3
|
-
revision: fc42ea13be78b065a7975564b1828d6feaef8660
|
4
|
-
branch: patch-1
|
5
|
-
specs:
|
6
|
-
responds_to_parent (2.0.0)
|
7
|
-
actionpack (>= 3.2.22, < 6.1)
|
8
|
-
|
9
|
-
GIT
|
10
|
-
remote: https://github.com/fatfreecrm/acts_as_commentable.git
|
11
|
-
revision: eb811316ffbfc66612060822a505d64676564f57
|
12
|
-
branch: rails-6
|
13
|
-
specs:
|
14
|
-
acts_as_commentable (6.0.0)
|
15
|
-
activerecord (~> 6.0.0)
|
16
|
-
|
17
|
-
GEM
|
18
|
-
remote: https://rubygems.org/
|
19
|
-
specs:
|
20
|
-
actioncable (6.0.4.1)
|
21
|
-
actionpack (= 6.0.4.1)
|
22
|
-
nio4r (~> 2.0)
|
23
|
-
websocket-driver (>= 0.6.1)
|
24
|
-
actionmailbox (6.0.4.1)
|
25
|
-
actionpack (= 6.0.4.1)
|
26
|
-
activejob (= 6.0.4.1)
|
27
|
-
activerecord (= 6.0.4.1)
|
28
|
-
activestorage (= 6.0.4.1)
|
29
|
-
activesupport (= 6.0.4.1)
|
30
|
-
mail (>= 2.7.1)
|
31
|
-
actionmailer (6.0.4.1)
|
32
|
-
actionpack (= 6.0.4.1)
|
33
|
-
actionview (= 6.0.4.1)
|
34
|
-
activejob (= 6.0.4.1)
|
35
|
-
mail (~> 2.5, >= 2.5.4)
|
36
|
-
rails-dom-testing (~> 2.0)
|
37
|
-
actionpack (6.0.4.1)
|
38
|
-
actionview (= 6.0.4.1)
|
39
|
-
activesupport (= 6.0.4.1)
|
40
|
-
rack (~> 2.0, >= 2.0.8)
|
41
|
-
rack-test (>= 0.6.3)
|
42
|
-
rails-dom-testing (~> 2.0)
|
43
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
44
|
-
actiontext (6.0.4.1)
|
45
|
-
actionpack (= 6.0.4.1)
|
46
|
-
activerecord (= 6.0.4.1)
|
47
|
-
activestorage (= 6.0.4.1)
|
48
|
-
activesupport (= 6.0.4.1)
|
49
|
-
nokogiri (>= 1.8.5)
|
50
|
-
actionview (6.0.4.1)
|
51
|
-
activesupport (= 6.0.4.1)
|
52
|
-
builder (~> 3.1)
|
53
|
-
erubi (~> 1.4)
|
54
|
-
rails-dom-testing (~> 2.0)
|
55
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
56
|
-
activejob (6.0.4.1)
|
57
|
-
activesupport (= 6.0.4.1)
|
58
|
-
globalid (>= 0.3.6)
|
59
|
-
activemodel (6.0.4.1)
|
60
|
-
activesupport (= 6.0.4.1)
|
61
|
-
activemodel-serializers-xml (1.0.2)
|
62
|
-
activemodel (> 5.x)
|
63
|
-
activesupport (> 5.x)
|
64
|
-
builder (~> 3.1)
|
65
|
-
activerecord (6.0.4.1)
|
66
|
-
activemodel (= 6.0.4.1)
|
67
|
-
activesupport (= 6.0.4.1)
|
68
|
-
activestorage (6.0.4.1)
|
69
|
-
actionpack (= 6.0.4.1)
|
70
|
-
activejob (= 6.0.4.1)
|
71
|
-
activerecord (= 6.0.4.1)
|
72
|
-
marcel (~> 1.0.0)
|
73
|
-
activesupport (6.0.4.1)
|
74
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
75
|
-
i18n (>= 0.7, < 2)
|
76
|
-
minitest (~> 5.1)
|
77
|
-
tzinfo (~> 1.1)
|
78
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
79
|
-
acts-as-taggable-on (8.1.0)
|
80
|
-
activerecord (>= 5.0, < 6.2)
|
81
|
-
acts_as_list (1.0.4)
|
82
|
-
activerecord (>= 4.2)
|
83
|
-
addressable (2.8.0)
|
84
|
-
public_suffix (>= 2.0.2, < 5.0)
|
85
|
-
airbrussh (1.4.0)
|
86
|
-
sshkit (>= 1.6.1, != 1.7.0)
|
87
|
-
ast (2.4.2)
|
88
|
-
autoprefixer-rails (10.3.3.0)
|
89
|
-
execjs (~> 2)
|
90
|
-
bcrypt (3.1.16)
|
91
|
-
bootsnap (1.9.1)
|
92
|
-
msgpack (~> 1.0)
|
93
|
-
bootstrap (5.0.0)
|
94
|
-
autoprefixer-rails (>= 9.1.0)
|
95
|
-
popper_js (>= 2.9.2, < 3)
|
96
|
-
sassc-rails (>= 2.0.0)
|
97
|
-
brakeman (5.1.1)
|
98
|
-
builder (3.2.4)
|
99
|
-
byebug (11.1.3)
|
100
|
-
cancancan (3.0.2)
|
101
|
-
capistrano (3.16.0)
|
102
|
-
airbrussh (>= 1.0.0)
|
103
|
-
i18n
|
104
|
-
rake (>= 10.0.0)
|
105
|
-
sshkit (>= 1.9.0)
|
106
|
-
capistrano-bundler (2.0.1)
|
107
|
-
capistrano (~> 3.1)
|
108
|
-
capistrano-rails (1.6.1)
|
109
|
-
capistrano (~> 3.1)
|
110
|
-
capistrano-bundler (>= 1.1, < 3)
|
111
|
-
capistrano-rvm (0.1.2)
|
112
|
-
capistrano (~> 3.0)
|
113
|
-
sshkit (~> 1.2)
|
114
|
-
capybara (3.35.3)
|
115
|
-
addressable
|
116
|
-
mini_mime (>= 0.1.3)
|
117
|
-
nokogiri (~> 1.8)
|
118
|
-
rack (>= 1.6.0)
|
119
|
-
rack-test (>= 0.6.3)
|
120
|
-
regexp_parser (>= 1.5, < 3.0)
|
121
|
-
xpath (~> 3.2)
|
122
|
-
childprocess (3.0.0)
|
123
|
-
chronic (0.10.2)
|
124
|
-
climate_control (0.2.0)
|
125
|
-
coderay (1.1.3)
|
126
|
-
coffee-rails (5.0.0)
|
127
|
-
coffee-script (>= 2.2.0)
|
128
|
-
railties (>= 5.2.0)
|
129
|
-
coffee-script (2.4.1)
|
130
|
-
coffee-script-source
|
131
|
-
execjs
|
132
|
-
coffee-script-source (1.12.2)
|
133
|
-
concurrent-ruby (1.1.9)
|
134
|
-
countries (4.0.1)
|
135
|
-
i18n_data (~> 0.13.0)
|
136
|
-
sixarm_ruby_unaccent (~> 1.1)
|
137
|
-
country_select (6.0.0)
|
138
|
-
countries (~> 4.0)
|
139
|
-
sort_alphabetical (~> 1.1)
|
140
|
-
crass (1.0.6)
|
141
|
-
css_parser (1.10.0)
|
142
|
-
addressable
|
143
|
-
database_cleaner (2.0.1)
|
144
|
-
database_cleaner-active_record (~> 2.0.0)
|
145
|
-
database_cleaner-active_record (2.0.1)
|
146
|
-
activerecord (>= 5.a)
|
147
|
-
database_cleaner-core (~> 2.0.0)
|
148
|
-
database_cleaner-core (2.0.1)
|
149
|
-
devise (4.8.0)
|
150
|
-
bcrypt (~> 3.0)
|
151
|
-
orm_adapter (~> 0.1)
|
152
|
-
railties (>= 4.1.0)
|
153
|
-
responders
|
154
|
-
warden (~> 1.2.3)
|
155
|
-
devise-encryptable (0.2.0)
|
156
|
-
devise (>= 2.1.0)
|
157
|
-
devise-i18n (1.10.0)
|
158
|
-
devise (>= 4.8.0)
|
159
|
-
diff-lcs (1.4.4)
|
160
|
-
dynamic_form (1.1.4)
|
161
|
-
email_reply_parser_ffcrm (0.5.0)
|
162
|
-
erubi (1.10.0)
|
163
|
-
execjs (2.8.1)
|
164
|
-
factory_bot (5.2.0)
|
165
|
-
activesupport (>= 4.2.0)
|
166
|
-
factory_bot_rails (5.2.0)
|
167
|
-
factory_bot (~> 5.2.0)
|
168
|
-
railties (>= 4.2.0)
|
169
|
-
ffaker (2.19.0)
|
170
|
-
ffi (1.15.4)
|
171
|
-
font-awesome-rails (4.7.0.7)
|
172
|
-
railties (>= 3.2, < 7)
|
173
|
-
formatador (0.3.0)
|
174
|
-
globalid (0.5.2)
|
175
|
-
activesupport (>= 5.0)
|
176
|
-
guard (2.18.0)
|
177
|
-
formatador (>= 0.2.4)
|
178
|
-
listen (>= 2.7, < 4.0)
|
179
|
-
lumberjack (>= 1.0.12, < 2.0)
|
180
|
-
nenv (~> 0.1)
|
181
|
-
notiffany (~> 0.0)
|
182
|
-
pry (>= 0.13.0)
|
183
|
-
shellany (~> 0.0)
|
184
|
-
thor (>= 0.18.1)
|
185
|
-
guard-compat (1.2.1)
|
186
|
-
guard-rails (0.8.1)
|
187
|
-
guard (~> 2.11)
|
188
|
-
guard-compat (~> 1.0)
|
189
|
-
guard-rspec (4.7.3)
|
190
|
-
guard (~> 2.1)
|
191
|
-
guard-compat (~> 1.1)
|
192
|
-
rspec (>= 2.99.0, < 4.0)
|
193
|
-
haml (5.2.2)
|
194
|
-
temple (>= 0.8.0)
|
195
|
-
tilt
|
196
|
-
headless (2.3.1)
|
197
|
-
htmlentities (4.3.4)
|
198
|
-
i18n (1.8.10)
|
199
|
-
concurrent-ruby (~> 1.0)
|
200
|
-
i18n_data (0.13.0)
|
201
|
-
jaro_winkler (1.5.4)
|
202
|
-
jquery-migrate-rails (1.2.1)
|
203
|
-
jquery-rails (4.4.0)
|
204
|
-
rails-dom-testing (>= 1, < 3)
|
205
|
-
railties (>= 4.2.0)
|
206
|
-
thor (>= 0.14, < 2.0)
|
207
|
-
jquery-ui-rails (6.0.1)
|
208
|
-
railties (>= 3.2.16)
|
209
|
-
libv8-node (15.14.0.1)
|
210
|
-
listen (3.7.0)
|
211
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
212
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
213
|
-
loofah (2.12.0)
|
214
|
-
crass (~> 1.0.2)
|
215
|
-
nokogiri (>= 1.5.9)
|
216
|
-
lumberjack (1.2.8)
|
217
|
-
mail (2.7.1)
|
218
|
-
mini_mime (>= 0.1.1)
|
219
|
-
marcel (1.0.2)
|
220
|
-
method_source (1.0.0)
|
221
|
-
mime-types (3.3.1)
|
222
|
-
mime-types-data (~> 3.2015)
|
223
|
-
mime-types-data (3.2021.0901)
|
224
|
-
mimemagic (0.3.10)
|
225
|
-
nokogiri (~> 1)
|
226
|
-
rake
|
227
|
-
mini_mime (1.1.1)
|
228
|
-
mini_portile2 (2.6.1)
|
229
|
-
mini_racer (0.4.0)
|
230
|
-
libv8-node (~> 15.14.0.0)
|
231
|
-
minitest (5.14.4)
|
232
|
-
msgpack (1.4.2)
|
233
|
-
nenv (0.3.0)
|
234
|
-
net-scp (3.0.0)
|
235
|
-
net-ssh (>= 2.6.5, < 7.0.0)
|
236
|
-
net-ssh (6.1.0)
|
237
|
-
nio4r (2.5.8)
|
238
|
-
nokogiri (1.12.5)
|
239
|
-
mini_portile2 (~> 2.6.1)
|
240
|
-
racc (~> 1.4)
|
241
|
-
notiffany (0.1.3)
|
242
|
-
nenv (~> 0.1)
|
243
|
-
shellany (~> 0.0)
|
244
|
-
orm_adapter (0.5.0)
|
245
|
-
paper_trail (12.0.0)
|
246
|
-
activerecord (>= 5.2)
|
247
|
-
request_store (~> 1.1)
|
248
|
-
paperclip (6.1.0)
|
249
|
-
activemodel (>= 4.2.0)
|
250
|
-
activesupport (>= 4.2.0)
|
251
|
-
mime-types
|
252
|
-
mimemagic (~> 0.3.0)
|
253
|
-
terrapin (~> 0.6.0)
|
254
|
-
parallel (1.21.0)
|
255
|
-
parser (3.0.2.0)
|
256
|
-
ast (~> 2.4.1)
|
257
|
-
pg (1.2.3)
|
258
|
-
popper_js (2.9.3)
|
259
|
-
premailer (1.15.0)
|
260
|
-
addressable
|
261
|
-
css_parser (>= 1.6.0)
|
262
|
-
htmlentities (>= 4.0.0)
|
263
|
-
pry (0.14.1)
|
264
|
-
coderay (~> 1.1)
|
265
|
-
method_source (~> 1.0)
|
266
|
-
pry-rails (0.3.9)
|
267
|
-
pry (>= 0.10.4)
|
268
|
-
public_suffix (4.0.6)
|
269
|
-
puma (5.5.0)
|
270
|
-
nio4r (~> 2.0)
|
271
|
-
racc (1.5.2)
|
272
|
-
rack (2.2.3)
|
273
|
-
rack-test (1.1.0)
|
274
|
-
rack (>= 1.0, < 3)
|
275
|
-
rails (6.0.4.1)
|
276
|
-
actioncable (= 6.0.4.1)
|
277
|
-
actionmailbox (= 6.0.4.1)
|
278
|
-
actionmailer (= 6.0.4.1)
|
279
|
-
actionpack (= 6.0.4.1)
|
280
|
-
actiontext (= 6.0.4.1)
|
281
|
-
actionview (= 6.0.4.1)
|
282
|
-
activejob (= 6.0.4.1)
|
283
|
-
activemodel (= 6.0.4.1)
|
284
|
-
activerecord (= 6.0.4.1)
|
285
|
-
activestorage (= 6.0.4.1)
|
286
|
-
activesupport (= 6.0.4.1)
|
287
|
-
bundler (>= 1.3.0)
|
288
|
-
railties (= 6.0.4.1)
|
289
|
-
sprockets-rails (>= 2.0.0)
|
290
|
-
rails-controller-testing (1.0.5)
|
291
|
-
actionpack (>= 5.0.1.rc1)
|
292
|
-
actionview (>= 5.0.1.rc1)
|
293
|
-
activesupport (>= 5.0.1.rc1)
|
294
|
-
rails-dom-testing (2.0.3)
|
295
|
-
activesupport (>= 4.2.0)
|
296
|
-
nokogiri (>= 1.6)
|
297
|
-
rails-html-sanitizer (1.4.2)
|
298
|
-
loofah (~> 2.3)
|
299
|
-
rails-i18n (6.0.0)
|
300
|
-
i18n (>= 0.7, < 2)
|
301
|
-
railties (>= 6.0.0, < 7)
|
302
|
-
rails-observers (0.1.5)
|
303
|
-
activemodel (>= 4.0)
|
304
|
-
rails3-jquery-autocomplete (1.0.15)
|
305
|
-
rails (>= 3.2)
|
306
|
-
rails_12factor (0.0.3)
|
307
|
-
rails_serve_static_assets
|
308
|
-
rails_stdout_logging
|
309
|
-
rails_autolink (1.1.6)
|
310
|
-
rails (> 3.1)
|
311
|
-
rails_serve_static_assets (0.0.5)
|
312
|
-
rails_stdout_logging (0.0.5)
|
313
|
-
railties (6.0.4.1)
|
314
|
-
actionpack (= 6.0.4.1)
|
315
|
-
activesupport (= 6.0.4.1)
|
316
|
-
method_source
|
317
|
-
rake (>= 0.8.7)
|
318
|
-
thor (>= 0.20.3, < 2.0)
|
319
|
-
rainbow (3.0.0)
|
320
|
-
rake (13.0.6)
|
321
|
-
ransack (2.4.2)
|
322
|
-
activerecord (>= 5.2.4)
|
323
|
-
activesupport (>= 5.2.4)
|
324
|
-
i18n
|
325
|
-
ransack_chronic (1.1.0)
|
326
|
-
chronic (>= 0.6.7)
|
327
|
-
ransack_ui (1.4.0)
|
328
|
-
ransack (~> 2.0)
|
329
|
-
ransack_chronic (>= 1.1.0)
|
330
|
-
rb-fchange (0.0.6)
|
331
|
-
ffi
|
332
|
-
rb-fsevent (0.11.0)
|
333
|
-
rb-inotify (0.10.1)
|
334
|
-
ffi (~> 1.0)
|
335
|
-
regexp_parser (2.1.1)
|
336
|
-
request_store (1.5.0)
|
337
|
-
rack (>= 1.4)
|
338
|
-
responders (3.0.1)
|
339
|
-
actionpack (>= 5.0)
|
340
|
-
railties (>= 5.0)
|
341
|
-
rexml (3.2.5)
|
342
|
-
rspec (3.10.0)
|
343
|
-
rspec-core (~> 3.10.0)
|
344
|
-
rspec-expectations (~> 3.10.0)
|
345
|
-
rspec-mocks (~> 3.10.0)
|
346
|
-
rspec-activemodel-mocks (1.1.0)
|
347
|
-
activemodel (>= 3.0)
|
348
|
-
activesupport (>= 3.0)
|
349
|
-
rspec-mocks (>= 2.99, < 4.0)
|
350
|
-
rspec-core (3.10.1)
|
351
|
-
rspec-support (~> 3.10.0)
|
352
|
-
rspec-expectations (3.10.1)
|
353
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
354
|
-
rspec-support (~> 3.10.0)
|
355
|
-
rspec-mocks (3.10.2)
|
356
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
357
|
-
rspec-support (~> 3.10.0)
|
358
|
-
rspec-rails (5.0.2)
|
359
|
-
actionpack (>= 5.2)
|
360
|
-
activesupport (>= 5.2)
|
361
|
-
railties (>= 5.2)
|
362
|
-
rspec-core (~> 3.10)
|
363
|
-
rspec-expectations (~> 3.10)
|
364
|
-
rspec-mocks (~> 3.10)
|
365
|
-
rspec-support (~> 3.10)
|
366
|
-
rspec-support (3.10.2)
|
367
|
-
rubocop (0.82.0)
|
368
|
-
jaro_winkler (~> 1.5.1)
|
369
|
-
parallel (~> 1.10)
|
370
|
-
parser (>= 2.7.0.1)
|
371
|
-
rainbow (>= 2.2.2, < 4.0)
|
372
|
-
rexml
|
373
|
-
ruby-progressbar (~> 1.7)
|
374
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
375
|
-
ruby-progressbar (1.11.0)
|
376
|
-
rubyzip (2.3.2)
|
377
|
-
sass (3.7.4)
|
378
|
-
sass-listen (~> 4.0.0)
|
379
|
-
sass-listen (4.0.0)
|
380
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
381
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
382
|
-
sass-rails (5.0.8)
|
383
|
-
railties (>= 5.2.0)
|
384
|
-
sass (~> 3.1)
|
385
|
-
sprockets (>= 2.8, < 4.0)
|
386
|
-
sprockets-rails (>= 2.0, < 4.0)
|
387
|
-
tilt (>= 1.1, < 3)
|
388
|
-
sassc (2.4.0)
|
389
|
-
ffi (~> 1.9)
|
390
|
-
sassc-rails (2.1.2)
|
391
|
-
railties (>= 4.0.0)
|
392
|
-
sassc (>= 2.0)
|
393
|
-
sprockets (> 3.0)
|
394
|
-
sprockets-rails
|
395
|
-
tilt
|
396
|
-
select2-rails (4.0.13)
|
397
|
-
selenium-webdriver (3.142.7)
|
398
|
-
childprocess (>= 0.5, < 4.0)
|
399
|
-
rubyzip (>= 1.2.2)
|
400
|
-
shellany (0.0.1)
|
401
|
-
simple_form (5.1.0)
|
402
|
-
actionpack (>= 5.2)
|
403
|
-
activemodel (>= 5.2)
|
404
|
-
sixarm_ruby_unaccent (1.2.0)
|
405
|
-
sort_alphabetical (1.1.0)
|
406
|
-
unicode_utils (>= 1.2.2)
|
407
|
-
sprockets (3.7.2)
|
408
|
-
concurrent-ruby (~> 1.0)
|
409
|
-
rack (> 1, < 3)
|
410
|
-
sprockets-rails (3.2.2)
|
411
|
-
actionpack (>= 4.0)
|
412
|
-
activesupport (>= 4.0)
|
413
|
-
sprockets (>= 3.0.0)
|
414
|
-
sqlite3 (1.4.2)
|
415
|
-
sshkit (1.21.2)
|
416
|
-
net-scp (>= 1.1.2)
|
417
|
-
net-ssh (>= 2.8.0)
|
418
|
-
temple (0.8.2)
|
419
|
-
terrapin (0.6.0)
|
420
|
-
climate_control (>= 0.0.3, < 1.0)
|
421
|
-
thor (1.1.0)
|
422
|
-
thread_safe (0.3.6)
|
423
|
-
tilt (2.0.10)
|
424
|
-
timecop (0.9.4)
|
425
|
-
tzinfo (1.2.9)
|
426
|
-
thread_safe (~> 0.1)
|
427
|
-
uglifier (4.2.0)
|
428
|
-
execjs (>= 0.3.0, < 3)
|
429
|
-
unicode-display_width (1.8.0)
|
430
|
-
unicode_utils (1.4.0)
|
431
|
-
warden (1.2.9)
|
432
|
-
rack (>= 2.0.9)
|
433
|
-
webdrivers (4.6.1)
|
434
|
-
nokogiri (~> 1.6)
|
435
|
-
rubyzip (>= 1.3.0)
|
436
|
-
selenium-webdriver (>= 3.0, < 4.0)
|
437
|
-
websocket-driver (0.7.5)
|
438
|
-
websocket-extensions (>= 0.1.0)
|
439
|
-
websocket-extensions (0.1.5)
|
440
|
-
will_paginate (3.3.1)
|
441
|
-
xpath (3.2.0)
|
442
|
-
nokogiri (~> 1.8)
|
443
|
-
zeitwerk (2.4.2)
|
444
|
-
zeus (0.15.14)
|
445
|
-
method_source (>= 0.6.7)
|
446
|
-
|
447
|
-
PLATFORMS
|
448
|
-
ruby
|
449
|
-
|
450
|
-
DEPENDENCIES
|
451
|
-
activejob
|
452
|
-
activemodel-serializers-xml
|
453
|
-
acts-as-taggable-on (>= 3.4.3)
|
454
|
-
acts_as_commentable!
|
455
|
-
acts_as_list
|
456
|
-
bootsnap
|
457
|
-
bootstrap (= 5.0.0)
|
458
|
-
brakeman
|
459
|
-
byebug
|
460
|
-
cancancan (~> 3.0.0)
|
461
|
-
capistrano
|
462
|
-
capistrano-bundler
|
463
|
-
capistrano-rails
|
464
|
-
capistrano-rvm
|
465
|
-
capybara
|
466
|
-
coffee-rails
|
467
|
-
coffee-script-source (~> 1.8, >= 1.8.0)
|
468
|
-
country_select
|
469
|
-
database_cleaner
|
470
|
-
devise (~> 4.6)
|
471
|
-
devise-encryptable
|
472
|
-
devise-i18n
|
473
|
-
dynamic_form
|
474
|
-
email_reply_parser_ffcrm
|
475
|
-
execjs
|
476
|
-
factory_bot_rails (~> 5.0)
|
477
|
-
ffaker (>= 2)
|
478
|
-
font-awesome-rails
|
479
|
-
guard
|
480
|
-
guard-rails
|
481
|
-
guard-rspec
|
482
|
-
haml
|
483
|
-
headless
|
484
|
-
jquery-migrate-rails
|
485
|
-
jquery-rails
|
486
|
-
jquery-ui-rails
|
487
|
-
mini_racer
|
488
|
-
nokogiri (>= 1.8.1)
|
489
|
-
paper_trail (~> 12.0.0)
|
490
|
-
paperclip
|
491
|
-
pg
|
492
|
-
premailer
|
493
|
-
pry-rails
|
494
|
-
puma
|
495
|
-
rails (~> 6.0.0)
|
496
|
-
rails-controller-testing
|
497
|
-
rails-i18n
|
498
|
-
rails-observers
|
499
|
-
rails3-jquery-autocomplete
|
500
|
-
rails_12factor
|
501
|
-
rails_autolink
|
502
|
-
rainbow
|
503
|
-
ransack (>= 1.6.2)
|
504
|
-
ransack_ui
|
505
|
-
rb-fchange
|
506
|
-
rb-fsevent
|
507
|
-
rb-inotify
|
508
|
-
responders (~> 3.0)
|
509
|
-
responds_to_parent!
|
510
|
-
rspec-activemodel-mocks
|
511
|
-
rspec-rails
|
512
|
-
rubocop (~> 0.82.0)
|
513
|
-
sass
|
514
|
-
sass-rails (~> 5.0.3)
|
515
|
-
select2-rails
|
516
|
-
selenium-webdriver
|
517
|
-
simple_form
|
518
|
-
sprockets-rails (>= 3.0.0)
|
519
|
-
sqlite3 (~> 1.4.0)
|
520
|
-
thor
|
521
|
-
timecop
|
522
|
-
tzinfo-data
|
523
|
-
uglifier
|
524
|
-
webdrivers
|
525
|
-
will_paginate
|
526
|
-
zeus
|
527
|
-
|
528
|
-
BUNDLED WITH
|
529
|
-
2.2.17
|
data/Guardfile
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# A sample Guardfile
|
4
|
-
# More info at https://github.com/guard/guard#readme
|
5
|
-
|
6
|
-
guard 'rspec', zeus: true, bundler: false, all_on_start: false, all_after_pass: false, cli: "--color --format nested --fail-fast" do
|
7
|
-
watch(%r{^spec/.+_spec\.rb$})
|
8
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
|
-
watch('spec/spec_helper.rb') { "spec" }
|
10
|
-
|
11
|
-
# Rails example
|
12
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
13
|
-
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
14
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb"] }
|
15
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
16
|
-
watch('config/routes.rb') { "spec/routing" }
|
17
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
18
|
-
|
19
|
-
# Capybara features specs
|
20
|
-
# watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
21
|
-
end
|
22
|
-
|
23
|
-
guard 'rails', server: 'thin', debugger: true, zeus: true do
|
24
|
-
watch('Gemfile.lock')
|
25
|
-
watch(%r{^(config|lib)/.*})
|
26
|
-
end
|
data/Procfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
web: bundle exec puma -C config/puma.rb
|
data/SECURITY.md
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# Security Policy
|
2
|
-
|
3
|
-
## Reporting a Vulnerability
|
4
|
-
|
5
|
-
Please report issues to [security@fatfreecrm.com](mailto:security@fatfreecrm.com). We will work with you to understand the issue and how it can be fixed.
|
6
|
-
|
7
|
-
Please do not disclose the issue publicly until it has been resolved and released. We will give you credit for discovering the issue, once it has been patched and announced, but until then we ask that you consider the security implications of the issue you have found and the impact on others using an un-patched system.
|
8
|
-
|
9
|
-
## Security Advisories
|
10
|
-
|
11
|
-
When security advisories are released by the Fat Free CRM team, they will be announced on the [Fat Free CRM users](https://groups.google.com/forum/#!forum/fat-free-crm-users) google group. If you wish to receive security announcements, you should subscribe to that group.
|
data/Vagrantfile
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# -*- mode: ruby -*-
|
4
|
-
# vi: set ft=ruby :
|
5
|
-
|
6
|
-
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
7
|
-
# configures the configuration version (we support older styles for
|
8
|
-
# backwards compatibility). Please don't change it unless you know what
|
9
|
-
# you're doing.
|
10
|
-
Vagrant.configure("2") do |config|
|
11
|
-
# The most common configuration options are documented and commented below.
|
12
|
-
# For a complete reference, please see the online documentation at
|
13
|
-
# https://docs.vagrantup.com.
|
14
|
-
|
15
|
-
# Every Vagrant development environment requires a box. You can search for
|
16
|
-
# boxes at https://vagrantcloud.com/search.
|
17
|
-
config.vm.box = "ubuntu/xenial64"
|
18
|
-
|
19
|
-
# Disable automatic box update checking. If you disable this, then
|
20
|
-
# boxes will only be checked for updates when the user runs
|
21
|
-
# `vagrant box outdated`. This is not recommended.
|
22
|
-
# config.vm.box_check_update = false
|
23
|
-
|
24
|
-
# Create a forwarded port mapping which allows access to a specific port
|
25
|
-
# within the machine from a port on the host machine. In the example below,
|
26
|
-
# accessing "localhost:8080" will access port 80 on the guest machine.
|
27
|
-
# NOTE: This will enable public access to the opened port
|
28
|
-
config.vm.network "forwarded_port", guest: 80, host: 8080
|
29
|
-
|
30
|
-
# Create a forwarded port mapping which allows access to a specific port
|
31
|
-
# within the machine from a port on the host machine and only allow access
|
32
|
-
# via 127.0.0.1 to disable public access
|
33
|
-
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
34
|
-
|
35
|
-
# Create a private network, which allows host-only access to the machine
|
36
|
-
# using a specific IP.
|
37
|
-
config.vm.network "private_network", ip: "192.168.33.10"
|
38
|
-
|
39
|
-
# Create a public network, which generally matched to bridged network.
|
40
|
-
# Bridged networks make the machine appear as another physical device on
|
41
|
-
# your network.
|
42
|
-
# config.vm.network "public_network"
|
43
|
-
|
44
|
-
# Share an additional folder to the guest VM. The first argument is
|
45
|
-
# the path on the host to the actual folder. The second argument is
|
46
|
-
# the path on the guest to mount the folder. And the optional third
|
47
|
-
# argument is a set of non-required options.
|
48
|
-
# config.vm.synced_folder "../data", "/vagrant_data"
|
49
|
-
|
50
|
-
# Provider-specific configuration so you can fine-tune various
|
51
|
-
# backing providers for Vagrant. These expose provider-specific options.
|
52
|
-
# Example for VirtualBox:
|
53
|
-
#
|
54
|
-
# config.vm.provider "virtualbox" do |vb|
|
55
|
-
# # Display the VirtualBox GUI when booting the machine
|
56
|
-
# vb.gui = true
|
57
|
-
#
|
58
|
-
# # Customize the amount of memory on the VM:
|
59
|
-
# vb.memory = "1024"
|
60
|
-
# end
|
61
|
-
#
|
62
|
-
# View the documentation for the provider you are using for more
|
63
|
-
# information on available options.
|
64
|
-
|
65
|
-
# Enable provisioning with a shell script. Additional provisioners such as
|
66
|
-
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
67
|
-
# documentation for more information about their specific syntax and use.
|
68
|
-
|
69
|
-
config.vm.provision "shell", inline: <<-SHELL
|
70
|
-
apt-get update
|
71
|
-
git clone https://github.com/fatfreecrm/fat_free_crm.git
|
72
|
-
cd fat_free_crm
|
73
|
-
cp config/database.postgres.yml config/database.yml
|
74
|
-
apt-get install -y nginx-full postgresql ruby-all-dev ruby-bundler libmagick++-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev libyaml-dev libpq-dev libsqlite3-dev
|
75
|
-
bundle install
|
76
|
-
echo "ALTER USER postgres PASSWORD '123456';" | sudo -u postgres psql
|
77
|
-
sed -i 's/ username:/ username: postgres/g' 'config/database.yml'
|
78
|
-
sed -i 's/ password:/ password: '123456'/g' 'config/database.yml'
|
79
|
-
rake db:setup
|
80
|
-
rake ffcrm:setup:admin USERNAME=admin PASSWORD=password EMAIL=admin@example.com
|
81
|
-
rm -rf /etc/nginx/sites-available/default
|
82
|
-
echo "server {" > /etc/nginx/sites-available/default
|
83
|
-
echo " listen 80;" >> /etc/nginx/sites-available/default
|
84
|
-
echo " location / {" >> /etc/nginx/sites-available/default
|
85
|
-
echo " proxy_pass http://localhost:3000;" >> /etc/nginx/sites-available/default
|
86
|
-
echo " }" >> /etc/nginx/sites-available/default
|
87
|
-
echo "}" >> /etc/nginx/sites-available/default
|
88
|
-
sudo systemctl stop nginx
|
89
|
-
sudo systemctl start nginx
|
90
|
-
rails s
|
91
|
-
SHELL
|
92
|
-
end
|
data/custom_plan.rb
DELETED
data/docker-compose.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
version: '3'
|
2
|
-
services:
|
3
|
-
web:
|
4
|
-
build: .
|
5
|
-
links:
|
6
|
-
- db
|
7
|
-
ports:
|
8
|
-
- "3000:3000"
|
9
|
-
- "80:80"
|
10
|
-
volumes:
|
11
|
-
- gems:/usr/local/rvm/gems
|
12
|
-
environment:
|
13
|
-
RAILS_ENV: 'production'
|
14
|
-
PASSENGER_APP_ENV: 'production'
|
15
|
-
DB_DATABASE: 'fat_free_crm_production'
|
16
|
-
DB_USERNAME: 'postgres'
|
17
|
-
DB_PASSWORD: ''
|
18
|
-
DB_HOST: 'db'
|
19
|
-
DB_PORT: 5432
|
20
|
-
db:
|
21
|
-
image: postgres:9.5
|
22
|
-
restart: always
|
23
|
-
volumes:
|
24
|
-
- pgdata:/var/lib/postgresql/data
|
25
|
-
volumes:
|
26
|
-
pgdata: {}
|
27
|
-
gems: {}
|