web47core 3.2.3.16 → 3.2.3.18

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9352c85947fbaa91629aa7f60bef985bc7fd148cd6ff60e2bec7d141b2e6c977
4
- data.tar.gz: 71c329f35ad2caf3a8f5f81dbd7764c376fd470e2274b063f147a156675e7702
3
+ metadata.gz: f78b01d9872229a3294ad3a1e67f3b449472dc6500317e21822b96fda5a2d209
4
+ data.tar.gz: 439aa48a26a0fdda25ade7f45540ae77260819e913557612f635df935f5e2cc4
5
5
  SHA512:
6
- metadata.gz: 2333cf3f5c5ed1e12e0597cc2af30213fd3f97390f3fb13b6575aac6933f4819ec8aa8420eaa38fc981b6cad8d19f7fb3f620faf7ff6fcc153cabd243367276d
7
- data.tar.gz: 160eef1a00bf46335a434a516683a1f69515c575e21f4e3d45d052c4b78c8c80bff5a3ae5d63cdba6c5a13d7134f0c49a2997cef9bc9af277ad186ec3058647f
6
+ metadata.gz: 87eb386032e26706c47001d489328595cd07b96d212dde18a3cf776d30974f7efbe4a16d752524364439d5bce68f84e1fd9f76a23864b0a9258e465a911ac745
7
+ data.tar.gz: cf5bb20b42dcce83d97964c0d92d0ed9920f5b3798b21245d4f338985894c125ade9f2d1d995ed77ca0165ee005f2801603853f4e6155b06b07a3ecb60873b87
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.16'
4
+ VERSION = '3.2.3.18'
5
5
  end
data/lib/web47core.rb CHANGED
@@ -25,7 +25,6 @@ require 'app/models/concerns/switchboard_able'
25
25
  require 'app/models/concerns/switchboard_configuration'
26
26
  require 'app/models/concerns/secure_fields'
27
27
  require 'app/models/concerns/twilio_configuration'
28
- require 'app/models/concerns/tag_able'
29
28
  require 'app/models/concerns/zendesk_configuration'
30
29
  require 'app/models/command_job'
31
30
  require 'app/models/command_job_log'
@@ -38,7 +37,6 @@ require 'app/models/delayed/jobs/metric'
38
37
  require 'app/models/delayed/jobs/run'
39
38
  require 'app/models/delayed/jobs/worker'
40
39
 
41
- require 'app/models/api_token'
42
40
  require 'app/models/notification'
43
41
  require 'app/models/template'
44
42
  require 'app/models/email_notification'
@@ -48,7 +46,6 @@ require 'app/models/notification_template'
48
46
  require 'app/models/slack_notification'
49
47
  require 'app/models/sms_notification'
50
48
  require 'app/models/smtp_configuration'
51
- require 'app/models/tag'
52
49
  #
53
50
  # Cron
54
51
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.16
4
+ version: 3.2.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-20 00:00:00.000000000 Z
11
+ date: 2025-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -6571,7 +6571,6 @@ files:
6571
6571
  - lib/app/jobs/cron/trim_delayed_job_workers.rb
6572
6572
  - lib/app/jobs/cron/trim_failed_delayed_jobs.rb
6573
6573
  - lib/app/jobs/cron/trim_notifications.rb
6574
- - lib/app/models/api_token.rb
6575
6574
  - lib/app/models/audit_log.rb
6576
6575
  - lib/app/models/command_job.rb
6577
6576
  - lib/app/models/command_job_log.rb
@@ -6599,7 +6598,6 @@ files:
6599
6598
  - lib/app/models/concerns/standard_model.rb
6600
6599
  - lib/app/models/concerns/switchboard_able.rb
6601
6600
  - lib/app/models/concerns/switchboard_configuration.rb
6602
- - lib/app/models/concerns/tag_able.rb
6603
6601
  - lib/app/models/concerns/time_zone_able.rb
6604
6602
  - lib/app/models/concerns/twilio_configuration.rb
6605
6603
  - lib/app/models/concerns/zendesk_configuration.rb
@@ -6617,7 +6615,6 @@ files:
6617
6615
  - lib/app/models/slack_notification.rb
6618
6616
  - lib/app/models/sms_notification.rb
6619
6617
  - lib/app/models/smtp_configuration.rb
6620
- - lib/app/models/tag.rb
6621
6618
  - lib/app/models/template.rb
6622
6619
  - lib/app/models/user_action_audit_log.rb
6623
6620
  - lib/app/models/user_audit_log.rb
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
- # A specific API token to be used as part of a collection of tokens
5
- #
6
- class ApiToken
7
- include StandardModel
8
- include ApiTokenable
9
- end
@@ -1,34 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
- # Public: Support taggable entities
5
- #
6
- module TagAble
7
- extend ActiveSupport::Concern
8
-
9
- included do
10
- #
11
- # Fields
12
- #
13
- has_many :tags, dependent: :destroy, inverse_of: :model, class_name: 'Tag', foreign_key: :model_id
14
- end
15
-
16
- # @abstract Update the tags associated with the model
17
- # First update what is from the updated tags
18
- # Then delete any that are no longer associated with them
19
- # @param updated_tags Array<Types::Tag> - tags to update with
20
- def sync_tags(updated_tags)
21
- updated_tags.each do |t|
22
- tag = tags.where(key: t.key).first_or_initialize(key: t.key, model: self)
23
- tag.update! value: t.value
24
- end
25
- keys = updated_tags.map(&:key)
26
- tags.each { |t| t.destroy unless keys.include?(t.key) }
27
- end
28
-
29
- def tag_value(key, default = nil)
30
- tags.find_by(key: key.to_s).value
31
- rescue StandardError
32
- default
33
- end
34
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- #
4
- # Represents a volume.
5
- #
6
- class Tag
7
- include StandardModel
8
- #
9
- # Fields
10
- #
11
- field :key, type: String
12
- field :value, type: String
13
- #
14
- # Validations
15
- #
16
- validates :key, presence: true, uniqueness: { scope: :model_id }
17
- #
18
- # Relationships
19
- #
20
- belongs_to :model, polymorphic: true
21
- end