nat-monitor 3.0.5 → 3.0.6

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
  SHA1:
3
- metadata.gz: 03a4f002002bf2a7a81ba4940f5d1f89af11f821
4
- data.tar.gz: 8cc72e0523c67f940b70443da9b881d3a131b217
3
+ metadata.gz: c2d895268e15e8f4652f7957bc640e433cce2e10
4
+ data.tar.gz: 9f1091d77b11b1b4de113a34987a791bc0c55b24
5
5
  SHA512:
6
- metadata.gz: 1026e48667c1fe354c666ffade6fa6938fd8eb035596c6138f678caa4dea37156f3c99f11fdd255a5daff4f3f9d4217806f6ffb3ad2eaca6fec6a943533df9e0
7
- data.tar.gz: 7ba079128248ff10a29624bbd835f8ea264d5193b20cb3f09e513e122bf9f91effee16f0ab4841618f9fbdbd399169827f04725f7ec7a0022c32e7445b8074ac
6
+ metadata.gz: b65a92e8cb17fb483f02cbe521224902e9508d852e943923d6f8eb4cfac74bdb35e088d144a59b34692a513efc13adced47ebbb631bb5b6d57200728ccbd51c8
7
+ data.tar.gz: b27966f54669bd1117ba155457cde5c798cbee858dc90b7e30f2b6cb342e1de1a38ab0941abaaae8608353c465f8681088c9a767797074b29e7a6a89eb185b8d
data/lib/nat-monitor.rb CHANGED
@@ -160,11 +160,11 @@ module EtTools
160
160
  output msg unless msg.nil?
161
161
  return unless @conf['monitor_enabled']
162
162
  url = @conf['monitor_urls'][status]
163
- url += "?msg=#{msg}" if status == 'fail' && !msg.nil?
163
+ url += "?msg=#{URI.escape(msg)}" if status == 'fail' && !msg.nil?
164
164
 
165
165
  output 'Notifying external heartbeat monitor'
166
166
 
167
- Net::HTTP.get(URI(URI.escape url))
167
+ Net::HTTP.get(URI url)
168
168
  end
169
169
 
170
170
  private
@@ -1,5 +1,5 @@
1
1
  module EtTools
2
2
  class NatMonitor
3
- VERSION = '3.0.5'
3
+ VERSION = '3.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nat-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Herot