football-to-sqlite 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/Manifest.txt +8 -0
- data/README.md +27 -0
- data/Rakefile +34 -0
- data/lib/football-to-sqlite.rb +14 -0
- data/lib/football-to-sqlite/version.rb +25 -0
- data/test/helper.rb +9 -0
- data/test/test_version.rb +17 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 40d1867be227e045464b28b28fb470eaaa25b985
|
4
|
+
data.tar.gz: fd14f55f64f729da43037d214455daca6d06c453
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ef02351772ea1cf6bdeaa532188dc9b4c1cd0d8a80439016240d676408f60389cc0e73e3ced29e31de80467a6ffc5571954b400284d43dfbc8ca44376a7a1f87
|
7
|
+
data.tar.gz: 27a30b8f779957a8364b8abcb44bcb483b37ba294c0226bee9c0d7c1a932ed9b5a7a2cc5728d3c11e823397f81cca2a1f5d8617c09bd10255ead5f96b8065ca8
|
data/CHANGELOG.md
ADDED
data/Manifest.txt
ADDED
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# football-to-sqlite - load football.txt datafiles into a sqlite database
|
2
|
+
|
3
|
+
|
4
|
+
* home :: [github.com/sportdb/football.db](https://github.com/sportdb/football.db)
|
5
|
+
* bugs :: [github.com/sportdb/football.db/issues](https://github.com/sportdb/football.db/issues)
|
6
|
+
* gem :: [rubygems.org/gems/football-to-sqlite](https://rubygems.org/gems/football-to-sqlite)
|
7
|
+
* rdoc :: [rubydoc.info/gems/football-to-sqlite](http://rubydoc.info/gems/football-to-sqlite)
|
8
|
+
* forum :: [opensport](http://groups.google.com/group/opensport)
|
9
|
+
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
to be done
|
14
|
+
|
15
|
+
|
16
|
+
## License
|
17
|
+
|
18
|
+
The `football-to-sqlite` scripts are dedicated to the public domain.
|
19
|
+
Use it as you please with no restrictions whatsoever.
|
20
|
+
|
21
|
+
|
22
|
+
## Questions? Comments?
|
23
|
+
|
24
|
+
Send them along to the
|
25
|
+
[Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
|
26
|
+
Thanks!
|
27
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'hoe'
|
2
|
+
require './lib/football-to-sqlite/version.rb'
|
3
|
+
|
4
|
+
|
5
|
+
Hoe.spec 'football-to-sqlite' do
|
6
|
+
|
7
|
+
self.version = SportDb::Module::FootballToSqlite::VERSION
|
8
|
+
|
9
|
+
self.summary = 'football-to-sqlite - load football.txt datafiles into a sqlite database'
|
10
|
+
self.description = summary
|
11
|
+
|
12
|
+
self.urls = { home: 'https://github.com/sportdb/football.db'}
|
13
|
+
|
14
|
+
self.author = 'Gerald Bauer'
|
15
|
+
self.email = 'opensport@googlegroups.com'
|
16
|
+
|
17
|
+
# switch extension to .markdown for gihub formatting
|
18
|
+
# -- Note: auto-changed when included in manifest
|
19
|
+
self.readme_file = 'README.md'
|
20
|
+
self.history_file = 'CHANGELOG.md'
|
21
|
+
|
22
|
+
self.extra_deps = [
|
23
|
+
['sportdb-readers', '>= 1.1.2'],
|
24
|
+
|
25
|
+
## ['activerecord'], # Note: will include activesupport,etc.
|
26
|
+
['sqlite3']
|
27
|
+
]
|
28
|
+
|
29
|
+
self.licenses = ['Public Domain']
|
30
|
+
|
31
|
+
self.spec_extras = {
|
32
|
+
required_ruby_version: '>= 2.2.2'
|
33
|
+
}
|
34
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'sportdb/readers'
|
2
|
+
|
3
|
+
require 'logutils/activerecord' ## NOTE: check - add to/include in/move to sportdb/models
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
###
|
8
|
+
# our own code
|
9
|
+
require 'football-to-sqlite/version' # let version always go first
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
puts SportDb::Module::FootballToSqlite.banner # say hello
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
module SportDb
|
3
|
+
module Module
|
4
|
+
module FootballToSqlite
|
5
|
+
|
6
|
+
MAJOR = 0 ## todo: namespace inside version or something - why? why not??
|
7
|
+
MINOR = 0
|
8
|
+
PATCH = 1
|
9
|
+
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
10
|
+
|
11
|
+
def self.version
|
12
|
+
VERSION
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.banner
|
16
|
+
"football-to-sqlite/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.root
|
20
|
+
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
21
|
+
end
|
22
|
+
|
23
|
+
end # module FootballToSqlite
|
24
|
+
end # module Module
|
25
|
+
end # module SportDb
|
data/test/helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
###
|
2
|
+
# to run use
|
3
|
+
# ruby -I ./lib -I ./test test/test_version.rb
|
4
|
+
|
5
|
+
|
6
|
+
require 'helper'
|
7
|
+
|
8
|
+
class TestVersion < MiniTest::Test
|
9
|
+
|
10
|
+
def test_version
|
11
|
+
puts SportDb::Module::FootballToSqlite.banner
|
12
|
+
puts SportDb::Module::FootballToSqlite.root
|
13
|
+
puts SportDb::Module::FootballToSqlite::VERSION
|
14
|
+
end
|
15
|
+
|
16
|
+
end # class TestVersion
|
17
|
+
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: football-to-sqlite
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gerald Bauer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sportdb-readers
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '7'
|
51
|
+
type: :development
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '4.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '7'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: hoe
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '3.22'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.22'
|
75
|
+
description: football-to-sqlite - load football.txt datafiles into a sqlite database
|
76
|
+
email: opensport@googlegroups.com
|
77
|
+
executables: []
|
78
|
+
extensions: []
|
79
|
+
extra_rdoc_files:
|
80
|
+
- CHANGELOG.md
|
81
|
+
- Manifest.txt
|
82
|
+
- README.md
|
83
|
+
files:
|
84
|
+
- CHANGELOG.md
|
85
|
+
- Manifest.txt
|
86
|
+
- README.md
|
87
|
+
- Rakefile
|
88
|
+
- lib/football-to-sqlite.rb
|
89
|
+
- lib/football-to-sqlite/version.rb
|
90
|
+
- test/helper.rb
|
91
|
+
- test/test_version.rb
|
92
|
+
homepage: https://github.com/sportdb/football.db
|
93
|
+
licenses:
|
94
|
+
- Public Domain
|
95
|
+
metadata: {}
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options:
|
98
|
+
- "--main"
|
99
|
+
- README.md
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.2.2
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.5.2
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: football-to-sqlite - load football.txt datafiles into a sqlite database
|
118
|
+
test_files: []
|