web47core 1.0.13 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/core_form_helper.rb +1 -1
- data/app/helpers/core_link_helper.rb +5 -2
- data/lib/app/jobs/cron/trim_notifications.rb +1 -1
- data/lib/app/models/concerns/core_system_configuration.rb +3 -1
- data/lib/app/models/notification.rb +9 -0
- data/lib/web47core/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03eb842ad5444dd142207611058066153025ed42450633fd8bd8016214ccc298
|
4
|
+
data.tar.gz: 85da9686cff8dbae5982617475714889ce1585c631232f6d65fa627bba057b23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa486a0aa38f932402b77796a8b09d8a80454714bfbd67a7cfef9d0da86bb12b6dda705b3554f5814533ba3251bcc3c4192cd1fd1e8f3d538b988ba890777c9
|
7
|
+
data.tar.gz: c699bca4b6ae1839f33746301386e0b015673de416a804f01288a5a48de1e13bdf9a5b91b5f28a45af4cbc87b2a726711fd3642007d5a88aec35e81c4973f82a
|
@@ -160,7 +160,7 @@ module CoreFormHelper
|
|
160
160
|
value: option_value[:value],
|
161
161
|
selected: value.eql?(option_value[:key]) }
|
162
162
|
else
|
163
|
-
{ key: option_value[:_id],
|
163
|
+
{ key: option_value[:_id].to_s,
|
164
164
|
value: option_value[:display_name] || option_value[:name],
|
165
165
|
selected: value.eql?(option_value) }
|
166
166
|
end
|
@@ -17,8 +17,10 @@ module CoreLinkHelper
|
|
17
17
|
# Setup the text as copy text
|
18
18
|
#
|
19
19
|
def copy_tag(copy_text, options = {})
|
20
|
+
secure = options[:secure] || false
|
21
|
+
display_text = secure ? mask_value(copy_text) : copy_text
|
20
22
|
content_tag(:div, class: 'clipboard') do
|
21
|
-
concat(content_tag(:span) {
|
23
|
+
concat(content_tag(:span) { display_text })
|
22
24
|
concat(copy_text_tag(copy_text, options))
|
23
25
|
concat(download_tag(options[:download_url], options)) if options[:download_url].present?
|
24
26
|
end
|
@@ -97,7 +99,8 @@ module CoreLinkHelper
|
|
97
99
|
return unless can? :edit, obj
|
98
100
|
|
99
101
|
icon = options[:icon] || 'edit'
|
100
|
-
|
102
|
+
tooltip = options[:tooltip] || 'Edit'
|
103
|
+
content_tag(:a, href: path, class: 'tooltipped', data: {tooltip: tooltip}) do
|
101
104
|
concat(content_tag(:i, class: 'material-icons') do
|
102
105
|
icon
|
103
106
|
end)
|
@@ -68,8 +68,10 @@ module CoreSystemConfiguration
|
|
68
68
|
field :switchboard_stack_id, type: String
|
69
69
|
field :switchboard_stack_api_token, type: String
|
70
70
|
field :switchboard_last_sync_at, type: Time
|
71
|
-
#
|
71
|
+
# TTLs
|
72
72
|
field :user_model_audit_log_ttl, type: Integer, default: 365
|
73
|
+
field :slack_notification_ttl, type: Integer, default: 5
|
74
|
+
field :email_notification_ttl, type: Integer, default: 180
|
73
75
|
#
|
74
76
|
# Validations
|
75
77
|
#
|
data/lib/web47core/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.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: 2020-
|
11
|
+
date: 2020-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: cancancan
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.1.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: daemons
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|