web47core 0.8.2 → 0.8.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0731000961023f09a85559fba267ec3de872c9f9c9e0374cabadc3101c10f93c'
|
|
4
|
+
data.tar.gz: f347dc65e9742d9ead84b05dc54fa98c2d01065d25e25460719237693141d2d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b36ccf870f5ae0e337ae5261a8519446e9a27a6d16347aee3ed0380d5f19f6fba3fb92f24ee662043226c99dcf5b6f9eeb45be58047f0de72f661605f877505
|
|
7
|
+
data.tar.gz: 6856985b30efe3c768506054bc1cd1d7cb6047efe5d4e84bd4b4d10f66be11a6def61b5394152ce8846c2e91ecbc391aba275c904358e926118c4a103134d8fb
|
|
@@ -19,8 +19,12 @@ module CoreSystemConfigurationsController
|
|
|
19
19
|
def update
|
|
20
20
|
# @system_configuration.update_attributes_and_log! @current_admin_user, system_configuration_params
|
|
21
21
|
SystemConfiguration.configuration.update! system_configuration_params
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
if SystemConfiguration.switchboard_configured?
|
|
23
|
+
flash[:info] = 'System Configuration Updated, sync job running in the background'
|
|
24
|
+
Cron::SwitchboardSyncConfiguration.perform_later
|
|
25
|
+
else
|
|
26
|
+
flash[:info] = 'System Configuration Updated'
|
|
27
|
+
end
|
|
24
28
|
redirect_to index_path
|
|
25
29
|
rescue StandardError => error
|
|
26
30
|
log_controller_error error
|
|
@@ -75,6 +75,8 @@ module CoreSystemConfiguration
|
|
|
75
75
|
validates :slack_support_channel, presence: true
|
|
76
76
|
validates :slack_sales_channel, presence: true
|
|
77
77
|
validates :default_time_zone, presence: true
|
|
78
|
+
validates :switchboard_base_url, url: true
|
|
79
|
+
validates :zendesk_base_url, url: true
|
|
78
80
|
end
|
|
79
81
|
base.extend ClassMethods
|
|
80
82
|
end
|
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: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
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-06-
|
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -306,6 +306,20 @@ dependencies:
|
|
|
306
306
|
- - ">="
|
|
307
307
|
- !ruby/object:Gem::Version
|
|
308
308
|
version: '0'
|
|
309
|
+
- !ruby/object:Gem::Dependency
|
|
310
|
+
name: validate_url
|
|
311
|
+
requirement: !ruby/object:Gem::Requirement
|
|
312
|
+
requirements:
|
|
313
|
+
- - ">="
|
|
314
|
+
- !ruby/object:Gem::Version
|
|
315
|
+
version: '0'
|
|
316
|
+
type: :runtime
|
|
317
|
+
prerelease: false
|
|
318
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
319
|
+
requirements:
|
|
320
|
+
- - ">="
|
|
321
|
+
- !ruby/object:Gem::Version
|
|
322
|
+
version: '0'
|
|
309
323
|
- !ruby/object:Gem::Dependency
|
|
310
324
|
name: bundler
|
|
311
325
|
requirement: !ruby/object:Gem::Requirement
|