sportweb 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +92 -69
- data/Gemfile.lock +112 -130
- data/HISTORY.md +3 -3
- data/README.md +57 -57
- data/Rakefile +44 -44
- data/bin/sportweb +6 -6
- data/lib/sportweb/app.rb +137 -137
- data/lib/sportweb/boot_with_bundler.rb +128 -122
- data/lib/sportweb/boot_with_require.rb +30 -30
- data/lib/sportweb/version.rb +4 -4
- data/lib/sportweb.rb +66 -65
- metadata +142 -212
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19a8fce546d1f0b94bc1186541871ff175b13713
|
4
|
+
data.tar.gz: a861a63c1ca8bbd179696cc810fa8e260dfdd360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68de66fc5e1b9d86d50f2e3dfc2b7637d1faeebe973c2839c3d186338b5b3e7ea9dece1a8c8f933bc6a7ac4687059b8a60d542ee114c6fd427ae4c91f9b0a7d2
|
7
|
+
data.tar.gz: 16d3b5bad1f4f8dc9c575efd4b4bd5795da539aa3c7d5fdc2a89caf89bde5b1fd269270c9ded454c14543c4229d9ad2d38323ef6ecdd5e9274c836db8178edc6
|
data/Gemfile
CHANGED
@@ -1,69 +1,92 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
|
4
|
-
gem 'rails', '
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
gem '
|
17
|
-
gem '
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
gem '
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
gem '
|
30
|
-
|
31
|
-
gem '
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
gem '
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
##
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
gem '
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
|
4
|
+
## gem 'rails', '5.2.0'
|
5
|
+
## note: use rails deps w/o:
|
6
|
+
## actioncable and
|
7
|
+
## actionmailer -- include? why? why not?
|
8
|
+
## activestorage -- include? why? why not?
|
9
|
+
##
|
10
|
+
## exclude activejob too - why? why not?
|
11
|
+
|
12
|
+
|
13
|
+
gem 'actionpack', '5.2.0', require: false
|
14
|
+
gem 'actionview', '5.2.0', require: false
|
15
|
+
gem 'activejob', '5.2.0', require: false
|
16
|
+
gem 'activemodel', '5.2.0', require: false
|
17
|
+
gem 'activerecord', '5.2.0', require: false
|
18
|
+
gem 'activesupport', '5.2.0', require: false
|
19
|
+
gem 'railties', '5.2.0', require: false
|
20
|
+
|
21
|
+
gem 'sprockets-rails', '>= 2.0.0', require: false
|
22
|
+
gem 'bundler', '>= 1.3.0', require: false
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
gem 'sinatra', require: 'sinatra/base'
|
27
|
+
|
28
|
+
|
29
|
+
gem 'sqlite3' # database - use (embedded) sqlite database
|
30
|
+
|
31
|
+
### gem 'thin' # webserver - use thin web server
|
32
|
+
gem 'puma' ## try puma web server for rails 5 ??
|
33
|
+
|
34
|
+
|
35
|
+
### rails asset addons
|
36
|
+
## gem 'actionpack', require: 'action_controller/railtie' ## needed by sprockets-rails
|
37
|
+
## gem 'sprockets-rails', require: 'sprockets/railtie'
|
38
|
+
|
39
|
+
|
40
|
+
gem 'sass-rails' ## , '~> 5.0' ## todo/check -- require sass-rails/railtie ??
|
41
|
+
gem 'jquery-rails' ## todo/check -- require jquery-rails/railtie ?? to activate?
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
############
|
46
|
+
# lets use open sport.db schema & fixtures
|
47
|
+
|
48
|
+
gem 'logutils' ###, '0.6.0'
|
49
|
+
gem 'logutils-activerecord' # LogDb n LogDb::Models
|
50
|
+
gem 'props'
|
51
|
+
gem 'props-activerecord' # ConfDb n ConfDb::Models
|
52
|
+
|
53
|
+
gem 'worlddb-models' ## , '2.3.4'
|
54
|
+
gem 'sportdb-models' ## , '1.16.2'
|
55
|
+
gem 'datafile'
|
56
|
+
|
57
|
+
gem 'sportdb-admin'
|
58
|
+
|
59
|
+
|
60
|
+
########################
|
61
|
+
## add logos n flags
|
62
|
+
|
63
|
+
gem 'worlddb-flags', '0.1.0' # use bundled country flags
|
64
|
+
|
65
|
+
## gem 'sportdb-logos', '0.1.0', git: 'https://github.com/sportlogos/sport.db.logos.ruby.git', branch: 'gh-pages'
|
66
|
+
## gem 'footballdb-logos', '0.1.0', git: 'https://github.com/sportlogos/football.db.logos.ruby.git', branch: 'gh-pages'
|
67
|
+
|
68
|
+
|
69
|
+
##########
|
70
|
+
# add sinatra (mountable) app(let)s
|
71
|
+
## gem 'about' # mountable app - about - sys info pages
|
72
|
+
## gem 'dbbrowser' # mountable app
|
73
|
+
|
74
|
+
|
75
|
+
################################
|
76
|
+
## note: for release exclude for now dev rails gems
|
77
|
+
## gem 'web-console' ## , '~> 2.0'
|
78
|
+
## gem 'byebug'
|
79
|
+
|
80
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
81
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
#############
|
86
|
+
# note:
|
87
|
+
# todo/check/fix: needs to include itself too!!!!!! - why? sportweb has no deps itself its a host rails app
|
88
|
+
#
|
89
|
+
# check version
|
90
|
+
# must match latest!!! - try bundle update before release ???
|
91
|
+
|
92
|
+
## gem 'sportweb'
|
data/Gemfile.lock
CHANGED
@@ -1,202 +1,184 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
rails-dom-testing (~>
|
10
|
-
actionpack (4.2.7.1)
|
11
|
-
actionview (= 4.2.7.1)
|
12
|
-
activesupport (= 4.2.7.1)
|
13
|
-
rack (~> 1.6)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
4
|
+
actionpack (5.2.0)
|
5
|
+
actionview (= 5.2.0)
|
6
|
+
activesupport (= 5.2.0)
|
7
|
+
rack (~> 2.0)
|
8
|
+
rack-test (>= 0.6.3)
|
9
|
+
rails-dom-testing (~> 2.0)
|
16
10
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
17
|
-
actionview (
|
18
|
-
activesupport (=
|
11
|
+
actionview (5.2.0)
|
12
|
+
activesupport (= 5.2.0)
|
19
13
|
builder (~> 3.1)
|
20
|
-
|
21
|
-
rails-dom-testing (~>
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
23
|
-
activejob (
|
24
|
-
activesupport (=
|
25
|
-
globalid (>= 0.3.
|
26
|
-
activemodel (
|
27
|
-
activesupport (=
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
arel (~> 6.0)
|
14
|
+
erubi (~> 1.4)
|
15
|
+
rails-dom-testing (~> 2.0)
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
17
|
+
activejob (5.2.0)
|
18
|
+
activesupport (= 5.2.0)
|
19
|
+
globalid (>= 0.3.6)
|
20
|
+
activemodel (5.2.0)
|
21
|
+
activesupport (= 5.2.0)
|
22
|
+
activerecord (5.2.0)
|
23
|
+
activemodel (= 5.2.0)
|
24
|
+
activesupport (= 5.2.0)
|
25
|
+
arel (>= 9.0)
|
33
26
|
activerecord-utils (0.4.0)
|
34
27
|
activerecord
|
35
28
|
logutils
|
36
|
-
activesupport (
|
37
|
-
|
38
|
-
|
29
|
+
activesupport (5.2.0)
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
31
|
+
i18n (>= 0.7, < 2)
|
39
32
|
minitest (~> 5.1)
|
40
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
41
33
|
tzinfo (~> 1.1)
|
42
|
-
arel (
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
byebug (9.0.6)
|
47
|
-
concurrent-ruby (1.0.2)
|
48
|
-
daemons (1.2.4)
|
34
|
+
arel (9.0.0)
|
35
|
+
builder (3.2.3)
|
36
|
+
concurrent-ruby (1.0.5)
|
37
|
+
crass (1.0.4)
|
49
38
|
datafile (0.2.5)
|
50
39
|
fetcher
|
51
40
|
logutils
|
52
41
|
textutils
|
53
|
-
|
54
|
-
erubis (2.7.0)
|
55
|
-
eventmachine (1.2.0.1-x86-mingw32)
|
42
|
+
erubi (1.7.1)
|
56
43
|
fetcher (0.4.5)
|
57
44
|
logutils (>= 0.6)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
45
|
+
ffi (1.9.25-x86-mingw32)
|
46
|
+
globalid (0.4.1)
|
47
|
+
activesupport (>= 4.2.0)
|
48
|
+
i18n (1.0.1)
|
49
|
+
concurrent-ruby (~> 1.0)
|
50
|
+
iniparser (0.1.0)
|
51
|
+
jquery-rails (4.3.3)
|
62
52
|
rails-dom-testing (>= 1, < 3)
|
63
53
|
railties (>= 4.2.0)
|
64
54
|
thor (>= 0.14, < 2.0)
|
65
|
-
json (1.8.3)
|
66
55
|
logutils (0.6.1)
|
67
56
|
logutils-activerecord (0.2.1)
|
68
57
|
activerecord
|
69
58
|
logutils (>= 0.6.1)
|
70
|
-
loofah (2.
|
59
|
+
loofah (2.2.2)
|
60
|
+
crass (~> 1.0.2)
|
71
61
|
nokogiri (>= 1.5.9)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
minitest (5.9.1)
|
79
|
-
nokogiri (1.6.8.1-x86-mingw32)
|
80
|
-
mini_portile2 (~> 2.1.0)
|
62
|
+
method_source (0.9.0)
|
63
|
+
mini_portile2 (2.3.0)
|
64
|
+
minitest (5.11.3)
|
65
|
+
mustermann (1.0.2)
|
66
|
+
nokogiri (1.8.3-x86-mingw32)
|
67
|
+
mini_portile2 (~> 2.3.0)
|
81
68
|
persondb-models (0.5.0)
|
82
69
|
worlddb-models
|
83
|
-
props (1.
|
84
|
-
|
70
|
+
props (1.2.0)
|
71
|
+
iniparser (>= 0.1.0)
|
72
|
+
props-activerecord (0.2.0)
|
85
73
|
activerecord
|
86
|
-
props (>= 1.
|
87
|
-
|
88
|
-
rack
|
74
|
+
props (>= 1.2.0)
|
75
|
+
puma (3.11.4)
|
76
|
+
rack (2.0.5)
|
77
|
+
rack-protection (2.0.3)
|
89
78
|
rack
|
90
|
-
rack-test (0.
|
91
|
-
rack (>= 1.0)
|
92
|
-
rails (
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
activesupport (=
|
100
|
-
|
101
|
-
railties (= 4.2.7.1)
|
102
|
-
sprockets-rails
|
103
|
-
rails-deprecated_sanitizer (1.0.3)
|
104
|
-
activesupport (>= 4.2.0.alpha)
|
105
|
-
rails-dom-testing (1.0.7)
|
106
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
107
|
-
nokogiri (~> 1.6.0)
|
108
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
109
|
-
rails-html-sanitizer (1.0.3)
|
110
|
-
loofah (~> 2.0)
|
111
|
-
railties (4.2.7.1)
|
112
|
-
actionpack (= 4.2.7.1)
|
113
|
-
activesupport (= 4.2.7.1)
|
79
|
+
rack-test (1.0.0)
|
80
|
+
rack (>= 1.0, < 3)
|
81
|
+
rails-dom-testing (2.0.3)
|
82
|
+
activesupport (>= 4.2.0)
|
83
|
+
nokogiri (>= 1.6)
|
84
|
+
rails-html-sanitizer (1.0.4)
|
85
|
+
loofah (~> 2.2, >= 2.2.2)
|
86
|
+
railties (5.2.0)
|
87
|
+
actionpack (= 5.2.0)
|
88
|
+
activesupport (= 5.2.0)
|
89
|
+
method_source
|
114
90
|
rake (>= 0.8.7)
|
115
91
|
thor (>= 0.18.1, < 2.0)
|
116
|
-
rake (
|
117
|
-
|
118
|
-
|
119
|
-
|
92
|
+
rake (12.3.1)
|
93
|
+
rb-fsevent (0.10.3)
|
94
|
+
rb-inotify (0.9.10)
|
95
|
+
ffi (>= 0.5.0, < 2)
|
96
|
+
rubyzip (1.2.1)
|
97
|
+
sass (3.5.6)
|
98
|
+
sass-listen (~> 4.0.0)
|
99
|
+
sass-listen (4.0.0)
|
100
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
101
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
102
|
+
sass-rails (5.0.7)
|
120
103
|
railties (>= 4.0.0, < 6)
|
121
104
|
sass (~> 3.1)
|
122
105
|
sprockets (>= 2.8, < 4.0)
|
123
106
|
sprockets-rails (>= 2.0, < 4.0)
|
124
107
|
tilt (>= 1.1, < 3)
|
125
|
-
sinatra (
|
126
|
-
|
127
|
-
rack
|
128
|
-
|
108
|
+
sinatra (2.0.3)
|
109
|
+
mustermann (~> 1.0)
|
110
|
+
rack (~> 2.0)
|
111
|
+
rack-protection (= 2.0.3)
|
112
|
+
tilt (~> 2.0)
|
129
113
|
sportdb-admin (0.4.0)
|
130
|
-
sportdb-models (1.
|
114
|
+
sportdb-models (1.17.0)
|
131
115
|
persondb-models (>= 0.4.2)
|
132
116
|
worlddb-models (>= 2.1.0)
|
133
|
-
sprockets (3.7.
|
117
|
+
sprockets (3.7.2)
|
134
118
|
concurrent-ruby (~> 1.0)
|
135
119
|
rack (> 1, < 3)
|
136
|
-
sprockets-rails (3.2.
|
120
|
+
sprockets-rails (3.2.1)
|
137
121
|
actionpack (>= 4.0)
|
138
122
|
activesupport (>= 4.0)
|
139
123
|
sprockets (>= 3.0.0)
|
140
|
-
sqlite3 (1.3.
|
141
|
-
tagutils (0.
|
124
|
+
sqlite3 (1.3.13-x86-mingw32)
|
125
|
+
tagutils (1.0.0)
|
142
126
|
activerecord
|
143
127
|
logutils (>= 0.6.1)
|
144
|
-
props (>= 1.
|
145
|
-
textutils (>=
|
128
|
+
props (>= 1.2.0)
|
129
|
+
textutils (>= 1.4.0)
|
146
130
|
textutils (1.4.0)
|
147
131
|
activesupport
|
148
132
|
logutils (>= 0.6.1)
|
149
133
|
props (>= 1.1.2)
|
150
134
|
rubyzip (>= 1.0.0)
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
thor (0.19.1)
|
156
|
-
thread_safe (0.3.5)
|
157
|
-
tilt (2.0.5)
|
158
|
-
tzinfo (1.2.2)
|
135
|
+
thor (0.20.0)
|
136
|
+
thread_safe (0.3.6)
|
137
|
+
tilt (2.0.8)
|
138
|
+
tzinfo (1.2.5)
|
159
139
|
thread_safe (~> 0.1)
|
160
|
-
tzinfo-data (1.
|
140
|
+
tzinfo-data (1.2018.5)
|
161
141
|
tzinfo (>= 1.0.0)
|
162
|
-
web-console (2.3.0)
|
163
|
-
activemodel (>= 4.0)
|
164
|
-
binding_of_caller (>= 0.7.2)
|
165
|
-
railties (>= 4.0)
|
166
|
-
sprockets-rails (>= 2.0, < 4.0)
|
167
142
|
worlddb-flags (0.1.0)
|
168
|
-
worlddb-models (2.
|
143
|
+
worlddb-models (2.4.0)
|
169
144
|
activerecord
|
170
|
-
activerecord-utils (>= 0.
|
145
|
+
activerecord-utils (>= 0.4.0)
|
171
146
|
logutils (>= 0.6.1)
|
172
|
-
logutils-activerecord (>= 0.2.
|
173
|
-
props (>= 1.
|
174
|
-
props-activerecord (>= 0.
|
147
|
+
logutils-activerecord (>= 0.2.1)
|
148
|
+
props (>= 1.2.0)
|
149
|
+
props-activerecord (>= 0.2.0)
|
175
150
|
rubyzip
|
176
|
-
tagutils (>= 0.
|
177
|
-
textutils (>= 1.
|
151
|
+
tagutils (>= 1.0.0)
|
152
|
+
textutils (>= 1.4.0)
|
178
153
|
|
179
154
|
PLATFORMS
|
180
155
|
x86-mingw32
|
181
156
|
|
182
157
|
DEPENDENCIES
|
183
|
-
actionpack
|
184
|
-
|
158
|
+
actionpack (= 5.2.0)
|
159
|
+
actionview (= 5.2.0)
|
160
|
+
activejob (= 5.2.0)
|
161
|
+
activemodel (= 5.2.0)
|
162
|
+
activerecord (= 5.2.0)
|
163
|
+
activesupport (= 5.2.0)
|
164
|
+
bundler (>= 1.3.0)
|
185
165
|
datafile
|
186
166
|
jquery-rails
|
187
167
|
logutils
|
188
168
|
logutils-activerecord
|
189
169
|
props
|
190
170
|
props-activerecord
|
191
|
-
|
192
|
-
|
171
|
+
puma
|
172
|
+
railties (= 5.2.0)
|
173
|
+
sass-rails
|
193
174
|
sinatra
|
194
175
|
sportdb-admin
|
195
|
-
sportdb-models
|
196
|
-
sprockets-rails
|
176
|
+
sportdb-models
|
177
|
+
sprockets-rails (>= 2.0.0)
|
197
178
|
sqlite3
|
198
|
-
thin
|
199
179
|
tzinfo-data
|
200
|
-
web-console (~> 2.0)
|
201
180
|
worlddb-flags (= 0.1.0)
|
202
|
-
worlddb-models
|
181
|
+
worlddb-models
|
182
|
+
|
183
|
+
BUNDLED WITH
|
184
|
+
1.16.2
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
### 0.0.1 / 2014-08-16
|
2
|
-
|
3
|
-
* Everything is new. First release.
|
1
|
+
### 0.0.1 / 2014-08-16
|
2
|
+
|
3
|
+
* Everything is new. First release.
|
data/README.md
CHANGED
@@ -1,57 +1,57 @@
|
|
1
|
-
# sportweb gem - instant open sports web browser command line tool
|
2
|
-
|
3
|
-
* home :: [github.com/sportdb/sport.db.web](https://github.com/sportdb/sport.db.web)
|
4
|
-
* bugs :: [github.com/sportdb/sport.db.web/issues](https://github.com/sportdb/sport.db.web/issues)
|
5
|
-
* gem :: [rubygems.org/gems/sportweb](https://rubygems.org/gems/sportweb)
|
6
|
-
* rdoc :: [rubydoc.info/gems/sportweb](http://rubydoc.info/gems/sportweb)
|
7
|
-
* forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
|
8
|
-
|
9
|
-
|
10
|
-
## Usage
|
11
|
-
|
12
|
-
#### Step 1: Start the instant web server.
|
13
|
-
|
14
|
-
Type in your shell:
|
15
|
-
|
16
|
-
$ sportweb
|
17
|
-
|
18
|
-
or
|
19
|
-
|
20
|
-
$ sportweb worldcup.db
|
21
|
-
|
22
|
-
Note: The web server runs by default on port `3000`.
|
23
|
-
|
24
|
-
>> Thin web server (v3.7.1 codename Doc Brown)
|
25
|
-
>> Listening on 0.0.0.0:3000, CTRL+C to stop
|
26
|
-
|
27
|
-
|
28
|
-
#### Step 2: Open your web browser.
|
29
|
-
|
30
|
-
Open your web browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
|
31
|
-
and start browsing your open sports database
|
32
|
-
(e.g. `sport.db`, `football.db`, `worldcup.db`, etc.).
|
33
|
-
|
34
|
-
[add pic here]
|
35
|
-
|
36
|
-
That's it.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
## Install
|
41
|
-
|
42
|
-
Just install the gem:
|
43
|
-
|
44
|
-
$ gem install sportweb
|
45
|
-
|
46
|
-
|
47
|
-
## License
|
48
|
-
|
49
|
-
The `sportweb` scripts are dedicated to the public domain.
|
50
|
-
Use it as you please with no restrictions whatsoever.
|
51
|
-
|
52
|
-
|
53
|
-
## Questions? Comments?
|
54
|
-
|
55
|
-
Send them along to the
|
56
|
-
[Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
|
57
|
-
Thanks!
|
1
|
+
# sportweb gem - instant open sports web browser command line tool
|
2
|
+
|
3
|
+
* home :: [github.com/sportdb/sport.db.web](https://github.com/sportdb/sport.db.web)
|
4
|
+
* bugs :: [github.com/sportdb/sport.db.web/issues](https://github.com/sportdb/sport.db.web/issues)
|
5
|
+
* gem :: [rubygems.org/gems/sportweb](https://rubygems.org/gems/sportweb)
|
6
|
+
* rdoc :: [rubydoc.info/gems/sportweb](http://rubydoc.info/gems/sportweb)
|
7
|
+
* forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
|
8
|
+
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
#### Step 1: Start the instant web server.
|
13
|
+
|
14
|
+
Type in your shell:
|
15
|
+
|
16
|
+
$ sportweb
|
17
|
+
|
18
|
+
or
|
19
|
+
|
20
|
+
$ sportweb worldcup.db
|
21
|
+
|
22
|
+
Note: The web server runs by default on port `3000`.
|
23
|
+
|
24
|
+
>> Thin web server (v3.7.1 codename Doc Brown)
|
25
|
+
>> Listening on 0.0.0.0:3000, CTRL+C to stop
|
26
|
+
|
27
|
+
|
28
|
+
#### Step 2: Open your web browser.
|
29
|
+
|
30
|
+
Open your web browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
|
31
|
+
and start browsing your open sports database
|
32
|
+
(e.g. `sport.db`, `football.db`, `worldcup.db`, etc.).
|
33
|
+
|
34
|
+
[add pic here]
|
35
|
+
|
36
|
+
That's it.
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
## Install
|
41
|
+
|
42
|
+
Just install the gem:
|
43
|
+
|
44
|
+
$ gem install sportweb
|
45
|
+
|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
The `sportweb` scripts are dedicated to the public domain.
|
50
|
+
Use it as you please with no restrictions whatsoever.
|
51
|
+
|
52
|
+
|
53
|
+
## Questions? Comments?
|
54
|
+
|
55
|
+
Send them along to the
|
56
|
+
[Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
|
57
|
+
Thanks!
|