footballdata-12xpert 0.1.0 → 0.1.1

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: 96ce5cd82665871ff21e654619be6cd0c43c8b68
4
- data.tar.gz: 6153b37d95190031bff57618554ddd3c973ac046
3
+ metadata.gz: 1159d642e1efff89c0a5e6fdcc5356924daa50df
4
+ data.tar.gz: 179f325134a0ead0914553842910c2149d9e5269
5
5
  SHA512:
6
- metadata.gz: cae4688ec1b1a30115ba30d701ba1716abfeacd32c8421dae2db475a2dc30f484f0dce96348c610da3c1e98a37f8805ea2be2f6ba4e4944b13773942b574821d
7
- data.tar.gz: b11525344e6255c87b41758f6eb5d47f350a17545b2bac950684ce4031eb9fd2aef177f9e1952f0a54e24fd91747f2b830b6d622d9f629455a78f1553cfd4ccc
6
+ metadata.gz: d7b135de85187c8b976af46a04163d588d08e9d941d7c5dfcf3e9e8916073a49aea4f64e39f5771e80e79091e7bc8826085f53d27d5bbb98df72c3ba5f45bd7a
7
+ data.tar.gz: b586291f34e13d29be838fe913fac53461ae34e322980b3d0a77e7db8fb435f7e22ed6988ee3b7a7a407b8683eb67be714fb1b23cea39719074e59dbf6a65218
data/README.md CHANGED
@@ -421,9 +421,9 @@ liverpool = Team.find_by( name: 'Liverpool FC' )
421
421
  puts liverpool.matches.count #=> 1025
422
422
 
423
423
  m = liverpool.matches.first
424
- puts m.team1.title #=> Liverpool FC
425
- puts m.team2.title #=> Sheffield Wednesday FC
426
- puts m.score_str #=> 2 - 0
424
+ puts m.team1.name #=> Liverpool FC
425
+ puts m.team2.name #=> Sheffield Wednesday FC
426
+ puts m.score_str #=> 2 - 0
427
427
 
428
428
 
429
429
  ## Let's try the English Premier League 2019/20
@@ -433,9 +433,9 @@ pl = Event.find_by( key: 'eng.1.2019/20' )
433
433
  puts pl.matches.count #=> 288
434
434
 
435
435
  m = pl.matches.first
436
- puts m.team1.title #=> Liverpool FC
437
- puts m.team2.title #=> Norwich City FC
438
- puts m.score_str #=> 4 - 1
436
+ puts m.team1.name #=> Liverpool FC
437
+ puts m.team2.name #=> Norwich City FC
438
+ puts m.score_str #=> 4 - 1
439
439
 
440
440
  # and so on
441
441
  ```
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Hoe.spec 'footballdata-12xpert' do
22
22
  self.extra_deps = [
23
23
  ['webget', '>= 0.2.1'],
24
24
  ['footballdb-clubs', '>= 2020.9.15'],
25
- ['sportdb-importers', '>= 1.1.1'],
25
+ ['sportdb-importers', '>= 1.2.0'],
26
26
  ]
27
27
 
28
28
  self.spec_extras = {
@@ -7,14 +7,16 @@ def self.import( *country_keys, start: nil )
7
7
 
8
8
  ## fix/todo: filter by country keys and start sesason to be (re)done
9
9
 
10
- ## todo/fix: use/add normalize: true option!!!!!
10
+ ## todo/fix: use/add normalize: true option - why? why not?
11
+ ## - teams get auto-mapped anyway - not needed for import!!!!!
11
12
 
12
- dir = File.expand_path( config.convert.out_dir )
13
- puts " dir: >#{dir}<"
13
+ path = File.expand_path( config.convert.out_dir )
14
+ puts " path: >#{path}<"
14
15
 
15
- # SportDb.read_csv( dir )
16
- ## todo/fix: use SportDb Csv Package or such???
17
- puts "import to be (re)done; sorry"
16
+ pack = SportDb::DirPackage.new( path )
17
+ pack.read_csv( start: start )
18
+
19
+ ## puts "import to be (re)done; sorry"
18
20
  end # method import
19
21
 
20
22
 
@@ -4,7 +4,7 @@ module Footballdata12xpert
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footballdata-12xpert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-12 00:00:00.000000000 Z
11
+ date: 2020-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webget
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.1.1
47
+ version: 1.2.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.1.1
54
+ version: 1.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement