new_relic-starter 0.1.1 → 0.2.0

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
- SHA1:
3
- metadata.gz: 071bbc4b2947e8e8c3cd27bd000aa0681125cd47
4
- data.tar.gz: 9a36ca48347142dfe955b7dd4616afc568f1c0ee
2
+ SHA256:
3
+ metadata.gz: 9d0585dd4d99434f612e938a9bead0a0051caac72514afdbe358901f2c83c627
4
+ data.tar.gz: 9f467363fdb14f6e5271d85686970843684fb50c2dd73ce9a5fc62049755e3b1
5
5
  SHA512:
6
- metadata.gz: b44dd21f7b242fe05d92950cbabc3ad4228ed03a5573596eae07c9486b113817730fcd517b0031b870d330d84ac8362172f4c4526de4de0db110292334fe3b82
7
- data.tar.gz: 6052fe1c0a8c71cb4abd48fa563c0fa21b34f52924abfdd0e23d8448877eac169a4cc150201cb2abef7064f65c4ebc88d0b31769c5d7064c929162dc0377c652
6
+ metadata.gz: '0594710faeb8ce74aef9c8ca3c0d4aff25c2c5011f1aa96a1a4b05c5a60f4f2aad94c3e72ad1b8f5334c63a190052d6e9af12fd8ae03d2c4a82c2d6d7c32108e'
7
+ data.tar.gz: b16d922c88138453d0842214adcc6289ff8196092eb5e67e378db74cb776f885fc9923bde4c23f138ba17a37ac308ac5d1077885599225a6a7eecf7d3aa122e4
data/README.md CHANGED
@@ -95,7 +95,7 @@ If your Resque worker forks before processing a job, you can add a hook to start
95
95
  ```ruby
96
96
  starter = NewRelic::Starter.new(NewRelic::Starter::Latch.new("/path/to/latch"))
97
97
  Resque.before_fork do
98
- starter.start
98
+ starter.start(dispatcher: :resque, start_channel_listener: true)
99
99
  end
100
100
  ```
101
101
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module NewRelic
4
4
  class Starter
5
- VERSION = '0.1.1'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
@@ -24,11 +24,13 @@ module NewRelic
24
24
  # Starts the new Relic agent if the agent is not started and the latch is
25
25
  # opened.
26
26
  #
27
+ # @param options [Hash] The options passed through to
28
+ # {NewRelic::Agent.manual_start}
27
29
  # @return [Boolean] true if the new Relic agent is started
28
- def start
30
+ def start(options = {})
29
31
  return false if @started || !@latch.opened?
30
32
 
31
- NewRelic::Agent.manual_start
33
+ NewRelic::Agent.manual_start(options)
32
34
  @started = true
33
35
  end
34
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_relic-starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Matsumoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-01 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: newrelic_rpm
@@ -174,8 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubyforge_project:
178
- rubygems_version: 2.6.14.3
177
+ rubygems_version: 3.0.1
179
178
  signing_key:
180
179
  specification_version: 4
181
180
  summary: Start the New Relic agent in a running process.