sportweb 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9b26f84f2e522ccc9a945af0c35697c6daa3717b
4
+ data.tar.gz: 5574599d18d3b0f6362961af09267c801e4db64a
5
+ SHA512:
6
+ metadata.gz: 00d3d42eadcefe1c2521f6fe6258d33bfa99a465798b825cabfd1bdaca6453050bacaf330974f55f09134633868a5ab051d210edf8c657c17daae3092c5440a7
7
+ data.tar.gz: cdf54cc34d18ea6729c358db4669d0f03221c0d612c95d674424f485a2710a3570be7e10aa0496f67c0516bc4fd8eb4aaabb4f004de24120e52a44a95cfa9c4d
data/Gemfile CHANGED
@@ -1,8 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.12'
3
+
4
+ gem 'rails', '4.2.7.1'
5
+
4
6
  gem 'sinatra', require: 'sinatra/base'
5
7
 
8
+
6
9
  gem 'sqlite3' # database - use (embedded) sqlite database
7
10
 
8
11
  gem 'thin' # webserver - use thin web server
@@ -13,25 +16,54 @@ gem 'thin' # webserver - use thin web server
13
16
  gem 'actionpack', require: 'action_controller/railtie' ## needed by sprockets-rails
14
17
  gem 'sprockets-rails', require: 'sprockets/railtie'
15
18
 
16
- gem 'sass-rails' ## todo/check -- require sass-rails/railtie ??
19
+
20
+ gem 'sass-rails', '~> 5.0' ## todo/check -- require sass-rails/railtie ??
17
21
  gem 'jquery-rails' ## todo/check -- require jquery-rails/railtie ?? to activate?
18
22
 
19
23
 
20
- gem 'worlddb'
21
- gem 'sportdb'
24
+
25
+ ############
26
+ # lets use open sport.db schema & fixtures
27
+
28
+ gem 'logutils' ###, '0.6.0'
29
+ gem 'logutils-activerecord' # LogDb n LogDb::Models
30
+ gem 'props'
31
+ gem 'props-activerecord' # ConfDb n ConfDb::Models
32
+
33
+ gem 'worlddb-models', '2.3.4'
34
+ gem 'sportdb-models', '1.16.2'
35
+ gem 'datafile'
36
+
22
37
  gem 'sportdb-admin'
23
38
 
24
39
 
40
+ ########################
41
+ ## add logos n flags
42
+
43
+ gem 'worlddb-flags', '0.1.0' # use bundled country flags
44
+
45
+ ## gem 'sportdb-logos', '0.1.0', git: 'https://github.com/sportlogos/sport.db.logos.ruby.git', branch: 'gh-pages'
46
+ ## gem 'footballdb-logos', '0.1.0', git: 'https://github.com/sportlogos/football.db.logos.ruby.git', branch: 'gh-pages'
47
+
48
+
25
49
  ##########
26
50
  # add sinatra (mountable) app(let)s
27
51
  ## gem 'about' # mountable app - about - sys info pages
28
52
  ## gem 'dbbrowser' # mountable app
29
53
 
30
54
 
55
+ gem 'web-console', '~> 2.0'
56
+ gem 'byebug'
57
+
58
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
59
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
60
+
61
+
62
+
31
63
  #############
32
64
  # note:
33
65
  # needs to include itself too!!!!!!
34
66
  # check version
35
67
  # must match latest!!! - try bundle update before release ???
36
- gem 'sportweb'
37
68
 
69
+ ## gem 'sportweb'
data/Gemfile.lock CHANGED
@@ -1,213 +1,202 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- actionmailer (3.2.12)
5
- actionpack (= 3.2.12)
6
- mail (~> 2.4.4)
7
- actionpack (3.2.12)
8
- activemodel (= 3.2.12)
9
- activesupport (= 3.2.12)
10
- builder (~> 3.0.0)
4
+ actionmailer (4.2.7.1)
5
+ actionpack (= 4.2.7.1)
6
+ actionview (= 4.2.7.1)
7
+ activejob (= 4.2.7.1)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
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)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (4.2.7.1)
18
+ activesupport (= 4.2.7.1)
19
+ builder (~> 3.1)
11
20
  erubis (~> 2.7.0)
12
- journey (~> 1.0.4)
13
- rack (~> 1.4.5)
14
- rack-cache (~> 1.2)
15
- rack-test (~> 0.6.1)
16
- sprockets (~> 2.2.1)
17
- activemodel (3.2.12)
18
- activesupport (= 3.2.12)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.12)
21
- activemodel (= 3.2.12)
22
- activesupport (= 3.2.12)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activerecord-utils (0.2.0)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ activejob (4.2.7.1)
24
+ activesupport (= 4.2.7.1)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.7.1)
27
+ activesupport (= 4.2.7.1)
28
+ builder (~> 3.1)
29
+ activerecord (4.2.7.1)
30
+ activemodel (= 4.2.7.1)
31
+ activesupport (= 4.2.7.1)
32
+ arel (~> 6.0)
33
+ activerecord-utils (0.4.0)
34
+ activerecord
35
+ logutils
36
+ activesupport (4.2.7.1)
37
+ i18n (~> 0.7)
38
+ json (~> 1.7, >= 1.7.7)
39
+ minitest (~> 5.1)
40
+ thread_safe (~> 0.3, >= 0.3.4)
41
+ tzinfo (~> 1.1)
42
+ arel (6.0.3)
43
+ binding_of_caller (0.7.2)
44
+ debug_inspector (>= 0.0.1)
45
+ builder (3.2.2)
46
+ byebug (9.0.6)
47
+ concurrent-ruby (1.0.2)
48
+ daemons (1.2.4)
49
+ datafile (0.2.5)
50
+ fetcher
26
51
  logutils
27
- activeresource (3.2.12)
28
- activemodel (= 3.2.12)
29
- activesupport (= 3.2.12)
30
- activesupport (3.2.12)
31
- i18n (~> 0.6)
32
- multi_json (~> 1.0)
33
- arel (3.0.3)
34
- builder (3.0.4)
35
- daemons (1.1.9)
52
+ textutils
53
+ debug_inspector (0.0.2)
36
54
  erubis (2.7.0)
37
- eventmachine (1.0.3)
38
- fetcher (0.4.3)
55
+ eventmachine (1.2.0.1-x86-mingw32)
56
+ fetcher (0.4.5)
39
57
  logutils (>= 0.6)
40
- gli (2.12.0)
41
- hike (1.2.3)
42
- i18n (0.6.11)
43
- journey (1.0.4)
44
- jquery-rails (3.1.1)
45
- railties (>= 3.0, < 5.0)
58
+ globalid (0.3.7)
59
+ activesupport (>= 4.1.0)
60
+ i18n (0.7.0)
61
+ jquery-rails (4.2.1)
62
+ rails-dom-testing (>= 1, < 3)
63
+ railties (>= 4.2.0)
46
64
  thor (>= 0.14, < 2.0)
47
- json (1.8.1)
48
- logutils (0.6.0)
49
- mail (2.4.4)
50
- i18n (>= 0.4.0)
51
- mime-types (~> 1.16)
52
- treetop (~> 1.4.8)
53
- mime-types (1.25.1)
54
- multi_json (1.10.1)
55
- persondb (0.3.1)
65
+ json (1.8.3)
66
+ logutils (0.6.1)
67
+ logutils-activerecord (0.2.1)
56
68
  activerecord
57
- activerecord-utils
58
- logutils
59
- props
60
- tagutils
61
- textutils
62
- worlddb
63
- polyglot (0.3.5)
64
- props (1.1.1)
65
- rack (1.4.5)
66
- rack-cache (1.2)
67
- rack (>= 0.4)
69
+ logutils (>= 0.6.1)
70
+ loofah (2.0.3)
71
+ nokogiri (>= 1.5.9)
72
+ mail (2.6.4)
73
+ mime-types (>= 1.16, < 4)
74
+ mime-types (3.1)
75
+ mime-types-data (~> 3.2015)
76
+ mime-types-data (3.2016.0521)
77
+ mini_portile2 (2.1.0)
78
+ minitest (5.9.1)
79
+ nokogiri (1.6.8.1-x86-mingw32)
80
+ mini_portile2 (~> 2.1.0)
81
+ persondb-models (0.5.0)
82
+ worlddb-models
83
+ props (1.1.2)
84
+ props-activerecord (0.1.0)
85
+ activerecord
86
+ props (>= 1.1.2)
87
+ rack (1.6.4)
68
88
  rack-protection (1.5.3)
69
89
  rack
70
- rack-ssl (1.3.4)
71
- rack
72
- rack-test (0.6.2)
90
+ rack-test (0.6.3)
73
91
  rack (>= 1.0)
74
- rails (3.2.12)
75
- actionmailer (= 3.2.12)
76
- actionpack (= 3.2.12)
77
- activerecord (= 3.2.12)
78
- activeresource (= 3.2.12)
79
- activesupport (= 3.2.12)
80
- bundler (~> 1.0)
81
- railties (= 3.2.12)
82
- railties (3.2.12)
83
- actionpack (= 3.2.12)
84
- activesupport (= 3.2.12)
85
- rack-ssl (~> 1.3.2)
92
+ rails (4.2.7.1)
93
+ actionmailer (= 4.2.7.1)
94
+ actionpack (= 4.2.7.1)
95
+ actionview (= 4.2.7.1)
96
+ activejob (= 4.2.7.1)
97
+ activemodel (= 4.2.7.1)
98
+ activerecord (= 4.2.7.1)
99
+ activesupport (= 4.2.7.1)
100
+ bundler (>= 1.3.0, < 2.0)
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)
86
114
  rake (>= 0.8.7)
87
- rdoc (~> 3.4)
88
- thor (>= 0.14.6, < 2.0)
89
- rake (10.3.2)
90
- rdoc (3.12.2)
91
- json (~> 1.4)
92
- sass (3.3.14)
93
- sass-rails (3.2.6)
94
- railties (~> 3.2.0)
95
- sass (>= 3.1.10)
96
- tilt (~> 1.3)
97
- sinatra (1.4.5)
98
- rack (~> 1.4)
115
+ thor (>= 0.18.1, < 2.0)
116
+ rake (11.3.0)
117
+ rubyzip (1.2.0)
118
+ sass (3.4.22)
119
+ sass-rails (5.0.6)
120
+ railties (>= 4.0.0, < 6)
121
+ sass (~> 3.1)
122
+ sprockets (>= 2.8, < 4.0)
123
+ sprockets-rails (>= 2.0, < 4.0)
124
+ tilt (>= 1.1, < 3)
125
+ sinatra (1.4.7)
126
+ rack (~> 1.5)
99
127
  rack-protection (~> 1.4)
100
- tilt (~> 1.3, >= 1.3.4)
101
- sportdb (1.9.5)
102
- activerecord
103
- activerecord-utils
104
- fetcher (>= 0.3)
105
- gli (>= 2.5.6)
106
- logutils
107
- persondb
108
- props
109
- tagutils
110
- textutils
111
- worlddb (>= 2.0.2)
112
- sportdb-admin (0.3.0)
113
- sportweb (0.0.3)
114
- actionmailer (= 3.2.12)
115
- actionpack (= 3.2.12)
116
- activemodel (= 3.2.12)
117
- activerecord (= 3.2.12)
118
- activerecord-utils (= 0.2.0)
119
- activeresource (= 3.2.12)
120
- activesupport (= 3.2.12)
121
- arel (= 3.0.3)
122
- builder (= 3.0.4)
123
- daemons (= 1.1.9)
124
- erubis (= 2.7.0)
125
- eventmachine (= 1.0.3)
126
- fetcher (= 0.4.3)
127
- gli (= 2.12.0)
128
- hike (= 1.2.3)
129
- i18n (= 0.6.11)
130
- journey (= 1.0.4)
131
- jquery-rails (= 3.1.1)
132
- json (= 1.8.1)
133
- logutils (= 0.6.0)
134
- mail (= 2.4.4)
135
- mime-types (= 1.25.1)
136
- multi_json (= 1.10.1)
137
- persondb (= 0.3.1)
138
- polyglot (= 0.3.5)
139
- props (= 1.1.1)
140
- rack (= 1.4.5)
141
- rack-cache (= 1.2)
142
- rack-protection (= 1.5.3)
143
- rack-ssl (= 1.3.4)
144
- rack-test (= 0.6.2)
145
- rails (= 3.2.12)
146
- railties (= 3.2.12)
147
- rake (= 10.3.2)
148
- rdoc (= 3.12.2)
149
- sass (= 3.3.14)
150
- sass-rails (= 3.2.6)
151
- sinatra (= 1.4.5)
152
- sportdb (= 1.9.5)
153
- sportdb-admin (= 0.3.0)
154
- sprockets (= 2.2.2)
155
- sprockets-rails (= 0.0.1)
156
- sqlite3 (= 1.3.9)
157
- tagutils (= 0.2.2)
158
- textutils (= 0.9.4)
159
- thin (= 1.6.2)
160
- thor (= 0.19.1)
161
- tilt (= 1.4.1)
162
- treetop (= 1.4.15)
163
- tzinfo (= 0.3.41)
164
- worlddb (= 2.0.4)
165
- sprockets (2.2.2)
166
- hike (~> 1.2)
167
- multi_json (~> 1.0)
168
- rack (~> 1.0)
169
- tilt (~> 1.1, != 1.3.0)
170
- sprockets-rails (0.0.1)
171
- sprockets (>= 1.0.2)
172
- sqlite3 (1.3.9)
173
- tagutils (0.2.2)
128
+ tilt (>= 1.3, < 3)
129
+ sportdb-admin (0.4.0)
130
+ sportdb-models (1.16.2)
131
+ persondb-models (>= 0.4.2)
132
+ worlddb-models (>= 2.1.0)
133
+ sprockets (3.7.0)
134
+ concurrent-ruby (~> 1.0)
135
+ rack (> 1, < 3)
136
+ sprockets-rails (3.2.0)
137
+ actionpack (>= 4.0)
138
+ activesupport (>= 4.0)
139
+ sprockets (>= 3.0.0)
140
+ sqlite3 (1.3.11-x86-mingw32)
141
+ tagutils (0.3.0)
174
142
  activerecord
175
- logutils (>= 0.6)
176
- textutils (0.9.4)
143
+ logutils (>= 0.6.1)
144
+ props (>= 1.1.2)
145
+ textutils (>= 0.10.0)
146
+ textutils (1.4.0)
177
147
  activesupport
178
- logutils (~> 0.5)
179
- props
180
- thin (1.6.2)
181
- daemons (>= 1.0.9)
182
- eventmachine (>= 1.0.0)
183
- rack (>= 1.0.0)
148
+ logutils (>= 0.6.1)
149
+ props (>= 1.1.2)
150
+ rubyzip (>= 1.0.0)
151
+ thin (1.7.0)
152
+ daemons (~> 1.0, >= 1.0.9)
153
+ eventmachine (~> 1.0, >= 1.0.4)
154
+ rack (>= 1, < 3)
184
155
  thor (0.19.1)
185
- tilt (1.4.1)
186
- treetop (1.4.15)
187
- polyglot
188
- polyglot (>= 0.3.1)
189
- tzinfo (0.3.41)
190
- worlddb (2.0.4)
156
+ thread_safe (0.3.5)
157
+ tilt (2.0.5)
158
+ tzinfo (1.2.2)
159
+ thread_safe (~> 0.1)
160
+ tzinfo-data (1.2016.7)
161
+ 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
+ worlddb-flags (0.1.0)
168
+ worlddb-models (2.3.4)
191
169
  activerecord
192
- gli (>= 2.9)
193
- logutils
194
- props
195
- tagutils
196
- textutils (>= 0.9.4)
170
+ activerecord-utils (>= 0.2.0)
171
+ logutils (>= 0.6.1)
172
+ logutils-activerecord (>= 0.2.0)
173
+ props (>= 1.1.2)
174
+ props-activerecord (>= 0.1.0)
175
+ rubyzip
176
+ tagutils (>= 0.3.0)
177
+ textutils (>= 1.3.1)
197
178
 
198
179
  PLATFORMS
199
- ruby
180
+ x86-mingw32
200
181
 
201
182
  DEPENDENCIES
202
183
  actionpack
184
+ byebug
185
+ datafile
203
186
  jquery-rails
204
- rails (= 3.2.12)
205
- sass-rails
187
+ logutils
188
+ logutils-activerecord
189
+ props
190
+ props-activerecord
191
+ rails (= 4.2.7.1)
192
+ sass-rails (~> 5.0)
206
193
  sinatra
207
- sportdb
208
194
  sportdb-admin
209
- sportweb
195
+ sportdb-models (= 1.16.2)
210
196
  sprockets-rails
211
197
  sqlite3
212
198
  thin
213
- worlddb
199
+ tzinfo-data
200
+ web-console (~> 2.0)
201
+ worlddb-flags (= 0.1.0)
202
+ worlddb-models (= 2.3.4)
data/Manifest.txt CHANGED
@@ -1,13 +1,12 @@
1
- Gemfile
2
- Gemfile.lock
3
- HISTORY.md
4
- Manifest.txt
5
- README.md
6
- Rakefile
7
- bin/sportweb
8
- lib/sportweb.rb
9
- lib/sportweb/app.rb
10
- lib/sportweb/boot_with_bundler.rb
11
- lib/sportweb/boot_with_require.rb
12
- lib/sportweb/deps.rb
13
- lib/sportweb/version.rb
1
+ Gemfile
2
+ Gemfile.lock
3
+ HISTORY.md
4
+ Manifest.txt
5
+ README.md
6
+ Rakefile
7
+ bin/sportweb
8
+ lib/sportweb.rb
9
+ lib/sportweb/app.rb
10
+ lib/sportweb/boot_with_bundler.rb
11
+ lib/sportweb/boot_with_require.rb
12
+ lib/sportweb/version.rb
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # sportweb gem - instant open sports web browser command line tool
2
2
 
3
- * home :: [github.com/sportdb/sport.db.web.ruby](https://github.com/sportdb/sport.db.web.ruby)
4
- * bugs :: [github.com/sportdb/sport.db.web.ruby/issues](https://github.com/sportdb/sport.db.web.ruby/issues)
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
5
  * gem :: [rubygems.org/gems/sportweb](https://rubygems.org/gems/sportweb)
6
6
  * rdoc :: [rubydoc.info/gems/sportweb](http://rubydoc.info/gems/sportweb)
7
7
  * forum :: [groups.google.com/group/opensport](https://groups.google.com/group/opensport)
data/Rakefile CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'hoe'
2
2
  require './lib/sportweb/version.rb'
3
- require './lib/sportweb/deps.rb'
3
+
4
+ require './script/deps.rb'
5
+
4
6
 
5
7
  ##############
6
8
  # note:
@@ -22,7 +24,7 @@ Hoe.spec 'sportweb' do
22
24
  self.summary = 'sportweb - instant open sports web browser command line tool'
23
25
  self.description = summary
24
26
 
25
- self.urls = ['https://github.com/sportdb/sport.db.web.ruby']
27
+ self.urls = ['https://github.com/sportdb/sport.db.web']
26
28
 
27
29
  self.author = 'Gerald Bauer'
28
30
  self.email = 'opensport@googlegroups.com'
data/bin/sportweb CHANGED
File without changes
data/lib/sportweb/app.rb CHANGED
@@ -12,7 +12,7 @@ puts '[boot] enter sportweb/app.rb'
12
12
  class SportWebHost < Rails::Application
13
13
 
14
14
  routes.append do
15
- match '/hello/world' => 'hello#world'
15
+ get '/hello/world' => 'hello#world'
16
16
 
17
17
  ## mount About::Server, :at => '/sysinfo'
18
18
  ## mount DbBrowser::Server, :at => '/browse'
@@ -36,6 +36,8 @@ class SportWebHost < Rails::Application
36
36
  # Enable cache classes. Production style.
37
37
  config.cache_classes = true
38
38
 
39
+ config.eager_load = false ## switch to true - why? why not? - default for dev is false
40
+
39
41
  # We need a secret token for session, cookies, etc.
40
42
  config.secret_token = "49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk"
41
43
 
@@ -45,6 +47,7 @@ class SportWebHost < Rails::Application
45
47
  config.assets.enabled = true
46
48
  # Version of your assets, change this if you want to expire all your assets
47
49
  config.assets.version = '1.0'
50
+ config.assets.precompile += %w(*.png)
48
51
 
49
52
  ### Enables Sprockets compile environment.
50
53
  ## If disabled, Rails.application.assets will be unavailable
@@ -62,7 +65,7 @@ end
62
65
 
63
66
  class HelloController < ActionController::Metal
64
67
  include ActionController::Rendering
65
-
68
+
66
69
  def world
67
70
  render text: 'Hello world!'
68
71
  end
@@ -76,12 +79,12 @@ end
76
79
  #
77
80
  # see stackoverflow.com/questions/4204724/strategies-for-overriding-database-yml
78
81
  #
79
- # google for "rails database.yml opt out" ???
82
+ # google for "rails database.yml opt out" ???
80
83
 
81
84
 
82
85
  db_config = {
83
- adapter: 'sqlite3',
84
- database: 'football.db' # NOTE: change to use your db of choice (e.g. worldcup.db, bundesliga.db, ski.db etc.)
86
+ adapter: 'sqlite3',
87
+ database: 'sport.db' # NOTE: change to use your db of choice (e.g. worldcup.db, bundesliga.db, ski.db etc.)
85
88
  }
86
89
 
87
90
  pp db_config
@@ -1,4 +1,4 @@
1
1
 
2
2
  module SportWeb
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.5'
4
4
  end