football-sources 0.0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +6 -4
  3. data/Manifest.txt +0 -29
  4. data/README.md +30 -28
  5. data/Rakefile +32 -31
  6. data/lib/football/sources.rb +6 -6
  7. data/lib/football-sources/version.rb +19 -19
  8. data/lib/football-sources.rb +16 -46
  9. metadata +15 -58
  10. data/lib/football-sources/apis/config.rb +0 -17
  11. data/lib/football-sources/apis/convert.rb +0 -239
  12. data/lib/football-sources/apis/convert_cl.rb +0 -267
  13. data/lib/football-sources/apis/download.rb +0 -11
  14. data/lib/football-sources/apis/stat.rb +0 -59
  15. data/lib/football-sources/apis.rb +0 -86
  16. data/lib/football-sources/worldfootball/build.rb +0 -245
  17. data/lib/football-sources/worldfootball/config.rb +0 -16
  18. data/lib/football-sources/worldfootball/convert.rb +0 -100
  19. data/lib/football-sources/worldfootball/convert_reports.rb +0 -107
  20. data/lib/football-sources/worldfootball/download.rb +0 -61
  21. data/lib/football-sources/worldfootball/leagues/asia.rb +0 -53
  22. data/lib/football-sources/worldfootball/leagues/europe--british_isles.rb +0 -59
  23. data/lib/football-sources/worldfootball/leagues/europe--central.rb +0 -127
  24. data/lib/football-sources/worldfootball/leagues/europe--eastern.rb +0 -82
  25. data/lib/football-sources/worldfootball/leagues/europe--northern.rb +0 -57
  26. data/lib/football-sources/worldfootball/leagues/europe--southern.rb +0 -86
  27. data/lib/football-sources/worldfootball/leagues/europe--western.rb +0 -38
  28. data/lib/football-sources/worldfootball/leagues/europe.rb +0 -13
  29. data/lib/football-sources/worldfootball/leagues/north_america.rb +0 -44
  30. data/lib/football-sources/worldfootball/leagues/pacific.rb +0 -21
  31. data/lib/football-sources/worldfootball/leagues/south_america.rb +0 -11
  32. data/lib/football-sources/worldfootball/leagues.rb +0 -200
  33. data/lib/football-sources/worldfootball/mods.rb +0 -72
  34. data/lib/football-sources/worldfootball/tool.rb +0 -100
  35. data/lib/football-sources/worldfootball/vacuum.rb +0 -66
  36. data/lib/football-sources/worldfootball.rb +0 -24
  37. data/test/helper.rb +0 -8
  38. data/test/test_version.rb +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0d80d7220f2414773d0547c6aa69d15722d414bb
4
- data.tar.gz: eae20eaed5e9fd9efdb33602cc2f3125b1334797
2
+ SHA256:
3
+ metadata.gz: a9b9787aaaaad173642d6bf3ddd19bb573f8f997eb04dbe2e702dc830144eedb
4
+ data.tar.gz: e2f0e59b5949d9994a4eb01b2ae2ef0deaa959042cb1a98feccf9c009a01ffbd
5
5
  SHA512:
6
- metadata.gz: cd4a9b5dbd4c86bd9ec20bebda0b56979bb6c5ce3d4fddf6fdfb947188b08f7dca68a931baf4bd199ff66f5518f326bc10bde273d43cd2c957c9e40c9f4b4cec
7
- data.tar.gz: d8be6c1a8246cd61f77aa4b63f0b382d9cde0da408c83e0e7626ad34ed9daf567b5735702f05dbbf9a0dd8035baea51f9ff83e67a0cb14dc02e261659781e121
6
+ metadata.gz: b95e6df43a8374cbc66d8e4774443a613de9a35ba8adc9041b496c1ae4f34ba03b55b887ed6f2573cafae37ecf3828490fa15bc0ea5c8b89d1723d6a45030db2
7
+ data.tar.gz: 6674c3799a962cc57405f4cab10cf273bbc856f3268c9f556c02fc5da7541703e205ace4e1b431b417195aeab33a9666d084e0cb3a5dc3e14c0cdac273698e1b
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ### 0.0.1 / 2020-11-09
2
-
3
- * Everything is new. First release.
4
-
1
+ ### 0.1.1
2
+
3
+ ### 0.0.1 / 2020-11-09
4
+
5
+ * Everything is new. First release.
6
+
data/Manifest.txt CHANGED
@@ -3,34 +3,5 @@ Manifest.txt
3
3
  README.md
4
4
  Rakefile
5
5
  lib/football-sources.rb
6
- lib/football-sources/apis.rb
7
- lib/football-sources/apis/config.rb
8
- lib/football-sources/apis/convert.rb
9
- lib/football-sources/apis/convert_cl.rb
10
- lib/football-sources/apis/download.rb
11
- lib/football-sources/apis/stat.rb
12
6
  lib/football-sources/version.rb
13
- lib/football-sources/worldfootball.rb
14
- lib/football-sources/worldfootball/build.rb
15
- lib/football-sources/worldfootball/config.rb
16
- lib/football-sources/worldfootball/convert.rb
17
- lib/football-sources/worldfootball/convert_reports.rb
18
- lib/football-sources/worldfootball/download.rb
19
- lib/football-sources/worldfootball/leagues.rb
20
- lib/football-sources/worldfootball/leagues/asia.rb
21
- lib/football-sources/worldfootball/leagues/europe--british_isles.rb
22
- lib/football-sources/worldfootball/leagues/europe--central.rb
23
- lib/football-sources/worldfootball/leagues/europe--eastern.rb
24
- lib/football-sources/worldfootball/leagues/europe--northern.rb
25
- lib/football-sources/worldfootball/leagues/europe--southern.rb
26
- lib/football-sources/worldfootball/leagues/europe--western.rb
27
- lib/football-sources/worldfootball/leagues/europe.rb
28
- lib/football-sources/worldfootball/leagues/north_america.rb
29
- lib/football-sources/worldfootball/leagues/pacific.rb
30
- lib/football-sources/worldfootball/leagues/south_america.rb
31
- lib/football-sources/worldfootball/mods.rb
32
- lib/football-sources/worldfootball/tool.rb
33
- lib/football-sources/worldfootball/vacuum.rb
34
7
  lib/football/sources.rb
35
- test/helper.rb
36
- test/test_version.rb
data/README.md CHANGED
@@ -1,28 +1,30 @@
1
- # football-sources - get football data via web pages or web api (json) calls
2
-
3
-
4
- * home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
5
- * bugs :: [github.com/sportdb/sport.db/issues](https://github.com/sportdb/sport.db/issues)
6
- * gem :: [rubygems.org/gems/football-sources](https://rubygems.org/gems/football-sources)
7
- * rdoc :: [rubydoc.info/gems/football-sources](http://rubydoc.info/gems/football-sources)
8
- * forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
9
-
10
-
11
- ## Usage
12
-
13
- TBD
14
-
15
-
16
- ## License
17
-
18
- ![](https://publicdomainworks.github.io/buttons/zero88x31.png)
19
-
20
- The `football-sources` scripts are dedicated to the public domain.
21
- Use it as you please with no restrictions whatsoever.
22
-
23
-
24
- ## Questions? Comments?
25
-
26
- Send them along to the
27
- [Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
28
- Thanks!
1
+ # football-sources - get football match data (leagues, cups & more) via web pages or web api (json) calls
2
+
3
+
4
+ * home :: [github.com/sportdb/sport.db](https://github.com/sportdb/sport.db)
5
+ * bugs :: [github.com/sportdb/sport.db/issues](https://github.com/sportdb/sport.db/issues)
6
+ * gem :: [rubygems.org/gems/football-sources](https://rubygems.org/gems/football-sources)
7
+ * rdoc :: [rubydoc.info/gems/football-sources](http://rubydoc.info/gems/football-sources)
8
+ * forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
9
+
10
+
11
+
12
+ ## Usage
13
+
14
+
15
+ To be done.
16
+
17
+
18
+
19
+ ## License
20
+
21
+
22
+ The `football-sources` scripts are dedicated to the public domain.
23
+ Use it as you please with no restrictions whatsoever.
24
+
25
+
26
+
27
+ ## Questions? Comments?
28
+
29
+ Yes, you can. More than welcome.
30
+ See [Help & Support »](https://github.com/openfootball/help)
data/Rakefile CHANGED
@@ -1,31 +1,32 @@
1
- require 'hoe'
2
- require './lib/football-sources/version.rb'
3
-
4
- Hoe.spec 'football-sources' do
5
-
6
- self.version = FootballSources::VERSION
7
-
8
- self.summary = 'football-sources - get football data via web pages or web api (json) calls'
9
- self.description = summary
10
-
11
- self.urls = { home: 'https://github.com/sportdb/sport.db' }
12
-
13
- self.author = 'Gerald Bauer'
14
- self.email = 'opensport@googlegroups.com'
15
-
16
- # switch extension to .markdown for gihub formatting
17
- self.readme_file = 'README.md'
18
- self.history_file = 'CHANGELOG.md'
19
-
20
- self.extra_deps = [
21
- ['webget-football', '>= 0.0.1'],
22
- ['sportdb-catalogs', '>= 1.0.0'],
23
- ]
24
-
25
- self.licenses = ['Public Domain']
26
-
27
- self.spec_extras = {
28
- required_ruby_version: '>= 2.2.2'
29
- }
30
-
31
- end
1
+ require 'hoe'
2
+ require './lib/football-sources/version.rb'
3
+
4
+ Hoe.spec 'football-sources' do
5
+
6
+ self.version = FootballSources::VERSION
7
+
8
+ self.summary = 'football-sources - get football match data (leagues, cups & more) via web pages or web api (json) calls'
9
+ self.description = summary
10
+
11
+
12
+
13
+ self.urls = { home: 'https://github.com/sportdb/sport.db' }
14
+
15
+ self.author = 'Gerald Bauer'
16
+ self.email = 'gerald.bauer@gmail.com'
17
+
18
+ # switch extension to .markdown for gihub formatting
19
+ self.readme_file = 'README.md'
20
+ self.history_file = 'CHANGELOG.md'
21
+
22
+ self.extra_deps = [
23
+ ['sportdb-catalogs'], #, '>= 1.0.0'],
24
+ ]
25
+
26
+ self.licenses = ['Public Domain']
27
+
28
+ self.spec_extras = {
29
+ required_ruby_version: '>= 2.2.2'
30
+ }
31
+
32
+ end
@@ -1,6 +1,6 @@
1
- # note: allow require 'football/sources' too
2
- # (in addition to require 'football-sources')
3
-
4
- require_relative '../football-sources'
5
-
6
-
1
+ # note: allow require 'football/sources' too
2
+ # (in addition to require 'football-sources')
3
+
4
+ require_relative '../football-sources'
5
+
6
+
@@ -1,19 +1,19 @@
1
-
2
- module FootballSources
3
- MAJOR = 0 ## todo: namespace inside version or something - why? why not??
4
- MINOR = 0
5
- PATCH = 1
6
- VERSION = [MAJOR,MINOR,PATCH].join('.')
7
-
8
- def self.version
9
- VERSION
10
- end
11
-
12
- def self.banner
13
- "football-sources/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
14
- end
15
-
16
- def self.root
17
- File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
18
- end
19
- end # module FootballSources
1
+
2
+ module FootballSources
3
+ MAJOR = 0 ## todo: namespace inside version or something - why? why not??
4
+ MINOR = 1
5
+ PATCH = 1
6
+ VERSION = [MAJOR,MINOR,PATCH].join('.')
7
+
8
+ def self.version
9
+ VERSION
10
+ end
11
+
12
+ def self.banner
13
+ "football-sources/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
14
+ end
15
+
16
+ def self.root
17
+ File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
18
+ end
19
+ end # module FootballSources
@@ -1,46 +1,16 @@
1
- require 'webget/football'
2
-
3
-
4
- # require 'sportdb/formats' ## for Season etc.
5
- require 'sportdb/catalogs' ## note: incl. deps csvreader etc.
6
-
7
-
8
-
9
- #############
10
- ## todo/fix: reuse a "original" CsvMatchWriter
11
- ## how? why? why not?
12
- ###############
13
- module Cache
14
- class CsvMatchWriter
15
-
16
- def self.write( path, recs, headers: )
17
-
18
- ## for convenience - make sure parent folders/directories exist
19
- FileUtils.mkdir_p( File.dirname( path )) unless Dir.exist?( File.dirname( path ))
20
-
21
- File.open( path, 'w:utf-8' ) do |f|
22
- f.write headers.join(',') ## e.g. Date,Team 1,FT,HT,Team 2
23
- f.write "\n"
24
- recs.each do |rec|
25
- f.write rec.join(',')
26
- f.write "\n"
27
- end
28
- end
29
- end
30
-
31
- end # class CsvMatchWriter
32
- end # module Cache
33
-
34
-
35
-
36
-
37
- ###
38
- # our own code
39
- require 'football-sources/version' # let version always go first
40
-
41
- require 'football-sources/apis'
42
- require 'football-sources/worldfootball'
43
-
44
-
45
-
46
- puts FootballSources.banner # say hello
1
+
2
+
3
+ # require 'sportdb/formats' ## for Season etc.
4
+ require 'sportdb/catalogs' ## note: incl. deps csvreader etc.
5
+
6
+
7
+
8
+
9
+
10
+
11
+ ###
12
+ # our own code
13
+ require_relative 'football-sources/version' # let version always go first
14
+
15
+
16
+ puts FootballSources.banner # say hello
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: football-sources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.1
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: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: webget-football
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.0.1
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 0.0.1
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: sportdb-catalogs
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
32
18
  - !ruby/object:Gem::Version
33
- version: 1.0.0
19
+ version: '0'
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - ">="
39
25
  - !ruby/object:Gem::Version
40
- version: 1.0.0
26
+ version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rdoc
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,17 +50,17 @@ dependencies:
64
50
  requirements:
65
51
  - - "~>"
66
52
  - !ruby/object:Gem::Version
67
- version: '3.22'
53
+ version: '4.1'
68
54
  type: :development
69
55
  prerelease: false
70
56
  version_requirements: !ruby/object:Gem::Requirement
71
57
  requirements:
72
58
  - - "~>"
73
59
  - !ruby/object:Gem::Version
74
- version: '3.22'
75
- description: football-sources - get football data via web pages or web api (json)
76
- calls
77
- email: opensport@googlegroups.com
60
+ version: '4.1'
61
+ description: football-sources - get football match data (leagues, cups & more) via
62
+ web pages or web api (json) calls
63
+ email: gerald.bauer@gmail.com
78
64
  executables: []
79
65
  extensions: []
80
66
  extra_rdoc_files:
@@ -87,42 +73,13 @@ files:
87
73
  - README.md
88
74
  - Rakefile
89
75
  - lib/football-sources.rb
90
- - lib/football-sources/apis.rb
91
- - lib/football-sources/apis/config.rb
92
- - lib/football-sources/apis/convert.rb
93
- - lib/football-sources/apis/convert_cl.rb
94
- - lib/football-sources/apis/download.rb
95
- - lib/football-sources/apis/stat.rb
96
76
  - lib/football-sources/version.rb
97
- - lib/football-sources/worldfootball.rb
98
- - lib/football-sources/worldfootball/build.rb
99
- - lib/football-sources/worldfootball/config.rb
100
- - lib/football-sources/worldfootball/convert.rb
101
- - lib/football-sources/worldfootball/convert_reports.rb
102
- - lib/football-sources/worldfootball/download.rb
103
- - lib/football-sources/worldfootball/leagues.rb
104
- - lib/football-sources/worldfootball/leagues/asia.rb
105
- - lib/football-sources/worldfootball/leagues/europe--british_isles.rb
106
- - lib/football-sources/worldfootball/leagues/europe--central.rb
107
- - lib/football-sources/worldfootball/leagues/europe--eastern.rb
108
- - lib/football-sources/worldfootball/leagues/europe--northern.rb
109
- - lib/football-sources/worldfootball/leagues/europe--southern.rb
110
- - lib/football-sources/worldfootball/leagues/europe--western.rb
111
- - lib/football-sources/worldfootball/leagues/europe.rb
112
- - lib/football-sources/worldfootball/leagues/north_america.rb
113
- - lib/football-sources/worldfootball/leagues/pacific.rb
114
- - lib/football-sources/worldfootball/leagues/south_america.rb
115
- - lib/football-sources/worldfootball/mods.rb
116
- - lib/football-sources/worldfootball/tool.rb
117
- - lib/football-sources/worldfootball/vacuum.rb
118
77
  - lib/football/sources.rb
119
- - test/helper.rb
120
- - test/test_version.rb
121
78
  homepage: https://github.com/sportdb/sport.db
122
79
  licenses:
123
80
  - Public Domain
124
81
  metadata: {}
125
- post_install_message:
82
+ post_install_message:
126
83
  rdoc_options:
127
84
  - "--main"
128
85
  - README.md
@@ -139,9 +96,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
96
  - !ruby/object:Gem::Version
140
97
  version: '0'
141
98
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.5.2
144
- signing_key:
99
+ rubygems_version: 3.4.10
100
+ signing_key:
145
101
  specification_version: 4
146
- summary: football-sources - get football data via web pages or web api (json) calls
102
+ summary: football-sources - get football match data (leagues, cups & more) via web
103
+ pages or web api (json) calls
147
104
  test_files: []
@@ -1,17 +0,0 @@
1
-
2
- module Footballdata
3
-
4
- ### add some more config options / settings
5
- class Configuration
6
- #########
7
- ## nested configuration classes - use - why? why not?
8
- class Convert
9
- def out_dir() @out_dir || './o'; end
10
- def out_dir=(value) @out_dir = value; end
11
- end
12
-
13
- def convert() @convert ||= Convert.new; end
14
- end # class Configuration
15
-
16
-
17
- end # module Footballdata