Skip to content
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

Make the list of vendor paths configurable #253

Merged
merged 1 commit into from
Aug 27, 2015
Merged

Make the list of vendor paths configurable #253

merged 1 commit into from
Aug 27, 2015

Conversation

byroot
Copy link
Contributor

@byroot byroot commented Aug 26, 2015

I guess the title explains it all. It allow to mark some part of the application as "framework", that shouldn't be used for grouping, nor title.

@loopj @snmaynard what do you think?

@@ -410,6 +410,17 @@ def stacktrace(exception)
end.compact
end

def in_project?(line)
return nil if @configuration.vendor_paths && @configuration.vendor_paths.any? do |vendor_path|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should return false here rather than nil to honour the ? convention in ruby.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIght. I'll fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@snmaynard
Copy link
Contributor

I think this is a sensible addition to the library and its a good call to make it backwards compat!

👍

snmaynard added a commit that referenced this pull request Aug 27, 2015
Make the list of vendor paths configurable
@snmaynard snmaynard merged commit 6348306 into bugsnag:master Aug 27, 2015
@snmaynard
Copy link
Contributor

Thanks @byroot!

@byroot
Copy link
Contributor Author

byroot commented Aug 27, 2015

Actually I think I should have included a doc update...

@snmaynard
Copy link
Contributor

Thats fine - I was going to throw something in there in a bit myself!

@rafaelfranca rafaelfranca mentioned this pull request Aug 9, 2019
15 tasks
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.

2 participants