Sing this diddy to move on:
++get "/" do + ... your code here .. +end+
diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 00000000..47ece533 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1 @@ +v0.1.0 Released! diff --git a/Manifest b/Manifest new file mode 100644 index 00000000..e6128b31 --- /dev/null +++ b/Manifest @@ -0,0 +1,50 @@ +CHANGELOG +RakeFile +README +x.rb +examples/hello/hello.rb +examples/hello/views/hello.erb +examples/todo/todo.rb +files/default_index.erb +files/error.erb +files/logo.png +files/not_found.erb +lib/sinatra.rb +lib/sinatra/context.rb +lib/sinatra/dispatcher.rb +lib/sinatra/dsl.rb +lib/sinatra/environment.rb +lib/sinatra/event.rb +lib/sinatra/irb.rb +lib/sinatra/loader.rb +lib/sinatra/logger.rb +lib/sinatra/options.rb +lib/sinatra/pretty_url.rb +lib/sinatra/route.rb +lib/sinatra/server.rb +lib/sinatra/test_methods.rb +lib/sinatra/context/renderer.rb +lib/sinatra/core_ext/array.rb +lib/sinatra/core_ext/class.rb +lib/sinatra/core_ext/hash.rb +lib/sinatra/core_ext/kernel.rb +lib/sinatra/core_ext/metaid.rb +lib/sinatra/core_ext/module.rb +lib/sinatra/core_ext/symbol.rb +site/index.html +site/logo.png +test/helper.rb +test/sinatra/dispatcher_test.rb +test/sinatra/event_test.rb +test/sinatra/pretty_url_test.rb +test/sinatra/renderer_test.rb +test/sinatra/route_test.rb +test/sinatra/static_files_test.rb +test/sinatra/url_test.rb +test/sinatra/static_files/foo.txt +vendor/erb/init.rb +vendor/erb/lib/erb.rb +vendor/haml/init.rb +vendor/haml/lib/haml.rb +Rakefile +Manifest diff --git a/RakeFile b/RakeFile index dc2edbad..58ff50a3 100644 --- a/RakeFile +++ b/RakeFile @@ -1,5 +1,29 @@ require 'rake/testtask' require 'ftools' +require 'hoe' + +Version = '0.1.0' + +begin + require 'rubygems' + gem 'echoe' + ENV['RUBY_FLAGS'] = "" + require 'echoe' + + Echoe.new('sinatra') do |p| + p.rubyforge_name = 'sinatra' + p.dependencies = ['mongrel >=1.0.1', 'rack >=0.2.0'] + p.summary = "Sinatra is a classy web-framework dressed in a DSL" + p.description = "Sinatra is a classy web-framework dressed in a DSL" + p.url = "http://sinatra.rubyforge.org/" + p.author = 'Blake Mizerany' + p.email = "blake.mizerany@gmail.com" + p.test_pattern = 'test/**/*_test.rb' + p.include_rakefile = true + end + +rescue LoadError +end task :default => :test diff --git a/examples/hello/hello.rb b/examples/hello/hello.rb index f1ab1801..89a9a329 100644 --- a/examples/hello/hello.rb +++ b/examples/hello/hello.rb @@ -1,9 +1,9 @@ $LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib' require 'sinatra' -get '/' do - "Hello World!" -end +# get '/' do +# "Hello World!" +# end get '/erb.xml' do header 'Content-Type' => 'application/xml' diff --git a/files/default_index.erb b/files/default_index.erb index f929d7b1..243dad20 100644 --- a/files/default_index.erb +++ b/files/default_index.erb @@ -1 +1,42 @@ -Default Index!!!!!!! \ No newline at end of file + + + +
+ ++get "/" do + ... your code here .. +end+