fat_free_crm 0.17.3 → 0.18.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/.dockerignore +11 -0
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +30 -8
- data/.travis.yml +14 -9
- data/CHANGELOG.md +43 -7
- data/CONTRIBUTORS.md +95 -53
- data/Gemfile +11 -7
- data/Gemfile.lock +83 -83
- data/README.md +7 -4
- data/app/assets/javascripts/crm.js.coffee +3 -3
- data/app/assets/javascripts/crm_select2.js.coffee +15 -14
- data/app/controllers/admin/field_groups_controller.rb +8 -1
- 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 +1 -1
- data/app/controllers/application_controller.rb +11 -0
- data/app/controllers/authentications_controller.rb +1 -1
- data/app/controllers/comments_controller.rb +15 -7
- data/app/controllers/entities/campaigns_controller.rb +7 -2
- data/app/controllers/entities/leads_controller.rb +9 -2
- data/app/controllers/entities/opportunities_controller.rb +13 -2
- data/app/controllers/entities_controller.rb +10 -5
- data/app/controllers/lists_controller.rb +5 -1
- data/app/controllers/tasks_controller.rb +15 -1
- data/app/helpers/accounts_helper.rb +1 -1
- data/app/helpers/application_helper.rb +2 -2
- data/app/helpers/leads_helper.rb +1 -1
- data/app/helpers/opportunities_helper.rb +56 -3
- data/app/helpers/tags_helper.rb +1 -1
- data/app/models/entities/lead.rb +0 -7
- data/app/models/entities/opportunity.rb +3 -2
- data/app/models/observers/opportunity_observer.rb +4 -4
- data/app/models/users/ability.rb +3 -4
- data/app/views/campaigns/_metrics.html.haml +3 -3
- data/app/views/home/_opportunity.html.haml +4 -19
- 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/db/schema.rb +0 -3
- data/fat_free_crm.gemspec +1 -1
- 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/fields.rb +1 -1
- data/lib/fat_free_crm/permissions.rb +0 -14
- data/lib/fat_free_crm/version.rb +2 -2
- data/lib/tasks/ffcrm/setup.rake +4 -4
- data/spec/controllers/admin/users_controller_spec.rb +27 -27
- data/spec/controllers/authentications_controller_spec.rb +7 -7
- data/spec/controllers/comments_controller_spec.rb +13 -13
- 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 +67 -67
- data/spec/controllers/entities/leads_controller_spec.rb +125 -125
- data/spec/controllers/entities/opportunities_controller_spec.rb +100 -100
- data/spec/controllers/home_controller_spec.rb +26 -26
- data/spec/controllers/passwords_controller_spec.rb +1 -1
- data/spec/controllers/tasks_controller_spec.rb +37 -37
- data/spec/controllers/users_controller_spec.rb +18 -18
- data/spec/factories/account_factories.rb +8 -8
- data/spec/factories/campaign_factories.rb +5 -5
- data/spec/factories/contact_factories.rb +10 -10
- data/spec/factories/field_factories.rb +7 -7
- data/spec/factories/lead_factories.rb +8 -8
- data/spec/factories/list_factories.rb +1 -1
- data/spec/factories/opportunity_factories.rb +6 -6
- data/spec/factories/sequences.rb +1 -1
- data/spec/factories/setting_factories.rb +3 -3
- data/spec/factories/shared_factories.rb +14 -14
- data/spec/factories/subscription_factories.rb +1 -1
- data/spec/factories/tag_factories.rb +1 -1
- data/spec/factories/task_factories.rb +4 -4
- data/spec/factories/user_factories.rb +13 -13
- data/spec/features/accounts_spec.rb +17 -4
- data/spec/features/admin/groups_spec.rb +1 -1
- data/spec/features/admin/users_spec.rb +1 -1
- data/spec/features/campaigns_spec.rb +4 -4
- data/spec/features/contacts_spec.rb +10 -4
- data/spec/features/dashboard_spec.rb +7 -7
- data/spec/features/leads_spec.rb +4 -4
- data/spec/features/opportunities_overview_spec.rb +15 -15
- data/spec/features/opportunities_spec.rb +34 -8
- data/spec/features/support/autocomlete_helper.rb +17 -0
- data/spec/features/support/browser.rb +3 -8
- data/spec/features/support/helpers.rb +1 -1
- data/spec/features/tasks_spec.rb +4 -4
- 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 +3 -3
- data/spec/lib/comment_extensions_spec.rb +1 -1
- 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 +16 -16
- data/spec/lib/permissions_spec.rb +7 -25
- data/spec/mailers/user_mailer_spec.rb +7 -7
- data/spec/models/entities/account_spec.rb +31 -32
- data/spec/models/entities/campaign_spec.rb +18 -25
- data/spec/models/entities/contact_spec.rb +18 -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_spec.rb +17 -17
- data/spec/models/list_spec.rb +2 -2
- data/spec/models/observers/entity_observer_spec.rb +6 -6
- 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 +26 -26
- data/spec/models/setting_spec.rb +2 -2
- data/spec/models/users/preference_spec.rb +6 -6
- data/spec/models/users/user_spec.rb +26 -26
- data/spec/shared/models.rb +22 -22
- data/spec/spec_helper.rb +2 -2
- data/spec/support/auth_macros.rb +1 -1
- data/spec/support/macros.rb +3 -3
- 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 +2 -2
- 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 +4 -4
- 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 +5 -3
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'
|
11
|
+
when 'mysql'
|
12
|
+
gem 'mysql2'
|
13
|
+
when 'postgres'
|
14
|
+
gem 'pg', '~> 0.21.0' # Pinned, see https://github.com/fatfreecrm/fat_free_crm/pull/689
|
15
|
+
else
|
16
|
+
gem 'pg', '~> 0.21.0'
|
17
|
+
end
|
14
18
|
|
15
19
|
# Removes a gem dependency
|
16
20
|
def remove(name)
|
@@ -62,7 +66,7 @@ group :development, :test do
|
|
62
66
|
gem 'headless'
|
63
67
|
gem 'byebug'
|
64
68
|
gem 'pry-rails' unless ENV["CI"]
|
65
|
-
gem '
|
69
|
+
gem 'factory_bot_rails'
|
66
70
|
gem 'rubocop', '~> 0.52.0' # Pinned because upgrades require regenerating rubocop_todo.yml
|
67
71
|
gem 'rainbow'
|
68
72
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actioncable (5.1.
|
5
|
-
actionpack (= 5.1.
|
4
|
+
actioncable (5.1.6)
|
5
|
+
actionpack (= 5.1.6)
|
6
6
|
nio4r (~> 2.0)
|
7
7
|
websocket-driver (~> 0.6.1)
|
8
|
-
actionmailer (5.1.
|
9
|
-
actionpack (= 5.1.
|
10
|
-
actionview (= 5.1.
|
11
|
-
activejob (= 5.1.
|
8
|
+
actionmailer (5.1.6)
|
9
|
+
actionpack (= 5.1.6)
|
10
|
+
actionview (= 5.1.6)
|
11
|
+
activejob (= 5.1.6)
|
12
12
|
mail (~> 2.5, >= 2.5.4)
|
13
13
|
rails-dom-testing (~> 2.0)
|
14
|
-
actionpack (5.1.
|
15
|
-
actionview (= 5.1.
|
16
|
-
activesupport (= 5.1.
|
14
|
+
actionpack (5.1.6)
|
15
|
+
actionview (= 5.1.6)
|
16
|
+
activesupport (= 5.1.6)
|
17
17
|
rack (~> 2.0)
|
18
18
|
rack-test (>= 0.6.3)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
20
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
-
actionview (5.1.
|
22
|
-
activesupport (= 5.1.
|
21
|
+
actionview (5.1.6)
|
22
|
+
activesupport (= 5.1.6)
|
23
23
|
builder (~> 3.1)
|
24
24
|
erubi (~> 1.4)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
27
|
-
activejob (5.1.
|
28
|
-
activesupport (= 5.1.
|
27
|
+
activejob (5.1.6)
|
28
|
+
activesupport (= 5.1.6)
|
29
29
|
globalid (>= 0.3.6)
|
30
|
-
activemodel (5.1.
|
31
|
-
activesupport (= 5.1.
|
30
|
+
activemodel (5.1.6)
|
31
|
+
activesupport (= 5.1.6)
|
32
32
|
activemodel-serializers-xml (1.0.2)
|
33
33
|
activemodel (> 5.x)
|
34
34
|
activesupport (> 5.x)
|
35
35
|
builder (~> 3.1)
|
36
|
-
activerecord (5.1.
|
37
|
-
activemodel (= 5.1.
|
38
|
-
activesupport (= 5.1.
|
36
|
+
activerecord (5.1.6)
|
37
|
+
activemodel (= 5.1.6)
|
38
|
+
activesupport (= 5.1.6)
|
39
39
|
arel (~> 8.0)
|
40
|
-
activesupport (5.1.
|
40
|
+
activesupport (5.1.6)
|
41
41
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
42
|
-
i18n (
|
42
|
+
i18n (>= 0.7, < 2)
|
43
43
|
minitest (~> 5.1)
|
44
44
|
tzinfo (~> 1.1)
|
45
45
|
acts-as-taggable-on (5.0.0)
|
@@ -54,21 +54,21 @@ GEM
|
|
54
54
|
public_suffix (>= 2.0.2, < 4.0)
|
55
55
|
airbrussh (1.3.0)
|
56
56
|
sshkit (>= 1.6.1, != 1.7.0)
|
57
|
-
archive-zip (0.
|
57
|
+
archive-zip (0.11.0)
|
58
58
|
io-like (~> 0.3.0)
|
59
59
|
arel (8.0.0)
|
60
|
-
ast (2.
|
61
|
-
authlogic (3.
|
62
|
-
activerecord (>= 3.2, < 5.
|
63
|
-
activesupport (>= 3.2, < 5.
|
60
|
+
ast (2.4.0)
|
61
|
+
authlogic (3.8.0)
|
62
|
+
activerecord (>= 3.2, < 5.3)
|
63
|
+
activesupport (>= 3.2, < 5.3)
|
64
64
|
request_store (~> 1.0)
|
65
65
|
scrypt (>= 1.2, < 4.0)
|
66
66
|
bootsnap (1.1.8)
|
67
67
|
msgpack (~> 1.0)
|
68
68
|
brakeman (4.1.1)
|
69
69
|
builder (3.2.3)
|
70
|
-
byebug (
|
71
|
-
cancancan (2.1.
|
70
|
+
byebug (10.0.0)
|
71
|
+
cancancan (2.1.3)
|
72
72
|
capistrano (3.10.1)
|
73
73
|
airbrussh (>= 1.0.0)
|
74
74
|
i18n
|
@@ -83,7 +83,7 @@ GEM
|
|
83
83
|
capistrano-rvm (0.1.2)
|
84
84
|
capistrano (~> 3.0)
|
85
85
|
sshkit (~> 1.2)
|
86
|
-
capybara (2.
|
86
|
+
capybara (2.18.0)
|
87
87
|
addressable
|
88
88
|
mini_mime (>= 0.1.3)
|
89
89
|
nokogiri (>= 1.3.3)
|
@@ -92,9 +92,9 @@ GEM
|
|
92
92
|
xpath (>= 2.0, < 4.0)
|
93
93
|
childprocess (0.8.0)
|
94
94
|
ffi (~> 1.0, >= 1.0.11)
|
95
|
-
chromedriver-helper (1.
|
96
|
-
archive-zip (~> 0.
|
97
|
-
nokogiri (~> 1.
|
95
|
+
chromedriver-helper (1.2.0)
|
96
|
+
archive-zip (~> 0.10)
|
97
|
+
nokogiri (~> 1.8)
|
98
98
|
chronic (0.10.2)
|
99
99
|
climate_control (0.2.0)
|
100
100
|
cocaine (0.5.8)
|
@@ -108,7 +108,7 @@ GEM
|
|
108
108
|
execjs
|
109
109
|
coffee-script-source (1.12.2)
|
110
110
|
concurrent-ruby (1.0.5)
|
111
|
-
countries (2.1.
|
111
|
+
countries (2.1.4)
|
112
112
|
i18n_data (~> 0.8.0)
|
113
113
|
money (~> 6.9)
|
114
114
|
sixarm_ruby_unaccent (~> 1.1)
|
@@ -116,22 +116,22 @@ GEM
|
|
116
116
|
country_select (3.1.1)
|
117
117
|
countries (~> 2.0)
|
118
118
|
sort_alphabetical (~> 1.0)
|
119
|
-
crass (1.0.
|
119
|
+
crass (1.0.4)
|
120
120
|
css_parser (1.6.0)
|
121
121
|
addressable
|
122
122
|
database_cleaner (1.6.2)
|
123
123
|
diff-lcs (1.3)
|
124
124
|
dynamic_form (1.1.4)
|
125
125
|
email_reply_parser_ffcrm (0.5.0)
|
126
|
-
erubi (1.7.
|
126
|
+
erubi (1.7.1)
|
127
127
|
execjs (2.7.0)
|
128
|
-
|
128
|
+
factory_bot (4.8.2)
|
129
129
|
activesupport (>= 3.0.0)
|
130
|
-
|
131
|
-
|
130
|
+
factory_bot_rails (4.8.2)
|
131
|
+
factory_bot (~> 4.8.2)
|
132
132
|
railties (>= 3.0.0)
|
133
|
-
ffaker (2.8.
|
134
|
-
ffi (1.9.
|
133
|
+
ffaker (2.8.1)
|
134
|
+
ffi (1.9.23)
|
135
135
|
ffi-compiler (1.0.1)
|
136
136
|
ffi (>= 1.0.0)
|
137
137
|
rake
|
@@ -162,7 +162,7 @@ GEM
|
|
162
162
|
tilt
|
163
163
|
headless (2.3.1)
|
164
164
|
htmlentities (4.3.4)
|
165
|
-
i18n (0.9.
|
165
|
+
i18n (0.9.5)
|
166
166
|
concurrent-ruby (~> 1.0)
|
167
167
|
i18n_data (0.8.0)
|
168
168
|
io-like (0.3.0)
|
@@ -178,7 +178,7 @@ GEM
|
|
178
178
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
179
179
|
rb-inotify (~> 0.9, >= 0.9.7)
|
180
180
|
ruby_dep (~> 1.2)
|
181
|
-
loofah (2.
|
181
|
+
loofah (2.2.2)
|
182
182
|
crass (~> 1.0.2)
|
183
183
|
nokogiri (>= 1.5.9)
|
184
184
|
lumberjack (1.0.12)
|
@@ -191,16 +191,16 @@ GEM
|
|
191
191
|
mimemagic (0.3.2)
|
192
192
|
mini_mime (1.0.0)
|
193
193
|
mini_portile2 (2.3.0)
|
194
|
-
minitest (5.11.
|
194
|
+
minitest (5.11.3)
|
195
195
|
money (6.10.1)
|
196
196
|
i18n (>= 0.6.4, < 1.0)
|
197
|
-
msgpack (1.2.
|
197
|
+
msgpack (1.2.2)
|
198
198
|
nenv (0.3.0)
|
199
199
|
net-scp (1.2.1)
|
200
200
|
net-ssh (>= 2.6.5)
|
201
201
|
net-ssh (4.2.0)
|
202
|
-
nio4r (2.
|
203
|
-
nokogiri (1.8.
|
202
|
+
nio4r (2.3.0)
|
203
|
+
nokogiri (1.8.2)
|
204
204
|
mini_portile2 (~> 2.3.0)
|
205
205
|
notiffany (0.1.1)
|
206
206
|
nenv (~> 0.1)
|
@@ -208,17 +208,17 @@ GEM
|
|
208
208
|
paper_trail (6.0.2)
|
209
209
|
activerecord (>= 4.0, < 5.2)
|
210
210
|
request_store (~> 1.1)
|
211
|
-
paperclip (5.2.
|
211
|
+
paperclip (5.2.1)
|
212
212
|
activemodel (>= 4.2.0)
|
213
213
|
activesupport (>= 4.2.0)
|
214
214
|
cocaine (~> 0.5.5)
|
215
215
|
mime-types
|
216
216
|
mimemagic (~> 0.3.0)
|
217
217
|
parallel (1.12.1)
|
218
|
-
parser (2.
|
219
|
-
ast (~> 2.
|
218
|
+
parser (2.5.0.0)
|
219
|
+
ast (~> 2.4.0)
|
220
220
|
pg (0.21.0)
|
221
|
-
polyamorous (1.3.
|
221
|
+
polyamorous (1.3.3)
|
222
222
|
activerecord (>= 3.0)
|
223
223
|
powerpack (0.1.1)
|
224
224
|
premailer (1.11.1)
|
@@ -230,22 +230,22 @@ GEM
|
|
230
230
|
method_source (~> 0.9.0)
|
231
231
|
pry-rails (0.3.6)
|
232
232
|
pry (>= 0.10.4)
|
233
|
-
public_suffix (3.0.
|
234
|
-
puma (3.11.
|
235
|
-
rack (2.0.
|
236
|
-
rack-test (0.
|
233
|
+
public_suffix (3.0.2)
|
234
|
+
puma (3.11.2)
|
235
|
+
rack (2.0.4)
|
236
|
+
rack-test (1.0.0)
|
237
237
|
rack (>= 1.0, < 3)
|
238
|
-
rails (5.1.
|
239
|
-
actioncable (= 5.1.
|
240
|
-
actionmailer (= 5.1.
|
241
|
-
actionpack (= 5.1.
|
242
|
-
actionview (= 5.1.
|
243
|
-
activejob (= 5.1.
|
244
|
-
activemodel (= 5.1.
|
245
|
-
activerecord (= 5.1.
|
246
|
-
activesupport (= 5.1.
|
238
|
+
rails (5.1.6)
|
239
|
+
actioncable (= 5.1.6)
|
240
|
+
actionmailer (= 5.1.6)
|
241
|
+
actionpack (= 5.1.6)
|
242
|
+
actionview (= 5.1.6)
|
243
|
+
activejob (= 5.1.6)
|
244
|
+
activemodel (= 5.1.6)
|
245
|
+
activerecord (= 5.1.6)
|
246
|
+
activesupport (= 5.1.6)
|
247
247
|
bundler (>= 1.3.0)
|
248
|
-
railties (= 5.1.
|
248
|
+
railties (= 5.1.6)
|
249
249
|
sprockets-rails (>= 2.0.0)
|
250
250
|
rails-controller-testing (1.0.2)
|
251
251
|
actionpack (~> 5.x, >= 5.0.1)
|
@@ -254,11 +254,11 @@ GEM
|
|
254
254
|
rails-dom-testing (2.0.3)
|
255
255
|
activesupport (>= 4.2.0)
|
256
256
|
nokogiri (>= 1.6)
|
257
|
-
rails-html-sanitizer (1.0.
|
258
|
-
loofah (~> 2.
|
259
|
-
rails-i18n (5.0
|
260
|
-
i18n (
|
261
|
-
railties (
|
257
|
+
rails-html-sanitizer (1.0.4)
|
258
|
+
loofah (~> 2.2, >= 2.2.2)
|
259
|
+
rails-i18n (5.1.0)
|
260
|
+
i18n (>= 0.7, < 2)
|
261
|
+
railties (>= 5.0, < 6)
|
262
262
|
rails-observers (0.1.5)
|
263
263
|
activemodel (>= 4.0)
|
264
264
|
rails3-jquery-autocomplete (1.0.15)
|
@@ -270,20 +270,20 @@ GEM
|
|
270
270
|
rails (> 3.1)
|
271
271
|
rails_serve_static_assets (0.0.5)
|
272
272
|
rails_stdout_logging (0.0.5)
|
273
|
-
railties (5.1.
|
274
|
-
actionpack (= 5.1.
|
275
|
-
activesupport (= 5.1.
|
273
|
+
railties (5.1.6)
|
274
|
+
actionpack (= 5.1.6)
|
275
|
+
activesupport (= 5.1.6)
|
276
276
|
method_source
|
277
277
|
rake (>= 0.8.7)
|
278
278
|
thor (>= 0.18.1, < 2.0)
|
279
279
|
rainbow (3.0.0)
|
280
|
-
rake (12.3.
|
281
|
-
ransack (1.8.
|
280
|
+
rake (12.3.1)
|
281
|
+
ransack (1.8.7)
|
282
282
|
actionpack (>= 3.0)
|
283
283
|
activerecord (>= 3.0)
|
284
284
|
activesupport (>= 3.0)
|
285
285
|
i18n
|
286
|
-
polyamorous (~> 1.3)
|
286
|
+
polyamorous (~> 1.3.2)
|
287
287
|
ransack_chronic (1.1.0)
|
288
288
|
chronic (>= 0.6.7)
|
289
289
|
ransack_ui (1.3.4)
|
@@ -325,7 +325,7 @@ GEM
|
|
325
325
|
rspec-expectations (~> 3.7.0)
|
326
326
|
rspec-mocks (~> 3.7.0)
|
327
327
|
rspec-support (~> 3.7.0)
|
328
|
-
rspec-support (3.7.
|
328
|
+
rspec-support (3.7.1)
|
329
329
|
rubocop (0.52.1)
|
330
330
|
parallel (~> 1.10)
|
331
331
|
parser (>= 2.4.0.2, < 3.0)
|
@@ -351,11 +351,11 @@ GEM
|
|
351
351
|
ffi-compiler (>= 1.0, < 2.0)
|
352
352
|
select2-rails (4.0.3)
|
353
353
|
thor (~> 0.14)
|
354
|
-
selenium-webdriver (3.
|
354
|
+
selenium-webdriver (3.9.0)
|
355
355
|
childprocess (~> 0.5)
|
356
|
-
rubyzip (~> 1.
|
356
|
+
rubyzip (~> 1.2)
|
357
357
|
shellany (0.0.1)
|
358
|
-
simple_form (3.5.
|
358
|
+
simple_form (3.5.1)
|
359
359
|
actionpack (> 4, < 5.2)
|
360
360
|
activemodel (> 4, < 5.2)
|
361
361
|
sixarm_ruby_unaccent (1.2.0)
|
@@ -369,7 +369,7 @@ GEM
|
|
369
369
|
activesupport (>= 4.0)
|
370
370
|
sprockets (>= 3.0.0)
|
371
371
|
sqlite3 (1.3.13)
|
372
|
-
sshkit (1.
|
372
|
+
sshkit (1.16.0)
|
373
373
|
net-scp (>= 1.1.2)
|
374
374
|
net-ssh (>= 2.8.0)
|
375
375
|
temple (0.8.0)
|
@@ -380,9 +380,9 @@ GEM
|
|
380
380
|
thread_safe (0.3.6)
|
381
381
|
tilt (2.0.8)
|
382
382
|
timecop (0.9.1)
|
383
|
-
tzinfo (1.2.
|
383
|
+
tzinfo (1.2.5)
|
384
384
|
thread_safe (~> 0.1)
|
385
|
-
uglifier (4.1.
|
385
|
+
uglifier (4.1.6)
|
386
386
|
execjs (>= 0.3.0, < 3)
|
387
387
|
unicode-display_width (1.3.0)
|
388
388
|
unicode_utils (1.4.0)
|
@@ -423,7 +423,7 @@ DEPENDENCIES
|
|
423
423
|
dynamic_form
|
424
424
|
email_reply_parser_ffcrm
|
425
425
|
execjs
|
426
|
-
|
426
|
+
factory_bot_rails
|
427
427
|
ffaker (>= 2)
|
428
428
|
font-awesome-rails
|
429
429
|
guard
|
@@ -437,7 +437,7 @@ DEPENDENCIES
|
|
437
437
|
nokogiri (>= 1.8.1)
|
438
438
|
paper_trail (~> 6.0.0)
|
439
439
|
paperclip
|
440
|
-
pg
|
440
|
+
pg (~> 0.21.0)
|
441
441
|
premailer
|
442
442
|
pry-rails
|
443
443
|
puma
|
data/README.md
CHANGED
@@ -53,7 +53,7 @@ Visit our website at http://www.fatfreecrm.com/
|
|
53
53
|
|
54
54
|
## System Requirements
|
55
55
|
|
56
|
-
* Ruby 2.
|
56
|
+
* Ruby 2.4+ recommended
|
57
57
|
* MySQL v4.1.1 or later (v5+ is recommended), SQLite v3.4 or later, or Postgres 8.4.8 or later.
|
58
58
|
* ImageMagick (optional, only needed if you would like to use avatars)
|
59
59
|
|
@@ -116,15 +116,18 @@ Tests can easily be run by typing 'rake' but please note that they do take a whi
|
|
116
116
|
## Main contributors
|
117
117
|
|
118
118
|
* [Michael Dvorkin (@michaeldv)](https://github.com/michaeldv) - Founding creator
|
119
|
-
*
|
120
|
-
*
|
119
|
+
* CloCkWeRX
|
120
|
+
* johnnyshield
|
121
|
+
* DmitryAvramec
|
122
|
+
* steveyken
|
123
|
+
|
121
124
|
|
122
125
|
See the [contributors graph](https://github.com/fatfreecrm/fat_free_crm/graphs/contributors) and the [contributors file](https://github.com/fatfreecrm/fat_free_crm/blob/master/CONTRIBUTORS) for further details.
|
123
126
|
|
124
127
|
## License
|
125
128
|
|
126
129
|
Fat Free CRM
|
127
|
-
Copyright (c) 2008-
|
130
|
+
Copyright (c) 2008-2018 Michael Dvorkin and contributors.
|
128
131
|
|
129
132
|
Permission is hereby granted, free of charge, to any person obtaining
|
130
133
|
a copy of this software and associated documentation files (the
|
@@ -374,9 +374,9 @@
|
|
374
374
|
source: (request, response) =>
|
375
375
|
request = {auto_complete_query: request['term'], related: related}
|
376
376
|
$.get @base_url + "/" + controller + "/auto_complete.json", request, (data) ->
|
377
|
-
response $.map(data, (value
|
378
|
-
label: value
|
379
|
-
value:
|
377
|
+
response $.map(data.results, (value) ->
|
378
|
+
label: value.text
|
379
|
+
value: value.id
|
380
380
|
)
|
381
381
|
|
382
382
|
# Attach to related asset.
|
@@ -11,22 +11,23 @@
|
|
11
11
|
|
12
12
|
crm.make_select2 = ->
|
13
13
|
$(".select2").not(".select2-container, .select2-offscreen, .select2-hidden-accessible").each ->
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
$(this).
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
$(this).
|
25
|
-
|
26
|
-
|
14
|
+
if $(this).data("url")
|
15
|
+
$(this).select2
|
16
|
+
'width':'resolve'
|
17
|
+
placeholder: $(this).attr("placeholder")
|
18
|
+
ajax:
|
19
|
+
url: $(this).data("url")
|
20
|
+
dataType: 'json'
|
21
|
+
else
|
22
|
+
$(this).select2
|
23
|
+
'width':'resolve'
|
24
|
+
placeholder: $(this).attr("placeholder")
|
25
|
+
|
26
|
+
if $(this).prop("disabled") == true
|
27
|
+
$(this).next('.select2-container').disable()
|
28
|
+
$(this).next('.select2-container').hide()
|
27
29
|
|
28
30
|
$(".select2_tag").not(".select2-container, .select2-offscreen").each ->
|
29
|
-
#$(".select2_tag").each ->
|
30
31
|
$(this).select2
|
31
32
|
'width':'resolve'
|
32
33
|
placeholder: $(this).data("placeholder")
|