radiant-race_results-extension 1.3.6 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -16
- data/app/views/race_instances/splits.csv.erb +1 -1
- data/app/views/race_performances/_splits.csv.erb +1 -1
- data/app/views/race_performances/show.html.haml +1 -5
- data/lib/radiant-race_results-extension.rb +8 -0
- data/race_results_extension.rb +3 -3
- data/radiant-race_results-extension.gemspec +25 -156
- metadata +28 -41
- data/.gitignore +0 -1
- data/VERSION +0 -1
data/Rakefile
CHANGED
@@ -1,19 +1,3 @@
|
|
1
|
-
begin
|
2
|
-
require 'jeweler'
|
3
|
-
Jeweler::Tasks.new do |gem|
|
4
|
-
gem.name = "radiant-race_results-extension"
|
5
|
-
gem.summary = %Q{Race results analysis and presentation for the Radiant CMS}
|
6
|
-
gem.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.}
|
7
|
-
gem.email = "will@spanner.org"
|
8
|
-
gem.homepage = "http://github.com/radiant/radiant-race_results-extension"
|
9
|
-
gem.authors = ["spanner"]
|
10
|
-
gem.add_dependency "radiant", ">= 0.9.0"
|
11
|
-
gem.add_dependency "radiant-layouts-extension"
|
12
|
-
end
|
13
|
-
rescue LoadError
|
14
|
-
puts "Jeweler (or a dependency) not available. This is only required if you plan to package event_calendar as a gem."
|
15
|
-
end
|
16
|
-
|
17
1
|
# In rails 1.2, plugins aren't available in the path until they're loaded.
|
18
2
|
# Check to see if the rspec plugin is installed first and require
|
19
3
|
# it if it is. If not, use the gem version.
|
@@ -1,2 +1,2 @@
|
|
1
|
-
Pos, Name,
|
1
|
+
Pos, Name, <%= @instance.race.checkpoints.map(&:name).join(', ') %>, Finish
|
2
2
|
<%= render :partial => "race_performances/splits", :collection => @performances.completed %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<%-
|
2
2
|
performance ||= splits
|
3
|
-
%><%= performance.position
|
3
|
+
%><%= performance.position %>, <%= performance.name %>, <%= @race.checkpoints.collect {|cp| @splits[performance.id][cp.id] }.join(', ') %>, <%= performance.elapsed_time %>
|
@@ -84,11 +84,7 @@
|
|
84
84
|
= @performance.name
|
85
85
|
|
86
86
|
- content_for :title do
|
87
|
-
= @instance.full_name
|
88
|
-
|
89
|
-
- content_for :introduction do
|
90
|
-
Results and splits for
|
91
|
-
= @performance.name + '.'
|
87
|
+
= "#{@instance.full_name}: #{@performance.name}"
|
92
88
|
|
93
89
|
- content_for :see_also do
|
94
90
|
.see_also
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module RadiantRaceResultsExtension
|
2
|
+
VERSION = '1.4.0'
|
3
|
+
SUMMARY = %q{Race results analysis and presentation for the Radiant CMS}
|
4
|
+
DESCRIPTION = "Makes easy the uploading, analysis and display of race results. Built for fell races but should work for most timed or score events."
|
5
|
+
URL = "http://spanner.org/radiant/race_results"
|
6
|
+
AUTHORS = ["William Ross"]
|
7
|
+
EMAIL = ["radiant@spanner.org"]
|
8
|
+
end
|
data/race_results_extension.rb
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
# require_dependency 'application_controller'
|
3
3
|
|
4
4
|
class RaceResultsExtension < Radiant::Extension
|
5
|
-
version
|
6
|
-
description
|
7
|
-
url
|
5
|
+
version RadiantRaceResultsExtension::VERSION
|
6
|
+
description RadiantRaceResultsExtension::DESCRIPTION
|
7
|
+
url RadiantRaceResultsExtension::URL
|
8
8
|
|
9
9
|
extension_config do |config|
|
10
10
|
config.after_initialize do
|
@@ -1,164 +1,33 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "radiant-race_results-extension"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
6
|
+
s.name = "radiant-race_results-extension"
|
7
|
+
s.version = RadiantRaceResultsExtension::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = RadiantRaceResultsExtension::AUTHORS
|
10
|
+
s.email = RadiantRaceResultsExtension::EMAIL
|
11
|
+
s.homepage = RadiantRaceResultsExtension::URL
|
12
|
+
s.summary = RadiantRaceResultsExtension::SUMMARY
|
13
|
+
s.description = RadiantRaceResultsExtension::DESCRIPTION
|
9
14
|
|
10
|
-
s.
|
11
|
-
s.authors = ["spanner"]
|
12
|
-
s.date = %q{2011-03-15}
|
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
|
-
".gitignore",
|
20
|
-
"README.md",
|
21
|
-
"Rakefile",
|
22
|
-
"VERSION",
|
23
|
-
"app/controllers/admin/race_clubs_controller.rb",
|
24
|
-
"app/controllers/admin/race_competitors_controller.rb",
|
25
|
-
"app/controllers/admin/race_instances_controller.rb",
|
26
|
-
"app/controllers/admin/races_controller.rb",
|
27
|
-
"app/controllers/race_instances_controller.rb",
|
28
|
-
"app/controllers/race_performances_controller.rb",
|
29
|
-
"app/controllers/races_controller.rb",
|
30
|
-
"app/helpers/races_helper.rb",
|
31
|
-
"app/models/race.rb",
|
32
|
-
"app/models/race_category.rb",
|
33
|
-
"app/models/race_checkpoint.rb",
|
34
|
-
"app/models/race_checkpoint_time.rb",
|
35
|
-
"app/models/race_club.rb",
|
36
|
-
"app/models/race_club_alias.rb",
|
37
|
-
"app/models/race_competitor.rb",
|
38
|
-
"app/models/race_instance.rb",
|
39
|
-
"app/models/race_page.rb",
|
40
|
-
"app/models/race_performance.rb",
|
41
|
-
"app/models/race_performance_status.rb",
|
42
|
-
"app/models/race_record.rb",
|
43
|
-
"app/views/admin/race_checkpoints/_checkpoint.html.haml",
|
44
|
-
"app/views/admin/race_club_aliases/_race_club_alias.html.haml",
|
45
|
-
"app/views/admin/race_clubs/_club.html.haml",
|
46
|
-
"app/views/admin/race_clubs/_form.html.haml",
|
47
|
-
"app/views/admin/race_clubs/edit.html.haml",
|
48
|
-
"app/views/admin/race_clubs/index.html.haml",
|
49
|
-
"app/views/admin/race_clubs/new.html.haml",
|
50
|
-
"app/views/admin/race_competitors/_competitor.html.haml",
|
51
|
-
"app/views/admin/race_competitors/_form.html.haml",
|
52
|
-
"app/views/admin/race_competitors/edit.html.haml",
|
53
|
-
"app/views/admin/race_competitors/index.html.haml",
|
54
|
-
"app/views/admin/race_instances/_form.html.haml",
|
55
|
-
"app/views/admin/race_instances/edit.html.haml",
|
56
|
-
"app/views/admin/race_instances/new.html.haml",
|
57
|
-
"app/views/admin/race_records/_record.html.haml",
|
58
|
-
"app/views/admin/races/_form.html.haml",
|
59
|
-
"app/views/admin/races/_race.html.haml",
|
60
|
-
"app/views/admin/races/edit.html.haml",
|
61
|
-
"app/views/admin/races/index.html.haml",
|
62
|
-
"app/views/admin/races/new.html.haml",
|
63
|
-
"app/views/race_categories/show.html.haml",
|
64
|
-
"app/views/race_clubs/show.html.haml",
|
65
|
-
"app/views/race_instances/_summary.html.haml",
|
66
|
-
"app/views/race_instances/index.html.haml",
|
67
|
-
"app/views/race_instances/show.csv.erb",
|
68
|
-
"app/views/race_instances/show.html.haml",
|
69
|
-
"app/views/race_instances/splits.csv.erb",
|
70
|
-
"app/views/race_instances/splits.html.haml",
|
71
|
-
"app/views/race_performances/_performance.csv.erb",
|
72
|
-
"app/views/race_performances/_performance.html.haml",
|
73
|
-
"app/views/race_performances/_splits.csv.erb",
|
74
|
-
"app/views/race_performances/_splits.html.haml",
|
75
|
-
"app/views/race_performances/show.html.haml",
|
76
|
-
"app/views/races/_standard_parts.html.haml",
|
77
|
-
"app/views/races/index.html.haml",
|
78
|
-
"app/views/races/show.html.haml",
|
79
|
-
"artwork/csv.psd",
|
80
|
-
"config/routes.rb",
|
81
|
-
"cucumber.yml",
|
82
|
-
"db/migrate/20091116130836_race_data.rb",
|
83
|
-
"db/migrate/20091124095157_competitor_details.rb",
|
84
|
-
"db/migrate/20091126110634_club_aliases.rb",
|
85
|
-
"db/migrate/20091223094002_instance_details.rb",
|
86
|
-
"db/migrate/20091224100524_race_distance.rb",
|
87
|
-
"db/migrate/20091224100734_race_records.rb",
|
88
|
-
"db/migrate/20091224105637_category_details.rb",
|
89
|
-
"db/migrate/20091224115909_filters.rb",
|
90
|
-
"db/migrate/20091228122837_record_holder.rb",
|
91
|
-
"db/migrate/20100106104850_remember_calculations.rb",
|
92
|
-
"db/migrate/20100426104801_race_attachments.rb",
|
93
|
-
"db/migrate/20101005112007_race_category.rb",
|
94
|
-
"db/migrate/20110315114349_store_intervals.rb",
|
95
|
-
"features/support/env.rb",
|
96
|
-
"features/support/paths.rb",
|
97
|
-
"lib/duration_extensions.rb",
|
98
|
-
"lib/race_results/admin_ui.rb",
|
99
|
-
"lib/race_results/race_tags.rb",
|
100
|
-
"lib/tasks/race_results_extension_tasks.rake",
|
101
|
-
"public/images/admin/calendar_down.png",
|
102
|
-
"public/images/admin/new-race.png",
|
103
|
-
"public/images/race_results/csv.png",
|
104
|
-
"public/javascripts/admin/races.js",
|
105
|
-
"public/javascripts/tablesorter.js",
|
106
|
-
"public/stylesheets/sass/admin/races.sass",
|
107
|
-
"public/stylesheets/sass/race_results.sass",
|
108
|
-
"race_results_extension.rb",
|
109
|
-
"radiant-race_results-extension.gemspec",
|
110
|
-
"spec/datasets/competitors_dataset.rb",
|
111
|
-
"spec/datasets/race_sites_dataset.rb",
|
112
|
-
"spec/datasets/races_dataset.rb",
|
113
|
-
"spec/files/dunnerdale_2009.csv",
|
114
|
-
"spec/files/long_duddon_2008.csv",
|
115
|
-
"spec/lib/duration_spec.rb",
|
116
|
-
"spec/models/race_category_spec.rb",
|
117
|
-
"spec/models/race_club_spec.rb",
|
118
|
-
"spec/models/race_instance_spec.rb",
|
119
|
-
"spec/models/race_performance_spec.rb",
|
120
|
-
"spec/models/race_performance_status_spec.rb",
|
121
|
-
"spec/models/race_spec.rb",
|
122
|
-
"spec/spec.opts",
|
123
|
-
"spec/spec_helper.rb",
|
124
|
-
"vendor/plugins/acts_as_list/README",
|
125
|
-
"vendor/plugins/acts_as_list/init.rb",
|
126
|
-
"vendor/plugins/acts_as_list/lib/active_record/acts/list.rb",
|
127
|
-
"vendor/plugins/acts_as_list/test/list_test.rb"
|
128
|
-
]
|
129
|
-
s.homepage = %q{http://github.com/radiant/radiant-race_results-extension}
|
130
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
131
|
-
s.require_paths = ["lib"]
|
132
|
-
s.rubygems_version = %q{1.3.7}
|
133
|
-
s.summary = %q{Race results analysis and presentation for the Radiant CMS}
|
134
|
-
s.test_files = [
|
135
|
-
"spec/datasets/competitors_dataset.rb",
|
136
|
-
"spec/datasets/race_sites_dataset.rb",
|
137
|
-
"spec/datasets/races_dataset.rb",
|
138
|
-
"spec/lib/duration_spec.rb",
|
139
|
-
"spec/models/race_category_spec.rb",
|
140
|
-
"spec/models/race_club_spec.rb",
|
141
|
-
"spec/models/race_instance_spec.rb",
|
142
|
-
"spec/models/race_performance_spec.rb",
|
143
|
-
"spec/models/race_performance_status_spec.rb",
|
144
|
-
"spec/models/race_spec.rb",
|
145
|
-
"spec/spec_helper.rb"
|
146
|
-
]
|
147
|
-
|
148
|
-
if s.respond_to? :specification_version then
|
149
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
150
|
-
s.specification_version = 3
|
15
|
+
s.add_dependency "radiant-layouts-extension"
|
151
16
|
|
152
|
-
|
153
|
-
|
154
|
-
s.add_runtime_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
155
|
-
else
|
156
|
-
s.add_dependency(%q<radiant>, [">= 0.9.0"])
|
157
|
-
s.add_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
158
|
-
end
|
17
|
+
ignores = if File.exist?('.gitignore')
|
18
|
+
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
159
19
|
else
|
160
|
-
|
161
|
-
s.add_dependency(%q<radiant-layouts-extension>, [">= 0"])
|
20
|
+
[]
|
162
21
|
end
|
163
|
-
|
22
|
+
s.files = Dir['**/*'] - ignores
|
23
|
+
s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
|
24
|
+
# s.executables = Dir['bin/*'] - ignores
|
25
|
+
s.require_paths = ["lib"]
|
164
26
|
|
27
|
+
s.post_install_message = %{
|
28
|
+
Add this to your radiant project with:
|
29
|
+
|
30
|
+
config.gem 'radiant-race_results-extension', :version => '~> #{RadiantRaceResultsExtension::VERSION}'
|
31
|
+
|
32
|
+
}
|
33
|
+
end
|
metadata
CHANGED
@@ -1,43 +1,26 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-race_results-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 7
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 1.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
-
|
13
|
+
- William Ross
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-07-04 00:00:00 Z
|
20
19
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
name: radiant
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 59
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 9
|
33
|
-
- 0
|
34
|
-
version: 0.9.0
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
20
|
- !ruby/object:Gem::Dependency
|
38
21
|
name: radiant-layouts-extension
|
39
22
|
prerelease: false
|
40
|
-
requirement: &
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
41
24
|
none: false
|
42
25
|
requirements:
|
43
26
|
- - ">="
|
@@ -47,20 +30,17 @@ dependencies:
|
|
47
30
|
- 0
|
48
31
|
version: "0"
|
49
32
|
type: :runtime
|
50
|
-
version_requirements: *
|
51
|
-
description: Makes easy the uploading, analysis and display of race results. Built for fell races but should work for most timed or score events
|
52
|
-
email:
|
33
|
+
version_requirements: *id001
|
34
|
+
description: Makes easy the uploading, analysis and display of race results. Built for fell races but should work for most timed or score events.
|
35
|
+
email:
|
36
|
+
- radiant@spanner.org
|
53
37
|
executables: []
|
54
38
|
|
55
39
|
extensions: []
|
56
40
|
|
57
|
-
extra_rdoc_files:
|
58
|
-
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
59
43
|
files:
|
60
|
-
- .gitignore
|
61
|
-
- README.md
|
62
|
-
- Rakefile
|
63
|
-
- VERSION
|
64
44
|
- app/controllers/admin/race_clubs_controller.rb
|
65
45
|
- app/controllers/admin/race_competitors_controller.rb
|
66
46
|
- app/controllers/admin/race_instances_controller.rb
|
@@ -138,6 +118,7 @@ files:
|
|
138
118
|
- lib/duration_extensions.rb
|
139
119
|
- lib/race_results/admin_ui.rb
|
140
120
|
- lib/race_results/race_tags.rb
|
121
|
+
- lib/radiant-race_results-extension.rb
|
141
122
|
- lib/tasks/race_results_extension_tasks.rake
|
142
123
|
- public/images/admin/calendar_down.png
|
143
124
|
- public/images/admin/new-race.png
|
@@ -148,6 +129,8 @@ files:
|
|
148
129
|
- public/stylesheets/sass/race_results.sass
|
149
130
|
- race_results_extension.rb
|
150
131
|
- radiant-race_results-extension.gemspec
|
132
|
+
- Rakefile
|
133
|
+
- README.md
|
151
134
|
- spec/datasets/competitors_dataset.rb
|
152
135
|
- spec/datasets/race_sites_dataset.rb
|
153
136
|
- spec/datasets/races_dataset.rb
|
@@ -162,17 +145,16 @@ files:
|
|
162
145
|
- spec/models/race_spec.rb
|
163
146
|
- spec/spec.opts
|
164
147
|
- spec/spec_helper.rb
|
165
|
-
- vendor/plugins/acts_as_list/README
|
166
148
|
- vendor/plugins/acts_as_list/init.rb
|
167
149
|
- vendor/plugins/acts_as_list/lib/active_record/acts/list.rb
|
150
|
+
- vendor/plugins/acts_as_list/README
|
168
151
|
- vendor/plugins/acts_as_list/test/list_test.rb
|
169
|
-
|
170
|
-
homepage: http://github.com/radiant/radiant-race_results-extension
|
152
|
+
homepage: http://spanner.org/radiant/race_results
|
171
153
|
licenses: []
|
172
154
|
|
173
|
-
post_install_message:
|
174
|
-
rdoc_options:
|
175
|
-
|
155
|
+
post_install_message: "\n Add this to your radiant project with:\n\n config.gem 'radiant-race_results-extension', :version => '~> 1.4.0'\n\n "
|
156
|
+
rdoc_options: []
|
157
|
+
|
176
158
|
require_paths:
|
177
159
|
- lib
|
178
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -196,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
178
|
requirements: []
|
197
179
|
|
198
180
|
rubyforge_project:
|
199
|
-
rubygems_version: 1.
|
181
|
+
rubygems_version: 1.7.2
|
200
182
|
signing_key:
|
201
183
|
specification_version: 3
|
202
184
|
summary: Race results analysis and presentation for the Radiant CMS
|
@@ -204,6 +186,8 @@ test_files:
|
|
204
186
|
- spec/datasets/competitors_dataset.rb
|
205
187
|
- spec/datasets/race_sites_dataset.rb
|
206
188
|
- spec/datasets/races_dataset.rb
|
189
|
+
- spec/files/dunnerdale_2009.csv
|
190
|
+
- spec/files/long_duddon_2008.csv
|
207
191
|
- spec/lib/duration_spec.rb
|
208
192
|
- spec/models/race_category_spec.rb
|
209
193
|
- spec/models/race_club_spec.rb
|
@@ -211,4 +195,7 @@ test_files:
|
|
211
195
|
- spec/models/race_performance_spec.rb
|
212
196
|
- spec/models/race_performance_status_spec.rb
|
213
197
|
- spec/models/race_spec.rb
|
198
|
+
- spec/spec.opts
|
214
199
|
- spec/spec_helper.rb
|
200
|
+
- features/support/env.rb
|
201
|
+
- features/support/paths.rb
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg/*
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.3.6
|