foraker / look_of_performance

Use this gem's disapproval to improve your app's performance
MIT License
3 stars 1 forks source link

Prefix and Suffix #3

Closed amclelland closed 9 years ago

amclelland commented 9 years ago

Updated tests and changed fixed string to a configurable prefix and suffix. Readme also updated with new options.

Example:

Initializer contains lines:

LookOfPerformance::Configuration.prefix = "( ͡° ͜ʖ ͡°) ╯╲___"
LookOfPerformance::Configuration.suffix = "Don't mind me, just taking my developers for a walk"

And output is:

( ͡° ͜ʖ ͡°) ╯╲___ ಠ_ಠ ಠ_ಠ Don't mind me, just taking my developers for a walk
Completed 200 OK in 233ms (Views: 230.9ms | ActiveRecord: 0.0ms)
artfuldodger commented 9 years ago

This looks a lot better! Thanks! If you could kill all these extra lines of whitespace in output.rb (lines 9, 10, 16, 17, 17, 52, 53), I'd be happy to merge. :)

amclelland commented 9 years ago

Awesome, thanks! :D Extra whitespace removed

artfuldodger commented 9 years ago

Thanks!