Skip to content

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Jul 30, 2013

Benefits:

  • Because we're no longer running rake stats, there's no requirement for the current directory to be bundled and for rake to need to be successfully activated
  • We can run stats all code-bases, not just rails
  • We don't need to run from the command-line (should i remove the command-line task?)

@robincurry
Copy link
Member

Great stuff! Love that this will allow us to run stats on non-rails code-bases.

@robincurry
Copy link
Member

Breaking a few tests, but other than that, looks good. Yeah, if we don't need the mf-stats task, I say get rid of it.

@bf4
Copy link
Member Author

bf4 commented Jul 31, 2013

@robincurry oh yeah.. tests...

@danmayer
Copy link

Nice +1, rails stats has always been a bit limited anyways, so having a more robust stats is definitely a win. Back in the day we had to pull this out as well so we could run stats on non rails projects, which was a big win.

https://github.com/devver/code_statistics

I also think we could really improve on the basic stats. I have always wanted a breakdown of the view layer in terms of % css, JS, markup, and code_in_markup (which should be kept to a minimum).

@bf4
Copy link
Member Author

bf4 commented Jul 31, 2013

@danmayer Thanks. Don't know if you caught, but this gem is intended to be a sanctioned extraction of the rails code. bf4/code_metrics#2

@danmayer
Copy link

Nice very cool. I actually attempted some rails patches related to stats years ago when we found some bugs in it, but could never push them through. This looks like it has a good chance of getting merged in, which would be great.

@bf4
Copy link
Member Author

bf4 commented Jul 31, 2013

@danmayer Señor Klabnik informs me, in a communication, there is a discussion about it on the rails maintainers list but I have no insight into what is going on... frustrating... Let me know if you want to work on it over there.. there's plenty of room for improvement :)

@ghost ghost assigned bf4 Aug 4, 2013
@bf4
Copy link
Member Author

bf4 commented Aug 4, 2013

Tests pass

@bf4 bf4 mentioned this pull request Aug 5, 2013
58 tasks
bf4 added a commit that referenced this pull request Aug 14, 2013
Replace native rails stats task with extracted gem version
@bf4 bf4 merged commit 25f6330 into metricfu:master Aug 14, 2013
@bf4 bf4 deleted the metric-stats branch August 14, 2013 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants