Displaying 4 results from an estimated 4 matches for "simpledelegator".
2005 Feb 07
1
[matz@ruby-lang.org: Re: Performance of CGI::Cookie / SimpleDelegator fix]
...rrent will be much more usable on Windows.
----- Forwarded message from Yukihiro Matsumoto <matz@ruby-lang.org> -----
Date: Tue, 8 Feb 2005 09:32:52 +0900
From: Yukihiro Matsumoto <matz@ruby-lang.org>
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: Performance of CGI::Cookie / SimpleDelegator fix
Hi,
In message "Re: Performance of CGI::Cookie / SimpleDelegator fix"
on Tue, 8 Feb 2005 03:10:09 +0900, benny <listen@marcrenearns.de> writes:
|just saw this thread on google
|
|http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/117475
|
|apparently this fix did...
2006 Dec 15
3
Partial mock when a complex return value is required
...hich is about 27 ActiveRecord objects
with about 7 parameters. The only way I could stop the spec failing
(because the rest of the method depends on this return value) was to
duplicate the code in the spec.
Here is a cut-down version of my class:
class CapDerivativeInRegistrationBand < SimpleDelegator
...
def cap_future_residuals
@cap_future_residuals ||=
cap_future_residuals_for_registration_date(registration_year,
registration_month)
end
def residual_value(request_mileage, request_term)
...
cap_future_residuals.each do |r|
...
end
...
#...
2007 Feb 20
6
How to spec code with multiple (interacting) paths
Hi
Code with a large number of different paths is probably the biggest
problem I have right now. I''ve made a sample class that illustrates
the simplest case of one parameter that takes two values:
class DataStorer
def initialize(logger, emailer, db_updater, do_update_db_step)
@logger = logger; @emailer = emailer; @db_updater = db_updater
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...rected_to :action => "index"
end
See a full example on http://codepaste.org/view/paste/334
* Increased performance by up to 100% with a revised cookie class that
fixes the performance problems with the default one that ships with
1.8.1 and below. It replaces the inheritance on SimpleDelegator with
DelegateClass(Array) following the suggestion from Matz on:
http://groups.google.com/groups?
th=e3a4e68ba042f842&seekm=c3sioe%241qvm%241%40news.cybercity.dk#link14
* Added caching for compiled ERb templates. On Basecamp, it gave
between 8.5% and 71% increase in performance [Andreas...