datafile 0.2.4 → 0.2.5

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: f9f0a43352a4989c9765d93fe542af5da3cbda95
4
- data.tar.gz: c820968abf2f69166d53769bd751fd4148ea69b8
3
+ metadata.gz: cf81810d2af02c7ccd64d4e103dc912737d1d585
4
+ data.tar.gz: 7d1b6dac27a44fce550bd203ed76cb6a6df1e32d
5
5
  SHA512:
6
- metadata.gz: faa87526560edf1e71ea81f6bcef56ed69cae4a817feaedaa61d9245161f9c5aa9099659d2533b605db5c24e0248d3b3fe1ab22b976a916fb626505a12b568f7
7
- data.tar.gz: 24e5c266da7b42fa76248c4f0a2e7e0b566117fd834ed299273602045fa688d55dbdcb82f9046b08af294e8bcf7134a8ea6588f061596441d80839889597d9db
6
+ metadata.gz: e43a593bc7dfebf016aff5c382f3032664988c672a7950d887dc4f901998754e1a384aa41d86e2d88b0cdc63caed1f957d59f6aafefa92659ab15f91028e8a61
7
+ data.tar.gz: bd225c4c8daa8261151e0568a77b3930fc9335089d22b0bd1d1325cbcfcadf8bb535d617768c933f58165cabd69524b0462e61db0a14282667eed7442c348ebb
@@ -18,6 +18,20 @@ class Builder ## "simple" builder (one file, one datafile)
18
18
 
19
19
  include LogUtils::Logging
20
20
 
21
+ ## add models shortcuts/constants if exist
22
+ ## todo/check: is there a better way ?
23
+ ## e.g. just include in inline section/block - for example?
24
+ ## check if already included? and check on load to include?
25
+ ## models might not yet be required
26
+
27
+ if defined?( WorldDb ) && defined?( WorldDb::Models )
28
+ include WorldDb::Models
29
+ else
30
+ puts "*** sorry; can't include WorldDb::Models; not yet defined (required)"
31
+ end
32
+ ## todo/check: also include FootballDb::Models and BeerDb::Models ???
33
+
34
+
21
35
  def initialize
22
36
  @datafile = Datafile.new
23
37
  end
@@ -4,7 +4,7 @@ module Datafile
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 2
7
- PATCH = 4
7
+ PATCH = 5
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datafile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer