<commit_before># Utusemi

[![Build Status](https://secure.travis-ci.org/hyoshida/utusemi.png)](http://travis-ci.org/hyoshida/utusemi)
[![Code Climate](https://codeclimate.com/github/hyoshida/utusemi.png)](https://codeclimate.com/github/hyoshida/utusemi)
[![Coverage Status](https://coveralls.io/repos/hyoshida/utusemi/badge.png)](https://coveralls.io/r/hyoshida/utusemi)
[![Dependency Status](https://gemnasium.com/hyoshida/utusemi.svg)](https://gemnasium.com/hyoshida/utusemi)

This project rocks and uses MIT-LICENSE.<commit_msg>README: Add descriptions<commit_after># Utusemi

[![Build Status](https://secure.travis-ci.org/hyoshida/utusemi.png)](http://travis-ci.org/hyoshida/utusemi)
[![Code Climate](https://codeclimate.com/github/hyoshida/utusemi.png)](https://codeclimate.com/github/hyoshida/utusemi)
[![Coverage Status](https://coveralls.io/repos/hyoshida/utusemi/badge.png)](https://coveralls.io/r/hyoshida/utusemi)
[![Dependency Status](https://gemnasium.com/hyoshida/utusemi.svg)](https://gemnasium.com/hyoshida/utusemi)

Providing a flexible alias for column names in ActiveRecord.


## Installation

1. Add utusemi in the `Gemfile`:

  ```ruby
  gem 'utusemi'
  ```

2. Download and install by running:

  ```bash
  bundle install
  ```


## Usage

1. Create a file named `utusemi.rb` in `config/initializers` and add column names in this file.

  ```ruby
  Utusemi.configure do
    map :sample do
      name :first_name
    end
  end
  ```

2. Use `utusemi` method.

  ```ruby
  irb> User.utusemi(:sample).where(name: 'John')
  SELECT "users".* FROM "users" WHERE "users"."first_name" = 'John'
  ```


## Requirements

* Ruby on Rails 3.2, 4.1
* Ruby 2.1


## Development

To set up a development environment, simply do:

```bash
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake  # run the test suite
```
{'fraction_non_alphanumeric': 0.16217672413793102, 'fraction_numerical': 0.005387931034482759, 'mean_word_length': 4.576576576576577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1386061', 'n_tokens_mistral': 704, 'n_tokens_neox': 674, 'n_words': 131}