Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
Merge pull request #38 from anchor/hashable
Browse files Browse the repository at this point in the history
keys can have empty values
  • Loading branch information
glasnt committed Aug 1, 2014
2 parents 2f4bc1e + 226f540 commit 4660a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backend/sieste.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_metric m, start, stop, step, args={}
def keysplit m
b, m = m.split(SEP) if m.include? SEP
b ||= ""
keys = Hash[*m.split(DELIM).map{|y| y.split(KVP)}.flatten]
keys = Hash[*m.split(DELIM).map{|y| x = y.split(KVP); x.push("") if x.length !=2; x}.flatten]
keys = Hash[keys.map{|k,v| [URI.decode(k), URI.decode(v)] }]
return [b,keys]
end
Expand Down

0 comments on commit 4660a63

Please sign in to comment.