soxer 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,4 +1,9 @@
1
- = 0.9.5 / 2010-10-00
1
+ = 0.9.6 / 2010-10-31
2
+
3
+ * Forgot to include the streamlined empty skeleton for a modular style
4
+ application.
5
+
6
+ = 0.9.5 / 2010-10-31
2
7
 
3
8
  * Inline documentation has been adjusted and slightly improved.
4
9
 
@@ -3,38 +3,15 @@ require "rubygems"
3
3
  require "sinatra"
4
4
  require "soxer"
5
5
 
6
- not_found { 'The document does not exist' }
7
-
8
- get("/sitemap.xml") { sitemap }
9
-
10
- get "/css/:sheet.css" do
11
- content_type "text/css", :charset => "utf-8"
12
- sass params[:sheet].to_sym
13
- end
14
-
15
- get '*.*' do
16
- file = File.join( settings.root, settings.origin, params[:splat].join('.') )
17
- case params[:splat][1]
18
- when /[jpg|png|pdf|doc|xls|pdf]/ then send_file(file, :disposition => nil)
19
- end
20
- end
21
-
22
- post '*/?' do
23
- content_type "text/html", :charset => "utf-8"
24
- page = get_page
25
- page['layout'] ||= 'layout'
26
- haml page['content'], :layout => page['layout'].to_sym, :locals => { :page => page }
27
- end
28
-
29
- get '*/?' do
30
- content_type "text/html", :charset => "utf-8"
31
-
32
- if params[:splat][0] =~ /-atom$/ then
33
- set :haml, { :format => :xhtml }
34
- content_type "application/atom+xml", :charset => "utf-8"
6
+ class SoxerApp < Sinatra::Base
7
+ register Sinatra::Soxer
8
+
9
+ # Only for sending forms... not a part of Soxer per se...
10
+ post '*/?' do
11
+ content_type "text/html", :charset => "utf-8"
12
+ page = get_page
13
+ page['layout'] ||= 'layout'
14
+ haml page['content'], :layout => page['layout'].to_sym, :locals => { :page => page }
35
15
  end
36
16
 
37
- page = get_page
38
- page['layout'] ||= 'layout'
39
- haml page['content'], :layout => page['layout'].to_sym, :locals => { :page => page }
40
17
  end
@@ -20,4 +20,7 @@ configure :production do
20
20
  end
21
21
 
22
22
  set :environment, :production
23
- run Sinatra::Application
23
+
24
+ map '/'
25
+ run SoxerApp
26
+ end
data/soxer.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.7'
5
5
 
6
6
  s.name = 'soxer'
7
- s.version = '0.9.5'
7
+ s.version = '0.9.6'
8
8
  s.date = '2010-11-01'
9
9
  s.rubyforge_project = 'soxer'
10
10
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soxer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Toni Anzlovar