<commit_before># BuPr

[![Build Status](https://travis-ci.org/mmyoji/bu_pr.svg?branch=master)](https://travis-ci.org/mmyoji/bu_pr)

Run `bundle update` and create its pull-request.


## Installation

```rb
gem 'bu_pr', group: :development
```

And then execute:

    $ bundle


Or install it yourself as:

    $ gem install bu_pr

## Usage

Get Github access token from [this page](https://github.com/settings/tokens/new) with `repo` scope.


### Set configuration values as Environment variables.

```sh
# .bash_profile / .profile / .zshrc / etc.

export BUPR_TOKEN="xxx"
export BUPR_REPO="mmyoji/bu_pr"
# export BUPR_BRANCH="develop"
# export BUPR_TITLE="My bundle update"
```


### Set configuration values in config file.

```rb
require 'bu_pr'

# Setup
BuPr.configure do |config|
  config.token  = "xxx"              # Required
  config.repo   = "mmyoji/bu_pr"     # Required

  config.branch = "develop"          # Optional :: default is 'master'
  config.title  = "My bundle update" # Optional :: default is like 'Bundle update 2016-11-13'
end

BuPr::Runner.call
```

### Rails

```rb
# config/initializers/bu_pr.rb

BuPr.configure do |config|
  config.token = "xxx"
  config.repo  = "mmyoji/bu_pr"
end
```

then run the following commands

```sh
# Run all tasks
$ bin/rake bu_pr:all

# If you want to execute each task,

# Run `bundle update` only
$ bin/rake bu_pr:bu

# Create pull-request
$ bin/rake bu_pr:pr

# Add gem diff comment
$ bin/rake bu_pr:diff
```


## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mmyoji/bu_pr.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
<commit_msg>Remove split commands from README<commit_after># BuPr

[![Build Status](https://travis-ci.org/mmyoji/bu_pr.svg?branch=master)](https://travis-ci.org/mmyoji/bu_pr)

Run `bundle update` and create its pull-request.


## Installation

```rb
gem 'bu_pr', group: :development
```

And then execute:

    $ bundle


Or install it yourself as:

    $ gem install bu_pr

## Usage

Get Github access token from [this page](https://github.com/settings/tokens/new) with `repo` scope.


### Set configuration values as Environment variables.

```sh
# .bash_profile / .profile / .zshrc / etc.

export BUPR_TOKEN="xxx"
export BUPR_REPO="mmyoji/bu_pr"
# export BUPR_BRANCH="develop"
# export BUPR_TITLE="My bundle update"
```


### Set configuration values in config file.

```rb
require 'bu_pr'

# Setup
BuPr.configure do |config|
  config.token  = "xxx"              # Required
  config.repo   = "mmyoji/bu_pr"     # Required

  config.branch = "develop"          # Optional :: default is 'master'
  config.title  = "My bundle update" # Optional :: default is like 'Bundle update 2016-11-13'
end

BuPr::Runner.call
```

### Rails

```rb
# config/initializers/bu_pr.rb

BuPr.configure do |config|
  config.token = "xxx"
  config.repo  = "mmyoji/bu_pr"
end
```

then run the command `rake bu_pr`


## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mmyoji/bu_pr.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

{'fraction_non_alphanumeric': 0.12368566685113448, 'fraction_numerical': 0.004427227448810182, 'mean_word_length': 3.800796812749004, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '37008', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1179, 'n_words': 368}