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 +4 -4
- data/Rakefile +5 -5
- data/lib/sportdb/cli/main.rb +9 -10
- data/lib/sportdb/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c5d5f460f4f9a47f7972f979e24a3c5652e07a8
|
4
|
+
data.tar.gz: a703aeb762e8fedefdf6e91e4f92bad6c59c1bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
data/lib/sportdb/cli/main.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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 ???
|
data/lib/sportdb/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
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.
|
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.
|
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:
|
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:
|
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:
|
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:
|
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.
|
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.
|
208
|
+
version: 2.12.2
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: activerecord
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|