radiant-race_results-extension 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -44,7 +44,11 @@ class RaceCheckpointTime < ActiveRecord::Base
44
44
 
45
45
  def to_s
46
46
  time = read_attribute(:elapsed_time)
47
- time.to_timecode if time && time != 0
47
+ if time && time != 0
48
+ time.to_timecode
49
+ else
50
+ ""
51
+ end
48
52
  end
49
53
 
50
54
  def position
@@ -1 +1 @@
1
- <%= performance.position %>, <%= performance.name %>, <%= performance.race_category.name %>, <%= performance.club.name %>, <%= performance.elapsed_time %>
1
+ <%= performance.position %>, <%= performance.name %>, <%= performance.race_category.name if performance.race_category %>, <%= performance.club.name if performance.club %>, <%= performance.elapsed_time %>
@@ -1,3 +1,3 @@
1
1
  <%-
2
2
  performance ||= splits
3
- %><%= performance.position %>, <%= performance.name %>, <%= @instance.race.checkpoints.collect {|cp| performance.time_at(cp) }.join(', ') %>, <%= performance.elapsed_time %>
3
+ %><%= performance.position %>, <%= performance.name %>, <%= @race.checkpoints.collect {|cp| @splits[performance.id][cp.id] }.join(', ') %>, <%= performance.elapsed_time %>
@@ -2,7 +2,7 @@
2
2
  # require_dependency 'application_controller'
3
3
 
4
4
  class RaceResultsExtension < Radiant::Extension
5
- version "1.3.0"
5
+ version "1.3.1"
6
6
  description "Makes easy the uploading, analysis and display of race results. Built for fell races but should work for most timed or score events."
7
7
  url "http://spanner.org/radiant/race_results"
8
8
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-race_results-extension}
8
- s.version = "1.3.0"
8
+ s.version = "1.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-race_results-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner