graphite_graph 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/graphite_graph/version.rb +1 -1
- data/lib/graphite_graph.rb +2 -2
- metadata +3 -3
data/lib/graphite_graph.rb
CHANGED
@@ -339,10 +339,10 @@ class GraphiteGraph
|
|
339
339
|
url_parts << "format=#{format}" if format
|
340
340
|
|
341
341
|
if url
|
342
|
-
url_str = url_parts.join("&")
|
342
|
+
url_str = url_parts.map { |pair| k,v = pair.split('='); "#{k}=#{CGI.escape(v)}" }.join("&")
|
343
343
|
properties[:placeholders].each { |k,v| url_str.gsub!("%{#{k}}", v.to_s) } if properties[:placeholders].is_a?(Hash)
|
344
344
|
|
345
|
-
|
345
|
+
url_str
|
346
346
|
else
|
347
347
|
url_parts
|
348
348
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphite_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R.I.Pienaar
|