From 8a22b2134beb676ec0542383b76fb101d2467d0f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 19 Jul 2010 12:03:25 +0300 Subject: [PATCH] ensure Redistat::Label.name is always a string --- lib/redistat/label.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redistat/label.rb b/lib/redistat/label.rb index 5757463..e7a4750 100644 --- a/lib/redistat/label.rb +++ b/lib/redistat/label.rb @@ -6,7 +6,7 @@ module Redistat attr_reader :hash def initialize(str) - @name = str + @name = str.to_s @hash = Digest::SHA1.hexdigest(@name) end