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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d00cca5fea7e84fd30f67fc79ecf764ce1e900c0
4
- data.tar.gz: 8a10004745355d8aeaa98ba4d765a05e17a812ba
3
+ metadata.gz: 24736517779207221fc8338fba89b44957ead51a
4
+ data.tar.gz: 042423fce1e8e5ce347ec3695fdb72d693ca131d
5
5
  SHA512:
6
- metadata.gz: f654094b67436cce1f8931416ca088b263ef1e6e410e1252ef255938ada337449d960300d258adcbe5604af5194339413d008dd7aad6782b12c0c049548e88cf
7
- data.tar.gz: 2b7382754ead0df285a33b7fa7f7993fdbfe93dea386c013ad7c81ded6282a0b2382c9becf93fe7e91f15998cb4b46df59120dcd340a82d742e81412ebe60b0e
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
@@ -6,7 +6,7 @@ module Readers
6
6
 
7
7
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
8
8
  MINOR = 4
9
- PATCH = 4
9
+ PATCH = 5
10
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
11
11
 
12
12
  def self.version
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
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-01 00:00:00.000000000 Z
11
+ date: 2019-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sportdb-config