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

set a default root_directory so source code highlighting works out of… #171

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Feb 20, 2017

… the box

fixes #167

@kyrylo
Copy link
Contributor

kyrylo commented Feb 22, 2017

I'm happy to merge this when the Rubocop offence is fixed.

@grosser
Copy link
Contributor Author

grosser commented Feb 22, 2017

thx for pinging ... did not watch CI :D
updated!

@kyrylo
Copy link
Contributor

kyrylo commented Feb 22, 2017

Thanks. Although Circle is stuck, I can see some failing tests :(

@grosser
Copy link
Contributor Author

grosser commented Feb 22, 2017

all good!

@@ -167,11 +167,11 @@
filter_chain = notifier.instance_variable_get(:@filter_chain)
filters = filter_chain.instance_variable_get(:@filters)

expect(filters.size).to eq(2)
expect(filters.size).to eq(3)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

idk why this happened ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

might be that a filter is added when root_directory exists

Copy link
Contributor

Choose a reason for hiding this comment

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

That's expected

root_directory = config.root_directory
add_filter(root_directory_filter(root_directory)) if root_directory

@kyrylo kyrylo merged commit aeeb411 into airbrake:master Feb 22, 2017
kyrylo added a commit that referenced this pull request Feb 22, 2017
kyrylo added a commit that referenced this pull request Feb 22, 2017
kyrylo added a commit that referenced this pull request Feb 22, 2017
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.

use a default for root_directory
2 participants