puma-newrelic-codeur 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e195287b18055147b79b50cc78d44befa3c7b40ea72cc24cde2c69b9a67d546
4
- data.tar.gz: ccdcf8d5f9f7cadd582cf8890240ed9d4d6898847bcd7287f99161646f5b6fb8
3
+ metadata.gz: 1eb6e7d4286a16336d5544cb3f7094390788b71cc1f3f4ab323882ff6611e9d9
4
+ data.tar.gz: faff0b2196bd2aabf06246976f14a0595994b7216b538e0a36713bff1bc524b1
5
5
  SHA512:
6
- metadata.gz: dfe22844effa9205d4e819d9b450cd35abdb57f7af1ee88a42fb04c1781f6b2b1554e19fc91b2019c192c439a1eae6bba056c69db20db6f19fc70a3fd18a6781
7
- data.tar.gz: 385b990229ef0eeb227fc0f32154af04a325c34dfff661ac94494306232c9ec8fbc2c8bfd9a5c989dcff6cefce9159627079f68f70ddb610d1c1c1ed1a0b4bdf
6
+ metadata.gz: 958c09beaedc91bbd6a1b6f6f0f2ddee4224146a387b3ffdcfcb839da472223904eb7442c8dcb461c3389f99417d2e3cfc57aa582b692d9d7d789dfda313b14e
7
+ data.tar.gz: 10a81c3fbb6e961af001895d2cc579ab51ca4b8cbcce0b1ec3b522555719d4e3650541775c03a4913eea496f538efb0c0824df2a94dcb4f8d64f8e39858fe954
data/README.md CHANGED
@@ -18,12 +18,12 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install puma-newrelic
21
+ $ gem install puma-newrelic-codeur
22
22
 
23
23
  ## Usage
24
24
 
25
25
  - Install the gem
26
- - Add `plugin 'newrelic'` to your puma.rb
26
+ - Add `plugin :newrelic` to your puma.rb
27
27
  - Create a dashboard on the NewRelic insights or NewRelic One
28
28
 
29
29
  NQRL example:
@@ -1,9 +1,8 @@
1
1
  require_relative "sampler"
2
- require "puma/plugin"
3
2
 
4
3
  module Puma
5
4
  module NewRelic
6
- class Plugin < Puma::Plugin
5
+ module Plugin
7
6
  def start(launcher)
8
7
  sampler = Puma::NewRelic::Sampler.new(launcher)
9
8
  launcher.events.register(:state) do |state|
@@ -17,7 +16,5 @@ module Puma
17
16
  end
18
17
  end
19
18
  end
20
-
21
- Puma::Plugins.register "newrelic", Plugin
22
19
  end
23
20
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puma
4
4
  module NewRelic
5
- VERSION = "0.1.7"
5
+ VERSION = "0.1.8"
6
6
  end
7
7
  end
data/lib/puma/newrelic.rb CHANGED
@@ -1,12 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "newrelic/version"
4
-
5
- module Puma
6
- module NewRelic
7
- class Error < StandardError; end
8
- # Your code goes here...
9
- end
10
- end
11
-
12
- require_relative "newrelic/plugin"
@@ -0,0 +1,5 @@
1
+ require_relative "../newrelic/plugin"
2
+
3
+ Puma::Plugin.create do
4
+ include Puma::NewRelic::Plugin
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-newrelic-codeur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
@@ -57,6 +57,7 @@ files:
57
57
  - lib/puma/newrelic/plugin.rb
58
58
  - lib/puma/newrelic/sampler.rb
59
59
  - lib/puma/newrelic/version.rb
60
+ - lib/puma/plugin/newrelic.rb
60
61
  homepage: https://github.com/codeur/puma-newrelic
61
62
  licenses:
62
63
  - MIT