fiveruns_tuneup 0.8.15 → 0.8.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Fiveruns_tuneup-0.8.15
2
+ # Gem::Specification for Fiveruns_tuneup-0.8.16
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: fiveruns_tuneup
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.8.15
8
+ version: 0.8.16
9
9
  platform: ruby
10
10
  authors:
11
11
  - FiveRuns Development Team
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-09-04 00:00:00 -05:00
15
+ date: 2008-09-15 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -132,7 +132,8 @@ module Fiveruns
132
132
  end
133
133
 
134
134
  def time
135
- @time || 0
135
+ # FIXME: rank hack to get around weird JRuby YAML bug
136
+ @time.respond_to?(:value) ? @time.value.to_f : @time || 0
136
137
  end
137
138
 
138
139
  def size
@@ -75,7 +75,7 @@ module Fiveruns
75
75
 
76
76
  MAJOR = 0
77
77
  MINOR = 8
78
- TINY = 15
78
+ TINY = 16
79
79
 
80
80
  # The current version as a Version instance
81
81
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -1,3 +1,18 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
- require 'Shoulda'
3
+ require 'shoulda'
4
+ require 'active_support'
5
+
6
+ require File.join(File.dirname(__FILE__), '../lib/fiveruns_tuneup')
7
+
8
+ class Test::Unit::TestCase
9
+
10
+ def create_test_runs!
11
+ 10.times do |i|
12
+ run_id = Fiveruns::Tuneup.runs(i, Time.now)
13
+ persist(run_id, {}, {}, {})
14
+ end
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,25 @@
1
+ require 'test_helper'
2
+
3
+ class TuneupTest < Test::Unit::TestCase
4
+
5
+ context 'The TuneUp MEGA-OBJECT' do
6
+
7
+ context 'looking up runs' do
8
+
9
+ should 'find the latest runs for a URI' do
10
+ create_test_runs!
11
+
12
+ runs = Fiveruns::Tuneup.runs_for_uri(@uri)
13
+
14
+ assert_equal @runs.length, runs.length
15
+ end
16
+
17
+ end
18
+
19
+ should_eventually 'generate a filename for a run'
20
+
21
+ should_eventually 'generate a run ID'
22
+
23
+ end
24
+
25
+ end
@@ -2,7 +2,7 @@
2
2
  <div id='tuneup-top'>
3
3
  <div id='tuneup-summary'>
4
4
  <%= tuneup_bar(tuneup_data.children.first, :id => 'tuneup-root-bar') %>
5
- <%= trend %> <%= tuneup_data.time.to_i %> ms
5
+ <%= link_to trend + tuneup_data.time.to_i, '#' %> ms
6
6
  </div>
7
7
  <%= link_to_upload %>
8
8
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns_tuneup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.15
4
+ version: 0.8.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-04 00:00:00 -05:00
12
+ date: 2008-09-15 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency