dasht 0.1.1 → 0.1.2

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: ccbf503eeac2e18c967a29d4c8ae0104df0176b8
4
- data.tar.gz: a4759c3a6a4eca4207efa6b3f4e192d9970c35bf
3
+ metadata.gz: 449bccb919b70229c73c414b1ccb888c384494eb
4
+ data.tar.gz: 2d1b3364fee4eebd2d2d13553daa61fe728e1382
5
5
  SHA512:
6
- metadata.gz: 915eb4500355b28019df9bfb311c560fe35dcc63a9d89e20f587ccbe92e264c17642bba2ff32c0ced06cc10a9fdd7d926646d1ae70fd037b06cc33ab5044051f
7
- data.tar.gz: 11c86abaabd3edeb60534806880e137070955fc68434f5eaf00f550197a68ac4211c7e9e6be822d802fe975e10b7ceb762388e0c7ef68f3691a3f2b79d4e601e
6
+ metadata.gz: aef4b4e0e4d1740fd14fddc055e5d1fb3fffd8cf152ce04f00accbea1dcd536594276feec4635238e740d33aea8adba882e3b4ed1408e6be25a05923620b8af6
7
+ data.tar.gz: 1225bce159a99b08302d0968b184e525e70f6e4d186ee26cc123c99f8593aa88d33ee5e03d04de8832b39f98fa4a35c7b487644d35f3d48270a928b3f379ca89
data/NOTES.md CHANGED
@@ -5,3 +5,7 @@
5
5
  + Fix up 'scroll' tile.
6
6
  + Create a 'delta' tile. (Up / down X percent.)
7
7
  + Support user-defined plugins.
8
+ + Automatically support librato style log statements, ie:
9
+ "count#user.clicks=1" - count metric type.
10
+ "sample#database.size=40.9MB" - gauge metric type.
11
+ "measure#database.query=200ms" - append metric type, support stats on browser side.
data/README.md CHANGED
@@ -29,13 +29,13 @@ dasht do |d|
29
29
  # Consume Heroku logs.
30
30
  d.start "heroku logs --tail --app #{application}" do |l|
31
31
  # Track some metrics.
32
- d.count :lines, /.+/
32
+ l.count :lines, /.+/
33
33
 
34
- d.count :bytes, /.+/ do |match|
34
+ l.count :bytes, /.+/ do |match|
35
35
  match[0].length
36
36
  end
37
37
 
38
- d.append :visitors, /for (\d+\.\d+\.\d+\.\d+) at/ do |matches|
38
+ l.append :visitors, /Started GET .* for (\d+\.\d+\.\d+\.\d+) at/ do |matches|
39
39
  matches[1]
40
40
  end
41
41
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/assets/js/dasht.js CHANGED
@@ -29,13 +29,13 @@ Dasht.init = function() {
29
29
  Dasht.process_pending_requests_loop();
30
30
  }
31
31
 
32
- Dasht.fill_tile = function(el, do_width = true, do_height = true) {
32
+ Dasht.fill_tile = function(el, do_width, do_height) {
33
33
  var parent = $(el).parent();
34
- if (do_width) {
34
+ if (do_width || do_width == undefined) {
35
35
  var marginsize = parseInt($(el).css("margin-left")) + parseInt($(el).css("margin-right"));
36
36
  $(el).outerWidth(parent.width() - marginsize);
37
37
  }
38
- if (do_height) {
38
+ if (do_height || do_height == undefined) {
39
39
  var marginsize = parseInt($(el).css("margin-top")) + parseInt($(el).css("margin-bottom"));
40
40
  $(el).outerHeight(parent.height() - marginsize);
41
41
  }
data/dasht.gemspec CHANGED
@@ -2,16 +2,16 @@
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.1 ruby lib
5
+ # stub: dasht 0.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "dasht"
9
- s.version = "0.1.1"
9
+ s.version = "0.1.2"
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"]
13
13
  s.authors = ["Rusty Klophaus"]
14
- s.date = "2015-08-05"
14
+ s.date = "2015-08-10"
15
15
  s.description = "Dasht is a framework for building beautiful, developer-focused application dashboards. Dasht is especially good at displaying high-level application stats in real-time on a wall-mounted monitor."
16
16
  s.email = "rklophaus@gmail.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dasht
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rusty Klophaus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-05 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack