lib/fnordmetric/widget.rb in fnordmetric-0.6.6 vs lib/fnordmetric/widget.rb in fnordmetric-0.7.0

- old
+ new

@@ -15,10 +15,12 @@ def title @opts[:title] end def token - title.to_s.gsub(/[\W]/, '').downcase + token = title.to_s.gsub(/[\W]/, '').downcase + token = Digest::SHA1.hexdigest(title.to_s) if token.empty? + token end def add_gauges(gauges) if gauges.blank? && has_tick? error! "initializing a widget without gauges is void" \ No newline at end of file