mn_utils_gem 1.15.7 → 1.15.8
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 +5 -5
- data/lib/mn_utils_gem/site_action.rb +3 -1
- data/lib/mn_utils_gem/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6afcb91c8a9ac5b87b52a77e34f8a17fd9eb55b822e8436271ad2f9485b085
|
4
|
+
data.tar.gz: c100205befa0f33192b2caa492760875d1a3e28e7240fe81131b4a56951f5f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c048cc0bf08acaa4b3f0eaa5df7284d40ffcd67980e9e854c96b3a86177c950b8e43b618a313d86f04bf51b7bd22ab35f97a769a4226a89c3dedafb11cadc47
|
7
|
+
data.tar.gz: 7990e542ef49ba9c1ee9727aefd374a178d06e9d90aa20429809bb22351d8d73062446865eeb3e9b660dca1ea6e16e21a8c6b8619e4826aa6a387d8f3054e484
|
data/lib/mn_utils_gem/gui.rb
CHANGED
@@ -3,17 +3,17 @@ require 'httparty'
|
|
3
3
|
module MnUtilsGlobal
|
4
4
|
class Gui
|
5
5
|
|
6
|
-
def self.render_component(component)
|
7
|
-
Rails.cache.fetch(['MnUtilsGlobal', 'Gui', 'render_component', component], expires_in: 1.hour) do
|
8
|
-
render_component_html(component)
|
6
|
+
def self.render_component(component, options = {})
|
7
|
+
Rails.cache.fetch(['MnUtilsGlobal', 'Gui', 'render_component', component, options.to_s], expires_in: 1.hour) do
|
8
|
+
render_component_html(component, options)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
12
|
private
|
13
13
|
|
14
|
-
def self.render_component_html(component)
|
14
|
+
def self.render_component_html(component, options = {})
|
15
15
|
validate_component(component)
|
16
|
-
response = HTTParty.get("#{ENV['SRV_GUI_URL']}/service/gui/api/v1/component/#{component}", { timeout: 1 })
|
16
|
+
response = HTTParty.get("#{ENV['SRV_GUI_URL']}/service/gui/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
|
@@ -71,7 +71,9 @@ module MnUtilsLogging
|
|
71
71
|
:pwd_reset_link_email_success,
|
72
72
|
:pwd_reset_link_email_fail,
|
73
73
|
:dereg_rqst_email_success,
|
74
|
-
:dereg_rqst_email_fail
|
74
|
+
:dereg_rqst_email_fail,
|
75
|
+
:email_change_conf_email_success,
|
76
|
+
:email_change_conf_email_fail
|
75
77
|
],
|
76
78
|
pm: [
|
77
79
|
:pm_notif_email_success,
|
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.8
|
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-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gelf
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
rubygems_version: 3.0.
|
198
|
+
rubygems_version: 3.0.1
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Mumsnet utils gem for microservices
|