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

Introduce Source::Metadata #316

Merged
merged 10 commits into from
Apr 7, 2016
Merged

Introduce Source::Metadata #316

merged 10 commits into from
Apr 7, 2016

Conversation

segiddins
Copy link
Member

  • CHANGELOG
  • Make metadata take a hash with indifferent access?

In doing so, we've migrated Pod::SourcesManager from CocoaPods/CocoaPods as a singleton to be a proper class, and also added support for sharded specs directories.

Fixes CocoaPods/CocoaPods#5062.

end

def path_fragment(pod_name, version = nil)
prefixes = if prefix_lengths.empty?
Copy link
Member

Choose a reason for hiding this comment

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

I think this would be a little cleaner if the if/else were a separate method?


# @return [Array<Source>] The list of the sources with the given names.
#
# @param [Array<#to_s>] names
Copy link
Member

Choose a reason for hiding this comment

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

is this correct? [Array<#to_s>] - don't think I've seen it before :)

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah -- it means an array of stuff that responds to to_s

Copy link
Member

Choose a reason for hiding this comment

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

ah, an informal protocol - got it

@neonichu
Copy link
Member

neonichu commented Apr 6, 2016

LGTM 👍

@segiddins segiddins force-pushed the seg-source-metadata branch from 762fc36 to b6df430 Compare April 7, 2016 18:45
@segiddins
Copy link
Member Author

This is ready to merge

@segiddins segiddins merged commit 83d171f into master Apr 7, 2016
@segiddins segiddins deleted the seg-source-metadata branch April 7, 2016 21:09
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.

4 participants