{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3792","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3792/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3792/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3792/events","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3792","id":93641347,"number":3792,"title":"[Installer] Add support for source provider plugin hook","user":{"login":"amorde","id":2281949,"avatar_url":"https://avatars.githubusercontent.com/u/2281949?v=3","gravatar_id":"","url":"https://api.github.com/users/amorde","html_url":"https://github.com/amorde","followers_url":"https://api.github.com/users/amorde/followers","following_url":"https://api.github.com/users/amorde/following{/other_user}","gists_url":"https://api.github.com/users/amorde/gists{/gist_id}","starred_url":"https://api.github.com/users/amorde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorde/subscriptions","organizations_url":"https://api.github.com/users/amorde/orgs","repos_url":"https://api.github.com/users/amorde/repos","events_url":"https://api.github.com/users/amorde/events{/privacy}","received_events_url":"https://api.github.com/users/amorde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-07-07T22:13:26Z","updated_at":"2015-07-13T18:02:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/pulls/3792","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3792","diff_url":"https://github.com/CocoaPods/CocoaPods/pull/3792.diff","patch_url":"https://github.com/CocoaPods/CocoaPods/pull/3792.patch"},"body":"This PR provides an initial/example implementation for the source provider plugin api described in #3190\r\n\r\nI very much welcome suggestions for improvements - still new to both Ruby and the CocoaPods code base so it is very likely I am missing something.\r\n\r\nThe API would allow plugins to supply their own sources, whether they be un-versioned or using an unsupported VCS such as CVS, Hg, SVN, etc.\r\n\r\nExample:\r\n\r\n```ruby\r\n# in a Podfile\r\nplugin 'cocoapods-repo-svn', {\r\n    :sources => [\r\n        'https://svn.myrepository.com'\r\n    ]\r\n}\r\n\r\n# Now in the plugin's cocoapods_plugin.rb file:\r\nPod::HooksManager.register('cocoapods-repo-svn', :source_provider) do |context, options|\r\n    # options contains the hash defined in the Podfile\r\n    source_names = options['sources']\r\n    source_names.each do |name|\r\n        source = MyCustomCreateSourceFunction(name)\r\n        # Add any number of Pod::Source objects to the context\r\n        context.add_source(source)\r\n    end\r\nend\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/121007972","html_url":"https://github.com/CocoaPods/CocoaPods/pull/3792#issuecomment-121007972","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3792","id":121007972,"user":{"login":"amorde","id":2281949,"avatar_url":"https://avatars.githubusercontent.com/u/2281949?v=3","gravatar_id":"","url":"https://api.github.com/users/amorde","html_url":"https://github.com/amorde","followers_url":"https://api.github.com/users/amorde/followers","following_url":"https://api.github.com/users/amorde/following{/other_user}","gists_url":"https://api.github.com/users/amorde/gists{/gist_id}","starred_url":"https://api.github.com/users/amorde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorde/subscriptions","organizations_url":"https://api.github.com/users/amorde/orgs","repos_url":"https://api.github.com/users/amorde/repos","events_url":"https://api.github.com/users/amorde/events{/privacy}","received_events_url":"https://api.github.com/users/amorde/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T18:02:25Z","updated_at":"2015-07-13T18:02:25Z","body":"@segiddins @kylef You are both correct. If there is a way we can support ordering I would be more than willing to add it but I'm not sure how to do that as of right now. I feel that this would still be a valuable feature and we could add the ordering later, but I understand if you do not want to include it until it supports ordering"}}