dasht 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/assets/plugins/map.js +1 -2
- data/assets/plugins/value.css +2 -0
- data/dasht.gemspec +3 -2
- data/examples/simple_heroku_dashboard_2.rb +34 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e26003730f1cde96af8fb908eefdc4dc5cf609c
|
4
|
+
data.tar.gz: cfe9a877d6d7a8343813677cbad09e84f0f191c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba77978516cc3d9e392875910360be4baab27fe6f90f93d198becbab075041e24654ac72fe3b12c0904cd9c2c25eab7984af7ab7389e5d3e3b54cd4f5881c29
|
7
|
+
data.tar.gz: 26ba54b4b81c81ac3e535977230f066ad0d9cc7b2a385355d88675976d938bfdd7cd9c8c6ff087b45b0a6d2eed5c8a0f29756ab53a0232c35b0ba5860431b7be
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/assets/plugins/map.js
CHANGED
@@ -25,9 +25,8 @@ Dasht.map_plot_ip = function(map, markers, ip) {
|
|
25
25
|
return;
|
26
26
|
}
|
27
27
|
|
28
|
-
// http://freegeoip.net/json/
|
29
28
|
jQuery.ajax({
|
30
|
-
url: 'http://
|
29
|
+
url: 'http://freegeoip.net/json/' + ip,
|
31
30
|
type: 'POST',
|
32
31
|
dataType: 'jsonp',
|
33
32
|
success: function(response) {
|
data/assets/plugins/value.css
CHANGED
data/dasht.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: dasht 0.1.
|
5
|
+
# stub: dasht 0.1.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "dasht"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -44,6 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
"assets/plugins/value.js",
|
45
45
|
"dasht.gemspec",
|
46
46
|
"examples/simple_heroku_dashboard.rb",
|
47
|
+
"examples/simple_heroku_dashboard_2.rb",
|
47
48
|
"lib/dasht.rb",
|
48
49
|
"lib/dasht/array_monkeypatching.rb",
|
49
50
|
"lib/dasht/base.rb",
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'dasht'
|
2
|
+
|
3
|
+
application = ARGV[0]
|
4
|
+
|
5
|
+
dasht do |d|
|
6
|
+
# Consume Heroku logs.
|
7
|
+
d.start "heroku logs --tail --app #{application}" do |l|
|
8
|
+
# Track some metrics.
|
9
|
+
l.count :lines, /.+/
|
10
|
+
|
11
|
+
l.count :bytes, /.+/ do |match|
|
12
|
+
match[0].length
|
13
|
+
end
|
14
|
+
|
15
|
+
l.append :visitors, /Started GET .* for (\d+\.\d+\.\d+\.\d+) at/ do |matches|
|
16
|
+
matches[1]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
counter = 0
|
21
|
+
d.interval :counter do
|
22
|
+
sleep 1
|
23
|
+
counter += 1
|
24
|
+
end
|
25
|
+
|
26
|
+
# Publish a board.
|
27
|
+
d.board do |b|
|
28
|
+
b.map :visitors, :title => "Visitors", :width => 8, :height => 12
|
29
|
+
b.value :counter, :title => "Counter", :width => 4
|
30
|
+
b.value :lines, :title => "Number of Lines", :width => 4
|
31
|
+
b.value :bytes, :title => "Number of Bytes", :width => 4
|
32
|
+
b.chart :bytes, :title => "Chart of Bytes", :periods => 10, :width => 4
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dasht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rusty Klophaus
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- assets/plugins/value.js
|
144
144
|
- dasht.gemspec
|
145
145
|
- examples/simple_heroku_dashboard.rb
|
146
|
+
- examples/simple_heroku_dashboard_2.rb
|
146
147
|
- lib/dasht.rb
|
147
148
|
- lib/dasht/array_monkeypatching.rb
|
148
149
|
- lib/dasht/base.rb
|