mn_utils_gem 1.5.0 → 1.6.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: 4a7d9f83e1f996549ad042fd8b0812f3fe27390d62731e2aaa5839a8aee40e6a
4
- data.tar.gz: 1fa68d7cf66b338697367f5d5a17d632fa5101f646fd6b51ac94c7aac436de16
3
+ metadata.gz: 905603381854f15dd4de3a4b418d071a15aa417b488aeb20e68152cc8690445d
4
+ data.tar.gz: 5f39342c223ff9dc0f8724e5b6477be87d3c4f39c783acd1dbfc555a77c5aa62
5
5
  SHA512:
6
- metadata.gz: 57490881bdb096df54ec6eac89e8ffca8f14fcdcfa141c44088061158084ff12fe312edbdef81023dff2f3517d7dd96ace9dae83f3c5602016136fb22255893e
7
- data.tar.gz: dcb9ca7dcef88c8160679b294a92b138301231f4e92a4068ee48d4828370182fceefc60e75d8ef55d41d31688e5974842bee3873bce8b92a7488c6a145078e3b
6
+ metadata.gz: 8c1f933fc03757072e2f124530b3932bdee92dcf85067856792fc4d3ce7326c74575d240b84149c5b734ab101c7baa8c3678a29e308f4d4834175845009bc3fb
7
+ data.tar.gz: 917994740f5ea00914e80131dd9935a3be178248a3c570ffc6c15e142eacf3f1c2e28607e4908cb7d8dad79f7f3a9ff25937c8c97af091148391c0fc17626556
@@ -127,8 +127,8 @@ module MnUtilsLogging
127
127
  unless key_string.length >= 2
128
128
  raise ArgumentError, "payload key cannot be _id" \
129
129
  if key_string == '_id'
130
- raise ArgumentError, "payload value for key #{key} must be a string" \
131
- unless value.is_a?(String)
130
+ raise ArgumentError, "payload value for key #{key} must be a string or symbol" \
131
+ unless value.is_a?(String) || value.is_a?(Symbol)
132
132
  end
133
133
 
134
134
  # validate required environment variables if we are in production
@@ -1,3 +1,3 @@
1
1
  module MnUtilsGem
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.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.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shamim Mirzai