<commit_before>[![Gem Version](http://img.shields.io/gem/v/wright.svg)][gem]
[![Build Status](http://img.shields.io/travis/sometimesfood/wright.svg)][travis]
[![Code Climate](http://img.shields.io/codeclimate/github/sometimesfood/wright.svg)][codeclimate]

[gem]: https://rubygems.org/gems/wright
[travis]: https://travis-ci.org/sometimesfood/wright
[codeclimate]: https://codeclimate.com/github/sometimesfood/wright

wright
======

Lightweight configuration management.

Requirements
------------

 - Ruby ≥1.9

Documentation
-------------

There is not too much useful documentation that is targeted towards
users at the moment.

Run `bundle exec rake rdoc` to generate HTML docs for wright
developers.

Hacking
-------

To get started with wright, simply install the development
dependencies via bundler:

 - `bundle install --path .bundle`
 - `bundle exec rake test`

All tests should pass.

Getting Started
---------------

To start a wright IRB session, simply run:

    $ bundle console

In order to create some resources using the wright DSL:

    extend Wright::DSL
    
    foo_dir = directory '/tmp/foo'
    fstab = symlink '/tmp/foo/fstab' do |s|
      s.to = '/etc/fstab'
    end
    
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

If you don't want to use the DSL:

    foo_dir = Wright::Resource::Directory.new('/tmp/foo')
    foo_dir.create
    fstab = Wright::Resource::Symlink.new('/tmp/foo/fstab')
    fstab.to = '/etc/fstab'
    fstab.create
   
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

Copyright
---------

Copyright (c) 2012-2015 <NAME>. See LICENSE for details.
<commit_msg>Change badge style to flat-square<commit_after>[![Gem Version](http://img.shields.io/gem/v/wright.svg?style=flat-square)][gem]
[![Build Status](http://img.shields.io/travis/sometimesfood/wright.svg?style=flat-square)][travis]
[![Code Climate](http://img.shields.io/codeclimate/github/sometimesfood/wright.svg?style=flat-square)][codeclimate]

[gem]: https://rubygems.org/gems/wright
[travis]: https://travis-ci.org/sometimesfood/wright
[codeclimate]: https://codeclimate.com/github/sometimesfood/wright

wright
======

Lightweight configuration management.

Requirements
------------

 - Ruby ≥1.9

Documentation
-------------

There is not too much useful documentation that is targeted towards
users at the moment.

Run `bundle exec rake rdoc` to generate HTML docs for wright
developers.

Hacking
-------

To get started with wright, simply install the development
dependencies via bundler:

 - `bundle install --path .bundle`
 - `bundle exec rake test`

All tests should pass.

Getting Started
---------------

To start a wright IRB session, simply run:

    $ bundle console

In order to create some resources using the wright DSL:

    extend Wright::DSL
    
    foo_dir = directory '/tmp/foo'
    fstab = symlink '/tmp/foo/fstab' do |s|
      s.to = '/etc/fstab'
    end
    
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

If you don't want to use the DSL:

    foo_dir = Wright::Resource::Directory.new('/tmp/foo')
    foo_dir.create
    fstab = Wright::Resource::Symlink.new('/tmp/foo/fstab')
    fstab.to = '/etc/fstab'
    fstab.create
   
    puts File.directory? '/tmp/foo'
    puts File.symlink? '/tmp/foo/fstab'
    
    fstab.remove
    foo_dir.remove

Copyright
---------

Copyright (c) 2012-2015 <NAME>. See LICENSE for details.

{'fraction_non_alphanumeric': 0.1520763187429854, 'fraction_numerical': 0.005611672278338945, 'mean_word_length': 3.0101237345331833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1130218', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1156, 'n_words': 300}