aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/rack
Commit message (Collapse)AuthorAgeFilesLines
* Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs ↵David Heinemeier Hansson2009-11-231-0/+2
| | | | [DHH]
* Fix Rails::Rack::Static deprecated constant proxyJeremy Kemper2009-11-211-1/+1
|
* Revert "Final steps toward clean rails "foo"; cd foo; gem bundle; ↵Jeremy Kemper2009-11-191-2/+3
| | | | | | | | script/server working" Broke stuff. This reverts commit 520b8b59110dd130c89b317b6bd65d8644c7836f.
* Final steps toward clean rails "foo"; cd foo; gem bundle; script/server workingYehuda Katz + Carl Lerche2009-11-181-3/+2
|
* Move Rails::Static into ActionDispatchJoshua Peek2009-09-261-44/+3
|
* Enable static asset server by defaultJoshua Peek2009-09-261-2/+2
|
* make pass through error code configurable [#2817 state:resolved]John Duff2009-07-221-1/+7
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* fix problems with requires in metal choking under development reloading ↵Tim Connor2009-05-041-1/+2
| | | | | | [#2579 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* No more free lunchJeremy Kemper2009-04-221-0/+1
|
* Make sure Metal use ActionController class name conventions [#2242 ↵Luca Guidi2009-03-151-1/+1
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix serving index files with rack static file server [#2180 state:resolved]Joshua Peek2009-03-091-4/+13
|
* Ensure that loading metals from the main app and engines works on older Ruby ↵Simon Jefford2009-03-051-3/+5
| | | | | | versions [#2143 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Enhanced Rails Metal - the load order of metals can now be configured [#2057 ↵Simon Jefford2009-03-031-3/+13
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Metal can now line in plugins under app/metal [#2045 state:committed]Matthew Rudy Jacobs2009-02-271-6/+9
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Diverge Metal implementation from Rack::Cascade since we want the last app ↵Joshua Peek2008-12-192-44/+22
| | | | to return its headers and body if the status is a 404.
* Cheaper metal cascadeJeremy Kemper2008-12-182-10/+51
|
* Rename Rails::Rack::Logger -> LogTailer. Speed up log mtime checks.Jeremy Kemper2008-12-182-28/+35
|
* Cheaper log tail time comparisonJeremy Kemper2008-12-181-3/+3
|
* Make generated Metal bits a pure rack endpoint application (not middleware)Joshua Peek2008-12-171-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of calling super to pass the request on, return a 404. The modified app looks like this: # app/metal/poller.rb class Poller def self.call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "text/html"}, "Hello, World!"] else [404, {"Content-Type" => "text/html"}, "Not Found"] end end end But you aren't locked in to just Rails: # app/metal/api.rb require 'sinatra' Sinatra::Application.default_options.merge!(:run => false, :env => :production) Api = Sinatra.application unless defined? Api get '/interesting/new/ideas' do 'Hello Sinatra!' end
* Introduce Rails MetalJoshua Peek2008-12-161-0/+21
| | | | | | | | | | | | | | | | | | | # app/metal/poller.rb class Poller < Rails::Rack::Metal def call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "application/json"}, Message.recent.to_json] else super end end end * There is a generator to help you get started `script/generate metal poller` * Also, metal bits can be ran standalone with rackup `rackup app/metal/poller.rb`
* Require rack/utils explicitlyJeremy Kemper2008-12-031-0/+2
|
* Move debugger into middlewareJoshua Peek2008-11-251-0/+21
|
* Added rack logger middleware that tails the environment logJoshua Peek2008-08-191-0/+28
|
* Added Rack middleware to handle static files.Joshua Peek2008-06-011-0/+35