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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6076a491d8d16afa7ac5fa4a6da41d40c2747594bfcf7d1c6666a468fa44f62d
4
- data.tar.gz: 48ff43f18168f9cafde81d24993f298ad9d20a2122bc4d04ca82fc2d32691ab2
3
+ metadata.gz: 8e6afcb91c8a9ac5b87b52a77e34f8a17fd9eb55b822e8436271ad2f9485b085
4
+ data.tar.gz: c100205befa0f33192b2caa492760875d1a3e28e7240fe81131b4a56951f5f5c
5
5
  SHA512:
6
- metadata.gz: 849db3a18c93dde017e84cd2d3feb10ecb14c4cbf0713d5a0ddd784ae49735545debd0ef8e6beea59071a3e3a9278bbe920e65bbc6f1e292cce547c7d20d6f1e
7
- data.tar.gz: 8c65155eeb41fd696b857d2275c23cbe6b44bc5851da667c0fef3dc7a78fe3d245f219b349117a8a220289034e1ada5ee8ebceecf9a1aaea44ad15ad8779e17c
6
+ metadata.gz: 1c048cc0bf08acaa4b3f0eaa5df7284d40ffcd67980e9e854c96b3a86177c950b8e43b618a313d86f04bf51b7bd22ab35f97a769a4226a89c3dedafb11cadc47
7
+ data.tar.gz: 7990e542ef49ba9c1ee9727aefd374a178d06e9d90aa20429809bb22351d8d73062446865eeb3e9b660dca1ea6e16e21a8c6b8619e4826aa6a387d8f3054e484
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module MnUtilsGem
2
- VERSION = "1.15.7"
2
+ VERSION = "1.15.8"
3
3
  end
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.7
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-06-20 00:00:00.000000000 Z
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.3
198
+ rubygems_version: 3.0.1
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: Mumsnet utils gem for microservices