sportdb-models 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -20
- data/README.md +31 -31
- data/Rakefile +32 -32
- data/lib/sportdb/models.rb +212 -179
- data/lib/sportdb/models/formats.rb +23 -23
- data/lib/sportdb/models/models/assoc.rb +38 -38
- data/lib/sportdb/models/models/badge.rb +14 -14
- data/lib/sportdb/models/models/forward.rb +55 -55
- data/lib/sportdb/models/models/goal.rb +15 -15
- data/lib/sportdb/models/models/league.rb +20 -20
- data/lib/sportdb/models/models/lineup.rb +17 -17
- data/lib/sportdb/models/models/person.rb +21 -21
- data/lib/sportdb/models/models/season.rb +15 -15
- data/lib/sportdb/models/models/stats/event_standing.rb +31 -31
- data/lib/sportdb/models/models/world/continent.rb +20 -20
- data/lib/sportdb/models/models/world/state.rb +19 -19
- data/lib/sportdb/models/schema.rb +466 -466
- data/lib/sportdb/models/version.rb +27 -29
- data/test/helper.rb +46 -46
- metadata +12 -6
@@ -1,29 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
VERSION = Module::Models::VERSION
|
29
|
-
end # module SportDb
|
1
|
+
module SportDb
|
2
|
+
module Module
|
3
|
+
module Models
|
4
|
+
MAJOR = 2
|
5
|
+
MINOR = 0
|
6
|
+
PATCH = 3
|
7
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
8
|
+
|
9
|
+
def self.version
|
10
|
+
VERSION
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.banner
|
14
|
+
"sportdb-models/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.root
|
18
|
+
"#{File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )}"
|
19
|
+
end
|
20
|
+
|
21
|
+
end # module Models
|
22
|
+
end # module Module
|
23
|
+
|
24
|
+
#################
|
25
|
+
## add convenience shortcuts
|
26
|
+
VERSION = Module::Models::VERSION
|
27
|
+
end # module SportDb
|
data/test/helper.rb
CHANGED
@@ -1,46 +1,46 @@
|
|
1
|
-
## minitest setup
|
2
|
-
require 'minitest/autorun'
|
3
|
-
|
4
|
-
|
5
|
-
## our own code
|
6
|
-
require 'sportdb/models'
|
7
|
-
|
8
|
-
|
9
|
-
#####################
|
10
|
-
# Models shortcuts
|
11
|
-
|
12
|
-
Country = WorldDb::Model::Country
|
13
|
-
|
14
|
-
Person = PersonDb::Model::Person
|
15
|
-
|
16
|
-
League = SportDb::Model::League
|
17
|
-
Season = SportDb::Model::Season
|
18
|
-
Event = SportDb::Model::Event
|
19
|
-
Team = SportDb::Model::Team
|
20
|
-
Lineup = SportDb::Model::Lineup
|
21
|
-
Assoc = SportDb::Model::Assoc
|
22
|
-
AssocAssoc = SportDb::Model::AssocAssoc
|
23
|
-
|
24
|
-
Round = SportDb::Model::Round
|
25
|
-
Group = SportDb::Model::Group
|
26
|
-
Stage = SportDb::Model::Stage
|
27
|
-
Match = SportDb::Model::Match
|
28
|
-
MatchCursor = SportDb::Model::MatchCursor
|
29
|
-
|
30
|
-
|
31
|
-
EventStanding = SportDb::Model::EventStanding
|
32
|
-
EventStandingEntry = SportDb::Model::EventStandingEntry
|
33
|
-
GroupStanding = SportDb::Model::GroupStanding
|
34
|
-
GroupStandingEntry = SportDb::Model::GroupStandingEntry
|
35
|
-
AlltimeStanding = SportDb::Model::AlltimeStanding
|
36
|
-
AlltimeStandingEntry = SportDb::Model::AlltimeStandingEntry
|
37
|
-
|
38
|
-
|
39
|
-
#################################
|
40
|
-
# setup db -> schema / tables
|
41
|
-
|
42
|
-
SportDb.setup_in_memory_db
|
43
|
-
|
44
|
-
## test helpers here
|
45
|
-
SportDb.delete!
|
46
|
-
SportDb.tables
|
1
|
+
## minitest setup
|
2
|
+
require 'minitest/autorun'
|
3
|
+
|
4
|
+
|
5
|
+
## our own code
|
6
|
+
require 'sportdb/models'
|
7
|
+
|
8
|
+
|
9
|
+
#####################
|
10
|
+
# Models shortcuts
|
11
|
+
|
12
|
+
Country = WorldDb::Model::Country
|
13
|
+
|
14
|
+
Person = PersonDb::Model::Person
|
15
|
+
|
16
|
+
League = SportDb::Model::League
|
17
|
+
Season = SportDb::Model::Season
|
18
|
+
Event = SportDb::Model::Event
|
19
|
+
Team = SportDb::Model::Team
|
20
|
+
Lineup = SportDb::Model::Lineup
|
21
|
+
Assoc = SportDb::Model::Assoc
|
22
|
+
AssocAssoc = SportDb::Model::AssocAssoc
|
23
|
+
|
24
|
+
Round = SportDb::Model::Round
|
25
|
+
Group = SportDb::Model::Group
|
26
|
+
Stage = SportDb::Model::Stage
|
27
|
+
Match = SportDb::Model::Match
|
28
|
+
MatchCursor = SportDb::Model::MatchCursor
|
29
|
+
|
30
|
+
|
31
|
+
EventStanding = SportDb::Model::EventStanding
|
32
|
+
EventStandingEntry = SportDb::Model::EventStandingEntry
|
33
|
+
GroupStanding = SportDb::Model::GroupStanding
|
34
|
+
GroupStandingEntry = SportDb::Model::GroupStandingEntry
|
35
|
+
AlltimeStanding = SportDb::Model::AlltimeStanding
|
36
|
+
AlltimeStandingEntry = SportDb::Model::AlltimeStandingEntry
|
37
|
+
|
38
|
+
|
39
|
+
#################################
|
40
|
+
# setup db -> schema / tables
|
41
|
+
|
42
|
+
SportDb.setup_in_memory_db
|
43
|
+
|
44
|
+
## test helpers here
|
45
|
+
SportDb.delete!
|
46
|
+
SportDb.tables
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: worlddb-models
|
@@ -42,30 +42,36 @@ dependencies:
|
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '4.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '7'
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '4.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '7'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: hoe
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
67
|
+
version: '3.22'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
74
|
+
version: '3.22'
|
69
75
|
description: sportdb-models - sport.db schema 'n' models for easy (re)use
|
70
76
|
email: opensport@googlegroups.com
|
71
77
|
executables: []
|