<commit_before># Cocoapods thumbs

[![Build Status](http://img.shields.io/travis/quadion/cocoapods-thumbs/master.svg?style=flat)](https://travis-ci.org/quadion/cocoapods-thumbs)
[![Coverage](https://img.shields.io/codeclimate/coverage/github/quadion/cocoapods-thumbs.svg?style=flat)](https://codeclimate.com/github/quadion/cocoapods-thumbs)
[![Code Climate](https://img.shields.io/codeclimate/github/quadion/cocoapods-thumbs.svg?style=flat)](https://codeclimate.com/github/quadion/cocoapods-thumbs)

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
    
### 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 VERSION 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<commit_msg>README.md<commit_after># Cocoapods thumbs

[![Build Status](http://img.shields.io/travis/quadion/cocoapods-thumbs/master.svg?style=flat)](https://travis-ci.org/quadion/cocoapods-thumbs)
[![Coverage](https://img.shields.io/codeclimate/coverage/github/quadion/cocoapods-thumbs.svg?style=flat)](https://codeclimate.com/github/quadion/cocoapods-thumbs)
[![Code Climate](https://img.shields.io/codeclimate/github/quadion/cocoapods-thumbs.svg?style=flat)](https://codeclimate.com/github/quadion/cocoapods-thumbs)

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
    
### 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
{'fraction_non_alphanumeric': 0.09118967452300786, 'fraction_numerical': 0.003367003367003367, 'mean_word_length': 4.242647058823529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5022220', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1076, 'n_words': 393}