mn_utils_gem 1.15.9 → 1.15.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mn_utils_gem/gui.rb +1 -1
- data/lib/mn_utils_gem/site_action.rb +2 -2
- data/lib/mn_utils_gem/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2e65fbb668d11af0c2e3eec3776d8c94cb0ef89b0daeb50da54812f4e9a7dab
|
4
|
+
data.tar.gz: 31c6212b56d9059baa04f1e3080ff59b59b5b0316866dd7dd9ccf2987f7f5213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a90cb26f7bd43f6d3cb572bed46ba5b82d9854ce0cace1c1f318b9dfcf59e161890d6147f2dbf9304b50e49778779dd9d48b1d9a4697eaf6103c6f6d1a69dd58
|
7
|
+
data.tar.gz: '09da682e4543587bb5949036b186aa69be24f4873b2234575f134b504f866638c919e4bef4b868b45f1834f8fc1cd570b3fa4abad847512085b0c7e2c0a721c7'
|
data/lib/mn_utils_gem/gui.rb
CHANGED
@@ -13,7 +13,7 @@ module MnUtilsGlobal
|
|
13
13
|
|
14
14
|
def self.render_component_html(component, options = {})
|
15
15
|
validate_component(component)
|
16
|
-
response = HTTParty.get("#{ENV['SRV_GUI_URL']}/
|
16
|
+
response = HTTParty.get("#{ENV['SRV_GUI_URL']}/api/v1/component/#{component}", { timeout: 1, query: options })
|
17
17
|
json = JSON.parse(response.body)
|
18
18
|
validate_json(json)
|
19
19
|
json['html'].html_safe
|
@@ -131,7 +131,7 @@ module MnUtilsLogging
|
|
131
131
|
unless site_action.is_a?(Symbol)
|
132
132
|
raise ArgumentError, 'payload must be a hash' \
|
133
133
|
unless payload.is_a?(Hash)
|
134
|
-
raise ArgumentError,
|
134
|
+
raise ArgumentError, 'site_action value is not in allowed list' \
|
135
135
|
unless @_site_action_group_map.key? site_action
|
136
136
|
|
137
137
|
# validate the payload hash
|
@@ -185,7 +185,7 @@ module MnUtilsLogging
|
|
185
185
|
end
|
186
186
|
|
187
187
|
def log_metric_only(site_action)
|
188
|
-
|
188
|
+
|
189
189
|
# validate the parameters
|
190
190
|
raise ArgumentError, 'site_action must be a symbol' \
|
191
191
|
unless site_action.is_a?(Symbol)
|
data/lib/mn_utils_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mn_utils_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shamim Mirzai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gelf
|