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

Filter out improper directories passing as frameworks #2436

Merged
merged 2 commits into from
May 2, 2018

Conversation

tmspzz
Copy link
Member

@tmspzz tmspzz commented Apr 30, 2018

Same final purpose of #2432 but different implementation.

Note that in this version the user is not informed about the filtering.
It would be possible to pass in self._projectEventsObserver for logging.

I will close #2432 or this PR depending on which one is chosen :)

@tmspzz tmspzz requested a review from mdiep April 30, 2018 14:14
@mdiep
Copy link
Member

mdiep commented May 1, 2018

This approach looks good to me. 👍

Do you want to try writing some tests for that function? If not, you can go ahead and merge.

@tmspzz
Copy link
Member Author

tmspzz commented May 1, 2018

@mdiep

  • Made frameworksInDirectory and similar functions internal
  • Added test
  • Added fixture for tests
  • Had to modify copy-fixtures scripts (somehow there is __MACOSX directory, not part of my fixture, that needs to be deleted before re-running the tests)

@mdiep mdiep merged commit 7e5cab4 into Carthage:master May 2, 2018
@mdiep
Copy link
Member

mdiep commented May 2, 2018

Great work!

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