sportweb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +8 -1
- data/Gemfile.lock +2 -0
- data/README.md +4 -5
- data/lib/sportweb/boot_with_bundler.rb +30 -0
- data/lib/sportweb/version.rb +1 -1
- metadata +5 -5
data/Gemfile
CHANGED
@@ -17,7 +17,6 @@ gem 'sass-rails' ## todo/check -- require sass-rails/railtie ??
|
|
17
17
|
gem 'jquery-rails' ## todo/check -- require jquery-rails/railtie ?? to activate?
|
18
18
|
|
19
19
|
|
20
|
-
|
21
20
|
gem 'worlddb'
|
22
21
|
gem 'sportdb'
|
23
22
|
gem 'sportdb-admin'
|
@@ -28,3 +27,11 @@ gem 'sportdb-admin'
|
|
28
27
|
## gem 'about' # mountable app - about - sys info pages
|
29
28
|
## gem 'dbbrowser' # mountable app
|
30
29
|
|
30
|
+
|
31
|
+
#############
|
32
|
+
# note:
|
33
|
+
# needs to include itself too!!!!!!
|
34
|
+
# check version
|
35
|
+
# must match latest!!! - try bundle update before release ???
|
36
|
+
gem 'sportweb'
|
37
|
+
|
data/Gemfile.lock
CHANGED
@@ -110,6 +110,7 @@ GEM
|
|
110
110
|
textutils
|
111
111
|
worlddb (>= 2.0.2)
|
112
112
|
sportdb-admin (0.3.0)
|
113
|
+
sportweb (0.0.2)
|
113
114
|
sprockets (2.2.2)
|
114
115
|
hike (~> 1.2)
|
115
116
|
multi_json (~> 1.0)
|
@@ -154,6 +155,7 @@ DEPENDENCIES
|
|
154
155
|
sinatra
|
155
156
|
sportdb
|
156
157
|
sportdb-admin
|
158
|
+
sportweb
|
157
159
|
sprockets-rails
|
158
160
|
sqlite3
|
159
161
|
thin
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
## Usage
|
11
11
|
|
12
|
-
#### Step 1:
|
12
|
+
#### Step 1: Start the instant web server.
|
13
13
|
|
14
14
|
Type in your shell:
|
15
15
|
|
@@ -19,16 +19,15 @@ or
|
|
19
19
|
|
20
20
|
$ sportweb worldcup.db
|
21
21
|
|
22
|
+
Note: The web server runs by default on port `3000`.
|
22
23
|
|
23
24
|
>> Thin web server (v3.7.1 codename Doc Brown)
|
24
25
|
>> Listening on 0.0.0.0:3000, CTRL+C to stop
|
25
26
|
|
26
|
-
Note: The web server runs by default on port `3000`.
|
27
|
-
|
28
27
|
|
29
|
-
#### Step 2: Open your browser
|
28
|
+
#### Step 2: Open your web browser.
|
30
29
|
|
31
|
-
Open your browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
|
30
|
+
Open your web browser of choice (e.g. [`localhost:3000`](http://localhost:3000))
|
32
31
|
and start browsing your open sports database
|
33
32
|
(e.g. `sport.db`, `football.db`, `worldcup.db`, etc.).
|
34
33
|
|
@@ -20,14 +20,44 @@ require 'pp'
|
|
20
20
|
|
21
21
|
# 3rd party gems via bundler (see Gemfile)
|
22
22
|
|
23
|
+
####
|
24
|
+
# Note:
|
25
|
+
# The Bundle setup "clears" the load path,
|
26
|
+
# so the subsequent attempt to require something that is not in Gemfile
|
27
|
+
# will result of the load error.
|
28
|
+
|
29
|
+
##
|
30
|
+
# note: will look for Gemfile in current working folder
|
31
|
+
# use BUNDLE_GEMFILE env variable to
|
32
|
+
# tell bundler where the Gemfile is
|
33
|
+
|
34
|
+
puts "ENV['BUNDLE_GEMFILE']=>>#{ENV['BUNDLE_GEMFILE']}<<"
|
35
|
+
ENV['BUNDLE_GEMFILE'] = "#{SportWeb.root}/Gemfile"
|
36
|
+
puts "ENV['BUNDLE_GEMFILE']=>>#{ENV['BUNDLE_GEMFILE']}<<"
|
37
|
+
|
38
|
+
puts "load_path before:"
|
39
|
+
pp $:
|
40
|
+
|
23
41
|
puts '[boot] before Bundler.setup'
|
24
42
|
Bundler.setup
|
25
43
|
puts '[boot] after Bundler.setup'
|
26
44
|
|
45
|
+
puts "load_path after:"
|
46
|
+
pp $:
|
47
|
+
|
48
|
+
####
|
49
|
+
# Note:
|
50
|
+
# For a small Gemfile, we'd advise you to skip Bundler.require
|
51
|
+
# and just require the gems by hand (especially given the need
|
52
|
+
# to put in a :require directive in the Gemfile).
|
53
|
+
# For much larger Gemfiles, using Bundler.require allows
|
54
|
+
# you to skip repeating a large stack of requirements.
|
55
|
+
|
27
56
|
puts '[boot] before Bundler.require'
|
28
57
|
Bundler.require(:default, ENV['RACK_ENV'].to_sym)
|
29
58
|
puts '[boot] after Bundler.require'
|
30
59
|
|
60
|
+
|
31
61
|
#########
|
32
62
|
# require rails n rails/all - still needed ??
|
33
63
|
puts '[boot] before require rails'
|
data/lib/sportweb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportweb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2014-08-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
16
|
-
requirement: &
|
16
|
+
requirement: &77223640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '4.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *77223640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
-
requirement: &
|
27
|
+
requirement: &77223280 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '3.11'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *77223280
|
36
36
|
description: sportweb - instant open sports web browser command line tool
|
37
37
|
email: opensport@googlegroups.com
|
38
38
|
executables:
|