wbzyl-sinatra-static-assets 0.0.10 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/examples/{mconfig.ru → rconfig.ru} +4 -6
- data/examples/rsummer/config.ru +8 -0
- data/examples/{mapp1 → rsummer}/public/images/tatry1.jpg +0 -0
- data/examples/{mapp1 → rsummer}/public/javascripts/mapp.js +0 -0
- data/examples/{mapp1 → rsummer}/public/stylesheets/mapp.css +0 -0
- data/examples/{mapp1 → rsummer}/public/stylesheets/src/background.png +0 -0
- data/examples/{mapp1/mapp.rb → rsummer/summer.rb} +3 -6
- data/examples/{mapp1 → rsummer}/tmp/always_restart.txt +0 -0
- data/examples/{mapp1 → rsummer}/views/app.erb +0 -0
- data/examples/{mapp1 → rsummer}/views/layout.erb +0 -0
- data/examples/{mapp2 → rwinter}/config.ru +0 -0
- data/examples/{mapp2 → rwinter}/mapp.rb +0 -0
- data/examples/{mapp2 → rwinter}/public/images/tatry2.jpg +0 -0
- data/examples/{mapp2 → rwinter}/public/javascripts/mapp.js +0 -0
- data/examples/{mapp2 → rwinter}/public/stylesheets/mapp.css +0 -0
- data/examples/{mapp2 → rwinter}/public/stylesheets/src/background.png +0 -0
- data/examples/{mapp2 → rwinter}/tmp/always_restart.txt +0 -0
- data/examples/{mapp2 → rwinter}/views/layout.erb +0 -0
- data/examples/{mapp2 → rwinter}/views/mapp.erb +0 -0
- metadata +22 -22
- data/examples/mapp1/config.ru +0 -14
data/VERSION.yml
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'rsummer/mapp'
|
2
|
+
require 'rwinter/mapp'
|
3
3
|
|
4
|
-
|
4
|
+
Rapp = Rack::Builder.new do
|
5
5
|
use Rack::ShowExceptions
|
6
6
|
use Rack::Lint
|
7
7
|
|
8
|
-
#use Rack::Static, :urls => ["/stylesheets", "/images"], :root => "public"
|
9
|
-
|
10
8
|
map '/mapp1' do
|
11
9
|
run Sinatra::Mapp1.new
|
12
10
|
end
|
@@ -16,4 +14,4 @@ Mapp = Rack::Builder.new do
|
|
16
14
|
end
|
17
15
|
end
|
18
16
|
|
19
|
-
run
|
17
|
+
run Rapp
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,21 +2,18 @@
|
|
2
2
|
|
3
3
|
require 'sinatra/base'
|
4
4
|
|
5
|
-
gem 'sinatra-static-assets'
|
5
|
+
gem 'wbzyl-sinatra-static-assets'
|
6
6
|
require 'sinatra/static_assets'
|
7
7
|
|
8
8
|
module Sinatra
|
9
|
-
class
|
9
|
+
class Summer < Sinatra::Base
|
10
10
|
helpers Sinatra::UrlForHelper
|
11
11
|
helpers Sinatra::StaticAssets
|
12
12
|
|
13
13
|
set :app_file, __FILE__
|
14
14
|
set :static, true
|
15
15
|
|
16
|
-
|
17
|
-
#set :views, Proc.new { File.join(root, "views") }
|
18
|
-
|
19
|
-
get '/' do
|
16
|
+
get '/?' do
|
20
17
|
@title = "Tatra Mountains, Błyszcz (2159 m)"
|
21
18
|
erb :app
|
22
19
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wbzyl-sinatra-static-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wlodek Bzyl
|
@@ -64,25 +64,25 @@ extra_rdoc_files:
|
|
64
64
|
files:
|
65
65
|
- TODO
|
66
66
|
- VERSION.yml
|
67
|
-
- examples/
|
68
|
-
- examples/
|
69
|
-
- examples/
|
70
|
-
- examples/
|
71
|
-
- examples/
|
72
|
-
- examples/
|
73
|
-
- examples/
|
74
|
-
- examples/
|
75
|
-
- examples/
|
76
|
-
- examples/
|
77
|
-
- examples/
|
78
|
-
- examples/
|
79
|
-
- examples/
|
80
|
-
- examples/
|
81
|
-
- examples/
|
82
|
-
- examples/
|
83
|
-
- examples/
|
84
|
-
- examples/
|
85
|
-
- examples/
|
67
|
+
- examples/rconfig.ru
|
68
|
+
- examples/rsummer/config.ru
|
69
|
+
- examples/rsummer/public/images/tatry1.jpg
|
70
|
+
- examples/rsummer/public/javascripts/mapp.js
|
71
|
+
- examples/rsummer/public/stylesheets/mapp.css
|
72
|
+
- examples/rsummer/public/stylesheets/src/background.png
|
73
|
+
- examples/rsummer/summer.rb
|
74
|
+
- examples/rsummer/tmp/always_restart.txt
|
75
|
+
- examples/rsummer/views/app.erb
|
76
|
+
- examples/rsummer/views/layout.erb
|
77
|
+
- examples/rwinter/config.ru
|
78
|
+
- examples/rwinter/mapp.rb
|
79
|
+
- examples/rwinter/public/images/tatry2.jpg
|
80
|
+
- examples/rwinter/public/javascripts/mapp.js
|
81
|
+
- examples/rwinter/public/stylesheets/mapp.css
|
82
|
+
- examples/rwinter/public/stylesheets/src/background.png
|
83
|
+
- examples/rwinter/tmp/always_restart.txt
|
84
|
+
- examples/rwinter/views/layout.erb
|
85
|
+
- examples/rwinter/views/mapp.erb
|
86
86
|
- examples/summer/config.ru
|
87
87
|
- examples/summer/public/images/tatry1.jpg
|
88
88
|
- examples/summer/public/javascripts/app.js
|
@@ -137,6 +137,6 @@ test_files:
|
|
137
137
|
- test/test_helper.rb
|
138
138
|
- test/sinatra_static_assets_test.rb
|
139
139
|
- examples/summer/summer.rb
|
140
|
-
- examples/
|
141
|
-
- examples/
|
140
|
+
- examples/rsummer/summer.rb
|
141
|
+
- examples/rwinter/mapp.rb
|
142
142
|
- examples/winter/app2.rb
|
data/examples/mapp1/config.ru
DELETED