clientperf 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,4 +1,5 @@
1
1
  = History
2
+ * v0.1.3. Another timezone fix...
2
3
  * v0.1.2. Use ActiveRecord::Base.default_timezone when trying to format dateparts, thanks Mike Perham
3
4
  * v0.1.1. Fixed error when there is no data at all, thanks Mike Perham
4
5
  * v0.1.0. This version is decent for consumption. decent graphs, layout, stable installation and compressed javascript.
data/clientperf.gemspec CHANGED
@@ -1,10 +1,10 @@
1
1
 
2
- # Gem::Specification for Clientperf-0.1.2
2
+ # Gem::Specification for Clientperf-0.1.3
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.2"
7
+ s.version = "0.1.3"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
data/lib/clientperf.rb CHANGED
@@ -27,7 +27,7 @@ module Clientperf
27
27
  end
28
28
 
29
29
  def version
30
- "0.1.2"
30
+ "0.1.3"
31
31
  end
32
32
 
33
33
  private
@@ -1,6 +1,9 @@
1
1
  module ClientperfDataBuilder
2
2
  def build_data_for_chart(results, start_time, periods, period_increment)
3
3
  max = 0
4
+ if period_increment == :days && ActiveRecord::Base.default_timezone == :utc
5
+ start_time = start_time.to_datetime.change(:offset => 0).to_time
6
+ end
4
7
  padded_results = (0..periods).map do |delta|
5
8
  time_period = start_time + delta.send(period_increment)
6
9
  data = get_data_or_pad(time_period, results)
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Falcao