sportdb-config 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sportdb/config/config.rb +10 -0
- data/lib/sportdb/config/version.rb +1 -1
- data/test/helper.rb +3 -0
- data/test/test_clubs.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f6537ca02571da4f1e429f3d4d2454097fda8c
|
4
|
+
data.tar.gz: b6135751ae7890b58dce9b5b367ac5a5a943ddc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e896c77e205beaa15ba43190d03f3b2da044ce2686d471b87afd5a21bf7f8b9feef354e46ddde9738f1f288be3734fd35df9087cf2f6102f4b0ff9bdfe0eeab3
|
7
|
+
data.tar.gz: 15ebeac9008cce8f1dcffc27d7ef765075151cbd29ff61dc88901dd120f5ebeb6427324bf73f503a9831b7d32fef4cf58d4f954db3add33d9f2212b7fa67c17d
|
@@ -6,6 +6,16 @@ module SportDb
|
|
6
6
|
|
7
7
|
class Configuration
|
8
8
|
|
9
|
+
####
|
10
|
+
# todo/fix: find a better way to configure shared test datasets
|
11
|
+
attr_accessor :test_data_dir ## todo/check: use test_dir - why? why not?
|
12
|
+
def test_data_dir() @test_data_dir ||= './datasets'; end
|
13
|
+
|
14
|
+
|
15
|
+
##
|
16
|
+
## todo: allow configure of countries_dir like clubs_dir
|
17
|
+
## "fallback" and use a default built-in world/countries.txt
|
18
|
+
|
9
19
|
## todo/check: rename to country_mappings/index - why? why not?
|
10
20
|
## or countries_by_code or countries_by_key
|
11
21
|
def countries
|
data/test/helper.rb
CHANGED
data/test/test_clubs.rb
CHANGED
@@ -10,9 +10,6 @@ require 'helper'
|
|
10
10
|
class TestClubs < MiniTest::Test
|
11
11
|
|
12
12
|
def test_clubs
|
13
|
-
## todo/check: move config.clubs_dir to test/helper for global setting - why? why not?
|
14
|
-
SportDb::Import.config.clubs_dir = '../../../openfootball/clubs'
|
15
|
-
|
16
13
|
pp SportDb::Import.config.clubs.errors
|
17
14
|
|
18
15
|
SportDb::Import.config.clubs.dump_duplicates
|