mn_utils_gem 1.4.0 → 1.5.0

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: fa83dfca11d05d1aacf1da7ccc9f1a05b2bfd42d8f513d1fa3f6b64c50708f20
4
- data.tar.gz: 278fe6b6932e847bfe8721bb58461cbdd70c0649843fbbedbc98285b9b618dd3
3
+ metadata.gz: 4a7d9f83e1f996549ad042fd8b0812f3fe27390d62731e2aaa5839a8aee40e6a
4
+ data.tar.gz: 1fa68d7cf66b338697367f5d5a17d632fa5101f646fd6b51ac94c7aac436de16
5
5
  SHA512:
6
- metadata.gz: 94d93f3af371c757fcf717d197b496770c04c7f3445eb52cbf04c9eb45c338244212b00d92aca6624ec8514c7a219ee05b384fce67bc8203aabd9f84f82d7d8a
7
- data.tar.gz: 248ea15faa47cc9a7445c1c63f0fa60b56bbc9b3a7c564c4202c9093e6eedf2d7da978fdf8a401211d37cc17078e0e70a737dcb727240d10a293e63cae03d968
6
+ metadata.gz: 57490881bdb096df54ec6eac89e8ffca8f14fcdcfa141c44088061158084ff12fe312edbdef81023dff2f3517d7dd96ace9dae83f3c5602016136fb22255893e
7
+ data.tar.gz: dcb9ca7dcef88c8160679b294a92b138301231f4e92a4068ee48d4828370182fceefc60e75d8ef55d41d31688e5974842bee3873bce8b92a7488c6a145078e3b
@@ -6,9 +6,9 @@ require 'singleton'
6
6
  # SiteAction class to log important site actions to Graylog
7
7
  # and send a matching metric to Cloudwatch
8
8
  #
9
- # usage: MnUtils::SiteAction.instance.log(message, site_action, optional_payload)
9
+ # usage: MnUtilsLogging::SiteAction.instance.log(message, site_action, optional_payload)
10
10
  #
11
- # eg: MnUtils::SiteAction.instance.log(
11
+ # eg: MnUtilsLogging::SiteAction.instance.log(
12
12
  # "Login attempted with non-existent email",
13
13
  # :login_attempt_nonexistent_email,
14
14
  # {_email: "fish@banana.com", _request_ip: "123.123.123.123"}
@@ -19,7 +19,7 @@ require 'singleton'
19
19
  # The optional payload should be a simple flat hash with all keys starting
20
20
  # with an underscore _ and all values being strings
21
21
 
22
- module MnUtils
22
+ module MnUtilsLogging
23
23
  class SiteAction
24
24
 
25
25
  include Singleton
@@ -91,7 +91,7 @@ module MnUtils
91
91
 
92
92
  # check for duplicates, and throw a tantrum if any are found
93
93
  tmp_map = {}
94
- stuff.each do |k, arr|
94
+ @_site_actions_and_groups.each do |k, arr|
95
95
  arr.each do |v|
96
96
  raise ArgumentError, "Site action #{v} is declared more than once" \
97
97
  if tmp_map.key? v
@@ -206,4 +206,4 @@ module MnUtils
206
206
 
207
207
  end # of class SiteAction
208
208
 
209
- end # of module MnUtils
209
+ end # of module MnUtilsLogging
@@ -1,3 +1,3 @@
1
1
  module MnUtilsGem
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mn_utils_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shamim Mirzai