appsignal 0.12.rc.6 → 0.12.rc.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fe64f98d1b8c97db72efd6156489d159a3ddb9b
4
- data.tar.gz: 8316b69cd151f561b860ebd2bc358b6594e4c630
3
+ metadata.gz: a531aa7d19fc95984cdd43be2973189fd4c346ce
4
+ data.tar.gz: af4743469d11f853cbc36b9db65febc1266e89f5
5
5
  SHA512:
6
- metadata.gz: 99c14fa7284f1462ef60cdf20ca0fe19be83f5a31949b49b73c42d6301a0092a4bba7e8d894036e385e0c7bcc02a12a0455e97d9528443fffa9fd8f7676dfb27
7
- data.tar.gz: b95489f8cabb4abe6483d77a8ae0547e7062e3c28b8050caef8a77612ffd0c6831b65d7642263d341050eb7497cd75a3addbe1ac4897ad2de0afe6f43cbe72ee
6
+ metadata.gz: c1a9902fcceb5d376b9759aede9bc9bdd64cb7df27ca9bbc4ab3186dc099eccd6bf7bff28cc6d42aa3ee0f96f5a7c4f5ccdb086df3c36659b4faa623d8b75872
7
+ data.tar.gz: 8a53db6b00208926547f3326fff4257d9d58cf8bf521f0abe6425be6f8ad49107d7dbc13731aa759bdd2676d01c6f0ad1706036d6928b400136ccc76ffa4ffe9
@@ -1,15 +1,15 @@
1
1
  ---
2
- :version: f31de3b
2
+ :version: e249c63
3
3
  :triples:
4
4
  x86_64-linux:
5
- :checksum: 4ab3581f78e0c2cc96d51f79cabc067f1a6e8b5ea5fda1deb4c98ddd8c16d62e
6
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/f31de3b/appsignal-agent-x86_64-linux-static.tar.gz
5
+ :checksum: 444b04b39e98c3071bed05e337d17503ff736b1a830f3952868963cef7c36902
6
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-x86_64-linux-static.tar.gz
7
7
  :lib_filename: libappsignal.a
8
8
  i686-linux:
9
- :checksum: 1bc4425e9ee2b81cc7865b66e9dadb045033764b075bb3f84894a490387a2793
10
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/f31de3b/appsignal-agent-i686-linux-static.tar.gz
9
+ :checksum: bd2fbb0f4185c0035b82b7a9a657b27b540696aa8a07bdbcac3a5651952957d7
10
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-i686-linux-static.tar.gz
11
11
  :lib_filename: libappsignal.a
12
12
  x86_64-darwin:
13
- :checksum: 209579fb992cbe9fae30ee5e4bb0909eaa25ee5573df440c1e47c031fa1bb0db
14
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/f31de3b/appsignal-agent-x86_64-darwin-static.tar.gz
13
+ :checksum: 957340856e0b5ac3f6e0bd2d5f70679218caf6cecc47f998c27b661cdad750df
14
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/e249c63/appsignal-agent-x86_64-darwin-static.tar.gz
15
15
  :lib_filename: libappsignal.a
@@ -12,16 +12,6 @@ module Appsignal
12
12
  class << self
13
13
  attr_accessor :config, :subscriber, :logger, :agent, :in_memory_log, :extension_loaded
14
14
 
15
- def load_integrations
16
- require 'appsignal/integrations/celluloid'
17
- require 'appsignal/integrations/delayed_job'
18
- require 'appsignal/integrations/passenger'
19
- require 'appsignal/integrations/puma'
20
- require 'appsignal/integrations/sidekiq'
21
- require 'appsignal/integrations/resque'
22
- require 'appsignal/integrations/unicorn'
23
- end
24
-
25
15
  def load_instrumentations
26
16
  require 'appsignal/instrumentations/net_http' if config[:instrument_net_http]
27
17
  require 'appsignal/instrumentations/redis' if config[:instrument_redis]
@@ -60,7 +50,6 @@ module Appsignal
60
50
  logger.info("Starting AppSignal #{Appsignal::VERSION} on #{RUBY_VERSION}/#{RUBY_PLATFORM}")
61
51
  config.write_to_environment
62
52
  Appsignal::Extension.start
63
- load_integrations
64
53
  load_instrumentations
65
54
  Appsignal::EventFormatter.initialize_formatters
66
55
  initialize_extensions
@@ -80,9 +69,10 @@ module Appsignal
80
69
  end
81
70
 
82
71
  def forked
72
+ return unless active?
83
73
  logger.debug('Forked process, resubscribing and restarting extension')
84
74
  Appsignal::Extension.start
85
- @subscriber = Appsignal::Subscriber.new
75
+ @subscriber.resubscribe
86
76
  end
87
77
 
88
78
  # Wrap a transaction with appsignal monitoring.
@@ -269,7 +259,11 @@ require 'appsignal/version'
269
259
  require 'appsignal/rack/js_exception_catcher'
270
260
  require 'appsignal/js_exception_transaction'
271
261
  require 'appsignal/transmitter'
272
-
273
- # This needs to be required immediately, that's why it's
274
- # not in load_integrations
262
+ require 'appsignal/integrations/celluloid'
263
+ require 'appsignal/integrations/delayed_job'
264
+ require 'appsignal/integrations/passenger'
265
+ require 'appsignal/integrations/puma'
266
+ require 'appsignal/integrations/sidekiq'
275
267
  require 'appsignal/integrations/rails'
268
+ require 'appsignal/integrations/resque'
269
+ require 'appsignal/integrations/unicorn'
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '0.12.rc.6'
4
+ VERSION = '0.12.rc.7'
5
5
  end
@@ -160,7 +160,7 @@ if capistrano3_present?
160
160
  it "should not send deploy marker" do
161
161
  Appsignal::Marker.should_not_receive(:new)
162
162
  invoke('appsignal:deploy')
163
- io.string.should include("Not loading: config for 'nonsense' not found")
163
+ io.string.should include("Not loading from config file: config for 'nonsense' not found")
164
164
  end
165
165
  end
166
166
  end
@@ -62,11 +62,6 @@ describe Appsignal do
62
62
  Appsignal.start
63
63
  end
64
64
 
65
- it "should load integrations" do
66
- Appsignal.should_receive(:load_integrations)
67
- Appsignal.start
68
- end
69
-
70
65
  it "should load instrumentations" do
71
66
  Appsignal.should_receive(:load_instrumentations)
72
67
  Appsignal.start
@@ -120,14 +115,6 @@ describe Appsignal do
120
115
  end
121
116
  end
122
117
 
123
- describe ".load_integrations" do
124
- it "should require the integrations" do
125
- Appsignal.should_receive(:require).at_least(:once)
126
- end
127
-
128
- after { Appsignal.load_integrations }
129
- end
130
-
131
118
  describe ".load_instrumentations" do
132
119
  before { Appsignal.config = project_fixture_config }
133
120
 
@@ -167,11 +154,26 @@ describe Appsignal do
167
154
  end
168
155
 
169
156
  describe ".forked" do
170
- it "should resubscribe and start the extension" do
171
- Appsignal::Extension.should_receive(:start)
172
- Appsignal::Subscriber.should_receive(:new)
157
+ context "when not active" do
158
+ it "should should do nothing" do
159
+ Appsignal::Extension.should_not_receive(:start)
160
+ Appsignal::Subscriber.should_not_receive(:new)
161
+
162
+ Appsignal.forked
163
+ end
164
+ end
173
165
 
174
- Appsignal.forked
166
+ context "when active" do
167
+ before do
168
+ Appsignal.config = project_fixture_config
169
+ end
170
+
171
+ it "should resubscribe and start the extension" do
172
+ Appsignal::Extension.should_receive(:start)
173
+ Appsignal::Subscriber.any_instance.should_receive(:resubscribe)
174
+
175
+ Appsignal.forked
176
+ end
175
177
  end
176
178
  end
177
179
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.rc.6
4
+ version: 0.12.rc.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-17 00:00:00.000000000 Z
12
+ date: 2015-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack