tournament 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +7 -3
  2. data/README.txt +24 -6
  3. data/Rakefile +1 -1
  4. data/bin/picker +5 -8
  5. metadata +1 -1
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- == 1.0.0 / 2008-03-09
1
+ == 0.0.1 / 2008-03-23
2
2
 
3
- * 1 major enhancement
4
- * Birthday!
3
+ * Initial Release
4
+
5
+ == 0.0.2 / 2008-03-23
6
+
7
+ * Changed the picker wrapper script to ruby because it seems that
8
+ that is what rubyforge tools expect.
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  tournament
2
- by Douglas A. Seifert
3
- http://www.dseifert.net/code/ncaa_pool
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, bug functional, Shoes GUI included for creating the entries
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 bracket YAML file
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
- * FIXME (sudo gem install, anything else)
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.1'
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 bash
1
+ #!/usr/bin/env ruby
2
2
 
3
- dir=`dirname $0`
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
- cd $dir/..
7
+ Dir.chdir(dir)
11
8
 
12
- ./bin/gui.rb $file
9
+ system("./bin/gui.rb #{file}")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tournament
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas A. Seifert