<commit_before># JIRA Exception Collector

A gem that logs your exceptions as a JIRA issue. Once it's in JIRA, you can route it to
the appropriate developer to fix the issue using JIRA's workflow engine.

http://img.skitch.com/20111130-b3f5rj9q95wh9txjrygyeaexn4.png

## Installation

JIRA Exception Collector is a gem. To install:

    gem install jira-exception-collector

... or, add this to your Gemfile:

    gem jira-exception-collector

... then:

    bundle install


## Usage

This gem utilizes the [JIRA Issue Collector plugin](https://plugins.atlassian.com/583856).
Make sure your JIRA instance has this plugin installed before using this gem.

## Setup an Issue Collector in JIRA

In JIRA, go to Administration > Issue Collectors. You'll need to be a JIRA administrator
to do this. Add a new Issue Collector pointing to the project you want the exceptions to
go to. Also, if you don't already have an Issue Type for exceptions, you might want to
create one so that you have a better way of organizing the issues in your project.

Once you create the Issue Collector, copy the Collector URL (found on the Issue Collector's
page).

## Configure your Rack app with the Collector URL

This gem works with any Rack based app. To configure it, first crack open your config.ru
and add this before the `run` statement:

````ruby
use Rack::JiraExceptionCollector, "[collector url]"
````

By default, JIRA Exception Collector is enabled under production and staging environments.
To modify this, just supply an array of the environments you want exceptions to be logged:

````ruby
use Rack::JiraExceptionCollector, "[collector url]", %w(prod1 prod2 stage deploy)
````

## Compatibility with JIRA

Because this gem relies on the [https://plugins.atlassian.com/583856](JIRA Issue Collector plugin),
this gem is only compatible with the JIRA versions that the JIRA Issue Collector supports.

## Contributing

This is a pushmepullyou type of project. Fork it hard, push in your awesome sauce, then 
send in your pull request. Oh, don't forget to add tests.

## Copyright

Copyright (c) <NAME> and Atlassian, Inc. See LICENSE for details.
<commit_msg>one more time<commit_after># JIRA Exception Collector

A gem that logs your exceptions as a JIRA issue. Once it's in JIRA, you can route it to
the appropriate developer to fix the issue using JIRA's workflow engine.

![Moneyshot](https://img.skitch.com/20111130-b3f5rj9q95wh9txjrygyeaexn4.png)

## Installation

JIRA Exception Collector is a gem. To install:

    gem install jira-exception-collector

... or, add this to your Gemfile:

    gem jira-exception-collector

... then:

    bundle install


## Usage

This gem utilizes the [JIRA Issue Collector plugin](https://plugins.atlassian.com/583856).
Make sure your JIRA instance has this plugin installed before using this gem.

## Setup an Issue Collector in JIRA

In JIRA, go to Administration > Issue Collectors. You'll need to be a JIRA administrator
to do this. Add a new Issue Collector pointing to the project you want the exceptions to
go to. Also, if you don't already have an Issue Type for exceptions, you might want to
create one so that you have a better way of organizing the issues in your project.

Once you create the Issue Collector, copy the Collector URL (found on the Issue Collector's
page).

## Configure your Rack app with the Collector URL

This gem works with any Rack based app. To configure it, first crack open your config.ru
and add this before the `run` statement:

````ruby
use Rack::JiraExceptionCollector, "[collector url]"
````

By default, JIRA Exception Collector is enabled under production and staging environments.
To modify this, just supply an array of the environments you want exceptions to be logged:

````ruby
use Rack::JiraExceptionCollector, "[collector url]", %w(prod1 prod2 stage deploy)
````

## Compatibility with JIRA

Because this gem relies on the [https://plugins.atlassian.com/583856](JIRA Issue Collector plugin),
this gem is only compatible with the JIRA versions that the JIRA Issue Collector supports.

## Contributing

This is a pushmepullyou type of project. Fork it hard, push in your awesome sauce, then 
send in your pull request. Oh, don't forget to add tests.

## Copyright

Copyright (c) <NAME> and Atlassian, Inc. See LICENSE for details.

{'fraction_non_alphanumeric': 0.0675017397355602, 'fraction_numerical': 0.013453954998840176, 'mean_word_length': 4.330037082818294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 5, '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': '3329999', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1225, 'n_words': 614}