plain_apm 0.8.6 → 0.8.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
  SHA256:
3
- metadata.gz: bf19e534b8992e131bef77e1bdf20937429b658ff9c35b9e82d962e312e54d93
4
- data.tar.gz: 55cbe13700a6dbf3b24bd072fd5fa494b7548ae6e5910a5b2bd027a87780caf6
3
+ metadata.gz: 166f1a5259c2358113a5d383baeb578e5b83c311e37986cc31bd41efaa422307
4
+ data.tar.gz: e24691b831f7272dc7cd86a4460587f230d51eba9ddeb3cf208d73cb8b76639b
5
5
  SHA512:
6
- metadata.gz: 368f4634a31e501089c808a2be49ed33e07050b26596f1da93476074b3f49c48c35157d6ebfde6b2dd2a584bba157d6877da057ff2c8b9b13c94a6a433c749d4
7
- data.tar.gz: 7265be58a5b4fdc94b67c9df8f1a13a05cf3ee562ac68b8a85595fc331c4303845a311c68c6d63904ae35f65b47f5a154d540ceba9f6315b79be1186c51c56d5
6
+ metadata.gz: 376174018b1fc9d072bc145b579b7300fdc4edde068fe600949233cbef22ad96ca708aeb6d0ce651810a42651d2535b8a4072adcd9b880d0420fe388b2c7ce61
7
+ data.tar.gz: 85af3e06b5498aefb062af05cba03feefa2ca6db1cfe9e8959c69e309f6769e6b7c64d335fad71358d09c1e0c0daf380c44be3fa9a473023c30a438caff2b043
@@ -48,6 +48,8 @@ module PlainApm
48
48
  def stop
49
49
  return if @publisher.nil?
50
50
 
51
+ uninstall_hooks
52
+
51
53
  @events << nil
52
54
  @publisher.join
53
55
  @publisher = nil
@@ -60,7 +62,15 @@ module PlainApm
60
62
  end
61
63
 
62
64
  def install_hooks
63
- [
65
+ hooks.each(&:install)
66
+ end
67
+
68
+ def uninstall_hooks
69
+ hooks.each(&:uninstall)
70
+ end
71
+
72
+ def hooks
73
+ @hooks ||= [
64
74
  Hooks::Deploy,
65
75
  Hooks::ActionMailer,
66
76
  Hooks::ActionPack,
@@ -70,7 +80,7 @@ module PlainApm
70
80
  Hooks::ActiveSupport,
71
81
  Hooks::ErrorReporter,
72
82
  Hooks::Manual
73
- ].map(&:new).each(&:install)
83
+ ].map(&:new)
74
84
  end
75
85
 
76
86
  ##
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlainApm
4
- VERSION = "0.8.6"
4
+ VERSION = "0.8.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - PlainAPM Team