<commit_before># Refile::Fog

NOTE: Work in Progress!

An backend for [Refile](https://github.com/elabs/refile) which provides storage
in multiple cloud storage services via the [Fog](https://github.com/fog/fog)
cloud services gem.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'refile-fog'
```

Set up Refile to use the fog backend:

``` ruby
Refile.configure do |config|
  config.cache = Refile::Fog::Backend.new
  config.store = Refile::Fog::Backend.new
end
```

## License

[MIT](License.txt)<commit_msg>Improve README<commit_after># Refile::Fog

[![Build Status](https://travis-ci.org/elabs/refile-fog.svg)](https://travis-ci.org/elabs/refile-fog)

A backend for [Refile](https://github.com/elabs/refile) which provides storage
in multiple cloud storage services via the [Fog](https://github.com/fog/fog)
cloud services gem.

If you're looking for a backend for Amazon S3, please use Refile's build in S3
backend. It is far superior to using S3 via Fog.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'refile-fog'
```

Set up Refile to use the fog backend:

``` ruby
# config/initializers/refile.rb

require "refile/fog"

credentials = {
  provider: "Google",
  aws_access_key_id: "zyx",
  aws_secret_access_key: "12345",
  directory: "my-app"
}

Refile.configure do |config|
  config.cache = Refile::Fog::Backend.new(prefix: "cache", **credentials)
  config.store = Refile::Fog::Backend.new(prefix: "store", **credentials)
end
```

## License

[MIT](License.txt)
{'fraction_non_alphanumeric': 0.1421087098886706, 'fraction_numerical': 0.005239030779305829, 'mean_word_length': 4.854406130268199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5336505', 'n_tokens_mistral': 553, 'n_tokens_neox': 534, 'n_words': 147}