football-to-sqlite 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb6f117b1afa6ec60f93af0c69e36e295ffaa625
4
- data.tar.gz: 8c0d21e035208b96f748c7095450b1a90d31ba1e
3
+ metadata.gz: b1d168aac5c52d15d5d8a56db532d0f442f831c1
4
+ data.tar.gz: bd4761f24c46eec938b66ede4d2cffbcfaa07f48
5
5
  SHA512:
6
- metadata.gz: 3957556be8ed234284b402177c2b1c7c8c84cb56e30afad1ec7b9c7906b33b3fa83dcbdc464474ec8636cec57918a0dcdbd64f94fe86dc80a36836302125f6c9
7
- data.tar.gz: baadc2d7480f698b752bcc9b471fa2edffb52ea2e7f59cdcbd25ca241e785f9f34f6c17f2e4f2d7b699a2026d18cf46500073fa43f84867612c44bdf5dab6e1a
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
- to be done
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'}
@@ -1,11 +1,10 @@
1
-
2
1
  module SportDb
3
2
  module Module
4
3
  module FootballToSqlite
5
4
 
6
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
7
6
  MINOR = 2
8
- PATCH = 1
7
+ PATCH = 2
9
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
9
 
11
10
  def self.version
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.1
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 database
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: []