Patch for Fiveruns Tuneup on Merb 1.0.11

Posted: April 23rd, 2009 | Author: Daniel Higginbotham | Filed under: Uncategorized | 1 Comment »

FiveRuns Tuneup for Merb didn’t work out of the box for me. The following patch to the gem got it working:

Patch for Fiveruns Tuneup on Merb 1.0.11

  1. diff -r fiveruns_tuneup_merb-0.5.3/lib/fiveruns_tuneup_merb/instrumentation.rb fiveruns_tuneup_merb-0.5.3.updated/lib/fiveruns_tuneup_merb/instrumentation.rb
  2. 170c170
  3. <                  FiverunsTuneupMerb::Instrumentation.format_sql(query, adapter.send(:update_statement, query), attributes),
  4. ---
  5. >                  FiverunsTuneupMerb::Instrumentation.format_sql(query, adapter.send(:update_statement, attributes.keys, query), attributes),
  6. diff -r fiveruns_tuneup_merb-0.5.3/lib/fiveruns_tuneup_merb.rb fiveruns_tuneup_merb-0.5.3.updated/lib/fiveruns_tuneup_merb.rb
  7. 5,6c5,6
  8. <   load_dependency 'merb-slices'
  9. <   load_dependency 'fiveruns_tuneup_core'
  10. ---
  11. >   load_dependency 'merb-slices', nil
  12. >   load_dependency 'fiveruns_tuneup_core', nil


One Comment on “Patch for Fiveruns Tuneup on Merb 1.0.11”

  1. 1 pumpkin said at 3:17 am on August 15th, 2009:

    +1 for this fix.

    Also, Tuneup only works with Mongrel.

    Thin and Ebb, e.g., are no-gos.


Leave a Reply