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 +4 -4
- data/Manifest.txt +1 -1
- data/lib/sportdb/models.rb +4 -14
- data/lib/sportdb/models/{team_comp.rb → team_compat.rb} +0 -0
- data/lib/sportdb/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5258897a8a71e16ced1220fddb4470b5d73a5e0b
|
4
|
+
data.tar.gz: 8982925f7b74755d927096b02f93835e23135b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
data/lib/sportdb/models.rb
CHANGED
@@ -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/
|
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(
|
186
|
+
def self.connect( config={} )
|
195
187
|
|
196
|
-
if
|
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
|
data/lib/sportdb/version.rb
CHANGED
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.
|
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-
|
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/
|
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
|