<commit_before># Rails Git Version ![travis-ci](http://travis-ci.org/jcf/rails_git_version.png)

## Description

If you are using Git to manage your Rails apps' source code this gem
will make it possible to find a description of what is deployed from
within your browser.

## Installation

To add this functionality to your Rails 3 app add it to your Gemfile.

``` ruby
gem 'rails_git_version' '~> 0.1'
```

Bundle install the new gem, and decide where you want to access your
description of what's currently live.

If you want to use `http://example.com/_deployed` as I do you need to
add set this up in your routes.rb file like so.

``` ruby
Rails.application.routes.draw do
  mount RailsGitVersion::Engine => '/_deployed'
end
```

## Configuration

By default, RailGitVersion will assume your git repository is in the
same directory as `Rails.root`. If this is not the case you can tell
RailsGitVersion where to look for a `.git` directory by adding the
following line to your config/application.rb file.<commit_msg>Fix the poor explanation regarding adding routes<commit_after># Rails Git Version ![travis-ci](http://travis-ci.org/jcf/rails_git_version.png)

## Description

If you are using Git to manage your Rails apps' source code this gem
will make it possible to find a description of what is deployed from
within your browser.

## Installation

To add this functionality to your Rails 3 app add it to your Gemfile.

``` ruby
gem 'rails_git_version' '~> 0.1'
```

Bundle install the new gem, and decide where you want to access your
description of what's currently live.

If you want to use a path of `/_deployed` you can configure this by
adding the following to your routes.rb file.

``` ruby
Rails.application.routes.draw do
  mount RailsGitVersion::Engine => '/_deployed'
end
```

## Configuration

By default, RailGitVersion will assume your git repository is in the
same directory as `Rails.root`. If this is not the case you can tell
RailsGitVersion where to look for a `.git` directory by adding the
following line to your config/application.rb file.
{'fraction_non_alphanumeric': 0.07446808510638298, 'fraction_numerical': 0.0029013539651837525, 'mean_word_length': 4.3462532299741605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3032555', 'n_tokens_mistral': 612, 'n_tokens_neox': 575, 'n_words': 292}