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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 355e27d31add131b594ac6284785c1853536a964d5734f65ab061d392a7f12e5
4
- data.tar.gz: f2ced50b2fc1750144b57fe9a117c0cff51e27bf4f55ab7bf151e39106945967
3
+ metadata.gz: 12985fcc9a5bd872776d35ce530c83469607adbab241bc2750b1c7f3652c09f8
4
+ data.tar.gz: 1571d711121e35ca2990fccc54a936cbe10b3c15e260972f9274daf75f555f83
5
5
  SHA512:
6
- metadata.gz: 5a428fd5c4f4700f7f4876cc363608733de6083bc081e9b47146fc0167ebc5a23254433c8e918e25f0f388dd1f078b52d1d0c1dd1f7abf6a33c30b8f6ad9807b
7
- data.tar.gz: c293aed6006c339ecc4b4c314952d2350017f830e199346663ab95de2652fbc08d0c2b9cedd6a02288f44c3272de2ccf6f6feb0ccdcb1d9372b219bd26eb82ef
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
- smtp_settings = Setting.smtp || {}
13
+ Rails.application.config.after_initialize do
14
+ unless Rails.env.test?
15
+ smtp_settings = Setting.smtp || {}
16
16
 
17
- Rails.application.config.action_mailer.smtp_settings = smtp_settings.symbolize_keys if smtp_settings["address"].present?
17
+ Rails.application.config.action_mailer.smtp_settings = smtp_settings.symbolize_keys if smtp_settings["address"].present?
18
18
 
19
- if (host = Setting.host).present?
20
- (Rails.application.routes.default_url_options ||= {})[:host] = host.gsub('http://', '')
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
- require 'setting'
10
- if Setting.database_and_table_exists? && ActiveRecord::Base.connection.table_exists?(:custom_fields)
11
- Rails.application.config.after_initialize do
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
- ActionController::Base.relative_url_root = Setting.base_url if Setting.base_url.present?
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
- require 'fat_free_crm/secret_token_generator'
26
- FatFreeCRM::SecretTokenGenerator.setup!
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 (
@@ -9,7 +9,7 @@ module FatFreeCRM
9
9
  module VERSION # :nodoc:
10
10
  MAJOR = 0
11
11
  MINOR = 24
12
- TINY = 1
12
+ TINY = 3
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.1
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: acts_as_commentable
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: '6.1'
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: '6.1'
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: responds_to_parent
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
File without changes