Build Status Gem Version

CocoaPods sorted search

CocoaPods plugin which adds a sort subcommand for pod search to sort search results by amount of stars, forks, or github activity.

Usage

pod search sort POD_NAME

Params

  • --stars - sort by stars - default
  • --forks - sort by forks
  • --activity - sort by most recent commits

Installation

[sudo] gem install cocoapods-sorted-search

Unleash the ~~hounds~~ pods!

Plugin uses GitHub anonymous requests by default, that have rate limit of 60 requests per hour.

Feed plugin with GitHub OAuth token, and raise the limit to 5000 requests per hour! Not only that, if provided with token, plugin starts to fetch GitHub info in parallel, making sorting incredibly fast.

Steps for token configuration:

  1. Go to GitHub settings -> Applications -> Personal Access Tokens
  2. Generate new one and uncheck all scopes. It should look like this.
  3. Run pod setup github --token=MyToken

Your token will be stored in OS X Keychain and used automatically for fetching GitHub info for repositories.

Original sort parameters

Original sort parameters are supported too! So if you want to go crazy, and search for all Ruby stuff, that exists on iOS, you can do stuff like this:

pod search --ios --full sort Ruby

Example

Requirements

  • CocoaPods 0.28 and higher
  • Ruby 1.9.3 and higher

Troubleshooting

First of, read troubleshooting wiki page. If something still not right, post issue on GitHub to let me know!