- 20 12月, 2008 1 次提交
-
-
由 Joshua Peek 提交于
Diverge Metal implementation from Rack::Cascade since we want the last app to return its headers and body if the status is a 404.
-
- 19 12月, 2008 24 次提交
-
-
由 Pratik Naik 提交于
-
由 Pratik Naik 提交于
-
由 Murray Steele 提交于
Add a repair_helper to repair changes to the validations inside validations_test.rb [#674 state:resolved] Many of the tests in validations_test would add a new validation to models. However, only Topic was being reset with a fairly aggressive clearing of all validations. None of the other models being used however were recieving the same treatment. Now we use repair_validations(Topic) for the whole test case because most test cases use Topic and then the block form of repair_validations(<other_models>) inside any tests that use other models. Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Pratik Naik 提交于
This reverts commit e8c19154. Reasons : - ActionPack tests run very slow - Gem.searcher hanging for long time when extension is nil
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Jeremy Kemper 提交于
-
由 Matt Jones 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
由 Manfred Stienstra 提交于
No freeing Result objects causes the MySQL driver to free result sets at undefined times, this can lead to erratic performance in your application. Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
由 Frederick Cheung 提交于
-
由 Frederick Cheung 提交于
-
由 Emilio Tagua 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
由 Frederick Cheung 提交于
-
由 Frederick Cheung 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Lourens Naude 提交于
Persistent session identifier support for CookieSessionStore and API compat. with the server side stores [#1591 state:resolved] Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 18 12月, 2008 3 次提交
-
-
由 Brady Bouchard 提交于
Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
由 Joshua Peek 提交于
When checking for the wrong routing method, ensure the environment is passed to recognize optimize [#1406 state:resolved]
-
由 Joshua Peek 提交于
-
- 17 12月, 2008 6 次提交
-
-
由 Joshua Peek 提交于
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
-
由 Jesse Newland 提交于
Decorate responses from Rack Middleware and Rails Metal for the purposes of integration testing. A test for the following Metal: class Poller < Rails::Rack::Metal def call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "text/plain"}, "Hello World!"] else super end end end might be tested like so: class PollerTest < ActionController::IntegrationTest test "poller returns hello world" do get "/poller" assert_response 200 assert_response :success assert_response :ok assert_equal "Hello World!", response.body end end [#1588 state:committed] Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
# 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`
-
- 16 12月, 2008 6 次提交
-
-
由 Daniel Luz 提交于
Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Xavier Noria 提交于
Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Hongli Lai (Phusion 提交于
Do not output an ETag header if response body is blank or when sending files with send_file(... :xsendfile => true) [#1578 state:committed] Signed-off-by: NDavid Heinemeier Hansson <david@loudthinking.com>
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
Session objects are always a hash, so we need to ensure a flash hash is always assigned to the session
-