Sha256: cdfba0505bff554837874954a1f76807bedb3f427898bdab397046d570eccb10

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

# Partiarelic

[![Build Status](https://travis-ci.org/wata-gh/partiarelic.svg)](https://travis-ci.org/wata-gh/partiarelic)

Adds endpoint to enable New Relic manually.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'partiarelic'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install partiarelic

## Usage

### typical Rails app

```ruby
# Gemfile
gem 'partiarelic', require: 'partiarelic/rails'
```

then your Rails application will handle `/_newrelic/manual_start`.

### rack application

```ruby
# Gemfile
gem 'partiarelic'

# config.ru (middleware)
use Partiarelic::Middleware, path: '/_newrelic/manual_start'

# config.ru (mount)
map '/_newrelic/manual_start' do
  run Partiarelic::App.new(path: '/_newrelic/manual_start')
end
```

## Development

### Test

```sh
$ rake spec
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wata-gh/partiarelic.


## License

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
partiarelic-0.1.1 README.md
partiarelic-0.1.0 README.md