-
Notifications
You must be signed in to change notification settings - Fork 92
Fixed bug preventing non-rails apps to fail to transfer coverage to code climate #74
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
Conversation
…ned?' which caused the defined to always return truthy becuase defined returned a string; irony alert: added missing test coverage
Please let me know if you have any questions. I would love to update my Gemfile on my app and point it to the fixed published gem. |
@@ -16,3 +16,4 @@ spec/reports | |||
test/tmp | |||
test/version_tmp | |||
tmp | |||
*.sw[^f] |
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.
I think this is not necessary.
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.
I moved this to my global ignore (thought others using vim would appreciate it.) Will update shortly.
Would you like me to remove the other unnecessary ignores? I'd be happy to.
@calavera Please reconsider this pull request. |
Fixed bug preventing non-rails apps to fail to transfer coverage to code climate
Merged, thanks for your contribution! |
This looks great! Do you know when this will make it into a release? |
@marnen I just pushed version 0.4.7 to rubygems.org with this change 💥 Thanks again @peppyheppy |
@calavera @peppyheppy Thanks! |
After setting up code climate in my non-rails app I noticed that I was not transmitting the coverage report up to codeclimate due to some bad/wrong code that relied on
defined?
andRails.root
incorrectly.The "fix" for the
Rails.root
support also didn't have tests.So, I added a fix to support non rails and wrote tests to make sure that we wouldn't have trouble going forward.
Here is the original exception: