On 19 May 2008, at 18:21, 21croissants wrote:
Ashley, I ran the DRY reporter on Rails 2.0.2 and you'll find the
results on
http://www.21croissants.com/files/rails_2_0_2_DRY_report.html
Wow, that's really interesting. Some things are trivial mini-methods,
eg "def to_param; to_s; end". But
Ashley, I ran the DRY reporter on Rails 2.0.2 and you'll find the results on
http://www.21croissants.com/files/rails_2_0_2_DRY_report.html
I have done a lot of refactoring lately (but did not changed the external
API) and will commit my code soon ...
Ashley Moran-4 wrote:
>
>
>
> Just out of
On 1 May 2008, at 16:00, 21croissants wrote:
You're right and one of my next action will be to create a gem so it
can be
use in any ruby project, I will keep the Rails plugin of course.
Cool, be sure to post here when you've gemified it :)
At the moment, you can write :
require ... spec
thanks for your feedback Ashley.
You're right and one of my next action will be to create a gem so it can be
use in any ruby project, I will keep the Rails plugin of course.
At the moment, you can write :
require ... specific your location ... +
'/lib/dont_repeat_yourself/reporter'
dry_reporte
On 29 Apr 2008, at 18:25, 21croissants wrote:
I wrote a Rails plugin which uses simian to look for duplicates
lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_dupl
I wrote a Rails plugin which uses simian to look for duplicates lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
should be_DRY }
If you use Autot