FIX: private method should not be invoked on self

FIX: private method should not be invoked on self

From 93f56d9840e6fb5528f3ea99404b9ca81f7a981c Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Fri, 30 Nov 2018 14:37:30 +1100
Subject: [PATCH] FIX: private method should not be invoked on self


diff --git a/CHANGELOG b/CHANGELOG
index 50621d0..4f0d22f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,11 @@
 30-11-2018
 
+- Version 2.2.0.pre.1
+
+  - FIX: diagnostics stopped working cause a private method was invoked on self
+
+30-11-2018
+
 - Version 2.2.0.pre
 
 - FIX: In redis backend we now expire the key used to track channel id this can cause a redis key leak
diff --git a/lib/message_bus/diagnostics.rb b/lib/message_bus/diagnostics.rb
index 6ed87dc..40c5d94 100644
--- a/lib/message_bus/diagnostics.rb
+++ b/lib/message_bus/diagnostics.rb
@@ -8,7 +8,7 @@ class MessageBus::Diagnostics
     def enable(bus = MessageBus)
       full_path = full_process_path
       start_time = Time.now.to_f
-      hostname = self.hostname
+      hostname = get_hostname
 
       # it may make sense to add a channel per machine/host to streamline
       #  process to process comms
@@ -51,7 +51,7 @@ class MessageBus::Diagnostics
       end
     end
 
-    def hostname
+    def get_hostname
       begin
         `hostname`.strip
       rescue
diff --git a/lib/message_bus/version.rb b/lib/message_bus/version.rb
index 5afdf0e..96af6cb 100644
--- a/lib/message_bus/version.rb
+++ b/lib/message_bus/version.rb
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module MessageBus
-  VERSION = "2.2.0.pre"
+  VERSION = "2.2.0.pre.1"
 end

GitHub