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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b96366c57a674d8504918759864f3b2d77242ab1
4
- data.tar.gz: 867a992ef3dd1b31b5e360e0b2b80b123a2abff3
3
+ metadata.gz: 04f6537ca02571da4f1e429f3d4d2454097fda8c
4
+ data.tar.gz: b6135751ae7890b58dce9b5b367ac5a5a943ddc3
5
5
  SHA512:
6
- metadata.gz: 0c5197829655457ac0b38a8d995e611804f3e385cf25b78f0a4c4e83c68fececfed3d16c4b51201c6f4f0d8f29f9189e629dc20a30a602f4f534c46bc6eaf2ea
7
- data.tar.gz: 676a5a68e7827b9c34c7d9b07ed9d5ab7894bff4514841f98fbf989c29049f17d44968b3032bbf3a00bc273f7917a572460f632b6aea4e6b404385cdd10bde89
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
@@ -8,7 +8,7 @@ module Boot ## note: use a different module than Config to avoid confusion
8
8
 
9
9
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
10
10
  MINOR = 3
11
- PATCH = 5
11
+ PATCH = 6
12
12
  VERSION = [MAJOR,MINOR,PATCH].join('.')
13
13
 
14
14
  def self.version
data/test/helper.rb CHANGED
@@ -8,3 +8,6 @@ require 'minitest/autorun'
8
8
  ## our own code
9
9
 
10
10
  require 'sportdb/config'
11
+
12
+
13
+ SportDb::Import.config.clubs_dir = '../../../openfootball/clubs'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer