<commit_before># Redis To Collection (Ruby)

[![Gem Version](https://badge.fury.io/rb/redis-to-collection.png)](http://badge.fury.io/rb/redis-to-collection)
[![Code Climate](https://codeclimate.com/github/tiredpixel/redis-to-collection-rb.png)](https://codeclimate.com/github/tiredpixel/redis-to-collection-rb)

[Redis](http://redis.io/) to a collection. There and back again.

Redis To Collection dumps Redis to and loads Redis from a collection. Only a
tiny subset of the Redis data structure is supported, and that is how it is
intended to remain. This is not supposed to be used as any form of backup
(please, please don't do this); rather, it is a very small tool to assist with
using fixtures in testing. To that end, the collection format is intentionally
verbose, and should be quite readable with a little practice.

More sleep lost by [tiredpixel](http://www.tiredpixel.com).


## Installation

Install using:

    gem 'redis-to-collection'<commit_msg>Tweak README, adding Build Status.<commit_after># Redis To Collection (Ruby)

[![Gem Version](https://badge.fury.io/rb/redis-to-collection.png)](http://badge.fury.io/rb/redis-to-collection)
[![Build Status](https://travis-ci.org/tiredpixel/redis-to-collection-rb.png?branch=master,stable)](https://travis-ci.org/tiredpixel/redis-to-collection-rb)
[![Code Climate](https://codeclimate.com/github/tiredpixel/redis-to-collection-rb.png)](https://codeclimate.com/github/tiredpixel/redis-to-collection-rb)

[Redis](http://redis.io/) to a collection. There and back again.

Redis To Collection dumps Redis to and loads Redis from a collection. Only a
tiny subset of the Redis data structure is supported, and that is how it is
intended to remain. This is not supposed to be used as any form of backup
(please, please don't do this); rather, it is a very small tool to assist with
using fixtures in testing. To that end, the collection format is intentionally
verbose, and should be quite readable with a little practice.

More sleep lost by [tiredpixel](http://www.tiredpixel.com).


## Installation

Install using:

    gem 'redis-to-collection'
{'fraction_non_alphanumeric': 0.11655566127497621, 'fraction_numerical': 0.0, 'mean_word_length': 4.638069705093834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '694919', 'n_tokens_mistral': 667, 'n_tokens_neox': 643, 'n_words': 221}