clientperf 0.1.0 → 0.1.2
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.
- data/History.rdoc +2 -0
- data/clientperf.gemspec +3 -3
- data/lib/clientperf.rb +1 -1
- data/lib/clientperf_data_builder.rb +1 -1
- data/views/clientperf/index.html.erb +4 -0
- metadata +2 -2
data/History.rdoc
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
= History
|
2
|
+
* v0.1.2. Use ActiveRecord::Base.default_timezone when trying to format dateparts, thanks Mike Perham
|
3
|
+
* v0.1.1. Fixed error when there is no data at all, thanks Mike Perham
|
2
4
|
* v0.1.0. This version is decent for consumption. decent graphs, layout, stable installation and compressed javascript.
|
3
5
|
* v0.0.2. First time releasing a gem and my manifest was bad. this version fixes that
|
4
6
|
* v0.0.1. Just in time for Austin on Rails
|
data/clientperf.gemspec
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Clientperf-0.1.
|
2
|
+
# Gem::Specification for Clientperf-0.1.2
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{clientperf}
|
7
|
-
s.version = "0.1.
|
7
|
+
s.version = "0.1.2"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Eric Falcao"]
|
13
|
-
s.date = %q{2008-06-
|
13
|
+
s.date = %q{2008-06-23}
|
14
14
|
s.default_executable = %q{clientperf}
|
15
15
|
s.description = %q{Instrumentation for the FiveRuns TuneUp product.}
|
16
16
|
s.email = %q{efalcao@gmail.com}
|
data/lib/clientperf.rb
CHANGED
@@ -13,7 +13,7 @@ module ClientperfDataBuilder
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def get_data_or_pad(point, results)
|
16
|
-
data = results.detect {|p,d| point == p.to_time(
|
16
|
+
data = results.detect {|p,d| point == p.to_time(ActiveRecord::Base.default_timezone)}
|
17
17
|
data ? data[1].to_i : 0
|
18
18
|
end
|
19
19
|
end
|
@@ -14,6 +14,7 @@
|
|
14
14
|
<div id="overall">
|
15
15
|
<div class="block">
|
16
16
|
<h2>overall graphs</h2>
|
17
|
+
<% if @uris.size > 0 %>
|
17
18
|
<div class="chart">
|
18
19
|
<h4>24 hour</h4>
|
19
20
|
<img src="<%= chart(ClientperfResult.last_24_hours) %>" />
|
@@ -22,5 +23,8 @@
|
|
22
23
|
<h4>30 day</h4>
|
23
24
|
<img src="<%= chart(ClientperfResult.last_30_days)%>" />
|
24
25
|
</div>
|
26
|
+
<% else %>
|
27
|
+
<p>no data yet.</p>
|
28
|
+
<% end %>
|
25
29
|
</div>
|
26
30
|
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clientperf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Falcao
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-23 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|