aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
Commit message (Collapse)AuthorAgeFilesLines
* Only silence backtrace from plugin lib dirsJeremy Kemper2008-12-301-1/+2
|
* Clean trailing / after rails root from backtracesJeremy Kemper2008-12-301-1/+1
|
* 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.
* Merge docrailsPratik Naik2008-12-191-1/+1
|
* Cheaper metal cascadeJeremy Kemper2008-12-182-10/+51
|
* Rename Rails::Rack::Logger -> LogTailer. Speed up log mtime checks.Jeremy Kemper2008-12-183-29/+36
|
* 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-162-0/+22
| | | | | | | | | | | | | | | | | | | # 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`
* Added gem backtrace pretty priting (Juan Lupión) [#1497 state:committed]David Heinemeier Hansson2008-12-151-0/+3
|
* Silence server backtrace in rescue templates and log files. Also remove some ↵Joshua Peek2008-12-051-2/+4
| | | | noise from missing template errors.
* Merge branch 'master' of git@github.com:rails/railsJeremy Kemper2008-12-031-0/+1
|\
| * handle missing dependecies in gem loadingMatt Jones2008-12-011-0/+1
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | Require rack/utils explicitlyJeremy Kemper2008-12-031-0/+2
|/
* Include Rack in the server noiseDavid Heinemeier Hansson2008-11-291-2/+2
|
* Added view path support for engines [DHH]David Heinemeier Hansson2008-11-272-15/+30
|
* Let all plugins not just engines have a config/routes.rb fileDavid Heinemeier Hansson2008-11-261-1/+2
|
* Added that config/routes.rb files in engine plugins are automatically loaded ↵David Heinemeier Hansson2008-11-262-3/+37
| | | | (and reloaded when they change in dev mode) [DHH]
* Added app/[models|controllers|helpers] to the load path for plugins that has ↵David Heinemeier Hansson2008-11-262-6/+29
| | | | an app directory (go engines ;)) [DHH]
* Move debugger into middlewareJoshua Peek2008-11-252-0/+22
|
* Strip out the ./ part of the test path so the backtrace align perfectlyDavid Heinemeier Hansson2008-11-241-0/+1
|
* Accept a prefix argument to filter_backtrace_with_cleaning [#1456 ↵Manfred Stienstra2008-11-241-6/+4
| | | | | | | | | state:committed] Add a prefix argument to filter_backtrace_with_cleaning so it has the same arity as test/unit's filter_backtrace. Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Kill dead "new_mongrel" handlerJoshua Peek2008-11-222-397/+0
|
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-0/+34
| | | | cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
* Assume that the next version is going to be 2.3 for nowDavid Heinemeier Hansson2008-11-191-2/+2
|
* Prepare for RC2David Heinemeier Hansson2008-11-141-1/+1
|
* Properly check silence_spec_warnings class variable [#1372 state:committed]Chris Wanstrath2008-11-141-2/+2
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Make refresh_specs more resilient. Always add vendor/gems to gem search ↵Matt Jones2008-11-011-13/+24
| | | | | | path. Use Gem.clear_paths to ensure we get a current searcher. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* config.gem: Fix typo in unpack, skip dependencies on unloaded gems, and ↵Matt Jones2008-10-201-1/+1
| | | | | | silence spec warnings on refresh. [#1128] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Initialize silence_spec_warningsMatt Jones2008-10-131-0/+2
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1128 state:resolved]
* Make VendorGemSourceIndex handle broken/missing specs generated by previous ↵Matt Jones2008-10-132-23/+97
| | | | | | versions. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix definition of find_nameMatt Jones2008-10-081-2/+2
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1128 state:committed]
* Mark gem as not loaded when spec not foundMatt Jones2008-10-081-0/+2
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix deprecated ActionController::Base.relative_url_root call in mongrel commandChris Cherry2008-10-051-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix a number of errors in the config.gem mechanism.Matt Jones2008-10-054-35/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rails::GemDependency was missing definitions for hash and eql?, causing Array#uniq to not work. * If several versions of a gem are unpacked in vendor, now chooses the highest if no version is specified. * streamlined add_load_path. Now sets up Rubygems correctly to allow 'gem' to find frozen gems, with gems frozen to vendor/gems and specifications in vendor/gems/<gem-name>/.specification * Rails::GemDependency#specification would return a spec for the highest installed version, even for frozen gems and/or previously loaded lower versions. See in part ticket #1123. * removed vendor from default_load_paths - it was causing autoloading to append Gems::Gems::<gem-dir> to constant names * added additional tests for loading frozen gems. * incorporates the fix from #1107 for vendor rails * defers to freeze:gems for handling the Rails framework. gems:unpack WILL NOT place a copy of Rails in vendor/gems. Should close #1123 completely. * incorporates, via using the gem loader for frozen gems, fixes corresponding to #227, #324, #362, #527, and #742. * gem plugins now work the same whether frozen or not. Correctness of the behavior is a matter for another ticket... Signed-off-by: rick <technoweenie@gmail.com>
* Partially revert 185fe2e9cce737d69d3b47a656f3651ce152c0c1Michael Koziarski2008-09-241-1/+3
| | | | We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
* Bump the Version constants to align with the *next* release rather than the ↵Michael Koziarski2008-09-221-1/+1
| | | | | | previous release. This allows people tracking non-release gems or git submodules to use the constants.
* Added rack logger middleware that tails the environment logJoshua Peek2008-08-192-0/+29
|
* Make requiring gems optional.Ben Sandofsky2008-08-041-1/+1
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#743 state:resolved]
* Plugin locator: sort directory listing because we can't assume that the OS ↵Hongli Lai (Phusion2008-07-091-1/+1
| | | | will do it for us. This fixes some unit test failures.
* Fix discrepancies with loading rails/init.rb from gems. [#324 state:resolved]rick2008-06-083-14/+20
|
* Make plugins initialize also from rails/init.rb to ensure consistency with ↵Jacek Becela2008-06-081-1/+9
| | | | | | gems used as plugins [#272 state:resolved]
* GemDependency#specification should be publicJeremy Kemper2008-06-061-16/+15
|
* Dependencies move to ActiveSupport::Dependencies missed a few spotsDavid Heinemeier Hansson2008-06-031-2/+2
|
* In 9c4f003, gem installation quotes versions. Do the same for unpack and ↵Joshua Peek2008-06-021-8/+8
| | | | update tests to reflect the change.
* Added Rack middleware to handle static files.Joshua Peek2008-06-012-0/+40
|
* Previously we only added the "lib" subdirectory to the load path whenrick2008-05-311-1/+3
| | | | | | | | setting up gem dependencies for frozen gems. Now we add the "ext" subdirectory as well for those gems which have compiled C extensions as well. [Wincent Colaiuta] [#268 state:resolved]
* Making ready for release of 2.1David Heinemeier Hansson2008-05-311-2/+2
|
* fix doc typosrick2008-05-311-2/+1
|
* Expose GemPlugin load_paths so they can be added to Dependencies.load_paths. ↵Dmitriy Timokhin2008-05-311-10/+6
| | | | Also use full_gem_path as root of GemPlugin to make things compatible. [#213 state:resolved]