Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove sinatra/respond_to until it's needed

sinatra/respond_to strips extensions from the url, so
repositories like "koraktor/braumeister.org" don't work.
  • Loading branch information...
commit 568890f7af51d6a6e092f12d938f205a55575c75 1 parent a9a52c4
@rubiii rubiii authored
View
1  Gemfile
@@ -1,7 +1,6 @@
source :rubygems
gem "sinatra", "~> 1.3", :require => "sinatra/base"
-gem "sinatra-respond_to", "~> 0.8", :require => "sinatra/respond_to"
gem "travis-lint", ">= 1.2", :require => "travis/lint"
gem "json", "~> 1.6"
gem "sass", "~> 3.1"
View
3  Gemfile.lock
@@ -12,8 +12,6 @@ GEM
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
- sinatra-respond_to (0.8.0)
- sinatra (~> 1.3)
tilt (1.3.3)
travis-lint (1.2.0)
hashr (>= 0.0.19)
@@ -26,5 +24,4 @@ DEPENDENCIES
json (~> 1.6)
sass (~> 3.1)
sinatra (~> 1.3)
- sinatra-respond_to (~> 0.8)
travis-lint (>= 1.2)
View
9 application.rb
@@ -7,14 +7,12 @@ module Travis
module WebLint
class Application < Sinatra::Base
- register Sinatra::RespondTo
-
configure :production do
set :raise_errors, false
set :show_exceptions, false
end
- get "/style" do
+ get "/style.css" do
sass :style
end
@@ -35,10 +33,7 @@ class Application < Sinatra::Base
repo = params["splat"].first
@result = Validator.validate_repo(repo)
- respond_to do |wants|
- wants.html { haml :result }
- wants.json { @result.to_json }
- end
+ haml :result
end
error do
View
0  views/error.html.haml → views/error.haml
File renamed without changes
View
0  views/index.html.haml → views/index.haml
File renamed without changes
View
0  views/layout.html.haml → views/layout.haml
File renamed without changes
View
0  views/result.html.haml → views/result.haml
File renamed without changes
View
0  views/style.css.sass → views/style.sass
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.