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

[Source] Remove the notion of a DataProvider and move logic into Source #184

Merged
merged 3 commits into from
Oct 6, 2014

Conversation

segiddins
Copy link
Member

Closes #183.
Closes #182.

\c @fabiopelosin @alloy

@segiddins
Copy link
Member Author

Let me just test that the CocoaPods specs still pass with these changes.

@segiddins
Copy link
Member Author

Specs pass with CocoaPods/CocoaPods#2600

else
@data_provider = repo
end
@repo = Pathname.new(repo)
Copy link
Member

Choose a reason for hiding this comment

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

This will throw if repo is nil and since that is the default value of repo it seems likely to happen at some point. Is there any reason for repo to still default to nil and if there is shouldn't the resulting nil value be handled?

Copy link
Member

Choose a reason for hiding this comment

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

Good point.

@segiddins I wonder why it even has a default value, is it to make the tests simpler?

Copy link
Member

Choose a reason for hiding this comment

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

I check through Core and CocoaPods and I saw no usage of Source.new() or Source.new(nil). I guess maybe it could be called in a way that doesn't match this search e.g when stubbing or similar

@alloy
Copy link
Member

alloy commented Oct 6, 2014

Once that default value has been resolved than this should be good to be merged 👍

segiddins added a commit that referenced this pull request Oct 6, 2014
[Source] Remove the notion of a `DataProvider` and move logic into `Source`
@segiddins segiddins merged commit 159d93c into master Oct 6, 2014
@segiddins segiddins deleted the remove-data-provider branch October 6, 2014 20:42
@fabiopelosin
Copy link
Member

👍

Ashton-W pushed a commit to Ashton-W/Core that referenced this pull request Nov 2, 2015
[Source] Remove the notion of a `DataProvider` and move logic into `Source`
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.

Remove any other source provider than the file-system one. Make Source#search work optimally again.
4 participants