sportdb-play 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/sportdb/play/schema.rb +3 -8
- data/lib/sportdb/play/version.rb +1 -1
- metadata +5 -5
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ Hoe.spec 'sportdb-play' do
|
|
12
12
|
self.summary = 'sportdb plugin for plays (predictions, betting pool, etc.)'
|
13
13
|
self.description = summary
|
14
14
|
|
15
|
-
self.urls = ['
|
15
|
+
self.urls = ['https://github.com/geraldb/sport.db-play']
|
16
16
|
|
17
17
|
self.author = 'Gerald Bauer'
|
18
18
|
self.email = 'opensport@googlegroups.com'
|
data/lib/sportdb/play/schema.rb
CHANGED
@@ -11,6 +11,9 @@ class CreateDB
|
|
11
11
|
|
12
12
|
ActiveRecord::Schema.define do
|
13
13
|
|
14
|
+
## NB: assumes a table users already exists with a col key
|
15
|
+
## lets add a check? why? why not?
|
16
|
+
|
14
17
|
change_table :games do |t|
|
15
18
|
t.boolean :locked, :null => false, :default => false
|
16
19
|
end
|
@@ -19,14 +22,6 @@ end
|
|
19
22
|
## new tables / create tables
|
20
23
|
####################################
|
21
24
|
|
22
|
-
create_table :users do |t|
|
23
|
-
t.string :key, :null => false # import/export key
|
24
|
-
t.timestamps
|
25
|
-
end
|
26
|
-
|
27
|
-
add_index :users, :key, :unique => true
|
28
|
-
|
29
|
-
|
30
25
|
create_table :pools do |t|
|
31
26
|
t.references :event, :null => false
|
32
27
|
t.string :title, :null => false
|
data/lib/sportdb/play/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-play
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gerald Bauer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-12-
|
18
|
+
date: 2012-12-04 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rdoc
|
@@ -73,7 +73,7 @@ files:
|
|
73
73
|
- lib/sportdb/play/models/user.rb
|
74
74
|
- lib/sportdb/play/schema.rb
|
75
75
|
- lib/sportdb/play/version.rb
|
76
|
-
homepage:
|
76
|
+
homepage: https://github.com/geraldb/sport.db-play
|
77
77
|
licenses:
|
78
78
|
- Public Domain
|
79
79
|
post_install_message:
|