sportdb-formats 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +0 -24
- data/Rakefile +2 -5
- data/lib/sportdb/formats.rb +39 -74
- data/lib/sportdb/formats/event/event_reader.rb +1 -1
- data/lib/sportdb/formats/league/league_outline_reader.rb +18 -6
- data/lib/sportdb/formats/package.rb +2 -2
- data/lib/sportdb/formats/team/club_index_history.rb +2 -6
- data/lib/sportdb/formats/team/club_reader_history.rb +1 -1
- data/lib/sportdb/formats/team/club_reader_props.rb +18 -2
- data/lib/sportdb/formats/version.rb +1 -1
- data/test/helper.rb +3 -0
- metadata +5 -71
- data/lib/sportdb/formats/config.rb +0 -40
- data/lib/sportdb/formats/match/match_parser_csv.rb +0 -458
- data/lib/sportdb/formats/match/match_status_parser.rb +0 -86
- data/lib/sportdb/formats/name_helper.rb +0 -87
- data/lib/sportdb/formats/score/score_formats.rb +0 -239
- data/lib/sportdb/formats/score/score_parser.rb +0 -204
- data/lib/sportdb/formats/season_utils.rb +0 -16
- data/lib/sportdb/formats/structs/country.rb +0 -31
- data/lib/sportdb/formats/structs/group.rb +0 -18
- data/lib/sportdb/formats/structs/league.rb +0 -37
- data/lib/sportdb/formats/structs/match.rb +0 -157
- data/lib/sportdb/formats/structs/matchlist.rb +0 -220
- data/lib/sportdb/formats/structs/round.rb +0 -25
- data/lib/sportdb/formats/structs/season.rb +0 -192
- data/lib/sportdb/formats/structs/standings.rb +0 -268
- data/lib/sportdb/formats/structs/team.rb +0 -157
- data/lib/sportdb/formats/structs/team_usage.rb +0 -88
- data/test/test_clubs.rb +0 -40
- data/test/test_csv_reader.rb +0 -31
- data/test/test_match.rb +0 -30
- data/test/test_match_status_parser.rb +0 -49
- data/test/test_name_helper.rb +0 -67
- data/test/test_scores.rb +0 -124
- data/test/test_season.rb +0 -111
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcac09da9cbe9b0e7d703df7b6b5075025979655
|
4
|
+
data.tar.gz: 71b00a95c66920bd25c1d92d0b4a29a2ec4436e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81b387f334f672dbe493884bde8661dfd83c892a834bec422c95efc5231141f556397d5aacdfd7665e935589f5cffcedcbeab1f0993a414e8678ae56c89e80ab
|
7
|
+
data.tar.gz: ba6546d68cafa1198c39dec94d91481ec6652d051f3e9887b1366a1319a9a6b35667313390fac1bbae3cc46056468aff0d3bc41a8e128d429f0f9a16d2c7f998
|
data/Manifest.txt
CHANGED
@@ -3,7 +3,6 @@ Manifest.txt
|
|
3
3
|
README.md
|
4
4
|
Rakefile
|
5
5
|
lib/sportdb/formats.rb
|
6
|
-
lib/sportdb/formats/config.rb
|
7
6
|
lib/sportdb/formats/country/country_index.rb
|
8
7
|
lib/sportdb/formats/country/country_reader.rb
|
9
8
|
lib/sportdb/formats/datafile.rb
|
@@ -19,25 +18,9 @@ lib/sportdb/formats/match/mapper.rb
|
|
19
18
|
lib/sportdb/formats/match/mapper_teams.rb
|
20
19
|
lib/sportdb/formats/match/match_parser.rb
|
21
20
|
lib/sportdb/formats/match/match_parser_auto_conf.rb
|
22
|
-
lib/sportdb/formats/match/match_parser_csv.rb
|
23
|
-
lib/sportdb/formats/match/match_status_parser.rb
|
24
|
-
lib/sportdb/formats/name_helper.rb
|
25
21
|
lib/sportdb/formats/outline_reader.rb
|
26
22
|
lib/sportdb/formats/package.rb
|
27
23
|
lib/sportdb/formats/parser_helper.rb
|
28
|
-
lib/sportdb/formats/score/score_formats.rb
|
29
|
-
lib/sportdb/formats/score/score_parser.rb
|
30
|
-
lib/sportdb/formats/season_utils.rb
|
31
|
-
lib/sportdb/formats/structs/country.rb
|
32
|
-
lib/sportdb/formats/structs/group.rb
|
33
|
-
lib/sportdb/formats/structs/league.rb
|
34
|
-
lib/sportdb/formats/structs/match.rb
|
35
|
-
lib/sportdb/formats/structs/matchlist.rb
|
36
|
-
lib/sportdb/formats/structs/round.rb
|
37
|
-
lib/sportdb/formats/structs/season.rb
|
38
|
-
lib/sportdb/formats/structs/standings.rb
|
39
|
-
lib/sportdb/formats/structs/team.rb
|
40
|
-
lib/sportdb/formats/structs/team_usage.rb
|
41
24
|
lib/sportdb/formats/team/club_index.rb
|
42
25
|
lib/sportdb/formats/team/club_index_history.rb
|
43
26
|
lib/sportdb/formats/team/club_reader.rb
|
@@ -53,23 +36,16 @@ test/test_club_index_history.rb
|
|
53
36
|
test/test_club_reader.rb
|
54
37
|
test/test_club_reader_history.rb
|
55
38
|
test/test_club_reader_props.rb
|
56
|
-
test/test_clubs.rb
|
57
39
|
test/test_country_index.rb
|
58
40
|
test/test_country_reader.rb
|
59
|
-
test/test_csv_reader.rb
|
60
41
|
test/test_datafile.rb
|
61
42
|
test/test_datafile_package.rb
|
62
43
|
test/test_goals.rb
|
63
44
|
test/test_league_index.rb
|
64
45
|
test/test_league_outline_reader.rb
|
65
46
|
test/test_league_reader.rb
|
66
|
-
test/test_match.rb
|
67
|
-
test/test_match_status_parser.rb
|
68
|
-
test/test_name_helper.rb
|
69
47
|
test/test_outline_reader.rb
|
70
48
|
test/test_package.rb
|
71
49
|
test/test_package_match.rb
|
72
50
|
test/test_regex.rb
|
73
|
-
test/test_scores.rb
|
74
|
-
test/test_season.rb
|
75
51
|
test/test_wiki_reader.rb
|
data/Rakefile
CHANGED
@@ -20,12 +20,9 @@ Hoe.spec 'sportdb-formats' do
|
|
20
20
|
self.licenses = ['Public Domain']
|
21
21
|
|
22
22
|
self.extra_deps = [
|
23
|
-
['
|
24
|
-
['date-formats', '>= 1.0.1'],
|
25
|
-
['csvreader', '>= 1.2.4'],
|
26
|
-
['sportdb-langs', '>= 0.1.1'],
|
23
|
+
['sportdb-structs', '>= 0.1.0'],
|
27
24
|
|
28
|
-
['rubyzip',
|
25
|
+
['rubyzip', '>= 1.2.4' ],
|
29
26
|
]
|
30
27
|
|
31
28
|
self.spec_extras = {
|
data/lib/sportdb/formats.rb
CHANGED
@@ -1,43 +1,9 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
|
4
1
|
## 3rd party gems
|
5
|
-
require '
|
6
|
-
require 'date/formats' # DateFormats.parse, find!, ...
|
7
|
-
require 'csvreader'
|
8
|
-
|
9
|
-
require 'zip' ## todo/check: if zip is alreay included in a required module
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
def read_csv( path, sep: nil,
|
14
|
-
symbolize_names: nil )
|
15
|
-
opts = {}
|
16
|
-
opts[:sep] = sep if sep
|
17
|
-
opts[:header_converters] = :symbol if symbolize_names
|
18
|
-
|
19
|
-
CsvHash.read( path, **opts )
|
20
|
-
end
|
2
|
+
require 'sportdb/structs'
|
21
3
|
|
22
|
-
def parse_csv( txt, sep: nil,
|
23
|
-
symbolize_names: nil )
|
24
|
-
opts = {}
|
25
|
-
opts[:sep] = sep if sep
|
26
|
-
opts[:header_converters] = :symbol if symbolize_names
|
27
|
-
|
28
|
-
CsvHash.parse( txt, **opts )
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
## more sportdb libs/gems
|
34
|
-
require 'sportdb/langs'
|
35
4
|
|
5
|
+
require 'zip' ## todo/check: if zip is alreay included in a required module
|
36
6
|
|
37
|
-
## todo/fix: move shortcut to sportdb/langs!!!
|
38
|
-
module SportDb
|
39
|
-
Logging = LogUtils::Logging ## logging machinery shortcut; use LogUtils for now
|
40
|
-
end
|
41
7
|
|
42
8
|
|
43
9
|
|
@@ -45,43 +11,59 @@ end
|
|
45
11
|
# our own code
|
46
12
|
require 'sportdb/formats/version' # let version always go first
|
47
13
|
|
48
|
-
require 'sportdb/formats/config' # let "global" config "framework" go next - why? why not?
|
49
|
-
|
50
14
|
require 'sportdb/formats/outline_reader'
|
51
15
|
require 'sportdb/formats/datafile'
|
52
16
|
require 'sportdb/formats/datafile_package'
|
53
17
|
require 'sportdb/formats/package'
|
54
|
-
require 'sportdb/formats/season_utils'
|
55
18
|
|
56
|
-
|
19
|
+
|
57
20
|
require 'sportdb/formats/parser_helper'
|
58
21
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
22
|
+
|
23
|
+
module SportDb
|
24
|
+
module Import
|
25
|
+
Season = ::Season ## add a convenience alias for top-level Season class
|
26
|
+
|
27
|
+
## add "old" convenience aliases for structs - why? why not?
|
28
|
+
## todo/check: just use include Sports !!!!
|
29
|
+
Country = ::Sports::Country
|
30
|
+
League = ::Sports::League
|
31
|
+
Group = ::Sports::Group
|
32
|
+
Round = ::Sports::Round
|
33
|
+
Match = ::Sports::Match
|
34
|
+
Matchlist = ::Sports::Matchlist
|
35
|
+
Goal = ::Sports::Goal
|
36
|
+
Team = ::Sports::Team
|
37
|
+
NationalTeam = ::Sports::NationalTeam
|
38
|
+
Club = ::Sports::Club
|
39
|
+
Standings = ::Sports::Standings
|
40
|
+
TeamUsage = ::Sports::TeamUsage
|
41
|
+
|
42
|
+
|
43
|
+
class Team
|
44
|
+
## add convenience lookup helper / method for name by season for now
|
45
|
+
## use clubs history - for now kept separate from struct - why? why not?
|
46
|
+
def name_by_season( season )
|
47
|
+
## note: returns / fallback to "regular" name if no records found in history
|
48
|
+
SportDb::Import.catalog.clubs_history.find_name_by( name: name, season: season ) || name
|
49
|
+
end
|
50
|
+
end # class Team
|
51
|
+
|
52
|
+
end # module Import
|
53
|
+
end # module SportDb
|
69
54
|
|
70
55
|
|
71
|
-
require 'sportdb/formats/score/score_formats'
|
72
|
-
require 'sportdb/formats/score/score_parser'
|
73
56
|
require 'sportdb/formats/goals'
|
74
57
|
|
75
58
|
|
59
|
+
|
76
60
|
require 'sportdb/formats/match/mapper'
|
77
61
|
require 'sportdb/formats/match/mapper_teams'
|
78
|
-
require 'sportdb/formats/match/match_status_parser'
|
79
62
|
require 'sportdb/formats/match/match_parser'
|
80
63
|
require 'sportdb/formats/match/match_parser_auto_conf'
|
81
64
|
require 'sportdb/formats/match/conf_parser'
|
82
65
|
|
83
66
|
|
84
|
-
require 'sportdb/formats/match/match_parser_csv'
|
85
67
|
|
86
68
|
require 'sportdb/formats/country/country_reader'
|
87
69
|
require 'sportdb/formats/country/country_index'
|
@@ -128,7 +110,8 @@ require 'sportdb/formats/team/club_index_history'
|
|
128
110
|
###
|
129
111
|
# add convenience helpers / shortcuts
|
130
112
|
module SportDb
|
131
|
-
module Import
|
113
|
+
module Import
|
114
|
+
|
132
115
|
class Club
|
133
116
|
def self.read( path ) ClubReader.read( path ); end
|
134
117
|
def self.parse( txt ) ClubReader.parse( txt ); end
|
@@ -137,6 +120,7 @@ class Club
|
|
137
120
|
def self.parse_props( txt ) ClubPropsReader.parse( txt ); end
|
138
121
|
## todo/check: use ClubProps.read and ClubProps.parse convenience alternate shortcuts - why? why not?
|
139
122
|
end # class Club
|
123
|
+
|
140
124
|
end # module Import
|
141
125
|
end # module SportDb
|
142
126
|
|
@@ -159,23 +143,4 @@ end # module SportDb
|
|
159
143
|
|
160
144
|
|
161
145
|
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
## let's put test configuration in its own namespace / module
|
167
|
-
module SportDb
|
168
|
-
class Test ## todo/check: works with module too? use a module - why? why not?
|
169
|
-
|
170
|
-
####
|
171
|
-
# todo/fix: find a better way to configure shared test datasets - why? why not?
|
172
|
-
# note: use one-up (..) directory for now as default - why? why not?
|
173
|
-
def self.data_dir() @data_dir ||= '../test'; end
|
174
|
-
def self.data_dir=( path ) @data_dir = path; end
|
175
|
-
end
|
176
|
-
end # module SportDb
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
146
|
puts SportDb::Module::Formats.banner # say hello
|
@@ -65,7 +65,7 @@ class LeagueOutlineReader ## todo/check - rename to LeaguePageReader / LeagueP
|
|
65
65
|
filtered_secs = []
|
66
66
|
filter = norm_seasons( season )
|
67
67
|
secs.each do |sec|
|
68
|
-
if filter.include?(
|
68
|
+
if filter.include?( Season.parse( sec[:season] ).key )
|
69
69
|
filtered_secs << sec
|
70
70
|
else
|
71
71
|
puts " skipping season >#{sec[:season]}< NOT matched by filter"
|
@@ -76,7 +76,7 @@ class LeagueOutlineReader ## todo/check - rename to LeaguePageReader / LeagueP
|
|
76
76
|
|
77
77
|
## pass 3 - check & map; replace inline (string with data struct record)
|
78
78
|
secs.each do |sec|
|
79
|
-
sec[:season] =
|
79
|
+
sec[:season] = Season.parse( sec[:season ] )
|
80
80
|
sec[:league] = catalog.leagues.find!( sec[:league] )
|
81
81
|
|
82
82
|
check_stage( sec[:stage] ) if sec[:stage] ## note: only check for now (no remapping etc.)
|
@@ -100,14 +100,18 @@ class LeagueOutlineReader ## todo/check - rename to LeaguePageReader / LeagueP
|
|
100
100
|
)
|
101
101
|
$}x
|
102
102
|
|
103
|
+
|
103
104
|
def norm_seasons( season_or_seasons ) ## todo/check: add alias norm_seasons - why? why not?
|
104
|
-
|
105
|
+
|
106
|
+
seasons = if season_or_seasons.is_a?( Array ) # is it an array already
|
107
|
+
season_or_seasons
|
108
|
+
elsif season_or_seasons.is_a?( Range ) # e.g. Season(1999)..Season(2001) or such
|
109
|
+
season_or_seasons.to_a
|
110
|
+
else ## assume - single entry - wrap in array
|
105
111
|
[season_or_seasons]
|
106
|
-
else ## assume it's an array already
|
107
|
-
season_or_seasons
|
108
112
|
end
|
109
113
|
|
110
|
-
seasons.map { |season|
|
114
|
+
seasons.map { |season| Season( season ).key }
|
111
115
|
end
|
112
116
|
|
113
117
|
|
@@ -141,8 +145,16 @@ class LeagueOutlineReader ## todo/check - rename to LeaguePageReader / LeagueP
|
|
141
145
|
'Europa League Play-off',
|
142
146
|
'Europa-League-Play-offs',
|
143
147
|
'Playoffs - Championship',
|
148
|
+
'Playoffs - Europa League',
|
149
|
+
'Playoffs - Europa League - Finals',
|
144
150
|
'Playoffs - Relegation',
|
145
151
|
'Finals',
|
152
|
+
|
153
|
+
'Apertura',
|
154
|
+
'Apertura - Liguilla',
|
155
|
+
'Clausura',
|
156
|
+
'Clausura - Liguilla',
|
157
|
+
|
146
158
|
].map {|name| name.downcase.gsub( /[^a-z]/, '' ) }
|
147
159
|
|
148
160
|
|
@@ -335,13 +335,13 @@ module SportDb
|
|
335
335
|
## filter.skip? filter.include? ( season_sason_key )?
|
336
336
|
## fiteer.before?( season_key ) etc.
|
337
337
|
## find some good method names!!!!
|
338
|
-
season_start = start ?
|
338
|
+
season_start = start ? Season( start ) : nil
|
339
339
|
|
340
340
|
h = {}
|
341
341
|
match( format: format ).each do |entry|
|
342
342
|
## note: assume last directory in datafile path is the season part/key
|
343
343
|
season_q = File.basename( File.dirname( entry.name ))
|
344
|
-
season =
|
344
|
+
season = Season.parse( season_q ) ## normalize season
|
345
345
|
|
346
346
|
## skip if start season before this season
|
347
347
|
next if season_start && season_start.start_year > season.start_year
|
@@ -79,7 +79,7 @@ class ClubHistoryIndex
|
|
79
79
|
club_new = catalog.clubs.find_by!( name: name_new, country: country_new )
|
80
80
|
|
81
81
|
## note use season obj for now (and NOT key) - why? why not?
|
82
|
-
season = Season.
|
82
|
+
season = Season.parse( season_key )
|
83
83
|
|
84
84
|
## todo/check:
|
85
85
|
## check if club_old and club_new reference different club record!!
|
@@ -108,7 +108,7 @@ class ClubHistoryIndex
|
|
108
108
|
def find_name_by( name:, season: )
|
109
109
|
recs = @clubs[ name ]
|
110
110
|
if recs
|
111
|
-
season =
|
111
|
+
season = Season( season ) ## make sure season is a season obj (and NOT a string)
|
112
112
|
## check season records for name; use linear search (assume only few records)
|
113
113
|
recs.each do |rec|
|
114
114
|
if season >= rec[0]
|
@@ -124,10 +124,6 @@ class ClubHistoryIndex
|
|
124
124
|
|
125
125
|
##################
|
126
126
|
## helpers
|
127
|
-
def season( season )
|
128
|
-
season.is_a?( Season ) ? season : Season.new( season )
|
129
|
-
end
|
130
|
-
|
131
127
|
def strip_geo( name )
|
132
128
|
## e.g. Arsenal, London => Arsenal
|
133
129
|
name.split(',')[0].strip
|
@@ -80,7 +80,7 @@ def parse
|
|
80
80
|
last_keyword = nil
|
81
81
|
elsif heading_level == 2
|
82
82
|
## assume season
|
83
|
-
season = Season.
|
83
|
+
season = Season.parse( heading )
|
84
84
|
puts " season >#{heading}< => #{season.key}"
|
85
85
|
last_season = season ## reset "lowwer levels" - keyword
|
86
86
|
last_keyword = nil
|
@@ -61,13 +61,29 @@ class ClubPropsReader
|
|
61
61
|
## todo/fix: only updated "on-demand" from in-memory struct/records!!!!
|
62
62
|
|
63
63
|
## update attributes
|
64
|
-
club_rec.key = rec['Key'] if rec['Key']
|
65
|
-
club_rec.code = rec['Code'] if rec['Code']
|
64
|
+
club_rec.key = rec['Key'] if is_not_na?( rec['Key'] )
|
65
|
+
club_rec.code = rec['Code'] if is_not_na?( rec['Code'] )
|
66
66
|
## todo/fix: add (some) more props e.g. address, web, etc.
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end # method parse
|
70
70
|
|
71
|
+
|
72
|
+
## allow various values for nil or n/a (not available/applicable) for now
|
73
|
+
## add more or less - why? why not?
|
74
|
+
def is_not_na?( col ) !is_na?( col); end ## check: find a better name - why? why not?
|
75
|
+
|
76
|
+
NA_VARIANTS = ['-', '--', '---',
|
77
|
+
'?', '??', '???',
|
78
|
+
'_', '__', '___',
|
79
|
+
'na', 'n/a',
|
80
|
+
'nil', 'null']
|
81
|
+
|
82
|
+
def is_na?( col )
|
83
|
+
col.nil? || col.empty? || NA_VARIANTS.include?( col.downcase )
|
84
|
+
end
|
85
|
+
|
86
|
+
|
71
87
|
end # class ClubPropsReader
|
72
88
|
|
73
89
|
end ## module Import
|
data/test/helper.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
## note: use the local version of gems
|
2
2
|
$LOAD_PATH.unshift( File.expand_path( '../date-formats/lib' ))
|
3
|
+
$LOAD_PATH.unshift( File.expand_path( '../score-formats/lib' ))
|
3
4
|
$LOAD_PATH.unshift( File.expand_path( '../sportdb-langs/lib' ))
|
5
|
+
$LOAD_PATH.unshift( File.expand_path( '../sportdb-structs/lib' ))
|
6
|
+
|
4
7
|
|
5
8
|
|
6
9
|
## minitest setup
|
metadata
CHANGED
@@ -1,71 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-formats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
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-08-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: sportdb-structs
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0
|
19
|
+
version: 0.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: date-formats
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.1
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.1
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: csvreader
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.2.4
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.2.4
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: sportdb-langs
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.1.1
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.1.1
|
26
|
+
version: 0.1.0
|
69
27
|
- !ruby/object:Gem::Dependency
|
70
28
|
name: rubyzip
|
71
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +80,6 @@ files:
|
|
122
80
|
- README.md
|
123
81
|
- Rakefile
|
124
82
|
- lib/sportdb/formats.rb
|
125
|
-
- lib/sportdb/formats/config.rb
|
126
83
|
- lib/sportdb/formats/country/country_index.rb
|
127
84
|
- lib/sportdb/formats/country/country_reader.rb
|
128
85
|
- lib/sportdb/formats/datafile.rb
|
@@ -138,25 +95,9 @@ files:
|
|
138
95
|
- lib/sportdb/formats/match/mapper_teams.rb
|
139
96
|
- lib/sportdb/formats/match/match_parser.rb
|
140
97
|
- lib/sportdb/formats/match/match_parser_auto_conf.rb
|
141
|
-
- lib/sportdb/formats/match/match_parser_csv.rb
|
142
|
-
- lib/sportdb/formats/match/match_status_parser.rb
|
143
|
-
- lib/sportdb/formats/name_helper.rb
|
144
98
|
- lib/sportdb/formats/outline_reader.rb
|
145
99
|
- lib/sportdb/formats/package.rb
|
146
100
|
- lib/sportdb/formats/parser_helper.rb
|
147
|
-
- lib/sportdb/formats/score/score_formats.rb
|
148
|
-
- lib/sportdb/formats/score/score_parser.rb
|
149
|
-
- lib/sportdb/formats/season_utils.rb
|
150
|
-
- lib/sportdb/formats/structs/country.rb
|
151
|
-
- lib/sportdb/formats/structs/group.rb
|
152
|
-
- lib/sportdb/formats/structs/league.rb
|
153
|
-
- lib/sportdb/formats/structs/match.rb
|
154
|
-
- lib/sportdb/formats/structs/matchlist.rb
|
155
|
-
- lib/sportdb/formats/structs/round.rb
|
156
|
-
- lib/sportdb/formats/structs/season.rb
|
157
|
-
- lib/sportdb/formats/structs/standings.rb
|
158
|
-
- lib/sportdb/formats/structs/team.rb
|
159
|
-
- lib/sportdb/formats/structs/team_usage.rb
|
160
101
|
- lib/sportdb/formats/team/club_index.rb
|
161
102
|
- lib/sportdb/formats/team/club_index_history.rb
|
162
103
|
- lib/sportdb/formats/team/club_reader.rb
|
@@ -172,25 +113,18 @@ files:
|
|
172
113
|
- test/test_club_reader.rb
|
173
114
|
- test/test_club_reader_history.rb
|
174
115
|
- test/test_club_reader_props.rb
|
175
|
-
- test/test_clubs.rb
|
176
116
|
- test/test_country_index.rb
|
177
117
|
- test/test_country_reader.rb
|
178
|
-
- test/test_csv_reader.rb
|
179
118
|
- test/test_datafile.rb
|
180
119
|
- test/test_datafile_package.rb
|
181
120
|
- test/test_goals.rb
|
182
121
|
- test/test_league_index.rb
|
183
122
|
- test/test_league_outline_reader.rb
|
184
123
|
- test/test_league_reader.rb
|
185
|
-
- test/test_match.rb
|
186
|
-
- test/test_match_status_parser.rb
|
187
|
-
- test/test_name_helper.rb
|
188
124
|
- test/test_outline_reader.rb
|
189
125
|
- test/test_package.rb
|
190
126
|
- test/test_package_match.rb
|
191
127
|
- test/test_regex.rb
|
192
|
-
- test/test_scores.rb
|
193
|
-
- test/test_season.rb
|
194
128
|
- test/test_wiki_reader.rb
|
195
129
|
homepage: https://github.com/sportdb/sport.db
|
196
130
|
licenses:
|