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 +4 -4
- data/README.md +6 -6
- data/Rakefile +1 -1
- data/lib/footballdata-12xpert/import.rb +8 -6
- data/lib/footballdata-12xpert/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1159d642e1efff89c0a5e6fdcc5356924daa50df
|
4
|
+
data.tar.gz: 179f325134a0ead0914553842910c2149d9e5269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
425
|
-
puts m.team2.
|
426
|
-
puts m.score_str
|
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.
|
437
|
-
puts m.team2.
|
438
|
-
puts m.score_str
|
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
@@ -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
|
-
|
13
|
-
puts "
|
13
|
+
path = File.expand_path( config.convert.out_dir )
|
14
|
+
puts " path: >#{path}<"
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
|
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.
|
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-
|
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.
|
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.
|
54
|
+
version: 1.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rdoc
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|