sportdb-models 1.11.0 → 1.11.1

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: 5258897a8a71e16ced1220fddb4470b5d73a5e0b
4
- data.tar.gz: 8982925f7b74755d927096b02f93835e23135b9f
3
+ metadata.gz: 0affaf2a49747b220279b102590e4ef7c32e6ae6
4
+ data.tar.gz: 0d4c5930bf8e8840382db68b7632024d7b43498e
5
5
  SHA512:
6
- metadata.gz: 820041cef98f13217baca43c9f13f34c4697cbbbfb81a132b27857e1ba5abe197a38a1201ab7f27542bef98bfb89a21587aa0deef108a5b6d72c29014ba869b9
7
- data.tar.gz: 5f2ae08c01e837b5878604118ba9b2c188b3d7ae6ba67cf1ff8ad3b450f9542fc263027eb233a0057c01583b82329738932736a8da41bffee1562afcbd7bb9ca
6
+ metadata.gz: 606269936129a868ab143454e76b4d8dc3d69357586499691fbc2a077146c754ae76fc31065fec39a4b9d293ee2898e32414d1bbb64d2171ec0fbd76900902ef
7
+ data.tar.gz: 20a6a81b5378514d880d6c402e0a58f0a8ee5b63a9526c7443c343f0ec6374c60a37e1e0cf7639098ac41492d7824916d9a00536b80367224c29001179242adf
data/README.md CHANGED
@@ -13,6 +13,7 @@
13
13
 
14
14
  ## Usage Models
15
15
 
16
+ ![](sportdb-models.png)
16
17
 
17
18
 
18
19
  ## License
@@ -222,6 +222,15 @@ module SportDb
222
222
  pp config
223
223
  ActiveRecord::Base.establish_connection( config )
224
224
  # ActiveRecord::Base.logger = Logger.new( STDOUT )
225
+
226
+ ## if sqlite3 add (use) some pragmas for speedups
227
+ if config[:adapter] == 'sqlite3'
228
+ ## check/todo: if in memory e.g. ':memory:' no pragma needed!!
229
+ con = ActiveRecord::Base.connection
230
+ con.execute( 'PRAGMA synchronous=OFF;' )
231
+ con.execute( 'PRAGMA journal_mode=OFF;' )
232
+ con.execute( 'PRAGMA temp_store=MEMORY;' )
233
+ end
225
234
  end
226
235
 
227
236
 
@@ -246,4 +255,4 @@ end # module SportDb
246
255
 
247
256
 
248
257
  ## say hello
249
- puts SportDb.banner if $DEBUG || (defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG)
258
+ puts SportDb.banner if defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG
@@ -41,7 +41,7 @@ class AssocReader
41
41
  end
42
42
 
43
43
 
44
- def read()
44
+ def read
45
45
  reader = ValuesReader.from_string( @text, @more_attribs )
46
46
 
47
47
  reader.each_line do |new_attributes, values|
@@ -53,7 +53,7 @@ class EventReader
53
53
  end
54
54
 
55
55
 
56
- def read()
56
+ def read
57
57
  @fixtures = [] # reset cached fixtures
58
58
  @event = nil # reset cached event rec
59
59
 
@@ -121,7 +121,7 @@ class GameReader
121
121
  end
122
122
 
123
123
 
124
- def read()
124
+ def read
125
125
  if @text_or_text_ary.is_a?( String )
126
126
  text_ary = [@text_or_text_ary]
127
127
  else
@@ -40,7 +40,7 @@ class GroundReader
40
40
  end
41
41
 
42
42
 
43
- def read( name, more_attribs={} )
43
+ def read
44
44
  reader = ValuesReader.from_string( @text, @more_attribs )
45
45
 
46
46
  reader.each_line do |new_attributes, values|
@@ -41,7 +41,7 @@ class LeagueReader
41
41
  end
42
42
 
43
43
 
44
- def read()
44
+ def read
45
45
  reader = ValuesReader.from_string( @text, @more_attribs )
46
46
 
47
47
  reader.each_line do |new_attributes, values|
@@ -39,7 +39,7 @@ class SeasonReader
39
39
  @text = text
40
40
  end
41
41
 
42
- def read()
42
+ def read
43
43
  reader = LineReader.from_string( @text )
44
44
 
45
45
  ####
@@ -52,7 +52,7 @@ class ClubSquadReader
52
52
 
53
53
 
54
54
 
55
- def read()
55
+ def read
56
56
  ## note:
57
57
  # event_id and team_id required!!
58
58
 
@@ -48,7 +48,7 @@ class NationalTeamSquadReader
48
48
  end
49
49
 
50
50
 
51
- def read()
51
+ def read
52
52
  ## note:
53
53
  # event_id and team_id required!!
54
54
 
@@ -39,7 +39,7 @@ class TeamReader
39
39
  end
40
40
 
41
41
 
42
- def read()
42
+ def read
43
43
  reader = ValuesReader.from_string( @text, @more_attribs )
44
44
 
45
45
  reader.each_line do |new_attributes, values|
@@ -4,7 +4,7 @@ module SportDb
4
4
 
5
5
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 11
7
- PATCH = 0
7
+ PATCH = 1
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.11.0
4
+ version: 1.11.1
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-09 00:00:00.000000000 Z
11
+ date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: worlddb-models