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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 0
4
- :patch: 10
3
+ :minor: 1
4
+ :patch: 1
@@ -1,12 +1,10 @@
1
- require 'mapp1/mapp'
2
- require 'mapp2/mapp'
1
+ require 'rsummer/mapp'
2
+ require 'rwinter/mapp'
3
3
 
4
- Mapp = Rack::Builder.new do
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 Mapp
17
+ run Rapp
@@ -0,0 +1,8 @@
1
+ require 'summer'
2
+
3
+ use Rack::ShowExceptions
4
+ use Rack::Lint
5
+
6
+ map '/' do
7
+ run Sinatra::Summer.new
8
+ end
@@ -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 Mapp1 < Sinatra::Base
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
- #set :root, File.dirname(__FILE__)
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
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.0.10
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/mapp1/config.ru
68
- - examples/mapp1/mapp.rb
69
- - examples/mapp1/public/images/tatry1.jpg
70
- - examples/mapp1/public/javascripts/mapp.js
71
- - examples/mapp1/public/stylesheets/mapp.css
72
- - examples/mapp1/public/stylesheets/src/background.png
73
- - examples/mapp1/tmp/always_restart.txt
74
- - examples/mapp1/views/app.erb
75
- - examples/mapp1/views/layout.erb
76
- - examples/mapp2/config.ru
77
- - examples/mapp2/mapp.rb
78
- - examples/mapp2/public/images/tatry2.jpg
79
- - examples/mapp2/public/javascripts/mapp.js
80
- - examples/mapp2/public/stylesheets/mapp.css
81
- - examples/mapp2/public/stylesheets/src/background.png
82
- - examples/mapp2/tmp/always_restart.txt
83
- - examples/mapp2/views/layout.erb
84
- - examples/mapp2/views/mapp.erb
85
- - examples/mconfig.ru
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/mapp2/mapp.rb
141
- - examples/mapp1/mapp.rb
140
+ - examples/rsummer/summer.rb
141
+ - examples/rwinter/mapp.rb
142
142
  - examples/winter/app2.rb
@@ -1,14 +0,0 @@
1
- require 'mapp'
2
-
3
- Mapp1 = Rack::Builder.new do
4
- use Rack::ShowExceptions
5
- use Rack::Lint
6
-
7
- use Rack::Static, :urls => ["/stylesheets", "/images"], :root => "public"
8
-
9
- map '/' do
10
- run Sinatra::Mapp1.new
11
- end
12
- end
13
-
14
- run Mapp1