football-to-sqlite 0.2.1 → 0.2.2
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 +4 -4
- data/README.md +63 -2
- data/Rakefile +1 -1
- data/lib/football-to-sqlite/version.rb +1 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d168aac5c52d15d5d8a56db532d0f442f831c1
|
4
|
+
data.tar.gz: bd4761f24c46eec938b66ede4d2cffbcfaa07f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf5a45cde81c24b603b778b20b5e6cd1b51a584a1bc312664781a9afa16f16b72331abfa29a32af71448f9fba586ab365d7b1047f1201d861aac6ae7b6f3041
|
7
|
+
data.tar.gz: 7a14b1ffef15f448ece8f1ca2e54727efa55e86200cf335471b9fdeb172ea628a967b2891bcb171fb3832c5e3d30a6ecd1d7070bfaf421c84937bbdac885d97d
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# football-to-sqlite - load football.txt datafiles into a sqlite database
|
1
|
+
# football-to-sqlite - load / read football.txt datafiles into a sqlite database
|
2
2
|
|
3
3
|
|
4
4
|
* home :: [github.com/sportdb/football.db](https://github.com/sportdb/football.db)
|
@@ -8,9 +8,70 @@
|
|
8
8
|
* forum :: [opensport](http://groups.google.com/group/opensport)
|
9
9
|
|
10
10
|
|
11
|
+
|
11
12
|
## Usage
|
12
13
|
|
13
|
-
|
14
|
+
|
15
|
+
Run this tool against match files in the Football.TXT format like so:
|
16
|
+
|
17
|
+
```
|
18
|
+
$ football-to-sqlite england.db 2020-21\1-premierleague.txt
|
19
|
+
```
|
20
|
+
|
21
|
+
or pass in more than one match file:
|
22
|
+
|
23
|
+
```
|
24
|
+
$ football-to-sqlite england.db 2020-21\1-premierleague.txt \
|
25
|
+
2020-21\2-championship.txt \
|
26
|
+
2020-21\3-league1.txt \
|
27
|
+
2020-21\4-league2.txt \
|
28
|
+
2020-21\5-nationalleague.txt
|
29
|
+
```
|
30
|
+
|
31
|
+
|
32
|
+
Note: If the single-file SQLite database (and its tables, views & indices) do not (yet) exist, they get auto-created on the first run.
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
**Pipes & Standard Input (STDIN)**
|
37
|
+
|
38
|
+
You can use any command line tool to download match files and pipe (via stdin) into the this tool like so:
|
39
|
+
|
40
|
+
```
|
41
|
+
$ curl https://raw.githubusercontent.com/openfootball/world-cup/master/2018--russia/cup.txt | worldcup.db
|
42
|
+
```
|
43
|
+
|
44
|
+
That's it for now.
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
## Limitations
|
50
|
+
|
51
|
+
Note: For now you CANNOT update match files, that is,
|
52
|
+
if you try to add the same match twice (assuming with updated scores or such), the match reader will fail for now.
|
53
|
+
The workaround for now is to always re-create/re-build your database from zero / scratch.
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
## Datasets
|
58
|
+
|
59
|
+
For some open public domain Football.TXT datasets to get started, see the [open football org](https://github.com/openfootball).
|
60
|
+
|
61
|
+
|
62
|
+
Add your datasets here!
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
## Installation
|
67
|
+
|
68
|
+
Use
|
69
|
+
|
70
|
+
gem install football-to-sqlite
|
71
|
+
|
72
|
+
or add the gem to your Gemfile
|
73
|
+
|
74
|
+
gem 'football-to-sqlite'
|
14
75
|
|
15
76
|
|
16
77
|
## License
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ Hoe.spec 'football-to-sqlite' do
|
|
6
6
|
|
7
7
|
self.version = SportDb::Module::FootballToSqlite::VERSION
|
8
8
|
|
9
|
-
self.summary = 'football-to-sqlite - load football.txt datafiles into a sqlite database'
|
9
|
+
self.summary = 'football-to-sqlite - load / read football.txt datafiles into a sqlite database'
|
10
10
|
self.description = summary
|
11
11
|
|
12
12
|
self.urls = { home: 'https://github.com/sportdb/football.db'}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: football-to-sqlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
@@ -72,7 +72,8 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '3.22'
|
75
|
-
description: football-to-sqlite - load football.txt datafiles into a sqlite
|
75
|
+
description: football-to-sqlite - load / read football.txt datafiles into a sqlite
|
76
|
+
database
|
76
77
|
email: opensport@googlegroups.com
|
77
78
|
executables:
|
78
79
|
- football-to-sqlite
|
@@ -118,5 +119,5 @@ rubyforge_project:
|
|
118
119
|
rubygems_version: 2.5.2
|
119
120
|
signing_key:
|
120
121
|
specification_version: 4
|
121
|
-
summary: football-to-sqlite - load football.txt datafiles into a sqlite database
|
122
|
+
summary: football-to-sqlite - load / read football.txt datafiles into a sqlite database
|
122
123
|
test_files: []
|