fat_free_crm 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fat_free_crm might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/config/initializers/action_mailer.rb +7 -7
- data/config/initializers/custom_field_ransack_translations.rb +3 -3
- data/config/initializers/relative_url_root.rb +3 -1
- data/config/initializers/secret_token.rb +6 -2
- data/db/fat_free_crm_development.sqlite3 +0 -0
- data/db/fat_free_crm_test.sqlite3 +0 -0
- data/db/fat_free_crm_test.sqlite3-shm +0 -0
- data/db/fat_free_crm_test.sqlite3-wal +0 -0
- data/db/migrate/20230526212613_convert_to_active_storage.rb +2 -2
- data/lib/fat_free_crm/version.rb +1 -1
- metadata +7 -9
- data/db/fat_free_crm_development.sqlite3-shm +0 -0
- data/db/fat_free_crm_development.sqlite3-wal +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12985fcc9a5bd872776d35ce530c83469607adbab241bc2750b1c7f3652c09f8
|
4
|
+
data.tar.gz: 1571d711121e35ca2990fccc54a936cbe10b3c15e260972f9274daf75f555f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d932db7ffc1acf32f243e3d7dd59deef7e6cbcf1f206e18b88b804b8972ef2cd0832ef20fef631039b6a52246b15c09942271b0e805a826e866dd119556bd97b
|
7
|
+
data.tar.gz: c751929fbf6656aebea0937e8482c9c284f9c3ca9186019461ba6074904182e3a6ffd0a604965732403b2c76bf04600f03e773e64ae318d890c48a6e596c49cf
|
@@ -9,15 +9,15 @@
|
|
9
9
|
# Configure ActionMailer unless running tests
|
10
10
|
# ActionMailer is setup in test mode later on
|
11
11
|
#
|
12
|
-
unless Rails.env.test?
|
13
|
-
require 'setting'
|
14
12
|
|
15
|
-
|
13
|
+
Rails.application.config.after_initialize do
|
14
|
+
unless Rails.env.test?
|
15
|
+
smtp_settings = Setting.smtp || {}
|
16
16
|
|
17
|
-
|
17
|
+
Rails.application.config.action_mailer.smtp_settings = smtp_settings.symbolize_keys if smtp_settings["address"].present?
|
18
18
|
|
19
|
-
|
20
|
-
|
19
|
+
if (host = Setting.host).present?
|
20
|
+
(Rails.application.routes.default_url_options ||= {})[:host] = host.gsub('http://', '')
|
21
|
+
end
|
21
22
|
end
|
22
|
-
|
23
23
|
end
|
@@ -6,9 +6,9 @@
|
|
6
6
|
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
7
7
|
#------------------------------------------------------------------------------
|
8
8
|
# Load field names for custom fields, for Ransack search
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
Rails.application.config.after_initialize do
|
11
|
+
if ActiveRecord::Base.connection.table_exists?(:custom_fields)
|
12
12
|
I18n.backend.load_translations
|
13
13
|
|
14
14
|
translations = { ransack: { attributes: {} } }
|
@@ -7,4 +7,6 @@
|
|
7
7
|
#------------------------------------------------------------------------------
|
8
8
|
# Set relative url root for assets
|
9
9
|
|
10
|
-
|
10
|
+
Rails.application.config.after_initialize do
|
11
|
+
ActionController::Base.relative_url_root = Setting.base_url if Setting.base_url.present?
|
12
|
+
end
|
@@ -22,6 +22,10 @@
|
|
22
22
|
# We should setup a secret token if FFCRM is running in application mode but NOT in engine mode.
|
23
23
|
# This functionality has been extracted to lib so it can be tested.
|
24
24
|
if FatFreeCRM.application?
|
25
|
-
|
26
|
-
|
25
|
+
|
26
|
+
Rails.application.config.after_initialize do
|
27
|
+
require 'fat_free_crm/secret_token_generator'
|
28
|
+
|
29
|
+
FatFreeCRM::SecretTokenGenerator.setup!
|
30
|
+
end
|
27
31
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -11,8 +11,8 @@ class ConvertToActiveStorage < ActiveRecord::Migration[5.2]
|
|
11
11
|
else
|
12
12
|
'LASTVAL()'
|
13
13
|
end
|
14
|
-
get_blob_id = 'LAST_INSERT_ROWID()' if conn.is_a?(SQLite3::Database)
|
15
|
-
if conn.is_a?(::PG::Connection)
|
14
|
+
get_blob_id = 'LAST_INSERT_ROWID()' if Object.const_defined?("SQLite3") && conn.is_a?(SQLite3::Database)
|
15
|
+
if Object.const_defined?("PG") && conn.is_a?(::PG::Connection)
|
16
16
|
get_blob_id = 'LASTVAL()'
|
17
17
|
conn.prepare('active_storage_blobs', <<-SQL)
|
18
18
|
INSERT INTO active_storage_blobs (
|
data/lib/fat_free_crm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_free_crm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Dvorkin
|
@@ -228,19 +228,19 @@ dependencies:
|
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: 0.2.0
|
230
230
|
- !ruby/object:Gem::Dependency
|
231
|
-
name:
|
231
|
+
name: acts_as_commentable2
|
232
232
|
requirement: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- - "
|
234
|
+
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 7.1.0
|
237
237
|
type: :runtime
|
238
238
|
prerelease: false
|
239
239
|
version_requirements: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- - "
|
241
|
+
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version:
|
243
|
+
version: 7.1.0
|
244
244
|
- !ruby/object:Gem::Dependency
|
245
245
|
name: acts-as-taggable-on
|
246
246
|
requirement: !ruby/object:Gem::Requirement
|
@@ -382,7 +382,7 @@ dependencies:
|
|
382
382
|
- !ruby/object:Gem::Version
|
383
383
|
version: '0'
|
384
384
|
- !ruby/object:Gem::Dependency
|
385
|
-
name:
|
385
|
+
name: responds_to_parent2
|
386
386
|
requirement: !ruby/object:Gem::Requirement
|
387
387
|
requirements:
|
388
388
|
- - ">="
|
@@ -1090,8 +1090,6 @@ files:
|
|
1090
1090
|
- db/demo/tasks.yml
|
1091
1091
|
- db/demo/users.yml
|
1092
1092
|
- db/fat_free_crm_development.sqlite3
|
1093
|
-
- db/fat_free_crm_development.sqlite3-shm
|
1094
|
-
- db/fat_free_crm_development.sqlite3-wal
|
1095
1093
|
- db/fat_free_crm_test.sqlite3
|
1096
1094
|
- db/fat_free_crm_test.sqlite3-shm
|
1097
1095
|
- db/fat_free_crm_test.sqlite3-wal
|
Binary file
|
File without changes
|