sportdb-models 1.10.1 → 1.11.0

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: 257f97e3c38af3e3a4d3d41851dedd0f6bb7e5c8
4
- data.tar.gz: a9f044b9e8706d349cfd80e20eb1d4ca04efe7b6
3
+ metadata.gz: 5258897a8a71e16ced1220fddb4470b5d73a5e0b
4
+ data.tar.gz: 8982925f7b74755d927096b02f93835e23135b9f
5
5
  SHA512:
6
- metadata.gz: 4f16e0f554a814dca5891a54867da101d9f8213a678cffbe63b5061cdfd159312dc0004d7e2627739bbf98fe8bb26a02ec401c74f89ac1607384e90df2fb3f7c
7
- data.tar.gz: a070f273fa582bdec04687cfce2c1c0fb087894bd6d5c7f67723b5e47a3304c50de62b14dde90b0f5b41232a8d6bf5747d4644f8c9be40e6e1efbcee5b7a8ebf
6
+ metadata.gz: 820041cef98f13217baca43c9f13f34c4697cbbbfb81a132b27857e1ba5abe197a38a1201ab7f27542bef98bfb89a21587aa0deef108a5b6d72c29014ba869b9
7
+ data.tar.gz: 5f2ae08c01e837b5878604118ba9b2c188b3d7ae6ba67cf1ff8ad3b450f9542fc263027eb233a0057c01583b82329738932736a8da41bffee1562afcbd7bb9ca
data/Manifest.txt CHANGED
@@ -43,7 +43,7 @@ lib/sportdb/models/stats/event_standing_entry.rb
43
43
  lib/sportdb/models/stats/group_standing.rb
44
44
  lib/sportdb/models/stats/group_standing_entry.rb
45
45
  lib/sportdb/models/team.rb
46
- lib/sportdb/models/team_comp.rb
46
+ lib/sportdb/models/team_compat.rb
47
47
  lib/sportdb/models/utils.rb
48
48
  lib/sportdb/models/world/city.rb
49
49
  lib/sportdb/models/world/continent.rb
@@ -5,11 +5,7 @@
5
5
 
6
6
 
7
7
  require 'worlddb/models' # NOTE: include worlddb-models gem (not cli tools gem, that is, worlddb)
8
- require 'persondb'
9
-
10
-
11
- ## todo: check if already included in worlddb ???
12
- ## require 'fetcher' # for fetching/downloading fixtures via HTTP/HTTPS etc.
8
+ require 'persondb/models'
13
9
 
14
10
 
15
11
  # our own code
@@ -39,7 +35,7 @@ require 'sportdb/models/roster'
39
35
  require 'sportdb/models/round'
40
36
  require 'sportdb/models/season'
41
37
  require 'sportdb/models/team'
42
- require 'sportdb/models/team_comp'
38
+ require 'sportdb/models/team_compat' ### fix/todo: move to compat gem !!!!!
43
39
 
44
40
 
45
41
  require 'sportdb/models/stats/alltime_standing'
@@ -182,18 +178,14 @@ module SportDb
182
178
  end
183
179
 
184
180
 
185
- def self.stats
186
- Stats.new.tables # NOTE: same as tables (remove??? why? why not??)
187
- end
188
-
189
181
  def self.tables
190
182
  Stats.new.tables
191
183
  end
192
184
 
193
185
 
194
- def self.connect( db_config={} )
186
+ def self.connect( config={} )
195
187
 
196
- if db_config.empty?
188
+ if config.empty?
197
189
  puts "ENV['DATBASE_URL'] - >#{ENV['DATABASE_URL']}<"
198
190
 
199
191
  ### change default to ./sport.db ?? why? why not?
@@ -215,8 +207,6 @@ module SportDb
215
207
  database: db.path[1..-1] # sport.db (NB: cut off leading /, thus 1..-1)
216
208
  }
217
209
  end
218
- else
219
- config = db_config # use passed in config hash
220
210
  end
221
211
 
222
212
  ## todo/check: use if defined?( JRUBY_VERSION ) instead ??
File without changes
@@ -3,8 +3,8 @@
3
3
  module SportDb
4
4
 
5
5
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
6
- MINOR = 10
7
- PATCH = 1
6
+ MINOR = 11
7
+ PATCH = 0
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: sportdb-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-06 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: worlddb-models
@@ -121,7 +121,7 @@ files:
121
121
  - lib/sportdb/models/stats/group_standing.rb
122
122
  - lib/sportdb/models/stats/group_standing_entry.rb
123
123
  - lib/sportdb/models/team.rb
124
- - lib/sportdb/models/team_comp.rb
124
+ - lib/sportdb/models/team_compat.rb
125
125
  - lib/sportdb/models/utils.rb
126
126
  - lib/sportdb/models/world/city.rb
127
127
  - lib/sportdb/models/world/continent.rb