graphite_graph 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class GraphiteGraph
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -261,7 +261,7 @@ class GraphiteGraph
261
261
  end
262
262
 
263
263
  url_parts << "areaMode=#{properties[:area]}" if properties[:area]
264
- url_parts << "hideLegend=#{properties[:hide_legend]}" if properties.include?(:hide_legend)
264
+ url_parts << "hideLegend=#{properties[:hide_legend]}" unless properties[:hide_legend].nil?
265
265
  url_parts << "hideGrid=#{properties[:hide_grid]}" if properties[:hide_grid]
266
266
  url_parts << "yMin=#{properties[:ymin]}" if properties[:ymin]
267
267
  url_parts << "yMax=#{properties[:ymax]}" if properties[:ymax]
@@ -301,6 +301,8 @@ class GraphiteGraph
301
301
  graphite_target = "aliasByNode(#{graphite_target},#{target[:alias_by_node]})"
302
302
  elsif target[:alias]
303
303
  graphite_target = "alias(#{graphite_target},\"#{target[:alias]}\")"
304
+ elsif target[:no_alias]
305
+ graphite_target = graphite_target # no-op
304
306
  else
305
307
  graphite_target = "alias(#{graphite_target},\"#{name.to_s.capitalize}\")"
306
308
  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: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - R.I.Pienaar
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-04-15 00:00:00 +01:00
19
+ date: 2012-05-29 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies: []
22
22