tournament 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +7 -3
- data/README.txt +24 -6
- data/Rakefile +1 -1
- data/bin/picker +5 -8
- metadata +1 -1
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
tournament
|
2
|
-
by Douglas A. Seifert
|
3
|
-
http://www.dseifert.net/code/
|
2
|
+
by Douglas A. Seifert (doug+rubyforge at dseifert dot net)
|
3
|
+
http://www.dseifert.net/code/tournament
|
4
|
+
http://tournament.rubyforge.org/
|
4
5
|
|
5
6
|
== DESCRIPTION:
|
6
7
|
|
@@ -12,8 +13,8 @@ basketball tournament pool.
|
|
12
13
|
* Add NCAA tournament pool entries and save them as YAML
|
13
14
|
* Run a possibilities report for determining who is likely to win
|
14
15
|
* Run other reports such as a leader board and entry report
|
15
|
-
* Buggy,
|
16
|
-
and updating the tournament bracket.
|
16
|
+
* Buggy, but functional, Shoes GUI included for creating the entries
|
17
|
+
and updating the tournament results bracket.
|
17
18
|
* FIXME: Write a test suite.
|
18
19
|
|
19
20
|
== SYNOPSIS:
|
@@ -47,7 +48,7 @@ The pool manager would use this program as follows:
|
|
47
48
|
strategy. If the basic strategy is ok, the --scoring argument is
|
48
49
|
not required.
|
49
50
|
|
50
|
-
3. Export a tournament
|
51
|
+
3. Export a tournament entry YAML file
|
51
52
|
|
52
53
|
tournament bracket pool.yml tournament.yml
|
53
54
|
|
@@ -79,13 +80,30 @@ The pool manager would use this program as follows:
|
|
79
80
|
|
80
81
|
tournament report pool.yml --type=possibility
|
81
82
|
|
83
|
+
== SHOES GUI:
|
84
|
+
|
85
|
+
A GUI for filling out tournment bracket entries is included and is run
|
86
|
+
by executing the program "picker". If no argument is included, a blank
|
87
|
+
entry is started. It can be filled in and saved using one of the buttons
|
88
|
+
at the top of the screen. The entry is saved as a YAML file for a
|
89
|
+
Tournament::Entry object. The picker program optionally takes one
|
90
|
+
argument, the path to a Tournament::Entry YAML file. It will open
|
91
|
+
with the provided entry's picks pre filled in.
|
92
|
+
|
93
|
+
The GUI may be used for keeping the NCAA tournament entry YAML file
|
94
|
+
up to date.
|
95
|
+
|
82
96
|
== REQUIREMENTS:
|
83
97
|
|
84
98
|
* main (2.8.0)
|
99
|
+
* shoes-0.r396 (GUI Only)
|
85
100
|
|
86
101
|
== INSTALL:
|
87
102
|
|
88
|
-
*
|
103
|
+
* sudo gem install tournament
|
104
|
+
* Download the tgz file and run it locally. If the latter
|
105
|
+
option is taken, the tournament/bin directory must be in
|
106
|
+
the path.
|
89
107
|
|
90
108
|
== LICENSE:
|
91
109
|
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ PROJ.authors = 'Douglas A. Seifert'
|
|
16
16
|
PROJ.email = 'doug+rubyforge@dseifert.net'
|
17
17
|
PROJ.url = 'http://www.dseifert.net/code/tournament'
|
18
18
|
PROJ.rubyforge_name = 'tournament'
|
19
|
-
PROJ.version = '0.0.
|
19
|
+
PROJ.version = '0.0.2'
|
20
20
|
PROJ.group_id = 5863
|
21
21
|
|
22
22
|
PROJ.spec_opts << '--color'
|
data/bin/picker
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
dir
|
3
|
+
dir = File.dirname(File.expand_path(File.join(__FILE__, "..")))
|
4
4
|
|
5
|
-
file=''
|
6
|
-
if [ ! -z "$1" ]; then
|
7
|
-
file=`pwd`/$1
|
8
|
-
fi
|
5
|
+
file = ARGV[1].nil? ? '' : File.join(Dir.pwd, ARGV[1])
|
9
6
|
|
10
|
-
|
7
|
+
Dir.chdir(dir)
|
11
8
|
|
12
|
-
./bin/gui.rb
|
9
|
+
system("./bin/gui.rb #{file}")
|