fat_free_crm 0.23.0 → 0.24.1

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: 170884fee8c43222891b33e09f6a1996c6a33c70cf5839de3eae5ab987340ef1
4
- data.tar.gz: d1f638adddae45577b72fc71d24b88f1ec7ca8513b98ae2a29ba9977ea5b5c28
3
+ metadata.gz: 355e27d31add131b594ac6284785c1853536a964d5734f65ab061d392a7f12e5
4
+ data.tar.gz: f2ced50b2fc1750144b57fe9a117c0cff51e27bf4f55ab7bf151e39106945967
5
5
  SHA512:
6
- metadata.gz: e5284a4f39f18595dfb12b87acf4052fb464a432675959f3c0e58a6edb3eeb59899e11bcff8433e3f251656bba35eea6e5f0abde513d4dc56c1c3fce98f576d3
7
- data.tar.gz: 5644a00f3ebf9db88505d686591856d8614c4ac7908bf484fe5147494b656aacda669e236fcabdce48801d9e96cf19454b22f586aa2902ffb3e70c3bffd75a32
6
+ metadata.gz: 5a428fd5c4f4700f7f4876cc363608733de6083bc081e9b47146fc0167ebc5a23254433c8e918e25f0f388dd1f078b52d1d0c1dd1f7abf6a33c30b8f6ad9807b
7
+ data.tar.gz: c293aed6006c339ecc4b4c314952d2350017f830e199346663ab95de2652fbc08d0c2b9cedd6a02288f44c3272de2ccf6f6feb0ccdcb1d9372b219bd26eb82ef
@@ -41,7 +41,7 @@ class Account < ActiveRecord::Base
41
41
  has_many :addresses, dependent: :destroy, as: :addressable, class_name: "Address" # advanced search uses this
42
42
  has_many :emails, as: :mediator
43
43
 
44
- serialize :subscribed_users, Array
44
+ serialize :subscribed_users, type: Array
45
45
 
46
46
  accepts_nested_attributes_for :billing_address, allow_destroy: true, reject_if: proc { |attributes| Address.reject_address(attributes) }
47
47
  accepts_nested_attributes_for :shipping_address, allow_destroy: true, reject_if: proc { |attributes| Address.reject_address(attributes) }
@@ -39,7 +39,7 @@ class Campaign < ActiveRecord::Base
39
39
  has_many :opportunities, -> { order "id DESC" }
40
40
  has_many :emails, as: :mediator
41
41
 
42
- serialize :subscribed_users, Array
42
+ serialize :subscribed_users, type: Array
43
43
 
44
44
  scope :state, lambda { |filters|
45
45
  where('status IN (?)' + (filters.delete('other') ? ' OR status IS NULL' : ''), filters)
@@ -57,7 +57,7 @@ class Contact < ActiveRecord::Base
57
57
  has_ransackable_associations %w[account opportunities tags activities emails addresses comments tasks]
58
58
  ransack_can_autocomplete
59
59
 
60
- serialize :subscribed_users, Array
60
+ serialize :subscribed_users, type: Array
61
61
 
62
62
  accepts_nested_attributes_for :business_address, allow_destroy: true, reject_if: proc { |attributes| Address.reject_address(attributes) }
63
63
 
@@ -48,7 +48,7 @@ class Lead < ActiveRecord::Base
48
48
  has_many :addresses, dependent: :destroy, as: :addressable, class_name: "Address" # advanced search uses this
49
49
  has_many :emails, as: :mediator
50
50
 
51
- serialize :subscribed_users, Array
51
+ serialize :subscribed_users, type: Array
52
52
 
53
53
  accepts_nested_attributes_for :business_address, allow_destroy: true, reject_if: proc { |attributes| Address.reject_address(attributes) }
54
54
 
@@ -38,7 +38,7 @@ class Opportunity < ActiveRecord::Base
38
38
  has_many :tasks, as: :asset, dependent: :destroy # , :order => 'created_at DESC'
39
39
  has_many :emails, as: :mediator
40
40
 
41
- serialize :subscribed_users, Array
41
+ serialize :subscribed_users, type: Array
42
42
 
43
43
  scope :state, lambda { |filters|
44
44
  where('stage IN (?)' + (filters.delete('other') ? ' OR stage IS NULL' : ''), filters)
@@ -31,8 +31,8 @@
31
31
  class Field < ActiveRecord::Base
32
32
  acts_as_list
33
33
 
34
- serialize :collection, Array
35
- serialize :settings, HashWithIndifferentAccess
34
+ serialize :collection, type: Array
35
+ serialize :settings, type: HashWithIndifferentAccess
36
36
 
37
37
  belongs_to :field_group, optional: true
38
38
 
@@ -39,7 +39,7 @@ class Task < ActiveRecord::Base
39
39
  belongs_to :completor, class_name: "User", foreign_key: :completed_by, optional: true # TODO: Is this really optional?
40
40
  belongs_to :asset, polymorphic: true, optional: true # TODO: Is this really optional?
41
41
 
42
- serialize :subscribed_users, Array
42
+ serialize :subscribed_users, type: Array
43
43
 
44
44
  # Tasks created by the user for herself, or assigned to her by others. That's
45
45
  # what gets shown on Tasks/Pending and Tasks/Completed pages.
@@ -15,7 +15,7 @@ xml.rss version: "2.0" do
15
15
  xml.channel do
16
16
  xml.generator "Fat Free CRM v#{FatFreeCRM::VERSION::STRING}"
17
17
  xml.link send(:"#{items}_url")
18
- xml.pubDate Time.now.to_s(:rfc822)
18
+ xml.pubDate Time.now.to_fs(:rfc822)
19
19
  xml.title title || t(items.to_sym)
20
20
 
21
21
  assets.each do |asset|
@@ -25,7 +25,7 @@ xml.rss version: "2.0" do
25
25
  xml.description send(:"#{item}_summary", asset) if respond_to?(:"#{item}_summary")
26
26
  xml.guid url
27
27
  xml.link url
28
- xml.pubDate asset.created_at.to_s(:rfc822)
28
+ xml.pubDate asset.created_at.to_fs(:rfc822)
29
29
  xml.title !asset.is_a?(User) ? asset.name : "#{asset.full_name} (#{asset.username})"
30
30
  end
31
31
  end
@@ -13,7 +13,7 @@ xml.rss version: "2.0" do
13
13
  xml.channel do
14
14
  xml.generator "Fat Free CRM v#{FatFreeCRM::VERSION::STRING}"
15
15
  xml.link send(:"#{@items}_url")
16
- xml.pubDate Time.now.to_s(:rfc822)
16
+ xml.pubDate Time.now.to_fs(:rfc822)
17
17
  xml.title title || t(@items.to_sym)
18
18
 
19
19
  @assets.each do |asset|
@@ -23,7 +23,7 @@ xml.rss version: "2.0" do
23
23
  xml.description send(:"#{item}_summary", asset) if respond_to?(:"#{item}_summary")
24
24
  xml.guid url
25
25
  xml.link url
26
- xml.pubDate asset.created_at.to_s(:rfc822)
26
+ xml.pubDate asset.created_at.to_fs(:rfc822)
27
27
  xml.title !asset.is_a?(User) ? asset.name : "#{asset.full_name} (#{asset.username})"
28
28
  end
29
29
  end
@@ -6,7 +6,7 @@ xml.rss version: "2.0" do
6
6
  xml.channel do
7
7
  xml.generator "Fat Free CRM v#{FatFreeCRM::VERSION::STRING}"
8
8
  xml.link root_url
9
- xml.pubDate Time.now.to_s(:rfc822)
9
+ xml.pubDate Time.now.to_fs(:rfc822)
10
10
  xml.title t(:activities)
11
11
 
12
12
  @activities.each do |activity|
@@ -14,7 +14,7 @@ xml.rss version: "2.0" do
14
14
  xml.author activity.user.try(:full_name)
15
15
  # xml.guid activity.id
16
16
  # xml.link nil
17
- xml.pubDate activity.created_at.to_s(:rfc822)
17
+ xml.pubDate activity.created_at.to_fs(:rfc822)
18
18
  xml.title activity_title(activity)
19
19
  end
20
20
  end
data/db/demo/accounts.yml CHANGED
@@ -42,6 +42,6 @@ account<%= i %>:
42
42
  background_info : <%= "#{FFaker::Company.catch_phrase} #{FFaker::Company.bs}" %>
43
43
  rating : <%= rand(5) %>
44
44
  category : <%= category.sample %>
45
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
46
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
45
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
46
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
47
47
  <% end %>
@@ -139,6 +139,6 @@ campaign<%= i %>:
139
139
  objectives : <%= FFaker::Lorem.sentence %>
140
140
  background_info :
141
141
  # background_info : <%= FFaker::Lorem.paragraph[0,255] %>
142
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
143
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
142
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
143
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
144
144
  <% end %>
data/db/demo/contacts.yml CHANGED
@@ -63,8 +63,8 @@ contact_<%= i %>:
63
63
  skype : <%= %[#{(first_name + last_name.first).downcase}] if rand(10) < 8 %>
64
64
  born_on : <%= Date.today - (rand(20) + 20).years - rand(200).days %>
65
65
  do_not_call : false
66
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
67
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
66
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
67
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
68
68
  background_info : <%= FFaker::Lorem.paragraph[0,255] %>
69
69
  <% end %>
70
70
 
data/db/demo/leads.yml CHANGED
@@ -65,7 +65,7 @@ lead<%= i %>:
65
65
  phone : <%= FFaker::PhoneNumber.short_phone_number if rand(10) < 5 %>
66
66
  mobile : <%= FFaker::PhoneNumber.short_phone_number if rand(10) < 3 %>
67
67
  do_not_call : false
68
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
69
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
68
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
69
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
70
70
  background_info : <%= FFaker::Lorem.paragraph[0,255] %>
71
71
  <% end %>
@@ -42,7 +42,7 @@ opportunity_<%= i %>:
42
42
  amount : <%= (rand(8) + 1) * 100_000 %>
43
43
  closes_on : <%= Date.today + (rand(100) + 10).days %>
44
44
  background_info :
45
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
46
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
45
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
46
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
47
47
  background_info : <%= FFaker::Lorem.paragraph[0,255] %>
48
48
  <% end %>
data/db/demo/tasks.yml CHANGED
@@ -59,6 +59,6 @@ task<%= i %>:
59
59
  # background_info : <%= FFaker::Lorem.paragraph[0,255] %>
60
60
  due_at : <%= due_at %>
61
61
  completed_at : <%= completed_by ? Date.today - rand(5).days : "" %>
62
- created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_s(:db) %>
63
- updated_at : <%= (created_at + rand(36_000).seconds).to_s(:db) %>
62
+ created_at : <%= created_at = (rand(60) + 2).days.ago + rand(600).minutes; created_at.to_fs(:db) %>
63
+ updated_at : <%= (created_at + rand(36_000).seconds).to_fs(:db) %>
64
64
  <% end %>
Binary file
File without changes
Binary file
Binary file
Binary file
data/db/schema.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema[7.0].define(version: 2023_05_26_212613) do
13
+ ActiveRecord::Schema[7.1].define(version: 2023_05_26_212613) do
14
14
  create_table "account_contacts", force: :cascade do |t|
15
15
  t.integer "account_id"
16
16
  t.integer "contact_id"
@@ -8,8 +8,8 @@
8
8
  module FatFreeCRM
9
9
  module VERSION # :nodoc:
10
10
  MAJOR = 0
11
- MINOR = 23
12
- TINY = 0
11
+ MINOR = 24
12
+ TINY = 1
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.23.0
4
+ version: 0.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dvorkin
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 7.0.0
20
+ version: 7.1.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
23
  version: 7.3.0
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: 7.0.0
30
+ version: 7.1.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 7.3.0
@@ -1090,7 +1090,11 @@ 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
1093
1095
  - db/fat_free_crm_test.sqlite3
1096
+ - db/fat_free_crm_test.sqlite3-shm
1097
+ - db/fat_free_crm_test.sqlite3-wal
1094
1098
  - db/migrate/20100928030598_create_sessions.rb
1095
1099
  - db/migrate/20100928030599_create_users.rb
1096
1100
  - db/migrate/20100928030600_create_openid_tables.rb