ganglia_js_charts 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ganglia_js_charts}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Golick"]
@@ -13,17 +13,17 @@ class GangliaJSCharts
13
13
  set :dump_errors, true
14
14
 
15
15
  get "/clusters.json" do
16
- Dir[charts_root + "/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(charts_root, "").delete("/") }.to_json
16
+ Dir[charts_root + "/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(charts_root, "").delete("/") }.sort.to_json
17
17
  end
18
18
 
19
19
  get "/:cluster/servers.json" do
20
20
  cluster_root = charts_root + "/#{params[:cluster]}"
21
- Dir["#{cluster_root}/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(cluster_root, "").delete("/") }.to_json
21
+ Dir["#{cluster_root}/*"].select { |f| File.directory?(f) }.map { |f| f.gsub(cluster_root, "").delete("/") }.sort.to_json
22
22
  end
23
23
 
24
24
  get "/:cluster/:server/metrics.json" do
25
25
  server_root = charts_root + "/#{params[:cluster]}/#{params[:server]}"
26
- Dir["#{server_root}/*"].reject { |f| File.directory?(f) }.map { |f| f.gsub(server_root, "").delete("/").gsub(".rrd", "") }.to_json
26
+ Dir["#{server_root}/*"].reject { |f| File.directory?(f) }.map { |f| f.gsub(server_root, "").delete("/").gsub(".rrd", "") }.sort.to_json
27
27
  end
28
28
 
29
29
  get "/:cluster/:server/:metric.json" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ganglia_js_charts
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Golick