rsssf 0.1.0 → 0.3.0
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.
- checksums.yaml +5 -5
- data/{HISTORY.md → CHANGELOG.md} +4 -0
- data/Manifest.txt +41 -7
- data/README.md +93 -71
- data/Rakefile +8 -7
- data/config/groups_en.txt +44 -0
- data/config/rounds_en.txt +283 -0
- data/config/rounds_es.txt +20 -0
- data/config/rounds_misc.txt +7 -0
- data/lib/_cocos_.rb +158 -0
- data/lib/rsssf/convert/convert.rb +71 -0
- data/lib/rsssf/convert/errata.rb +103 -0
- data/lib/rsssf/convert/html_entities.rb +150 -0
- data/lib/rsssf/convert/html_to_txt/beautify_anchors.rb +96 -0
- data/lib/rsssf/convert/html_to_txt/make_heading.rb +70 -0
- data/lib/rsssf/convert/html_to_txt/remove_emails.rb +43 -0
- data/lib/rsssf/convert/html_to_txt/replace_a_href.rb +85 -0
- data/lib/rsssf/convert/html_to_txt/replace_a_name.rb +87 -0
- data/lib/rsssf/convert/html_to_txt/replace_heading.rb +76 -0
- data/lib/rsssf/convert/html_to_txt/replace_hr.rb +25 -0
- data/lib/rsssf/convert/html_to_txt.rb +247 -0
- data/lib/rsssf/download.rb +20 -0
- data/lib/rsssf/fmtfix/dates.rb +541 -0
- data/lib/rsssf/fmtfix/dates_helpers.rb +63 -0
- data/lib/rsssf/fmtfix/errata.rb +44 -0
- data/lib/rsssf/fmtfix/fmtfix-base.rb +68 -0
- data/lib/rsssf/fmtfix/fmtfix.rb +101 -0
- data/lib/rsssf/fmtfix/goals.rb +173 -0
- data/lib/rsssf/fmtfix/headers.rb +326 -0
- data/lib/rsssf/fmtfix/outline.rb +228 -0
- data/lib/rsssf/fmtfix/patch_headings.rb +141 -0
- data/lib/rsssf/fmtfix/rounds.rb +74 -0
- data/lib/rsssf/fmtfix/score.rb +92 -0
- data/lib/rsssf/fmtfix/tables.rb +316 -0
- data/lib/rsssf/fmtfix/topscorers.rb +50 -0
- data/lib/rsssf/page-find_schedule.rb +127 -0
- data/lib/rsssf/page-meta.rb +68 -0
- data/lib/rsssf/page.rb +125 -238
- data/lib/rsssf/parse_schedules.rb +34 -0
- data/lib/rsssf/prepare/convert-links.rb +77 -0
- data/lib/rsssf/prepare/convert-meta.rb +111 -0
- data/lib/rsssf/prepare/convert-navlines.rb +154 -0
- data/lib/rsssf/prepare/convert-postproc.rb +141 -0
- data/lib/rsssf/prepare/convert.rb +100 -0
- data/lib/rsssf/prepare/download.rb +40 -0
- data/lib/rsssf/project.rb +154 -0
- data/lib/rsssf/reports/page.rb +66 -23
- data/lib/rsssf/reports/schedule.rb +89 -40
- data/lib/rsssf/schedule.rb +4 -14
- data/lib/rsssf/utils.rb +37 -45
- data/lib/rsssf/version.rb +7 -6
- data/lib/rsssf.rb +82 -19
- metadata +68 -26
- data/.gemtest +0 -0
- data/lib/rsssf/fetch.rb +0 -80
- data/lib/rsssf/html2txt.rb +0 -157
- data/lib/rsssf/patch.rb +0 -28
- data/lib/rsssf/repo.rb +0 -220
- data/test/helper.rb +0 -12
- data/test/test_utils.rb +0 -83
|
@@ -1,77 +1,126 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
|
|
3
3
|
module Rsssf
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
ScheduleStat = Struct.new(
|
|
7
|
+
:path, ## path to .txt file
|
|
8
|
+
:errors ## array or nil
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
class ScheduleReport
|
|
6
14
|
|
|
15
|
+
include Utils ## e.g. year_from_file, etc.
|
|
16
|
+
|
|
17
|
+
##
|
|
18
|
+
## quick hack? pass along (optional) patch
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def self.build( files, title:,
|
|
22
|
+
patch: nil )
|
|
23
|
+
|
|
24
|
+
stats = []
|
|
25
|
+
files.each_with_index do |file,i|
|
|
26
|
+
|
|
27
|
+
puts "==> [#{i+1}/#{files.size}] reading >#{file}<..."
|
|
28
|
+
|
|
29
|
+
txt = read_text( file )
|
|
30
|
+
|
|
31
|
+
stat = ScheduleStat.new
|
|
32
|
+
stat.path = file
|
|
33
|
+
stat.errors = []
|
|
34
|
+
|
|
35
|
+
stats << stat
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
new( stats, title: title )
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
7
42
|
attr_reader :title
|
|
8
43
|
|
|
9
|
-
def initialize( stats,
|
|
44
|
+
def initialize( stats, title: )
|
|
10
45
|
@stats = stats
|
|
11
|
-
@
|
|
12
|
-
|
|
13
|
-
@title = opts[:title] || 'Your Title Here'
|
|
46
|
+
@title = title
|
|
14
47
|
end
|
|
15
48
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
f.write build_summary
|
|
20
|
-
end
|
|
21
|
-
end
|
|
49
|
+
### save report as README.md in repo
|
|
50
|
+
def save( path ) write_text( path, build_summary ); end
|
|
51
|
+
|
|
22
52
|
|
|
23
53
|
def build_summary
|
|
24
|
-
## sort start by season (latest first) than
|
|
54
|
+
## sort start 1) by season (latest first) than
|
|
55
|
+
## 2) by name (e.g. 1-bundesliga, cup, etc.)
|
|
25
56
|
stats = @stats.sort do |l,r|
|
|
26
|
-
v = r.
|
|
27
|
-
v = l.
|
|
57
|
+
v = File.basename(File.dirname(r.path)) <=> File.basename(File.dirname(l.path))
|
|
58
|
+
v = File.basename(l.path) <=> File.basename(r.path) if v == 0 ## same season
|
|
28
59
|
v
|
|
29
60
|
end
|
|
30
61
|
|
|
31
|
-
header =<<
|
|
62
|
+
header =<<TXT
|
|
32
63
|
|
|
33
64
|
# #{title}
|
|
34
65
|
|
|
35
66
|
football.db RSSSF (Rec.Sport.Soccer Statistics Foundation) Archive Data for
|
|
36
67
|
#{title}
|
|
37
68
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
EOS
|
|
41
|
-
|
|
69
|
+
TXT
|
|
42
70
|
|
|
43
|
-
footer =<<EOS
|
|
44
71
|
|
|
45
|
-
## Questions? Comments?
|
|
46
72
|
|
|
47
|
-
|
|
48
|
-
[Open Sports & Friends Forum](http://groups.google.com/group/opensport).
|
|
49
|
-
Thanks!
|
|
50
|
-
EOS
|
|
73
|
+
errors = []
|
|
51
74
|
|
|
52
75
|
|
|
53
|
-
txt =
|
|
76
|
+
txt = String.new
|
|
54
77
|
txt << header
|
|
55
|
-
|
|
56
|
-
txt << "| Season | League, Cup |
|
|
78
|
+
|
|
79
|
+
txt << "| Season | League, Cup | Errors |\n"
|
|
57
80
|
txt << "| :----- | :---------- | -----: |\n"
|
|
58
81
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
82
|
+
|
|
83
|
+
stats.each_with_index do |stat,i|
|
|
84
|
+
|
|
85
|
+
path = stat.path
|
|
86
|
+
season_dir = File.basename(File.dirname( path ))
|
|
87
|
+
filename = File.basename( path ) ## incl. extension !!
|
|
88
|
+
|
|
89
|
+
season = Season( season_dir )
|
|
90
|
+
## note - use archive_dir_for_season for archive path
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
txt << "| #{season_dir} "
|
|
94
|
+
txt << "| [#{filename}](#{archive_dir_for_season(season)}/#{filename}) "
|
|
95
|
+
|
|
96
|
+
txt << if stat.errors.size > 0
|
|
97
|
+
"| **!! #{stat.errors.size}** "
|
|
98
|
+
else
|
|
99
|
+
"| OK "
|
|
100
|
+
end
|
|
101
|
+
txt << "|\n"
|
|
102
|
+
|
|
103
|
+
errors += stat.errors if stat.errors.size > 0
|
|
64
104
|
end
|
|
65
105
|
|
|
66
|
-
|
|
106
|
+
if errors.size > 0
|
|
107
|
+
txt << "\n\n"
|
|
108
|
+
txt << "#{errors.size} errors in #{stats.size} datafile(s)\n\n"
|
|
109
|
+
|
|
110
|
+
txt << "```\n"
|
|
111
|
+
errors.each do |path, msg, line|
|
|
112
|
+
season_dir = File.basename(File.dirname( path ))
|
|
113
|
+
filename = File.basename( path ) ## incl. extension !!
|
|
114
|
+
|
|
115
|
+
txt <<"#{season_dir}/#{filename} -- #{msg}\n"
|
|
116
|
+
txt << " in line >#{line}<\n" unless line.empty?
|
|
117
|
+
end
|
|
118
|
+
txt << "```\n"
|
|
119
|
+
end
|
|
120
|
+
|
|
67
121
|
|
|
68
|
-
txt << footer
|
|
69
122
|
txt
|
|
70
123
|
end # method build_summary
|
|
71
124
|
|
|
72
125
|
end ## class ScheduleReport
|
|
73
126
|
end ## module Rsssf
|
|
74
|
-
|
|
75
|
-
## add (shortcut) alias
|
|
76
|
-
RsssfScheduleReport = Rsssf::ScheduleReport
|
|
77
|
-
|
data/lib/rsssf/schedule.rb
CHANGED
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
1
|
|
|
3
2
|
module Rsssf
|
|
4
3
|
|
|
5
4
|
class Schedule
|
|
6
5
|
|
|
7
|
-
def self.from_string( txt )
|
|
8
|
-
self.new( txt )
|
|
9
|
-
end
|
|
10
6
|
|
|
11
|
-
attr_accessor :rounds # track no of rounds
|
|
7
|
+
# attr_accessor :rounds # track no of rounds - why? why not?
|
|
12
8
|
|
|
13
9
|
def initialize( txt )
|
|
14
10
|
@txt = txt
|
|
15
11
|
|
|
16
|
-
@rounds = nil # undefined
|
|
12
|
+
## @rounds = nil # undefined
|
|
17
13
|
end
|
|
18
14
|
|
|
19
15
|
|
|
20
|
-
def save( path )
|
|
21
|
-
|
|
22
|
-
f.write @txt
|
|
23
|
-
end
|
|
16
|
+
def save( path, header: )
|
|
17
|
+
write_text( path, header + @txt )
|
|
24
18
|
end
|
|
25
19
|
|
|
26
20
|
end ## class Schedule
|
|
27
21
|
end ## module Rsssf
|
|
28
|
-
|
|
29
|
-
## add (shortcut) alias
|
|
30
|
-
RsssfSchedule = Rsssf::Schedule
|
|
31
|
-
|
data/lib/rsssf/utils.rb
CHANGED
|
@@ -1,75 +1,67 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
1
|
|
|
3
2
|
module Rsssf
|
|
4
3
|
module Utils
|
|
5
4
|
|
|
5
|
+
|
|
6
|
+
## move to Page - why? why not?
|
|
7
|
+
|
|
6
8
|
def year_from_file( path )
|
|
7
|
-
|
|
8
|
-
basename = File.basename( path, extname )
|
|
9
|
+
## e.g. duit92.txt or duit92.html => duit92
|
|
10
|
+
basename = File.basename( path, File.extname( path ))
|
|
9
11
|
year_from_name( basename )
|
|
10
12
|
end
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
def year_from_name( name )
|
|
14
|
-
if name =~ /(\d+)/
|
|
15
|
-
digits = $1.to_s
|
|
16
|
-
num = digits.to_i
|
|
17
15
|
|
|
18
|
-
if digits.size == 4 ## e.g. 1980 or 2011 etc.
|
|
19
|
-
num
|
|
20
|
-
elsif digits.size == 2 ## e.g. 00, 20 or 99 etc.
|
|
21
|
-
if num <= 16 ## assume 20xx for now from 00..16
|
|
22
|
-
2000+num
|
|
23
|
-
else ## assume 19xx for now
|
|
24
|
-
1900+num
|
|
25
|
-
end
|
|
26
|
-
else
|
|
27
|
-
fail( "no year found in name #{name}; expected two or four digits")
|
|
28
|
-
end
|
|
29
|
-
else
|
|
30
|
-
fail( "no year found in name #{name}")
|
|
31
|
-
end
|
|
32
|
-
end # method year_from_name
|
|
33
16
|
|
|
17
|
+
## note - add lookbehind and lookahead for boundary NOT A NUMBER!!
|
|
18
|
+
## other will match 4 digits in 5 digits number etc.
|
|
19
|
+
## or 2 digits in 3 digits number etc.
|
|
34
20
|
|
|
35
|
-
|
|
21
|
+
YEAR_FROM_NAME_RE = %r{ (?<! \d) ## note - no digit before allowed
|
|
22
|
+
(?: \d{4}
|
|
23
|
+
| \d{2} )
|
|
24
|
+
(?! \d) ## no digit after allowed
|
|
25
|
+
}x
|
|
36
26
|
|
|
37
|
-
|
|
27
|
+
def year_from_name( name )
|
|
28
|
+
## note - make sure it works for special case like:
|
|
29
|
+
## mex2-2010 !!!
|
|
30
|
+
## only match two digits (YY) or four digits (YYYY)
|
|
38
31
|
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
if m=YEAR_FROM_NAME_RE.match( name )
|
|
33
|
+
digits = m[0].to_s
|
|
34
|
+
num = digits.to_i(10)
|
|
41
35
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
if digits.size == 4 ## e.g. 1980 or 2011 etc.
|
|
37
|
+
num
|
|
38
|
+
else ## digits.size == 2 ## e.g. 00, 20 or 99 etc.
|
|
39
|
+
## assume 20xx for now from 00..09
|
|
40
|
+
## assume 19xx for 10..99
|
|
41
|
+
num <= 9 ? 2000+num : 1900+num
|
|
42
|
+
end
|
|
46
43
|
else
|
|
47
|
-
|
|
48
|
-
end
|
|
44
|
+
fail( "no year found in name #{name}; expected two or four digits")
|
|
45
|
+
end
|
|
46
|
+
end # method year_from_name
|
|
49
47
|
|
|
50
|
-
year_prev = year-1
|
|
51
48
|
|
|
52
|
-
"%4d-%02d" % [year_prev, year%100] ## e.g. return 1974-75
|
|
53
|
-
end
|
|
54
49
|
|
|
50
|
+
def archive_dir_for_season( season )
|
|
51
|
+
season = Season( season )
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
season = year_to_season( year )
|
|
58
|
-
if year <= 2010 # e.g. season 2009-10
|
|
53
|
+
if season < Season('2010') # e.g. season 2009-10
|
|
59
54
|
## use archive folder (w/ 1980s etc)
|
|
60
55
|
## get decade folder
|
|
61
|
-
decade =
|
|
56
|
+
decade = season.start_year ## 1999/2000 2000
|
|
62
57
|
decade -= decade % 10 ## turn 1987 into 1980 etc
|
|
63
|
-
"archive/#{decade}s/#{season}"
|
|
58
|
+
"archive/#{decade}s/#{season.to_path}"
|
|
64
59
|
else
|
|
65
|
-
season
|
|
60
|
+
season.to_path
|
|
66
61
|
end
|
|
67
62
|
end
|
|
68
63
|
|
|
69
64
|
|
|
65
|
+
|
|
70
66
|
end # module Utils
|
|
71
67
|
end # module Rsssf
|
|
72
|
-
|
|
73
|
-
## add (shortcut) alias
|
|
74
|
-
RsssfUtils = Rsssf::Utils
|
|
75
|
-
|
data/lib/rsssf/version.rb
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
|
|
3
1
|
|
|
4
2
|
module Rsssf
|
|
5
3
|
|
|
6
4
|
MAJOR = 0
|
|
7
|
-
MINOR =
|
|
5
|
+
MINOR = 3
|
|
8
6
|
PATCH = 0
|
|
9
7
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
|
10
8
|
|
|
@@ -13,12 +11,15 @@ module Rsssf
|
|
|
13
11
|
end
|
|
14
12
|
|
|
15
13
|
def self.banner
|
|
16
|
-
"rsssf/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
|
14
|
+
"rsssf/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
|
|
17
15
|
end
|
|
18
16
|
|
|
19
17
|
def self.root
|
|
20
|
-
|
|
18
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
|
21
19
|
end
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
def self.config_dir
|
|
22
|
+
"#{root}/config"
|
|
23
|
+
end
|
|
24
24
|
|
|
25
|
+
end # module Rsssf
|
data/lib/rsssf.rb
CHANGED
|
@@ -1,34 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
$LOAD_PATH.unshift( '/sports/rubycocos/webclient/webclient/lib' )
|
|
2
|
+
$LOAD_PATH.unshift( '/sports/rubycocos/webclient/webget/lib' )
|
|
2
3
|
|
|
3
|
-
## stdlibs
|
|
4
|
-
require 'pp'
|
|
5
|
-
require 'yaml'
|
|
6
|
-
require 'uri'
|
|
7
4
|
|
|
5
|
+
## 3rd party (our own)
|
|
6
|
+
require 'season/formats' ## add season support
|
|
7
|
+
require 'webget' ## incl. webget, webcache, webclient, etc.
|
|
8
|
+
|
|
9
|
+
require 'cocos'
|
|
10
|
+
require_relative '_cocos_' ## move/add to upstream!!!
|
|
8
11
|
|
|
9
|
-
## 3rd party libs
|
|
10
|
-
require 'textutils' ## used for File.read_utf8 etc.
|
|
11
|
-
require 'fetcher' ## used for Fetcher::Worker.new.fetch etc.
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
## our own code
|
|
15
|
-
|
|
15
|
+
require_relative 'rsssf/version' # note: let version always go first
|
|
16
|
+
|
|
17
|
+
require_relative 'rsssf/utils' # include Utils - goes first
|
|
18
|
+
|
|
19
|
+
require_relative 'rsssf/download'
|
|
20
|
+
|
|
21
|
+
require_relative 'rsssf/convert/convert'
|
|
22
|
+
require_relative 'rsssf/convert/html_entities'
|
|
23
|
+
require_relative 'rsssf/convert/html_to_txt'
|
|
24
|
+
require_relative 'rsssf/convert/errata'
|
|
25
|
+
require_relative 'rsssf/convert/html_to_txt/replace_heading'
|
|
26
|
+
require_relative 'rsssf/convert/html_to_txt/replace_a_name'
|
|
27
|
+
require_relative 'rsssf/convert/html_to_txt/replace_a_href'
|
|
28
|
+
require_relative 'rsssf/convert/html_to_txt/replace_hr'
|
|
29
|
+
require_relative 'rsssf/convert/html_to_txt/remove_emails'
|
|
30
|
+
require_relative 'rsssf/convert/html_to_txt/beautify_anchors'
|
|
31
|
+
require_relative 'rsssf/convert/html_to_txt/make_heading'
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
require_relative 'rsssf/prepare/download'
|
|
35
|
+
require_relative 'rsssf/prepare/convert'
|
|
36
|
+
require_relative 'rsssf/prepare/convert-meta'
|
|
37
|
+
require_relative 'rsssf/prepare/convert-links'
|
|
38
|
+
require_relative 'rsssf/prepare/convert-postproc'
|
|
39
|
+
require_relative 'rsssf/prepare/convert-navlines'
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
require_relative 'rsssf/page'
|
|
44
|
+
require_relative 'rsssf/page-meta' # e.g. Page.parse_meta( txt )
|
|
45
|
+
require_relative 'rsssf/page-find_schedule.rb'
|
|
46
|
+
|
|
47
|
+
require_relative 'rsssf/schedule'
|
|
48
|
+
|
|
49
|
+
require_relative 'rsssf/reports/schedule'
|
|
50
|
+
require_relative 'rsssf/reports/page'
|
|
51
|
+
|
|
52
|
+
require_relative 'rsssf/project' ### replace with projct
|
|
53
|
+
|
|
54
|
+
require_relative 'rsssf/parse_schedules'
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
###
|
|
59
|
+
# fmtfix machinery
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
require_relative 'rsssf/fmtfix/rounds'
|
|
63
|
+
require_relative 'rsssf/fmtfix/dates_helpers'
|
|
64
|
+
require_relative 'rsssf/fmtfix/dates'
|
|
65
|
+
require_relative 'rsssf/fmtfix/headers'
|
|
66
|
+
|
|
67
|
+
require_relative 'rsssf/fmtfix/fmtfix-base'
|
|
68
|
+
require_relative 'rsssf/fmtfix/fmtfix'
|
|
69
|
+
require_relative 'rsssf/fmtfix/errata'
|
|
70
|
+
require_relative 'rsssf/fmtfix/score'
|
|
71
|
+
require_relative 'rsssf/fmtfix/goals'
|
|
72
|
+
require_relative 'rsssf/fmtfix/topscorers'
|
|
73
|
+
require_relative 'rsssf/fmtfix/tables'
|
|
74
|
+
require_relative 'rsssf/fmtfix/outline'
|
|
75
|
+
require_relative 'rsssf/fmtfix/patch_headings' ## or use outline_patch or such - why? why not?
|
|
76
|
+
|
|
77
|
+
|
|
16
78
|
|
|
17
|
-
require 'rsssf/utils' # include Utils - goes first
|
|
18
|
-
require 'rsssf/html2txt' # include Filters - goes first
|
|
19
79
|
|
|
20
|
-
require 'rsssf/fetch'
|
|
21
|
-
require 'rsssf/page'
|
|
22
|
-
require 'rsssf/schedule'
|
|
23
|
-
require 'rsssf/patch'
|
|
24
80
|
|
|
25
|
-
|
|
26
|
-
|
|
81
|
+
#############
|
|
82
|
+
## add (shortcut) alias(es)
|
|
83
|
+
RsssfPage = Rsssf::Page
|
|
84
|
+
RsssfPageConverter = Rsssf::PageConverter
|
|
85
|
+
RsssfPageStat = Rsssf::PageStat
|
|
86
|
+
RsssfPageReport = Rsssf::PageReport
|
|
27
87
|
|
|
28
|
-
|
|
88
|
+
RsssfSchedule = Rsssf::Schedule
|
|
89
|
+
RsssfScheduleStat = Rsssf::ScheduleStat
|
|
90
|
+
RsssfScheduleReport = Rsssf::ScheduleReport
|
|
29
91
|
|
|
92
|
+
RsssfUtils = Rsssf::Utils
|
|
30
93
|
|
|
31
94
|
|
|
32
95
|
|
|
33
96
|
## say hello
|
|
34
|
-
puts Rsssf.banner if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
|
|
97
|
+
puts Rsssf.banner ## if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
|
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rsssf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gerald Bauer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: cocos
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
@@ -25,7 +25,7 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: season-formats
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
@@ -39,7 +39,7 @@ dependencies:
|
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: webget
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
@@ -56,63 +56,106 @@ dependencies:
|
|
|
56
56
|
name: rdoc
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '4.0'
|
|
62
|
+
- - "<"
|
|
63
|
+
- !ruby/object:Gem::Version
|
|
64
|
+
version: '7'
|
|
62
65
|
type: :development
|
|
63
66
|
prerelease: false
|
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
68
|
requirements:
|
|
66
|
-
- - "
|
|
69
|
+
- - ">="
|
|
67
70
|
- !ruby/object:Gem::Version
|
|
68
71
|
version: '4.0'
|
|
72
|
+
- - "<"
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '7'
|
|
69
75
|
- !ruby/object:Gem::Dependency
|
|
70
76
|
name: hoe
|
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
|
72
78
|
requirements:
|
|
73
79
|
- - "~>"
|
|
74
80
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
81
|
+
version: '4.2'
|
|
76
82
|
type: :development
|
|
77
83
|
prerelease: false
|
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
85
|
requirements:
|
|
80
86
|
- - "~>"
|
|
81
87
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
88
|
+
version: '4.2'
|
|
83
89
|
description: rsssf - tools 'n' scripts for RSSSF (Rec.Sport.Soccer Statistics Foundation)
|
|
84
90
|
archive data
|
|
85
|
-
email:
|
|
91
|
+
email: gerald.bauer@gmail.com
|
|
86
92
|
executables: []
|
|
87
93
|
extensions: []
|
|
88
94
|
extra_rdoc_files:
|
|
89
|
-
-
|
|
95
|
+
- CHANGELOG.md
|
|
90
96
|
- Manifest.txt
|
|
91
97
|
- README.md
|
|
98
|
+
- config/groups_en.txt
|
|
99
|
+
- config/rounds_en.txt
|
|
100
|
+
- config/rounds_es.txt
|
|
101
|
+
- config/rounds_misc.txt
|
|
92
102
|
files:
|
|
93
|
-
-
|
|
94
|
-
- HISTORY.md
|
|
103
|
+
- CHANGELOG.md
|
|
95
104
|
- Manifest.txt
|
|
96
105
|
- README.md
|
|
97
106
|
- Rakefile
|
|
107
|
+
- config/groups_en.txt
|
|
108
|
+
- config/rounds_en.txt
|
|
109
|
+
- config/rounds_es.txt
|
|
110
|
+
- config/rounds_misc.txt
|
|
111
|
+
- lib/_cocos_.rb
|
|
98
112
|
- lib/rsssf.rb
|
|
99
|
-
- lib/rsssf/
|
|
100
|
-
- lib/rsssf/
|
|
113
|
+
- lib/rsssf/convert/convert.rb
|
|
114
|
+
- lib/rsssf/convert/errata.rb
|
|
115
|
+
- lib/rsssf/convert/html_entities.rb
|
|
116
|
+
- lib/rsssf/convert/html_to_txt.rb
|
|
117
|
+
- lib/rsssf/convert/html_to_txt/beautify_anchors.rb
|
|
118
|
+
- lib/rsssf/convert/html_to_txt/make_heading.rb
|
|
119
|
+
- lib/rsssf/convert/html_to_txt/remove_emails.rb
|
|
120
|
+
- lib/rsssf/convert/html_to_txt/replace_a_href.rb
|
|
121
|
+
- lib/rsssf/convert/html_to_txt/replace_a_name.rb
|
|
122
|
+
- lib/rsssf/convert/html_to_txt/replace_heading.rb
|
|
123
|
+
- lib/rsssf/convert/html_to_txt/replace_hr.rb
|
|
124
|
+
- lib/rsssf/download.rb
|
|
125
|
+
- lib/rsssf/fmtfix/dates.rb
|
|
126
|
+
- lib/rsssf/fmtfix/dates_helpers.rb
|
|
127
|
+
- lib/rsssf/fmtfix/errata.rb
|
|
128
|
+
- lib/rsssf/fmtfix/fmtfix-base.rb
|
|
129
|
+
- lib/rsssf/fmtfix/fmtfix.rb
|
|
130
|
+
- lib/rsssf/fmtfix/goals.rb
|
|
131
|
+
- lib/rsssf/fmtfix/headers.rb
|
|
132
|
+
- lib/rsssf/fmtfix/outline.rb
|
|
133
|
+
- lib/rsssf/fmtfix/patch_headings.rb
|
|
134
|
+
- lib/rsssf/fmtfix/rounds.rb
|
|
135
|
+
- lib/rsssf/fmtfix/score.rb
|
|
136
|
+
- lib/rsssf/fmtfix/tables.rb
|
|
137
|
+
- lib/rsssf/fmtfix/topscorers.rb
|
|
138
|
+
- lib/rsssf/page-find_schedule.rb
|
|
139
|
+
- lib/rsssf/page-meta.rb
|
|
101
140
|
- lib/rsssf/page.rb
|
|
102
|
-
- lib/rsssf/
|
|
103
|
-
- lib/rsssf/
|
|
141
|
+
- lib/rsssf/parse_schedules.rb
|
|
142
|
+
- lib/rsssf/prepare/convert-links.rb
|
|
143
|
+
- lib/rsssf/prepare/convert-meta.rb
|
|
144
|
+
- lib/rsssf/prepare/convert-navlines.rb
|
|
145
|
+
- lib/rsssf/prepare/convert-postproc.rb
|
|
146
|
+
- lib/rsssf/prepare/convert.rb
|
|
147
|
+
- lib/rsssf/prepare/download.rb
|
|
148
|
+
- lib/rsssf/project.rb
|
|
104
149
|
- lib/rsssf/reports/page.rb
|
|
105
150
|
- lib/rsssf/reports/schedule.rb
|
|
106
151
|
- lib/rsssf/schedule.rb
|
|
107
152
|
- lib/rsssf/utils.rb
|
|
108
153
|
- lib/rsssf/version.rb
|
|
109
|
-
|
|
110
|
-
- test/test_utils.rb
|
|
111
|
-
homepage: https://github.com/sportdb/rsssf
|
|
154
|
+
homepage: https://github.com/rsssf/scripts
|
|
112
155
|
licenses:
|
|
113
156
|
- Public Domain
|
|
114
157
|
metadata: {}
|
|
115
|
-
post_install_message:
|
|
158
|
+
post_install_message:
|
|
116
159
|
rdoc_options:
|
|
117
160
|
- "--main"
|
|
118
161
|
- README.md
|
|
@@ -122,16 +165,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
122
165
|
requirements:
|
|
123
166
|
- - ">="
|
|
124
167
|
- !ruby/object:Gem::Version
|
|
125
|
-
version:
|
|
168
|
+
version: 2.2.2
|
|
126
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
170
|
requirements:
|
|
128
171
|
- - ">="
|
|
129
172
|
- !ruby/object:Gem::Version
|
|
130
173
|
version: '0'
|
|
131
174
|
requirements: []
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
signing_key:
|
|
175
|
+
rubygems_version: 3.5.22
|
|
176
|
+
signing_key:
|
|
135
177
|
specification_version: 4
|
|
136
178
|
summary: rsssf - tools 'n' scripts for RSSSF (Rec.Sport.Soccer Statistics Foundation)
|
|
137
179
|
archive data
|
data/.gemtest
DELETED
|
File without changes
|