lib/rconf/configurator.rb in rconf-0.6.30 vs lib/rconf/configurator.rb in rconf-0.6.31

- old
+ new

@@ -141,11 +141,11 @@ # Calculate unique SHA for current settings # # === Return # sha(String):: SHA for current settings def signature - return '' if @settings_values.nil? - blob = @settings_values.inject('') { |b, (k, v)| b += "#{k}:#{v};" } + blob = VERSION + blob = @settings_values.inject(blob) { |b, (k, v)| b += "#{k}:#{v};" } if @settings_values sha = Digest::SHA1.hexdigest(blob) end # Get value of configuration option #