rack-new_relic-starter 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +3 -0
- data/.rubocop.yml +7 -0
- data/.ruby-version +1 -0
- data/.travis.yml +10 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +84 -0
- data/Rakefile +15 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/example/config.ru +5 -0
- data/example/unicorn.conf.rb +4 -0
- data/ext/rack_new_relic_starter/extconf.rb +5 -0
- data/ext/rack_new_relic_starter/rack_new_relic_starter.c +116 -0
- data/ext/rack_new_relic_starter/rack_new_relic_starter.h +6 -0
- data/lib/rack/new_relic/starter.rb +66 -0
- data/lib/rack/new_relic/starter/rails.rb +18 -0
- data/lib/rack/new_relic/starter/version.rb +9 -0
- data/rack-new_relic-starter.gemspec +36 -0
- metadata +206 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a92bf7276cf3556cc58b9bce14030442760e7a56
|
4
|
+
data.tar.gz: 8c662495b54eec1d6315512432ca70966378669a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 79d7305e748ec6ff0a566034e6e958709676d0566f117b9f196f44b34d119f451f3acd19a2fe32211f1038aa486d05123b888023c42bd332d1ecf8a5273dd045
|
7
|
+
data.tar.gz: 4e859d5af5b9611587c02f26d944bf8072f7d800887ab3da13036823d7f5426a7929d1c67b217438cfbb19b78f99be5c4b370b20eee66e00b9ea7cd4dc403676
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.8
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Satoshi Matsumoto
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Rack::NewRelic::Starter
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/rack-new_relic-starter)
|
4
|
+
[](https://travis-ci.org/kaorimatz/rack-new_relic-starter)
|
5
|
+
|
6
|
+
A Rack middleware that provides an endpoint to start the New Relic agent.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'rack-new_relic-starter'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install rack-new_relic-starter
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
By default, the middleware uses the path `/_new_relic/start` to provide an endpoint to start the New Relic agent:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# config.ru
|
30
|
+
require 'rack/new_relic/starter'
|
31
|
+
use Rack::NewRelic::Starter
|
32
|
+
```
|
33
|
+
|
34
|
+
You can specify the path of the endpoint using the `path` option:
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
# config.ru
|
38
|
+
require 'rack/new_relic/starter'
|
39
|
+
use Rack::NewRelic::Starter, path: '/foo'
|
40
|
+
```
|
41
|
+
|
42
|
+
If your Rack web server is a pre-forking web server and doesn't load the Rack application before forking, you will need to create a global latch object before forking:
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
$latch = Rack::NewRelic::Starter::Latch.new
|
46
|
+
|
47
|
+
# config.ru
|
48
|
+
require 'rack/new_relic/starter'
|
49
|
+
use Rack::NewRelic::Starter, latch: $latch
|
50
|
+
```
|
51
|
+
|
52
|
+
### Rails
|
53
|
+
|
54
|
+
You can configure Rails to add the middleware to the middleware stack with the default options by requiring `rack/new_relic/starter/rails.rb`:
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
# Gemfile
|
58
|
+
gem 'rack-new_relic-starter', require: 'rack/new_relic/starter/rails'
|
59
|
+
```
|
60
|
+
|
61
|
+
If you need to specify options, you can manually configure the middleware:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
# config/initializers/rack_new_relic_starter.rb
|
65
|
+
Rails.application.config.middleware.use Rack::NewRelic::Starter, path: '/foo'
|
66
|
+
```
|
67
|
+
|
68
|
+
## Development
|
69
|
+
|
70
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
71
|
+
|
72
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
73
|
+
|
74
|
+
## Contributing
|
75
|
+
|
76
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kaorimatz/rack-new_relic-starter.
|
77
|
+
|
78
|
+
## License
|
79
|
+
|
80
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
81
|
+
|
82
|
+
## Credits
|
83
|
+
|
84
|
+
The idea of starting the New Relic agent using the Rack middleware is borrowed from [partiarelic](https://github.com/wata-gh/partiarelic).
|
data/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
7
|
+
|
8
|
+
require 'rubocop/rake_task'
|
9
|
+
RuboCop::RakeTask.new
|
10
|
+
|
11
|
+
require 'rake/extensiontask'
|
12
|
+
Rake::ExtensionTask.new('rack_new_relic_starter')
|
13
|
+
|
14
|
+
task build: :compile
|
15
|
+
task default: %i[clobber compile spec rubocop]
|
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rack/new_relic/starter'
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require 'irb'
|
15
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/example/config.ru
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
#include <errno.h>
|
2
|
+
#include <sys/mman.h>
|
3
|
+
#include <unistd.h>
|
4
|
+
#include "rack_new_relic_starter.h"
|
5
|
+
|
6
|
+
VALUE eError;
|
7
|
+
|
8
|
+
static void
|
9
|
+
latch_free(void *ptr)
|
10
|
+
{
|
11
|
+
munmap(ptr, 1);
|
12
|
+
}
|
13
|
+
|
14
|
+
static size_t
|
15
|
+
latch_size(const void *ptr)
|
16
|
+
{
|
17
|
+
return sysconf(_SC_PAGE_SIZE);
|
18
|
+
}
|
19
|
+
|
20
|
+
static const rb_data_type_t latch_data_type = {
|
21
|
+
"latch",
|
22
|
+
{ NULL, latch_free, latch_size, },
|
23
|
+
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
24
|
+
};
|
25
|
+
|
26
|
+
static VALUE
|
27
|
+
latch_s_allocate(VALUE klass)
|
28
|
+
{
|
29
|
+
return TypedData_Wrap_Struct(klass, &latch_data_type, 0);
|
30
|
+
}
|
31
|
+
|
32
|
+
/*
|
33
|
+
* call-seq:
|
34
|
+
* Rack::NewRelic::Starter::Latch.new -> latch
|
35
|
+
*
|
36
|
+
* Returns a new {Latch} object.
|
37
|
+
*
|
38
|
+
* Rack::NewRelic::Starter::Latch.new #=> #<Rack::NewRelic::Starter::Latch:0x00007f9a2db15890>
|
39
|
+
*/
|
40
|
+
static VALUE
|
41
|
+
latch_initialize(VALUE self)
|
42
|
+
{
|
43
|
+
void *addr = mmap(NULL, 1, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_SHARED, -1, 0);
|
44
|
+
if (addr == MAP_FAILED) {
|
45
|
+
rb_raise(eError, "failed to create mapping for latch: %s", strerror(errno));
|
46
|
+
}
|
47
|
+
|
48
|
+
DATA_PTR(self) = addr;
|
49
|
+
|
50
|
+
return self;
|
51
|
+
}
|
52
|
+
|
53
|
+
static inline uint8_t *
|
54
|
+
check_latch(VALUE self)
|
55
|
+
{
|
56
|
+
return rb_check_typeddata(self, &latch_data_type);
|
57
|
+
}
|
58
|
+
|
59
|
+
/*
|
60
|
+
* call-seq:
|
61
|
+
* latch.open! -> nil
|
62
|
+
*
|
63
|
+
* Opens the latch.
|
64
|
+
*
|
65
|
+
* latch = Rack::NewRelic::Starter::Latch.new
|
66
|
+
* latch.opened? #=> false
|
67
|
+
* latch.open!
|
68
|
+
* latch.opened? #=> true
|
69
|
+
*/
|
70
|
+
static VALUE
|
71
|
+
latch_open(VALUE self)
|
72
|
+
{
|
73
|
+
uint8_t *l = check_latch(self);
|
74
|
+
*l = 1;
|
75
|
+
return Qnil;
|
76
|
+
}
|
77
|
+
|
78
|
+
/*
|
79
|
+
* call-seq:
|
80
|
+
* latch.opened? -> boolean
|
81
|
+
*
|
82
|
+
* Returns true if the latch is opened.
|
83
|
+
*
|
84
|
+
* latch = Rack::NewRelic::Starter::Latch.new
|
85
|
+
* latch.opened? #=> false
|
86
|
+
* latch.open!
|
87
|
+
* latch.opened? #=> true
|
88
|
+
*/
|
89
|
+
static VALUE
|
90
|
+
latch_opened(VALUE self)
|
91
|
+
{
|
92
|
+
return *check_latch(self) == 1 ? Qtrue : Qfalse;
|
93
|
+
}
|
94
|
+
|
95
|
+
void
|
96
|
+
Init_rack_new_relic_starter(void)
|
97
|
+
{
|
98
|
+
VALUE mRack, mNewRelic, cStarter, cLatch;
|
99
|
+
|
100
|
+
mRack = rb_define_module("Rack");
|
101
|
+
mNewRelic = rb_define_module_under(mRack, "NewRelic");
|
102
|
+
cStarter = rb_define_class_under(mNewRelic, "Starter", rb_cObject);
|
103
|
+
eError = rb_define_class_under(cStarter, "Error", rb_eStandardError);
|
104
|
+
|
105
|
+
/*
|
106
|
+
* Document-class: Rack::NewRelic::Starter::Latch
|
107
|
+
*
|
108
|
+
* Rack::NewRelic::Starter::Latch is an object to indicate that the New
|
109
|
+
* Relic agent should be started.
|
110
|
+
*/
|
111
|
+
cLatch = rb_define_class_under(cStarter, "Latch", rb_cObject);
|
112
|
+
rb_define_alloc_func(cLatch, latch_s_allocate);
|
113
|
+
rb_define_method(cLatch, "initialize", latch_initialize, 0);
|
114
|
+
rb_define_method(cLatch, "open!", latch_open, 0);
|
115
|
+
rb_define_method(cLatch, "opened?", latch_opened, 0);
|
116
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'new_relic/agent'
|
4
|
+
require 'rack/body_proxy'
|
5
|
+
|
6
|
+
module Rack
|
7
|
+
module NewRelic
|
8
|
+
# Rack::NewRelic::Starter is a Rack middleware that provides an endpoint to
|
9
|
+
# start the New Relic agent.
|
10
|
+
class Starter
|
11
|
+
# Rack::NewRelic::Starter::Error is a base class for errors raised by
|
12
|
+
# {Starter} and {Latch}.
|
13
|
+
class Error < StandardError; end
|
14
|
+
|
15
|
+
autoload :Latch, 'rack_new_relic_starter'
|
16
|
+
|
17
|
+
# Returns a new {Starter} which implements the Rack interface.
|
18
|
+
#
|
19
|
+
# @param app [Object] the Rack application
|
20
|
+
# @param latch [Rack::NewRelic::Starter::Latch] the latch object
|
21
|
+
# @param path [String] the path of the endpoint to start the New Relic
|
22
|
+
# agent
|
23
|
+
# @return [Rack::NewRelic::Starter] A new starter object
|
24
|
+
def initialize(app, latch: Latch.new, path: nil)
|
25
|
+
@app = app
|
26
|
+
@latch = latch
|
27
|
+
@path = path || '/_new_relic/start'
|
28
|
+
@started = false
|
29
|
+
end
|
30
|
+
|
31
|
+
# Starts the New Relic agent if the path of the request matches with the
|
32
|
+
# path of the endpoint or the latch is opened.
|
33
|
+
#
|
34
|
+
# @param env [Hash] the Rack environment
|
35
|
+
# @return [Array] the Rack response
|
36
|
+
def call(env)
|
37
|
+
start! if !@started && @latch.opened?
|
38
|
+
|
39
|
+
if env['PATH_INFO'] == @path
|
40
|
+
handle
|
41
|
+
else
|
42
|
+
@app.call(env)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def handle
|
49
|
+
if @started
|
50
|
+
headers = { 'Content-Type' => 'text/plain' }
|
51
|
+
[200, headers, ['The New Relic agent is already started.']]
|
52
|
+
else
|
53
|
+
@latch.open!
|
54
|
+
start!
|
55
|
+
headers = { 'Content-Type' => 'text/plain' }
|
56
|
+
[200, headers, ['Started the New Relic agent.']]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def start!
|
61
|
+
::NewRelic::Agent.manual_start
|
62
|
+
@started = true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rack/new_relic/starter'
|
4
|
+
|
5
|
+
module Rack
|
6
|
+
module NewRelic
|
7
|
+
class Starter
|
8
|
+
# Rack::NewRelic::Starter::Railtie implements a railtie which creates an
|
9
|
+
# initializer to add the middleware to the middleware stack with the
|
10
|
+
# default options.
|
11
|
+
class Railtie < Rails::Railtie
|
12
|
+
initializer 'rack-new_relic-starter.middleware' do |app|
|
13
|
+
app.middleware.use Rack::NewRelic::Starter
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'rack/new_relic/starter/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'rack-new_relic-starter'
|
9
|
+
spec.version = Rack::NewRelic::Starter::VERSION
|
10
|
+
spec.authors = ['Satoshi Matsumoto']
|
11
|
+
spec.email = ['kaorimatz@gmail.com']
|
12
|
+
|
13
|
+
spec.summary = 'A Rack middleware to start the New Relic agent.'
|
14
|
+
spec.description = <<-DESCRIPTION
|
15
|
+
A Rack middleware that provides an endpoint to start the New Relic agent.
|
16
|
+
DESCRIPTION
|
17
|
+
spec.homepage = 'https://github.com/kaorimatz/rack-new_relic-starter'
|
18
|
+
spec.license = 'MIT'
|
19
|
+
|
20
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
|
22
|
+
end
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
spec.extensions = ['ext/rack_new_relic_starter/extconf.rb']
|
25
|
+
|
26
|
+
spec.add_runtime_dependency 'newrelic_rpm'
|
27
|
+
spec.add_runtime_dependency 'rack'
|
28
|
+
spec.add_development_dependency 'bundler'
|
29
|
+
spec.add_development_dependency 'rake'
|
30
|
+
spec.add_development_dependency 'rake-compiler'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'rspec-mocks'
|
33
|
+
spec.add_development_dependency 'rubocop'
|
34
|
+
spec.add_development_dependency 'simplecov'
|
35
|
+
spec.add_development_dependency 'unicorn'
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rack-new_relic-starter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Satoshi Matsumoto
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: newrelic_rpm
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rack
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake-compiler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-mocks
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: unicorn
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: " A Rack middleware that provides an endpoint to start the New Relic
|
154
|
+
agent.\n"
|
155
|
+
email:
|
156
|
+
- kaorimatz@gmail.com
|
157
|
+
executables: []
|
158
|
+
extensions:
|
159
|
+
- ext/rack_new_relic_starter/extconf.rb
|
160
|
+
extra_rdoc_files: []
|
161
|
+
files:
|
162
|
+
- ".gitignore"
|
163
|
+
- ".rspec"
|
164
|
+
- ".rubocop.yml"
|
165
|
+
- ".ruby-version"
|
166
|
+
- ".travis.yml"
|
167
|
+
- Gemfile
|
168
|
+
- LICENSE.txt
|
169
|
+
- README.md
|
170
|
+
- Rakefile
|
171
|
+
- bin/console
|
172
|
+
- bin/setup
|
173
|
+
- example/config.ru
|
174
|
+
- example/unicorn.conf.rb
|
175
|
+
- ext/rack_new_relic_starter/extconf.rb
|
176
|
+
- ext/rack_new_relic_starter/rack_new_relic_starter.c
|
177
|
+
- ext/rack_new_relic_starter/rack_new_relic_starter.h
|
178
|
+
- lib/rack/new_relic/starter.rb
|
179
|
+
- lib/rack/new_relic/starter/rails.rb
|
180
|
+
- lib/rack/new_relic/starter/version.rb
|
181
|
+
- rack-new_relic-starter.gemspec
|
182
|
+
homepage: https://github.com/kaorimatz/rack-new_relic-starter
|
183
|
+
licenses:
|
184
|
+
- MIT
|
185
|
+
metadata: {}
|
186
|
+
post_install_message:
|
187
|
+
rdoc_options: []
|
188
|
+
require_paths:
|
189
|
+
- lib
|
190
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
requirements: []
|
201
|
+
rubyforge_project:
|
202
|
+
rubygems_version: 2.5.2.3
|
203
|
+
signing_key:
|
204
|
+
specification_version: 4
|
205
|
+
summary: A Rack middleware to start the New Relic agent.
|
206
|
+
test_files: []
|