sportdb 1.9.14 → 1.9.15

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: d2db12336a3fae247a22d4efee7d6c180b28d942
4
- data.tar.gz: 26987264b067348f1e273e9f2ad37ccc90184de2
3
+ metadata.gz: 3c5d5f460f4f9a47f7972f979e24a3c5652e07a8
4
+ data.tar.gz: a703aeb762e8fedefdf6e91e4f92bad6c59c1bd4
5
5
  SHA512:
6
- metadata.gz: db796999c6b36d8cda1ab638a3e271cfebe6bdb3872632a2d6d0185a0a0761859a4d84d552a20e781c5e7cb6585eb6757d22ee72bdf76f1e25929a96c031a551
7
- data.tar.gz: d16a231df7b59e3916e8aab32732b082784406adb78b36b91cc62515d3c65d94360534532b2a93210f02da3371a7042907980e97a28a97baaf698a64be5ef184
6
+ metadata.gz: 059df898468b056c66c0a1a08cbcac20ce4b55519069d5cd90251e7c00db9d96de01fba73d6a3a2695c0f5f62e1d90c23f08a28ebe92d7d5b49d2a672d4fd4f8
7
+ data.tar.gz: 84e24316d647343aa7cebc1872bb07728984df9b9d2942ecc6431ab20e1bfca1b2848cd9c7c3b3c49b70992ce26f8594adc250d091ef69dc45600b7d08e4764d
data/Rakefile CHANGED
@@ -25,15 +25,15 @@ Hoe.spec 'sportdb' do
25
25
  self.extra_deps = [
26
26
  ['props' ],
27
27
  ['logutils'],
28
- ['textutils'],
29
- ['worlddb', '>= 2.0.2'], # NB: worlddb already includes
28
+ ['textutils', '>= 0.9.10'],
29
+ ['worlddb', '>= 2.0.8'], # NB: worlddb already includes
30
30
  # - logutils
31
31
  # - textutils
32
32
  ['tagutils'], # tags n tagging tables
33
33
  ['persondb'], # persons (people) table
34
34
  ['activerecord-utils'], # extras e.g. rnd, find_by! for 3.x etc.
35
- ['fetcher', '>= 0.3'],
36
- ['datafile'],
35
+ ['fetcher', '>= 0.4.4'],
36
+ ['datafile', '>= 0.1.1'],
37
37
 
38
38
  ### sportdb addons
39
39
  ['sportdb-keys'],
@@ -42,7 +42,7 @@ Hoe.spec 'sportdb' do
42
42
  ['sportdb-service'],
43
43
 
44
44
  ## 3rd party
45
- ['gli', '>= 2.5.6'],
45
+ ['gli', '>= 2.12.2'],
46
46
 
47
47
  ['activerecord'] # NB: will include activesupport,etc.
48
48
  ### ['sqlite3', '~> 1.3'] # NB: install on your own; remove dependency
@@ -84,8 +84,10 @@ def connect_to_db( options )
84
84
  ## todo/check: use if defined?( JRUBY_VERSION ) instead ??
85
85
  if RUBY_PLATFORM =~ /java/ && db_config[:adapter] == 'sqlite3'
86
86
  # quick hack for JRuby sqlite3 support via jdbc
87
+ puts "jruby quick hack - adding jdbc libs for jruby sqlite3 database support"
87
88
  require 'jdbc/sqlite3'
88
- ## todo: check if require for activerecord jdbc adapter for sqlite is required to
89
+ require 'active_record/connection_adapters/jdbc_adapter'
90
+ require 'active_record/connection_adapters/jdbcsqlite3_adapter'
89
91
  end
90
92
 
91
93
 
@@ -123,8 +125,7 @@ command [:build,:b] do |c|
123
125
 
124
126
  c.action do |g,o,args|
125
127
 
126
- builder = Datafile::Builder.load_file( './Datafile' )
127
- datafile = builder.datafile
128
+ datafile = Datafile::Datafile.load_file( './Datafile' )
128
129
  datafile.download # datafile step 1 - download all datasets/zips
129
130
 
130
131
  connect_to_db( opts )
@@ -152,8 +153,7 @@ command [:read,:r] do |c|
152
153
 
153
154
  connect_to_db( opts )
154
155
 
155
- builder = Datafile::Builder.load_file( './Datafile' )
156
- datafile = builder.datafile
156
+ datafile = Datafile::Datafile.load_file( './Datafile' )
157
157
  datafile.read
158
158
 
159
159
  puts 'Done.'
@@ -167,8 +167,7 @@ command [:download,:dl] do |c|
167
167
 
168
168
  # note: no database connection needed (check - needed for logs?? - not setup by default???)
169
169
 
170
- builder = Datafile::Builder.load_file( './Datafile' )
171
- datafile = builder.datafile
170
+ datafile = Datafile::Datafile.load_file( './Datafile' )
172
171
  datafile.download
173
172
 
174
173
  puts 'Done.'
@@ -186,11 +185,11 @@ command [:new,:n] do |c|
186
185
  setup = args[0] || 'worldcup2014'
187
186
 
188
187
  worker = Fetcher::Worker.new
189
- worker.copy( "https://github.com/openfootball/datafile/raw/master/#{setup}.rb", './Datafile' )
188
+ ## note: lets use http:// instead of https:// for now - lets us use person proxy (NOT working w/ https for now)
189
+ worker.copy( "http://github.com/openfootball/datafile/raw/master/#{setup}.rb", './Datafile' )
190
190
 
191
191
  ## step 2: same as command build (todo - reuse code)
192
- builder = Datafile::Builder.load_file( './Datafile' )
193
- datafile = builder.datafile
192
+ datafile = Datafile::Datafile.load_file( './Datafile' )
194
193
  datafile.download # datafile step 1 - download all datasets/zips
195
194
 
196
195
  connect_to_db( opts ) ### todo: check let connect go first?? - for logging (logs) to db ???
@@ -3,7 +3,7 @@ module SportDb
3
3
 
4
4
  MAJOR = 1 ## todo: namespace inside version or something - why? why not??
5
5
  MINOR = 9
6
- PATCH = 14
6
+ PATCH = 15
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.14
4
+ version: 1.9.15
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-11-27 00:00:00.000000000 Z
11
+ date: 2014-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: props
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.9.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.9.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: worlddb
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.2
61
+ version: 2.0.8
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.2
68
+ version: 2.0.8
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: tagutils
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0.3'
117
+ version: 0.4.4
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0.3'
124
+ version: 0.4.4
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: datafile
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 0.1.1
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: 0.1.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sportdb-keys
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: 2.5.6
201
+ version: 2.12.2
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: 2.5.6
208
+ version: 2.12.2
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: activerecord
211
211
  requirement: !ruby/object:Gem::Requirement