radiant-race_results-extension 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -0
- data/app/controllers/admin/race_clubs_controller.rb +1 -0
- data/app/controllers/admin/race_competitors_controller.rb +1 -0
- data/app/controllers/admin/race_instances_controller.rb +1 -0
- data/app/controllers/admin/races_controller.rb +2 -1
- data/app/controllers/race_instances_controller.rb +1 -1
- data/app/controllers/race_performances_controller.rb +1 -1
- data/app/controllers/races_controller.rb +11 -2
- data/app/models/race_instance.rb +5 -1
- data/app/views/admin/race_checkpoints/_checkpoint.html.haml +2 -2
- data/app/views/admin/race_clubs/index.html.haml +1 -1
- data/app/views/admin/race_clubs/new.html.haml +20 -0
- data/app/views/admin/race_competitors/index.html.haml +1 -1
- data/app/views/admin/race_records/_record.html.haml +2 -2
- data/app/views/admin/races/edit.html.haml +0 -2
- data/app/views/admin/races/index.html.haml +1 -1
- data/app/views/race_instances/show.html.haml +6 -1
- data/app/views/race_performances/_headings.html.haml +2 -1
- data/app/views/race_performances/_performance.html.haml +6 -6
- data/app/views/races/index.html.haml +3 -4
- data/app/views/races/show.html.haml +59 -57
- data/config/routes.rb +23 -0
- data/db/migrate/20091116130836_race_data.rb +1 -1
- data/pkg/radiant-race_results-extension-1.0.1.gem +0 -0
- data/race_results_extension.rb +2 -2
- data/radiant-race_results-extension.gemspec +150 -0
- metadata +9 -4
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.0
|
@@ -1,8 +1,9 @@
|
|
1
1
|
class Admin::RacesController < Admin::ResourceController
|
2
|
+
paginate_models
|
2
3
|
helper :races
|
4
|
+
paginate_models
|
3
5
|
|
4
6
|
def update
|
5
|
-
Rails.logger.warn "updating with #{params[model_symbol].inspect}"
|
6
7
|
model.update_attributes!(params[model_symbol])
|
7
8
|
response_for :update
|
8
9
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class RaceInstancesController < ApplicationController
|
2
|
-
radiant_layout { |controller|
|
2
|
+
radiant_layout { |controller| Radiant::Config['races.results_layout'] || Radiant::Config['races.layout'] }
|
3
3
|
no_login_required
|
4
4
|
before_filter :get_race, :only => :show
|
5
5
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
class RacesController < ApplicationController
|
2
|
-
|
2
|
+
include Radiant::Pagination::Controller
|
3
|
+
radiant_layout { |controller| controller.choose_layout }
|
3
4
|
no_login_required
|
4
5
|
|
5
6
|
def show
|
@@ -7,7 +8,15 @@ class RacesController < ApplicationController
|
|
7
8
|
end
|
8
9
|
|
9
10
|
def index
|
10
|
-
@races = Race.
|
11
|
+
@races = Race.paginate(pagination_parameters)
|
12
|
+
end
|
13
|
+
|
14
|
+
def choose_layout
|
15
|
+
if action_name == "show"
|
16
|
+
layout = Radiant::Config['races.show_layout'] || Radiant::Config['races.layout']
|
17
|
+
else
|
18
|
+
layout = Radiant::Config['races.index_layout'] || Radiant::Config['races.layout']
|
19
|
+
end
|
11
20
|
end
|
12
21
|
|
13
22
|
end
|
data/app/models/race_instance.rb
CHANGED
@@ -120,6 +120,7 @@ protected
|
|
120
120
|
performances.destroy_all
|
121
121
|
race_data.each do |line|
|
122
122
|
runner = normalize_fields(line)
|
123
|
+
runner['name'] = "#{runner['forename']} #{runner['surname']}" if runner['name'].blank?
|
123
124
|
next if runner['name'].blank?
|
124
125
|
|
125
126
|
runner['elapsed_time'] ||= "0"
|
@@ -157,7 +158,10 @@ protected
|
|
157
158
|
'cat' => 'category',
|
158
159
|
'time' => 'elapsed_time',
|
159
160
|
'finish' => 'elapsed_time',
|
160
|
-
'pos' => 'position'
|
161
|
+
'pos' => 'position',
|
162
|
+
'last_name' => 'surname',
|
163
|
+
'first_name' => 'forename',
|
164
|
+
'christian_name' => 'forename'
|
161
165
|
}
|
162
166
|
|
163
167
|
def normalize_fields(line)
|
@@ -15,5 +15,5 @@
|
|
15
15
|
- if f.object.new_record?
|
16
16
|
= link_to_function "cancel", "this.up('.subform').remove()"
|
17
17
|
- else
|
18
|
-
= f.check_box '
|
19
|
-
= f.label '
|
18
|
+
= f.check_box '_destroy', { :onclick=>"this.checked ? this.up('.subform').addClassName('deleting') : this.up('.subform').removeClassName('deleting')" , :class => 'record_destroy'}
|
19
|
+
= f.label '_destroy', 'delete', :class => 'quiet'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
- include_stylesheet 'admin/races'
|
2
|
+
- include_javascript 'admin/races'
|
3
|
+
|
4
|
+
= render_region :top
|
5
|
+
|
6
|
+
- render_region :main do |main|
|
7
|
+
- main.edit_header do
|
8
|
+
%h1
|
9
|
+
New Club
|
10
|
+
|
11
|
+
- main.edit_form do
|
12
|
+
- form_for :race_club, @race_club, :url => admin_race_clubs_path, :html => { :method => "post" } do |f|
|
13
|
+
.form-area
|
14
|
+
= render :partial => "form", :locals => { :f => f }
|
15
|
+
|
16
|
+
%p.buttons
|
17
|
+
= save_model_button(@race_club)
|
18
|
+
= save_model_and_continue_editing_button(@race_club)
|
19
|
+
or
|
20
|
+
= link_to "Cancel", admin_race_clubs_path
|
@@ -16,5 +16,5 @@
|
|
16
16
|
- if f.object.new_record?
|
17
17
|
= link_to_function "cancel", "this.up('.subform').remove()"
|
18
18
|
- else
|
19
|
-
= f.check_box '
|
20
|
-
= f.label '
|
19
|
+
= f.check_box '_destroy', { :onclick=>"this.checked ? this.up('.subform').addClassName('deleting') : this.up('.subform').removeClassName('deleting')" , :class => 'record_delete'}
|
20
|
+
= f.label '_destroy', 'delete', :class => 'quiet'
|
@@ -4,8 +4,6 @@
|
|
4
4
|
- main.edit_header do
|
5
5
|
%h1
|
6
6
|
Edit Race
|
7
|
-
%p
|
8
|
-
This is where you put in the basic information about the race, including general instructions for the competitor. The information you enter here should apply every time the race is run.
|
9
7
|
|
10
8
|
- main.edit_form do
|
11
9
|
- form_for :race, @race, :url => admin_race_path(@race), :html => { :method => "put", :multipart => true } do |f|
|
@@ -23,7 +23,12 @@
|
|
23
23
|
Not available yet.
|
24
24
|
|
25
25
|
- content_for :breadhead do
|
26
|
-
|
26
|
+
- home = Page.find_by_parent_id(nil)
|
27
|
+
= link_to home.breadcrumb, home.url
|
28
|
+
\>
|
29
|
+
= link_to "Races", races_url, :class => 'breadhead'
|
30
|
+
\>
|
31
|
+
= link_to @instance.race.name, race_url(@instance.race), :class => 'breadhead'
|
27
32
|
|
28
33
|
- content_for :title do
|
29
34
|
= @instance.full_name
|
@@ -1,21 +1,21 @@
|
|
1
1
|
- trclass ||= performance.prized? ? 'prized' : 'finisher'
|
2
2
|
|
3
3
|
%tr{:class => trclass}
|
4
|
-
%td
|
4
|
+
%td.pos
|
5
5
|
- if performance.finished?
|
6
6
|
= performance.position
|
7
7
|
- else
|
8
8
|
= performance.status
|
9
|
-
%td
|
9
|
+
%td.name
|
10
10
|
= performance.name
|
11
|
-
%td
|
11
|
+
%td.club
|
12
12
|
- if performance.club
|
13
13
|
= link_to_unless_current performance.club.name, race_club_url(@instance.race, @instance, performance.club)
|
14
|
-
%td
|
14
|
+
%td.cat
|
15
15
|
= link_to_unless_current performance.race_category.name, race_category_url(@instance.race, @instance, performance.race_category)
|
16
|
-
%td
|
16
|
+
%td.time
|
17
17
|
- if performance.finished?
|
18
18
|
= performance.elapsed_time
|
19
|
-
%td
|
19
|
+
%td.prizes
|
20
20
|
- if performance.finished?
|
21
21
|
= performance.prizes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
.race
|
3
3
|
- if race.picture_asset
|
4
4
|
.race_illustration
|
5
|
-
= link_to image_tag(race.picture_asset.thumbnail(Radiant::Config['
|
5
|
+
= link_to image_tag(race.picture_asset.thumbnail(Radiant::Config['races.race_illustration_size'] || :small)), race_url(race)
|
6
6
|
|
7
7
|
.race_description
|
8
8
|
%h2
|
@@ -25,7 +25,7 @@
|
|
25
25
|
= link_to "Download map", race.map_asset.thumbnail('original'), :class => 'racemap'
|
26
26
|
|
27
27
|
%p
|
28
|
-
= truncate_words(race.description,
|
28
|
+
= truncate_words(race.description, 72)
|
29
29
|
|
30
30
|
- content_for :title do
|
31
31
|
Races
|
@@ -34,5 +34,4 @@
|
|
34
34
|
- if next_instance = RaceInstance.future.first
|
35
35
|
%p.next_race
|
36
36
|
Next race:
|
37
|
-
|
38
|
-
= link_to "#{next_instance.race.name} on #{next_instance.nice_start_date}", race_instance_url(next_instance.race, next_instance)
|
37
|
+
= link_to "#{next_instance.race.name} on #{next_instance.nice_start_date}", race_instance_url(next_instance.race, next_instance)
|
@@ -1,81 +1,83 @@
|
|
1
|
-
-
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
- content_for :breadhead do
|
2
|
+
- home = Page.find_by_parent_id(nil)
|
3
|
+
= link_to home.breadcrumb, home.url
|
4
|
+
\>
|
5
|
+
= link_to "Races", races_url
|
6
|
+
|
7
|
+
- content_for :title do
|
8
|
+
= @race.name
|
9
|
+
|
10
|
+
- content_for :subtitle do
|
11
|
+
= @race.distance
|
12
|
+
miles,
|
13
|
+
= @race.climb
|
14
|
+
climb
|
15
|
+
|
16
|
+
- content_for :next do
|
17
|
+
- if next_instance = @race.next
|
18
|
+
Next race:
|
19
|
+
= next_instance.nice_start_date + ','
|
20
|
+
at
|
21
|
+
= next_instance.nice_start_time + "."
|
22
|
+
|
23
|
+
- content_for :notes do
|
24
|
+
- if next_instance = @race.next
|
25
|
+
= next_instance.filter.filter(next_instance.notes)
|
26
|
+
|
27
|
+
- content_for :illustration do
|
28
|
+
- if @race.picture_asset
|
29
|
+
.illustration.thumbs
|
30
|
+
= image_tag @race.picture_asset.thumbnail(:square)
|
31
|
+
%span.frame
|
32
|
+
%p.caption
|
33
|
+
= @race.picture_asset.caption
|
6
34
|
|
7
|
-
|
35
|
+
- content_for :description do
|
36
|
+
= RedCloth.new(@race.description).to_html
|
8
37
|
|
9
|
-
|
10
|
-
%h2
|
38
|
+
- content_for :checkpoints do
|
39
|
+
%h2.checkpoints
|
11
40
|
Checkpoints
|
12
|
-
|
13
41
|
- if @race.checkpoints.any?
|
14
42
|
%ul.checkpoints
|
15
43
|
- @race.checkpoints.each do |cp|
|
16
44
|
%li
|
17
|
-
|
45
|
+
%span.checkpoint
|
46
|
+
= cp.name
|
18
47
|
%span.info
|
19
48
|
= cp.location
|
20
49
|
- else
|
21
50
|
%p No checkpoints defined.
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
|
51
|
+
|
52
|
+
- content_for :map do
|
53
|
+
- if @race.map_asset
|
54
|
+
%h2.map
|
55
|
+
= link_to "Download map", @race.map_asset.thumbnail('original'), :class => 'racemap'
|
26
56
|
|
27
|
-
|
28
|
-
%h2
|
57
|
+
- content_for :records do
|
58
|
+
%h2.records
|
29
59
|
Records
|
30
60
|
- if @race.records.any?
|
31
61
|
%ul.race_records
|
32
62
|
- @race.records.each do |record|
|
33
63
|
%li
|
34
|
-
%
|
64
|
+
%span.record
|
35
65
|
= record.race_category.name + ':'
|
36
66
|
= record.elapsed_time
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
67
|
+
%span.info
|
68
|
+
by
|
69
|
+
= record.holder
|
70
|
+
in
|
71
|
+
= record.year
|
72
|
+
|
42
73
|
- else
|
43
|
-
%p.
|
74
|
+
%p.norecords
|
44
75
|
None yet
|
45
76
|
|
46
|
-
|
47
|
-
|
48
|
-
Results
|
77
|
+
- content_for :results do
|
78
|
+
Results:
|
49
79
|
- if @race.instances.with_results.any?
|
50
|
-
|
51
|
-
|
52
|
-
%li
|
53
|
-
= link_to instance.name, race_instance_url(@race, instance)
|
80
|
+
- @race.instances.with_results.each do |instance|
|
81
|
+
= link_to instance.name, race_instance_url(@race, instance)
|
54
82
|
- else
|
55
|
-
|
56
|
-
None yet
|
57
|
-
|
58
|
-
|
59
|
-
- content_for :breadhead do
|
60
|
-
= link_to "Races", races_url, :class => 'breadhead'
|
61
|
-
|
62
|
-
- content_for :title do
|
63
|
-
= @race.name
|
64
|
-
|
65
|
-
- content_for :subtitle do
|
66
|
-
= @race.distance
|
67
|
-
miles,
|
68
|
-
= @race.climb
|
69
|
-
climb
|
70
|
-
|
71
|
-
- content_for :introduction do
|
72
|
-
- if next_instance = @race.next
|
73
|
-
%div.future_race
|
74
|
-
%p
|
75
|
-
Next race:
|
76
|
-
%strong
|
77
|
-
= next_instance.nice_start_date + ','
|
78
|
-
at
|
79
|
-
= next_instance.nice_start_time + "."
|
80
|
-
|
81
|
-
= next_instance.filter.filter(next_instance.notes)
|
83
|
+
None yet
|
data/config/routes.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
ActionController::Routing::Routes.draw do |map|
|
2
|
+
map.namespace :admin, :member => { :remove => :get } do |admin|
|
3
|
+
admin.resources :races do |race|
|
4
|
+
race.resources :race_instances, :has_many => [:race_performances]
|
5
|
+
end
|
6
|
+
admin.resources :race_clubs
|
7
|
+
admin.resources :race_competitors
|
8
|
+
end
|
9
|
+
|
10
|
+
# public interface is read-only and uses slugs for url-friendliness (and seo)
|
11
|
+
map.races '/races', :controller => 'races', :action => 'index'
|
12
|
+
map.race '/races/:slug', :controller => 'races', :action => 'show'
|
13
|
+
map.results '/results', :controller => 'race_instances', :action => 'index'
|
14
|
+
|
15
|
+
map.race_instance '/races/:race_slug/:slug', :controller => 'race_instances', :action => 'show'
|
16
|
+
map.race_club '/races/:race_slug/:slug/club/:club', :controller => 'race_instances', :action => 'show'
|
17
|
+
map.race_category '/races/:race_slug/:slug/cat/:cat', :controller => 'race_instances', :action => 'show'
|
18
|
+
|
19
|
+
map.race_performance '/races/:race_slug/:slug/p/:id', :controller => 'race_performances', :action => 'show'
|
20
|
+
|
21
|
+
# map.resources :race_clubs
|
22
|
+
# map.resources :race_competitors
|
23
|
+
end
|
@@ -32,7 +32,7 @@ class RaceData < ActiveRecord::Migration
|
|
32
32
|
# this ought to be suitable for score courses too
|
33
33
|
|
34
34
|
create_table :race_checkpoints do |t|
|
35
|
-
t.column :
|
35
|
+
t.column :race_id, :integer
|
36
36
|
t.column :position, :integer
|
37
37
|
t.column :name, :string
|
38
38
|
t.column :value, :integer
|
Binary file
|
data/race_results_extension.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# require_dependency 'application_controller'
|
3
3
|
|
4
4
|
class RaceResultsExtension < Radiant::Extension
|
5
|
-
version "1.0
|
5
|
+
version "1.1.0"
|
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
|
|
@@ -16,7 +16,7 @@ class RaceResultsExtension < Radiant::Extension
|
|
16
16
|
|
17
17
|
def activate
|
18
18
|
require 'duration_extensions' # string to duration and vice versa
|
19
|
-
|
19
|
+
RacePage.send :include, RaceResults::RaceTags
|
20
20
|
|
21
21
|
unless defined? admin.race
|
22
22
|
Radiant::AdminUI.send :include, RaceResults::AdminUI
|
@@ -0,0 +1,150 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{radiant-race_results-extension}
|
8
|
+
s.version = "1.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["spanner"]
|
12
|
+
s.date = %q{2010-10-04}
|
13
|
+
s.description = %q{Makes easy the uploading, analysis and display of race results. Built for fell races but should work for most timed or score events including those with checkpoints.}
|
14
|
+
s.email = %q{will@spanner.org}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.md"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"README.md",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"app/controllers/admin/race_clubs_controller.rb",
|
23
|
+
"app/controllers/admin/race_competitors_controller.rb",
|
24
|
+
"app/controllers/admin/race_instances_controller.rb",
|
25
|
+
"app/controllers/admin/races_controller.rb",
|
26
|
+
"app/controllers/race_instances_controller.rb",
|
27
|
+
"app/controllers/race_performances_controller.rb",
|
28
|
+
"app/controllers/races_controller.rb",
|
29
|
+
"app/helpers/races_helper.rb",
|
30
|
+
"app/models/race.rb",
|
31
|
+
"app/models/race_category.rb",
|
32
|
+
"app/models/race_checkpoint.rb",
|
33
|
+
"app/models/race_checkpoint_time.rb",
|
34
|
+
"app/models/race_club.rb",
|
35
|
+
"app/models/race_club_alias.rb",
|
36
|
+
"app/models/race_competitor.rb",
|
37
|
+
"app/models/race_instance.rb",
|
38
|
+
"app/models/race_page.rb",
|
39
|
+
"app/models/race_performance.rb",
|
40
|
+
"app/models/race_performance_status.rb",
|
41
|
+
"app/models/race_record.rb",
|
42
|
+
"app/views/admin/race_checkpoints/_checkpoint.html.haml",
|
43
|
+
"app/views/admin/race_club_aliases/_race_club_alias.html.haml",
|
44
|
+
"app/views/admin/race_clubs/_club.html.haml",
|
45
|
+
"app/views/admin/race_clubs/_form.html.haml",
|
46
|
+
"app/views/admin/race_clubs/edit.html.haml",
|
47
|
+
"app/views/admin/race_clubs/index.html.haml",
|
48
|
+
"app/views/admin/race_clubs/new.html.haml",
|
49
|
+
"app/views/admin/race_competitors/_competitor.html.haml",
|
50
|
+
"app/views/admin/race_competitors/_form.html.haml",
|
51
|
+
"app/views/admin/race_competitors/edit.html.haml",
|
52
|
+
"app/views/admin/race_competitors/index.html.haml",
|
53
|
+
"app/views/admin/race_instances/_form.html.haml",
|
54
|
+
"app/views/admin/race_instances/edit.html.haml",
|
55
|
+
"app/views/admin/race_instances/new.html.haml",
|
56
|
+
"app/views/admin/race_records/_record.html.haml",
|
57
|
+
"app/views/admin/races/_form.html.haml",
|
58
|
+
"app/views/admin/races/_race.html.haml",
|
59
|
+
"app/views/admin/races/edit.html.haml",
|
60
|
+
"app/views/admin/races/index.html.haml",
|
61
|
+
"app/views/admin/races/new.html.haml",
|
62
|
+
"app/views/race_categories/show.html.haml",
|
63
|
+
"app/views/race_clubs/show.html.haml",
|
64
|
+
"app/views/race_instances/index.html.haml",
|
65
|
+
"app/views/race_instances/show.html.haml",
|
66
|
+
"app/views/race_performances/_headings.html.haml",
|
67
|
+
"app/views/race_performances/_performance.html.haml",
|
68
|
+
"app/views/races/index.html.haml",
|
69
|
+
"app/views/races/show.html.haml",
|
70
|
+
"config/routes.rb",
|
71
|
+
"cucumber.yml",
|
72
|
+
"db/migrate/20091116130836_race_data.rb",
|
73
|
+
"db/migrate/20091124095157_competitor_details.rb",
|
74
|
+
"db/migrate/20091126110634_club_aliases.rb",
|
75
|
+
"db/migrate/20091223094002_instance_details.rb",
|
76
|
+
"db/migrate/20091224100524_race_distance.rb",
|
77
|
+
"db/migrate/20091224100734_race_records.rb",
|
78
|
+
"db/migrate/20091224105637_category_details.rb",
|
79
|
+
"db/migrate/20091224115909_filters.rb",
|
80
|
+
"db/migrate/20091228122837_record_holder.rb",
|
81
|
+
"db/migrate/20100106104850_remember_calculations.rb",
|
82
|
+
"db/migrate/20100426104801_race_attachments.rb",
|
83
|
+
"features/support/env.rb",
|
84
|
+
"features/support/paths.rb",
|
85
|
+
"lib/duration_extensions.rb",
|
86
|
+
"lib/race_results/admin_ui.rb",
|
87
|
+
"lib/race_results/race_tags.rb",
|
88
|
+
"lib/tasks/race_results_extension_tasks.rake",
|
89
|
+
"pkg/radiant-race_results-extension-1.0.1.gem",
|
90
|
+
"public/images/admin/calendar_down.png",
|
91
|
+
"public/images/admin/new-race.png",
|
92
|
+
"public/javascripts/admin/races.js",
|
93
|
+
"public/stylesheets/sass/admin/races.sass",
|
94
|
+
"race_results_extension.rb",
|
95
|
+
"radiant-race_results-extension.gemspec",
|
96
|
+
"spec/datasets/competitors_dataset.rb",
|
97
|
+
"spec/datasets/race_sites_dataset.rb",
|
98
|
+
"spec/datasets/races_dataset.rb",
|
99
|
+
"spec/files/dunnerdale_2009.csv",
|
100
|
+
"spec/files/long_duddon_2008.csv",
|
101
|
+
"spec/lib/duration_spec.rb",
|
102
|
+
"spec/models/race_category_spec.rb",
|
103
|
+
"spec/models/race_club_spec.rb",
|
104
|
+
"spec/models/race_instance_spec.rb",
|
105
|
+
"spec/models/race_performance_spec.rb",
|
106
|
+
"spec/models/race_performance_status_spec.rb",
|
107
|
+
"spec/models/race_spec.rb",
|
108
|
+
"spec/spec.opts",
|
109
|
+
"spec/spec_helper.rb",
|
110
|
+
"vendor/plugins/acts_as_list/README",
|
111
|
+
"vendor/plugins/acts_as_list/init.rb",
|
112
|
+
"vendor/plugins/acts_as_list/lib/active_record/acts/list.rb",
|
113
|
+
"vendor/plugins/acts_as_list/test/list_test.rb"
|
114
|
+
]
|
115
|
+
s.homepage = %q{http://github.com/radiant/radiant-race_results-extension}
|
116
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
117
|
+
s.require_paths = ["lib"]
|
118
|
+
s.rubygems_version = %q{1.3.7}
|
119
|
+
s.summary = %q{Race results analysis and presentation for the Radiant CMS}
|
120
|
+
s.test_files = [
|
121
|
+
"spec/datasets/competitors_dataset.rb",
|
122
|
+
"spec/datasets/race_sites_dataset.rb",
|
123
|
+
"spec/datasets/races_dataset.rb",
|
124
|
+
"spec/lib/duration_spec.rb",
|
125
|
+
"spec/models/race_category_spec.rb",
|
126
|
+
"spec/models/race_club_spec.rb",
|
127
|
+
"spec/models/race_instance_spec.rb",
|
128
|
+
"spec/models/race_performance_spec.rb",
|
129
|
+
"spec/models/race_performance_status_spec.rb",
|
130
|
+
"spec/models/race_spec.rb",
|
131
|
+
"spec/spec_helper.rb"
|
132
|
+
]
|
133
|
+
|
134
|
+
if s.respond_to? :specification_version then
|
135
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
136
|
+
s.specification_version = 3
|
137
|
+
|
138
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
139
|
+
s.add_runtime_dependency(%q<radiant>, [">= 0.9.0"])
|
140
|
+
s.add_runtime_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
141
|
+
else
|
142
|
+
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
143
|
+
s.add_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
144
|
+
end
|
145
|
+
else
|
146
|
+
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
147
|
+
s.add_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- spanner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-04 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -59,6 +59,7 @@ extra_rdoc_files:
|
|
59
59
|
files:
|
60
60
|
- README.md
|
61
61
|
- Rakefile
|
62
|
+
- VERSION
|
62
63
|
- app/controllers/admin/race_clubs_controller.rb
|
63
64
|
- app/controllers/admin/race_competitors_controller.rb
|
64
65
|
- app/controllers/admin/race_instances_controller.rb
|
@@ -85,6 +86,7 @@ files:
|
|
85
86
|
- app/views/admin/race_clubs/_form.html.haml
|
86
87
|
- app/views/admin/race_clubs/edit.html.haml
|
87
88
|
- app/views/admin/race_clubs/index.html.haml
|
89
|
+
- app/views/admin/race_clubs/new.html.haml
|
88
90
|
- app/views/admin/race_competitors/_competitor.html.haml
|
89
91
|
- app/views/admin/race_competitors/_form.html.haml
|
90
92
|
- app/views/admin/race_competitors/edit.html.haml
|
@@ -106,6 +108,7 @@ files:
|
|
106
108
|
- app/views/race_performances/_performance.html.haml
|
107
109
|
- app/views/races/index.html.haml
|
108
110
|
- app/views/races/show.html.haml
|
111
|
+
- config/routes.rb
|
109
112
|
- cucumber.yml
|
110
113
|
- db/migrate/20091116130836_race_data.rb
|
111
114
|
- db/migrate/20091124095157_competitor_details.rb
|
@@ -124,11 +127,13 @@ files:
|
|
124
127
|
- lib/race_results/admin_ui.rb
|
125
128
|
- lib/race_results/race_tags.rb
|
126
129
|
- lib/tasks/race_results_extension_tasks.rake
|
130
|
+
- pkg/radiant-race_results-extension-1.0.1.gem
|
127
131
|
- public/images/admin/calendar_down.png
|
128
132
|
- public/images/admin/new-race.png
|
129
133
|
- public/javascripts/admin/races.js
|
130
134
|
- public/stylesheets/sass/admin/races.sass
|
131
135
|
- race_results_extension.rb
|
136
|
+
- radiant-race_results-extension.gemspec
|
132
137
|
- spec/datasets/competitors_dataset.rb
|
133
138
|
- spec/datasets/race_sites_dataset.rb
|
134
139
|
- spec/datasets/races_dataset.rb
|