-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_code_dirs check for existence #129
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Richard Huang | |
Dan Mayer | ||
Benjamin Fleischer | ||
Robin Curry | ||
George Erickson | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch. | |
* Features | ||
* Fixes | ||
* Misc | ||
* Check for app/lib existance as opposed to using rails? (George Erickson) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should probably rewrite to something like 'Identify directories with code to analyze by checking if they exist. (No longer use :rails? as a proxy for checking if we should run on 'app'). (George Erickson, #129) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do |
||
|
||
### MetricFu 4.4.0 / 2013-08-15 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,6 +212,7 @@ def load_metric(metric) | |
describe 'if #rails? is true ' do | ||
|
||
before(:each) do | ||
Dir.stub(:exists?).and_return(true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there, perhaps, a better way to do this? Maybe temporarily set the code_dirs yourself? Something less library-level global BTW, I noticed that a number of tests fail when I There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should probably be less heavy handed with this stub. And only return fake the existence of an app directory. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you think you can, that'd be great. Side-effects of one test leaking into another are hard to find and fix. (And I know there's already stuff like this in the test suite, but I want to remove that, too!) |
||
@config = MetricFu.configuration | ||
@config.stub(:rails?).and_return(true) | ||
@config.reset | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is something I'm still thinking about, what should go in AUTHORS.
The AUTHORS file is used to set the authors for the gem. Should the authors be the maintainers, the people with significant contributions, or everyone? A common alternative is to have a CONTRIBUTORS file that lists everyone. I didn't create that when I added the AUTHORS file since I wasn't sure how I wanted to handle duplication. Thoughts @robincurry @danmayer @MGotink ? I could also ask @jscruggs how he decided to add people as authors of the gem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I was unsure too, since I've done > 0.1% of the code.
Could always use
git summary
from https://github.com/visionmedia/git-extras.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You definitely get points for noticing it was there and editing it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe 1% is a good cutoff :)