sportdb-readers 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sportdb/readers/match_reader.rb +5 -0
- data/lib/sportdb/readers/package.rb +3 -0
- data/lib/sportdb/readers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24736517779207221fc8338fba89b44957ead51a
|
4
|
+
data.tar.gz: 042423fce1e8e5ce347ec3695fdb72d693ca131d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7a65e6a2cdba8a1a1d96c51b22b1ee1b59d096a7a93f6f194f036e06a8ca097ffab0c3a3d2a6ac879425a0d3c0ddb663fe94f4494e74b9fa420aee93543e79
|
7
|
+
data.tar.gz: 8209d0c8aca8c2fd0779d29dcf1a1f03e9999bf0d35a731e707c16ba324e5907d58975e60deef21299c5e8a4cd2ce0c3e663bc0234f31589612978384e66694b
|
@@ -72,6 +72,8 @@ class MatchReaderV2 ## todo/check: rename to MatchReaderV2 (use plural?) why?
|
|
72
72
|
|
73
73
|
|
74
74
|
if auto_conf_clubs
|
75
|
+
pp auto_conf_clubs
|
76
|
+
|
75
77
|
## step 1: map/find clubs
|
76
78
|
club_recs = []
|
77
79
|
## note: loop over keys (holding the names); values hold the usage counter!! e.g. 'Arsenal' => 2, etc.
|
@@ -81,6 +83,9 @@ class MatchReaderV2 ## todo/check: rename to MatchReaderV2 (use plural?) why?
|
|
81
83
|
club_recs << club_rec
|
82
84
|
end
|
83
85
|
|
86
|
+
## todo/fix: check if all clubs are unique
|
87
|
+
|
88
|
+
|
84
89
|
## step 2: add to database
|
85
90
|
club_recs.each do |club_rec|
|
86
91
|
club = Sync::Club.find_or_create( club_rec )
|
@@ -13,6 +13,9 @@ module SportDb
|
|
13
13
|
/[a-z0-9_-]+\.txt$ ## txt e.g /1-premierleague.txt
|
14
14
|
}x
|
15
15
|
|
16
|
+
|
17
|
+
attr_reader :pack ## allow access to embedded ("low-level") delegate package
|
18
|
+
|
16
19
|
def initialize( path_or_pack )
|
17
20
|
if path_or_pack.is_a?( Datafile::Package )
|
18
21
|
@pack = path_or_pack
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportdb-readers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sportdb-config
|