dasht 0.1.4 → 0.1.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/dasht.gemspec +3 -3
  4. data/lib/dasht/metric.rb +3 -3
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28f7fb160aff0f15326ed388c62a2404bf6ce545
4
- data.tar.gz: 8c4670bee5ea847ca205616e3984d83b8b64b7d1
3
+ metadata.gz: 37c767031e79d357e0909e79cdbe2714db028ab9
4
+ data.tar.gz: c322dfac345b8066a4fee29b114140926207e78d
5
5
  SHA512:
6
- metadata.gz: 240f95346cc2a01a37faa6941367efd05fc550a52fec02c1bc5d1bf84f4cd2ccf5851882b26eff74834bd1035774b5ea513e8bdc0151090716531c2d41a8d3ea
7
- data.tar.gz: 32248602b75bdd5cc66450f4f5868c0b774fc29a655822991050211c4af3347dc25a334bccc09b9cdc923d4f7324f72ba765f4f67fe3ebd2438773118f3c9d68
6
+ metadata.gz: 51d399f550759ec9ebd9eda1fcd37f7fa86f152ca3faf10afb374c1c7347aeb5e8dbec5869755f681ac739799fa2fc7ee0942222d48b28ebf01a10aabf742c67
7
+ data.tar.gz: 8f12acbe41abda275b99bbbf5d628a12e0d96aaecaab7982f03d9b11a26cbd0a998c4253f0b5ac7e4454e1dd81e947f2f877274bfacba0f2955cb4e8c3c73fe9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
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.4 ruby lib
5
+ # stub: dasht 0.1.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "dasht"
9
- s.version = "0.1.4"
9
+ s.version = "0.1.5"
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-11"
14
+ s.date = "2015-09-23"
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 = [
data/lib/dasht/metric.rb CHANGED
@@ -45,7 +45,7 @@ module Dasht
45
45
  pointer = nil
46
46
  @checkpoints.trim_while do |s, p|
47
47
  pointer = p
48
- s < ts
48
+ (s || 0) < ts
49
49
  end
50
50
  @data.trim_to(pointer)
51
51
  return
@@ -57,8 +57,8 @@ module Dasht
57
57
  end_pointer = nil
58
58
  prev_p = nil
59
59
  @checkpoints.enum.each do |s, p|
60
- start_pointer ||= p if start_ts <= s
61
- end_pointer ||= prev_p if end_ts && end_ts <= s
60
+ start_pointer ||= p if start_ts <= (s || 0)
61
+ end_pointer ||= prev_p if end_ts && end_ts <= (s || 0)
62
62
  break if start_pointer && (end_ts.nil? || end_pointer)
63
63
  prev_p = p
64
64
  end
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.4
4
+ version: 0.1.5
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-11 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack