sportweb 0.1.0 → 0.2.0

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: 19a8fce546d1f0b94bc1186541871ff175b13713
4
- data.tar.gz: a861a63c1ca8bbd179696cc810fa8e260dfdd360
3
+ metadata.gz: dd42f64715c25a6a07e38dd76c186a7e265a2afa
4
+ data.tar.gz: 23a8db350cb555be4052f2b2194a67206b04d4e2
5
5
  SHA512:
6
- metadata.gz: 68de66fc5e1b9d86d50f2e3dfc2b7637d1faeebe973c2839c3d186338b5b3e7ea9dece1a8c8f933bc6a7ac4687059b8a60d542ee114c6fd427ae4c91f9b0a7d2
7
- data.tar.gz: 16d3b5bad1f4f8dc9c575efd4b4bd5795da539aa3c7d5fdc2a89caf89bde5b1fd269270c9ded454c14543c4229d9ad2d38323ef6ecdd5e9274c836db8178edc6
6
+ metadata.gz: e2ac37ba41a3e18d728ee78a21783108a1119a9bbb75f63fef966cec355d2c2ae761793e4745f42fe595cd61c1bd3c70a4db91dfb75376b1e25fbbce9093e257
7
+ data.tar.gz: 969b541f2f387474e5c52eaf5d50bf6ecfaac5772f470b4c775554d150e1f1ceb19e72ea3690868c0ce83e9884112cb51956b5d731b14423fd8d9211534ab5ff
data/Gemfile CHANGED
@@ -1,92 +1,97 @@
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'
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
+ ## note:
81
+ # was: Windows does not include zoneinfo files, so bundle the tzinfo-data gem
82
+ # gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
83
+ #
84
+ # note: quick fix - include for all platforms for now
85
+ # included gemfile.lock and gemspec deps are single-platform for now only
86
+ gem 'tzinfo-data'
87
+
88
+
89
+
90
+ #############
91
+ # note:
92
+ # todo/check/fix: needs to include itself too!!!!!! - why? sportweb has no deps itself its a host rails app
93
+ #
94
+ # check version
95
+ # must match latest!!! - try bundle update before release ???
96
+
97
+ ## gem 'sportweb'
data/Gemfile.lock CHANGED
@@ -181,4 +181,4 @@ DEPENDENCIES
181
181
  worlddb-models
182
182
 
183
183
  BUNDLED WITH
184
- 1.16.2
184
+ 1.15.3
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/Manifest.txt CHANGED
@@ -10,3 +10,12 @@ lib/sportweb/app.rb
10
10
  lib/sportweb/boot_with_bundler.rb
11
11
  lib/sportweb/boot_with_require.rb
12
12
  lib/sportweb/version.rb
13
+ public/404.html
14
+ public/422.html
15
+ public/500.html
16
+ public/favicon.ico
17
+ public/images/placeholder24x24.png
18
+ public/images/placeholder32x32.png
19
+ public/images/placeholder48x48.png
20
+ public/images/placeholder64x64.png
21
+ public/robots.txt
data/README.md CHANGED
@@ -1,57 +1,77 @@
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 admin 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
+
11
+ ## Usage
12
+
13
+ #### Step 0: Build yourself a local worldcup database from scratch (zero).
14
+
15
+ Use the sportdb command line tool machinery to build yourself a local single-file SQLite database
16
+ from the (online) datasets from scratch (zero) using the [`worldcup.rb` datafile](https://github.com/openfootball/datafile/blob/master/worldcup.rb). Type in your shell:
17
+
18
+ $ mkdir worldcup
19
+ $ cd worldcup
20
+ $ sportdb new worldcup # use the worldcup.rb datafile
21
+
22
+
23
+
24
+
25
+ #### Step 1: Start the instant web server.
26
+
27
+ Type in your shell:
28
+
29
+ $ sportweb
30
+
31
+ or
32
+
33
+ $ sportweb worldcup.db
34
+
35
+ Note: The web server runs by default on port `3000`.
36
+
37
+ >> Puma starting in single mode...
38
+ >> * Version 3.11.4 (ruby 2.4.4-p296), codename: Love Song
39
+ >> * Listening on tcp://0.0.0.0:3000
40
+ >> Use Ctrl-C to stop
41
+
42
+
43
+
44
+ #### Step 2: Open your web browser.
45
+
46
+ Open your web browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
47
+ and start browsing your open sports database
48
+ (e.g. `sport.db`, `football.db`, `worldcup.db`, etc.).
49
+
50
+
51
+ Example - World Cup 2018 in Russia:
52
+
53
+ ![](i/worldcup2018.png)
54
+
55
+
56
+ That's it.
57
+
58
+
59
+
60
+ ## Install
61
+
62
+ Just install the gem:
63
+
64
+ $ gem install sportweb
65
+
66
+
67
+ ## License
68
+
69
+ The `sportweb` scripts are dedicated to the public domain.
70
+ Use it as you please with no restrictions whatsoever.
71
+
72
+
73
+ ## Questions? Comments?
74
+
75
+ Send them along to the
76
+ [Open Sports & Friends Forum/Mailing List](http://groups.google.com/group/opensport).
77
+ Thanks!
data/Rakefile CHANGED
@@ -1,44 +1,44 @@
1
- require 'hoe'
2
- require './lib/sportweb/version.rb'
3
-
4
- require './script/deps.rb'
5
-
6
-
7
- ##############
8
- # note:
9
- # to release
10
- # $ rake install_gem # install new version **local-only** first
11
- # $ bundle update # update Gemfile.lock w/ new local version
12
- #
13
- # now ready to release
14
-
15
-
16
- ## puts "Gemfile.lock deps:"
17
- ## pp SportWeb.deps
18
-
19
-
20
- Hoe.spec 'sportweb' do
21
-
22
- self.version = SportWeb::VERSION
23
-
24
- self.summary = 'sportweb - instant open sports web browser command line tool'
25
- self.description = summary
26
-
27
- self.urls = ['https://github.com/sportdb/sport.db.web']
28
-
29
- self.author = 'Gerald Bauer'
30
- self.email = 'opensport@googlegroups.com'
31
-
32
- # switch extension to .markdown for gihub formatting
33
- self.readme_file = 'README.md'
34
- self.history_file = 'HISTORY.md'
35
-
36
- self.licenses = ['Public Domain']
37
-
38
- self.extra_deps = SportWeb.deps
39
-
40
- self.spec_extras = {
41
- :required_ruby_version => '>= 1.9.2'
42
- }
43
-
44
- end
1
+ require 'hoe'
2
+ require './lib/sportweb/version.rb'
3
+
4
+ require './script/deps.rb'
5
+
6
+
7
+ ##############
8
+ # note:
9
+ # to release
10
+ # $ rake install_gem # install new version **local-only** first
11
+ # $ bundle update # update Gemfile.lock w/ new local version
12
+ #
13
+ # now ready to release
14
+
15
+
16
+ ## puts "Gemfile.lock deps:"
17
+ ## pp SportWeb.deps
18
+
19
+
20
+ Hoe.spec 'sportweb' do
21
+
22
+ self.version = SportWeb::VERSION
23
+
24
+ self.summary = 'sportweb - instant open sports web admin browser command line tool'
25
+ self.description = summary
26
+
27
+ self.urls = ['https://github.com/sportdb/sport.db.web']
28
+
29
+ self.author = 'Gerald Bauer'
30
+ self.email = 'opensport@googlegroups.com'
31
+
32
+ # switch extension to .markdown for gihub formatting
33
+ self.readme_file = 'README.md'
34
+ self.history_file = 'HISTORY.md'
35
+
36
+ self.licenses = ['Public Domain']
37
+
38
+ self.extra_deps = SportWeb.deps
39
+
40
+ self.spec_extras = {
41
+ :required_ruby_version => '>= 2.3'
42
+ }
43
+
44
+ end