sportdb-readers 2.1.1 → 2.2.0

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
  SHA256:
3
- metadata.gz: 8b8a59dbab5255cf06addb3d061e308969d39f8a9a90106ee59006630bee4463
4
- data.tar.gz: 0e212bead4a0e408c639ad7e2a14a76c820a6822065c4c50bfa97f656513a3c1
3
+ metadata.gz: 5e288d917f0333c7d12ae67eac1c8f16eeb6499cb40b9b4d6e40b45d3e617dc1
4
+ data.tar.gz: 1eb4d7e7cbf14e67141edc1043cf64cb2f3bb77fdaf1532f4f7017e95df2adaf
5
5
  SHA512:
6
- metadata.gz: 8f23bbac50bd681fef79202831ad0094c88491abfc27c9f9ad3b7be00b090cbeb0f1045b1b9bfef4281a1e79e554e3e116e1a7d0984dbe7c9112110309fe381e
7
- data.tar.gz: f38162e554d9760bbaeb024724a842a907d57fb48ceaba727c539e7c1e08f843cd1c82e005d858912fa1e93d602352d4cdd934227312c96acacdf86a335fc08a
6
+ metadata.gz: 1ad5a423fb07514b374aae88cb7e858446ed75131c1aa9530b4037e521c3a8b3be9b7746cc3a13cb1010e1fa76f002f8b968858145ee593cb53f90eff28e3ef0
7
+ data.tar.gz: 19d85196f34037b618d1bbb560cc5f2b42cc4d2d006f60b7428d7bb1d72b4dc770f7c9ae2ac0f86d01eea307d36eb80bf5e4ae0511df8c5f55692c4b306e3f2c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 2.1.1
1
+ ### 2.2.0
2
2
 
3
3
  ### 0.0.1 / 2019-10-29
4
4
 
@@ -9,16 +9,6 @@ module SportDb
9
9
  class MatchReader ## todo/check: rename to MatchReaderV2 (use plural?) why? why not?
10
10
 
11
11
 
12
- ### fix - remove catalog reference!!!
13
- ## use classes with "augmented" static methods
14
- ## e.g. Club.match_by etc.
15
- def catalog
16
- puts "[deprecated] do NOT use catalog reference; use classes with enhanced search static methods!"
17
- Import.catalog
18
- end
19
-
20
-
21
-
22
12
  def self.read( path, season: nil ) ## use - rename to read_file or from_file etc. - why? why not?
23
13
  txt = File.open( path, 'r:utf-8' ) {|f| f.read }
24
14
  parse( txt, season: season )
@@ -73,8 +63,8 @@ class MatchReader ## todo/check: rename to MatchReaderV2 (use plural?) why? w
73
63
 
74
64
  ### check if event info available - use start_date;
75
65
  ## otherwise we have to guess (use a "synthetic" start_date)
76
- event_info = catalog.events.find_by( season: season,
77
- league: league )
66
+ event_info = Import::EventInfo.find_by( season: season,
67
+ league: league )
78
68
 
79
69
  start = if event_info && event_info.start_date
80
70
  puts "event info found:"
@@ -116,8 +106,8 @@ class MatchReader ## todo/check: rename to MatchReaderV2 (use plural?) why? w
116
106
  puts "league:"
117
107
  pp league
118
108
 
119
- teams = catalog.teams.find_by!( name: auto_conf_teams,
120
- league: league )
109
+ teams = Import::Team.find_by!( name: auto_conf_teams,
110
+ league: league )
121
111
 
122
112
  puts " [debug] teams:"
123
113
  pp teams
@@ -4,8 +4,8 @@ module SportDb
4
4
  module Module
5
5
  module Readers
6
6
  MAJOR = 2 ## todo: namespace inside version or something - why? why not??
7
- MINOR = 1
8
- PATCH = 1
7
+ MINOR = 2
8
+ PATCH = 0
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb-readers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer