Renamed files.

This commit is contained in:
Wlodek Bzyl 2009-06-01 23:12:22 +02:00
parent 9fbd3697eb
commit 87e3bc293c
3 changed files with 48 additions and 33 deletions

View File

@ -1,14 +1,8 @@
require 'mapp' require 'summer'
Mapp1 = Rack::Builder.new do
use Rack::ShowExceptions use Rack::ShowExceptions
use Rack::Lint use Rack::Lint
use Rack::Static, :urls => ["/stylesheets", "/images"], :root => "public"
map '/' do map '/' do
run Sinatra::Mapp1.new run Sinatra::Summer.new
end end
end
run Mapp1

View File

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
require 'sinatra/base'
gem 'wbzyl-sinatra-static-assets'
require 'sinatra/static_assets'
module Sinatra
class Summer < Sinatra::Base
helpers Sinatra::UrlForHelper
helpers Sinatra::StaticAssets
set :app_file, __FILE__
set :static, true
get '/?' do
@title = "Tatra Mountains, Błyszcz (2159 m)"
erb :app
end
end
end

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{sinatra-static-assets} s.name = %q{sinatra-static-assets}
s.version = "0.1.0" s.version = "0.1.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Wlodek Bzyl"] s.authors = ["Wlodek Bzyl"]
@ -20,25 +20,25 @@ Gem::Specification.new do |s|
s.files = [ s.files = [
"TODO", "TODO",
"VERSION.yml", "VERSION.yml",
"examples/mapp1/config.ru", "examples/rconfig.ru",
"examples/mapp1/mapp.rb", "examples/rsummer/config.ru",
"examples/mapp1/public/images/tatry1.jpg", "examples/rsummer/public/images/tatry1.jpg",
"examples/mapp1/public/javascripts/mapp.js", "examples/rsummer/public/javascripts/mapp.js",
"examples/mapp1/public/stylesheets/mapp.css", "examples/rsummer/public/stylesheets/mapp.css",
"examples/mapp1/public/stylesheets/src/background.png", "examples/rsummer/public/stylesheets/src/background.png",
"examples/mapp1/tmp/always_restart.txt", "examples/rsummer/summer.rb",
"examples/mapp1/views/app.erb", "examples/rsummer/tmp/always_restart.txt",
"examples/mapp1/views/layout.erb", "examples/rsummer/views/app.erb",
"examples/mapp2/config.ru", "examples/rsummer/views/layout.erb",
"examples/mapp2/mapp.rb", "examples/rwinter/config.ru",
"examples/mapp2/public/images/tatry2.jpg", "examples/rwinter/mapp.rb",
"examples/mapp2/public/javascripts/mapp.js", "examples/rwinter/public/images/tatry2.jpg",
"examples/mapp2/public/stylesheets/mapp.css", "examples/rwinter/public/javascripts/mapp.js",
"examples/mapp2/public/stylesheets/src/background.png", "examples/rwinter/public/stylesheets/mapp.css",
"examples/mapp2/tmp/always_restart.txt", "examples/rwinter/public/stylesheets/src/background.png",
"examples/mapp2/views/layout.erb", "examples/rwinter/tmp/always_restart.txt",
"examples/mapp2/views/mapp.erb", "examples/rwinter/views/layout.erb",
"examples/mconfig.ru", "examples/rwinter/views/mapp.erb",
"examples/summer/config.ru", "examples/summer/config.ru",
"examples/summer/public/images/tatry1.jpg", "examples/summer/public/images/tatry1.jpg",
"examples/summer/public/javascripts/app.js", "examples/summer/public/javascripts/app.js",
@ -72,8 +72,8 @@ Gem::Specification.new do |s|
"test/test_helper.rb", "test/test_helper.rb",
"test/sinatra_static_assets_test.rb", "test/sinatra_static_assets_test.rb",
"examples/summer/summer.rb", "examples/summer/summer.rb",
"examples/mapp2/mapp.rb", "examples/rsummer/summer.rb",
"examples/mapp1/mapp.rb", "examples/rwinter/mapp.rb",
"examples/winter/app2.rb" "examples/winter/app2.rb"
] ]