tag:blogger.com,1999:blog-1042801964488488185.post790643572387705716..comments2008-10-30T08:49:19.992-05:00Comments on Jake Scruggs: Dead Simple Rails Metrics with metric_fuJake Scruggshttp://www.blogger.com/profile/16274380203959781950noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1042801964488488185.post-20095407793218971162008-10-30T08:49:00.000-05:002008-10-30T08:49:00.000-05:00I'm interested. By all means fork metric_fu on gi...I'm interested. By all means fork metric_fu on github, add it in, and send me a pull request. Thanks taking the time to write reek - I'll have to check it out.Jake Scruggshttp://www.blogger.com/profile/16274380203959781950noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-23714855793053184462008-10-30T03:30:00.000-05:002008-10-30T03:30:00.000-05:00I added a report for reek. Anybody interested? htt...I added a report for reek. Anybody interested? <BR/>http://silkandspinach.net/2008/09/23/reek-a-code-smells-detector-for-ruby/<BR/><BR/>Should I add it in github?JohnnyBuscahttp://www.blogger.com/profile/06115224232429543707noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-37190578582074502302008-05-07T14:40:00.000-05:002008-05-07T14:40:00.000-05:00Hey Jake, this looks great. Unfortunately I'm on a...Hey Jake, this looks great. Unfortunately I'm on a Windows machine, so your calls to "sh '...' |ok, response| ..." are dying. Is there a Windows (or even better, OS-agnostic) equivalent, or perhaps an sh gem of sorts for Windows that you know of?carpeliamhttp://www.blogger.com/profile/03039511698456414684noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-30315377173856262142008-05-06T10:05:00.000-05:002008-05-06T10:05:00.000-05:00Simple enough. Thanks!Simple enough. Thanks!Seanhttp://www.blogger.com/profile/11827793626415319717noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-85725306567018197222008-05-05T17:12:00.000-05:002008-05-05T17:12:00.000-05:00Good point, Sean -- I didn't think about that. Yo...Good point, Sean -- I didn't think about that. You'll have to create a new rake task and have it do the migration first like so:<BR/>task :my_metrics => ["db:migrate", "metrics:all"]<BR/><BR/>Then you can just call 'my_metrics' in the cruise control config file.Jake Scruggshttp://www.blogger.com/profile/16274380203959781950noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-89270820682963186162008-05-05T15:37:00.000-05:002008-05-05T15:37:00.000-05:00What's the best way to get CC.rb to run 2 rake tas...What's the best way to get CC.rb to run 2 rake tasks in succession? The default 'rake' makes sure that the migrations are run (somewhere in that hierarchy), but metrics:all does not. Whenever we post a new migration (we're early in development), the build fails every test because the DB is out of sync.Seanhttp://www.blogger.com/profile/11827793626415319717noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-30956858980123944392008-05-01T22:12:00.000-05:002008-05-01T22:12:00.000-05:00It's a plugin without an init.rb so it really does...It's a plugin without an init.rb so it really doesn't 'pollute' the application. Essentially it's a few rake tasks and Saikuro bundled up in a convenient package. If, however, you can't stand having it in your app, you could check out http://kwala.rubyforge.orgJake Scruggshttp://www.blogger.com/profile/16274380203959781950noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-33700343266115660352008-04-29T10:01:00.000-05:002008-04-29T10:01:00.000-05:00Same here. I'd like to avoid having to install ge...Same here. I'd like to avoid having to install gems on the dev machines if they're not needed. Maybe you and this guy can work together:<BR/><BR/><A HREF="http://www.oreillynet.com/ruby/blog/2008/03/cruisecontrol_charts.html" REL="nofollow">CC.rb Plugins</A>Seanhttp://www.blogger.com/profile/11827793626415319717noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-39967110000565575682008-04-28T04:25:00.000-05:002008-04-28T04:25:00.000-05:00Hi - thanks for this, looks really useful.Like Cha...Hi - thanks for this, looks really useful.<BR/><BR/>Like Chad, I'm interested to know whether this can be set up on the CI machine without polluting the rails apps themselves?rahimhttp://www.blogger.com/profile/07508127270829925148noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-12795265479439831792008-04-27T23:16:00.000-05:002008-04-27T23:16:00.000-05:00wow, I could have really used this 6 months ago :)...wow, I could have really used this 6 months ago :)<BR/><BR/>I attempted a something similar, it was a mix between metric_fu and autotest. Called it autometric: <A HREF="http://benburkert.com/2007/11/9/introducing-autometric" REL="nofollow">http://benburkert.com/2007/11/9/introducing-autometric</A><BR/><BR/>It was a hack, and the performance hit on my system wasn't worth the realtime-iness of the metrics. If metric_fu is better performance wise, it might be worth taking another go at it.Ben Burkerthttp://benburkert.com/noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-33292294772482005122008-04-27T22:01:00.000-05:002008-04-27T22:01:00.000-05:00I don't know how people are going to use this plug...I don't know how people are going to use this plugin. The potential user may not use cc.rb and just want to occasionally generate some reports. metric_fu puts the reports in a 'metrics' folder when not run inside a cc.rb build (it looks for the presence of ENV['CC_BUILD_ARTIFACTS'] to determine if it's being run by cc.rb).Jake Scruggshttp://www.blogger.com/profile/16274380203959781950noreply@blogger.comtag:blogger.com,1999:blog-1042801964488488185.post-75629567686513888872008-04-27T19:25:00.000-05:002008-04-27T19:25:00.000-05:00Looks Great. Is there a way to do this so it can ...Looks Great. Is there a way to do this so it can just be installed on the CI machine, instead of having to be installed right in the rails app?Chad Pytelhttp://www.blogger.com/profile/01109613539783912896noreply@blogger.com