<commit_before>Pull Request Notifier
=====================

You want to follow some pull requests and get notified when they are merged? Here is a GitHub Pull Request Notifier!

* Sign in with your GitHub account
* Paste the URL of the pull request you want to follow
* Get a daily mail with a list of the pull requests that have been merged

A sample Rails app
------------------

This is a sample Rails app for the [Gemnasium workshop](http://www.dotrb.eu/workshops#gemnasium) at [dotRB2013](http://www.dotrb.eu/).

Warning! This app has been written for the workshop and is not production-ready!

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

The app is known to work with:

* ruby 1.9.3
* bundler 1.3.5
* postgresql 9.1
* redis 2.2

Here are the packages you need to make it run on ubuntu 12.04 "precise":

```
sudo apt-get install ruby1.9.1 \
  ruby1.9.1-dev build-essential \
  libpq-dev libv8-dev libsqlite3-dev \
  postgresql-9.1 postgresql-contrib-9.1 postgresql-client-9.1 \
  redis-server
```

Remember that `ruby1.9.1` ubuntu package contains ruby 1.9.3.

Install
-------

1. clone this project
1. run `bundle install`
1. setup the database
1. configure the mailer
1. export GitHub client credentials
1. run the `./start` script

`ActionMailer` is used to send emails to the users, so you may have to set `config.action_mailer` in your `config/environments/development.rb` and `config/environments/production.rb` config files.

Go to [gemnasium/dotrb2013-docker](https://github.com/gemnasium/dotrb2013-docker) if you want to install with [docker](http://docker.io).

GitHub application
------------------

You need credentials for your GitHub client:

1. go to the [GitHub applications settings](https://github.com/settings/applications)
1. register your application
1. export your credentials

Export your credentials:

```
GITHUB_CLIENT_ID="1337"
GITHUB_CLIENT_SECRET="secret"<commit_msg>Update dependencies: install bundler<commit_after>Pull Request Notifier
=====================

You want to follow some pull requests and get notified when they are merged? Here is a GitHub Pull Request Notifier!

* Sign in with your GitHub account
* Paste the URL of the pull request you want to follow
* Get a daily mail with a list of the pull requests that have been merged

A sample Rails app
------------------

This is a sample Rails app for the [Gemnasium workshop](http://www.dotrb.eu/workshops#gemnasium) at [dotRB2013](http://www.dotrb.eu/).

Warning! This app has been written for the workshop and is not production-ready!

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

The app is known to work with:

* ruby 1.9.3
* bundler 1.3.5
* postgresql 9.1
* redis 2.2

Here are the packages you need to make it run on ubuntu 12.04 "precise":

```
sudo apt-get install ruby1.9.1 \
  ruby1.9.1-dev build-essential \
  libpq-dev libv8-dev libsqlite3-dev \
  postgresql-9.1 postgresql-contrib-9.1 postgresql-client-9.1 \
  redis-server
```

Remember that `ruby1.9.1` ubuntu package contains ruby 1.9.3.

You then need to install bundler:

```
sudo gem install bundler
```

Install
-------

1. clone this project
1. run `bundle install`
1. setup the database
1. configure the mailer
1. export GitHub client credentials
1. run the `./start` script

`ActionMailer` is used to send emails to the users, so you may have to set `config.action_mailer` in your `config/environments/development.rb` and `config/environments/production.rb` config files.

Go to [gemnasium/dotrb2013-docker](https://github.com/gemnasium/dotrb2013-docker) if you want to install with [docker](http://docker.io).

GitHub application
------------------

You need credentials for your GitHub client:

1. go to the [GitHub applications settings](https://github.com/settings/applications)
1. register your application
1. export your credentials

Export your credentials:

```
GITHUB_CLIENT_ID="1337"
GITHUB_CLIENT_SECRET="secret"
{'fraction_non_alphanumeric': 0.12389839294971487, 'fraction_numerical': 0.030585795749092794, 'mean_word_length': 3.6160287081339715, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '999706', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1178, 'n_words': 462}