web47core 3.2.68 → 3.2.70

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: 49a2ca8139d6330b98d04c0358ed26b97aa224a70f7c25a4700f9d7f76f411a6
4
- data.tar.gz: 29a4cdf28e0f0e11ad818ad1117c272a5052ef1e3bd7e57346b5c0ed6b21ca64
3
+ metadata.gz: ae74d84462d581b2bbff31b62a7fbff2c8e9d1435ed381811ce912778d4c257b
4
+ data.tar.gz: 5332def0a4b4ff1d483332ddebbdd80be8e702514239d4b5d69d0fcc3d6f56a8
5
5
  SHA512:
6
- metadata.gz: 934d69c4ce0b6ed2d5f179d623ab7926ddb7fb01272d00508788f14d501fb4fe50113e16bd2f5330910e6eb496d05357aed0744e00333163ef9e23bcea0525f4
7
- data.tar.gz: 79b93e36b31205fc0dd5fe8ad728c0f0547c95cb41e4301869f7c27c7a9335b12e9799c9d59231e3b3454906853a730b90e606467df5b4c1a38a8612a73f10e2
6
+ metadata.gz: 733000ca4cab74c06bc5037c5e633711a75d529f462048112aee288666b781d83269e1fc3a2a3018eb6c7a09a8f97840d5b9ff60d1ce3179fa4b54872d8c796b
7
+ data.tar.gz: f6f33d41802054c6e55bdb8761a97c98f05464ca01b65b17af22971e5779a900a1dcbdbc60caed6f94169d7536bcc440fefe98286ce7a91dd6cefe2c244c91de
@@ -69,32 +69,6 @@ module CoreTableHelper
69
69
  name
70
70
  end
71
71
 
72
- def dynamic_custom_modal(anchor, label, title, view_endpoint, _options = {})
73
- datum = { view_url: view_endpoint }
74
- content_tag(:span) do
75
- concat(content_tag(:a, href: "##{anchor}", class: 'modal-trigger') do
76
- concat(materialize_icon(label))
77
- end)
78
- concat(content_tag(:div, id: anchor, class: 'modal modal-fixed-footer', data: datum) do
79
- concat(content_tag(:div, class: 'modal-content') do
80
- concat(content_tag(:h2, class: 'center') do
81
- concat(content_tag(:span, title))
82
- end)
83
- concat(content_tag(:div, class: 'center-align') do
84
- concat(content_tag(:div, class: 'progress red lighten-4') do
85
- tag(:div, class: 'indeterminate red')
86
- end)
87
- end)
88
- end)
89
- concat(content_tag(:div, class: 'modal-footer') do
90
- concat(content_tag(:a, href: '#', class: 'modal-action modal-close btn btn-flat') do
91
- concat('Close')
92
- end)
93
- end)
94
- end)
95
- end
96
- end
97
-
98
72
  # @abstract Return a table data cell with a boolean value
99
73
  # @param value [Boolean] - The value to display
100
74
  # @return [String] - The HTML for the cell
@@ -5,6 +5,15 @@ module SvgIconHelper
5
5
  def svg_icon(name, size: 24, type: :outline, classes: [], color: 'currentColor', stroke_width: 2)
6
6
  return if name.blank?
7
7
 
8
+ key = ['svg_icon', name, size.to_s, type.to_s, classes.to_s, color, stroke_width.to_s].join(':')
9
+ Rails.cache.fetch(key, expires_in: SystemConfiguration.long_cache) do
10
+ fetch_svg_icon(name, size: size, type: type, classes: classes, color: color, stroke_width: stroke_width)
11
+ end
12
+ end
13
+
14
+ def fetch_svg_icon(name, size: 24, type: :outline, classes: [], color: 'currentColor', stroke_width: 2)
15
+ return if name.blank?
16
+
8
17
  classes = if size <= 24
9
18
  ['icon', classes].flatten.compact.join(' ')
10
19
  else
@@ -20,6 +29,10 @@ module SvgIconHelper
20
29
  [preferred_path, color] if lookup_context.exists?(path, [], true)
21
30
  end.compact.first
22
31
  end
32
+ if partial.blank?
33
+ partial = 'icons/outline/bug'
34
+ stroke = 'red'
35
+ end
23
36
 
24
37
  tag.svg(xmlns: "http://www.w3.org/2000/svg",
25
38
  viewBox: "0 0 24 24",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- script = File.expand_path('../scripts/coverage.rb', __dir__)
4
+ script = File.expand_path('../lib/merge_coverage.rb', __dir__)
5
5
 
6
6
  unless File.exist?(script)
7
7
  warn "Cannot find script: #{script}"
@@ -94,6 +94,9 @@ module StandardModel
94
94
  associations << { association.key => [] }
95
95
  end
96
96
  associations
97
+ rescue StandardError => error
98
+ App47Logger.log_error 'Unable to get many to many associations', error
99
+ []
97
100
  end
98
101
 
99
102
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.68'
4
+ VERSION = '3.2.70'
5
5
  end
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.68
4
+ version: 3.2.70
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-08-25 00:00:00.000000000 Z
11
+ date: 2025-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -520,7 +520,7 @@ email:
520
520
  executables:
521
521
  - cron_server
522
522
  - delayed_job
523
- - coverage
523
+ - merge_coverage
524
524
  extensions: []
525
525
  extra_rdoc_files: []
526
526
  files:
@@ -6515,9 +6515,9 @@ files:
6515
6515
  - app/views/status/index.html.haml
6516
6516
  - app/views/system_configurations/edit.html.haml
6517
6517
  - app/views/system_configurations/show.html.haml
6518
- - bin/coverage
6519
6518
  - bin/cron_server
6520
6519
  - bin/delayed_job
6520
+ - bin/merge_coverage
6521
6521
  - bin/rails
6522
6522
  - bin/rake
6523
6523
  - bin/setup
@@ -6604,16 +6604,16 @@ files:
6604
6604
  - lib/app/models/user_audit_log.rb
6605
6605
  - lib/app/models/user_model_audit_log.rb
6606
6606
  - lib/app/validators/email_format_validator.rb
6607
+ - lib/merge_coverage.rb
6607
6608
  - lib/templates/email/notification_failure.liquid
6608
6609
  - lib/templates/email/notification_failure.subject.liquid
6609
6610
  - lib/templates/slack/error_message.liquid
6610
6611
  - lib/templates/slack/failed_delayed_job.liquid
6612
+ - lib/update_icons.rb
6611
6613
  - lib/web47core.rb
6612
6614
  - lib/web47core/config.rb
6613
6615
  - lib/web47core/engine.rb
6614
6616
  - lib/web47core/version.rb
6615
- - scripts/coverage_merge.rb
6616
- - scripts/update_icons.rb
6617
6617
  homepage: https://app47.com
6618
6618
  licenses:
6619
6619
  - MIT
File without changes