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 + + + + + + Sinatra has taken the stage! + + + + +
+ +
+

Sing this diddy to move on:

+
+get "/" do
+  ... your code here ..
+end
+
+
+ + \ No newline at end of file diff --git a/files/logo.png b/files/logo.png new file mode 100644 index 00000000..a0d868a0 Binary files /dev/null and b/files/logo.png differ diff --git a/files/not_found.erb b/files/not_found.erb index e9194acb..1c6ad778 100644 --- a/files/not_found.erb +++ b/files/not_found.erb @@ -39,7 +39,7 @@

Sinatra doesn't know this diddy, but he's a quick study.

-

Add this to your lyrics:

+

Sing this one:

<%= request.request_method.downcase %> '<%= request.path_info %>' do
 	html "Replace this with your code."
 end
diff --git a/site/index.html b/site/index.html new file mode 100644 index 00000000..ace7600f --- /dev/null +++ b/site/index.html @@ -0,0 +1,87 @@ + + + + + + Sinatra : Classy web-development dressed in a DSL + + + + + +
+ +
+
+
+

+ Install!
+

gem install sinatra -y
+

+

+ Write! (any filename you wish)
+

+# lyrics.rb
+require 'rubygems'
+require 'sinatra'
+ yup.. that's it for a sec
+

+

+ Run!
+

ruby lyrics.rb
+

+

+ Bask!
+

http://localhost:4567
+

+

+ Example! +

+get '/' do
+  "Now that's a fine looking dame!"
+end
+

+
+
+
+ + diff --git a/site/logo.png b/site/logo.png new file mode 100644 index 00000000..a0d868a0 Binary files /dev/null and b/site/logo.png differ