dasht 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 449bccb919b70229c73c414b1ccb888c384494eb
4
- data.tar.gz: 2d1b3364fee4eebd2d2d13553daa61fe728e1382
3
+ metadata.gz: 0e26003730f1cde96af8fb908eefdc4dc5cf609c
4
+ data.tar.gz: cfe9a877d6d7a8343813677cbad09e84f0f191c4
5
5
  SHA512:
6
- metadata.gz: aef4b4e0e4d1740fd14fddc055e5d1fb3fffd8cf152ce04f00accbea1dcd536594276feec4635238e740d33aea8adba882e3b4ed1408e6be25a05923620b8af6
7
- data.tar.gz: 1225bce159a99b08302d0968b184e525e70f6e4d186ee26cc123c99f8593aa88d33ee5e03d04de8832b39f98fa4a35c7b487644d35f3d48270a928b3f379ca89
6
+ metadata.gz: 8ba77978516cc3d9e392875910360be4baab27fe6f90f93d198becbab075041e24654ac72fe3b12c0904cd9c2c25eab7984af7ab7389e5d3e3b54cd4f5881c29
7
+ data.tar.gz: 26ba54b4b81c81ac3e535977230f066ad0d9cc7b2a385355d88675976d938bfdd7cd9c8c6ff087b45b0a6d2eed5c8a0f29756ab53a0232c35b0ba5860431b7be
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -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://104.236.251.84/json/' + ip,
29
+ url: 'http://freegeoip.net/json/' + ip,
31
30
  type: 'POST',
32
31
  dataType: 'jsonp',
33
32
  success: function(response) {
@@ -5,6 +5,8 @@
5
5
  font-size: 80px;
6
6
  font-weight: bold;
7
7
  margin: 20px 20px 0px 20px;
8
+ display: -webkit-flex;
9
+ -webkit-align-items: center;
8
10
  display: flex;
9
11
  align-items: center;
10
12
  }
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.2 ruby lib
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.2"
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.2
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