Skip to content

quadion/cocoapods-thumbs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CocoaPods thumbs

Build Status Gem Version Coverage Code Climate

cocoapods-thumbs is a simple implementation of a graylist (whitelist + blacklist) for Podspecs.

When run, CocoaPods will check either the full Podfile or a single Podspec against votes stored in a server and report them back to the user.

The server needs only to return a JSON (with a syntax similar to the one available at https://github.com/quadion/thumbs/blob/master/list.json).

While more elaborate servers providing means for users to vote with a UI can be created, using a GitHub repository with a single JSON file and voting through Pull Requests could suffice in most cases (this is what we do, our repo is https://github.com/quadion/thumbs).

Installation

$ gem install cocoapods-thumbs

Usage

Setting the server

Set the server URL by calling:

$ pod thumbs server URL

example:

$ pod thumbs server https://raw.githubusercontent.com/quadion/thumbs/master/list.json

Checking a full Podfile

On the same directory your Podfile is, run:

$ pod thumbs

Checking a single Podspec

To check a single Podspec run:

$ pod thumbs NAME REQUIREMENT

Where REQUIREMENT is a version requirement with the same supported syntax as in a Podfile.

By default, this will use a platform os iOS 8.3. If you want to override the platform and version you can add:

$ pod thumbs NAME REQUIREMENT --platform=osx --version=10.10

Examples:

$ pod thumbs AFNetworking
$ pod thumbs AFNetworking '~> 2.5'
$ pod thumbs AFNetworking --platform=ios --version=8.3

About

Cocoapods plugin to check peer votes of Podspecs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages