subserver 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5671f24e7a384c645c69871b72a24027ec5503e
4
- data.tar.gz: 84e9374f0036d7f63a6724e489333c834e02f51f
3
+ metadata.gz: b03ca95feb3a0199cb82d6301c76e665e3eeed1c
4
+ data.tar.gz: 06aa4320e65f4f22f5173f6ec629b030c82214ff
5
5
  SHA512:
6
- metadata.gz: 59dac2b3c668911f97a69e9ca722b6a9c38238d520d1d83e3679b41ba4f82f76ad98eb232fd8a831152a71b34d142dce06ec90e03741d1feb1481dfd45518878
7
- data.tar.gz: 8fccb6d65bd86d58d10eaab277e7afe8cc3ae852c3d276bbc5883f2f9d63e570b0e903880c909270cce524ac93dd9f173bd485b90c9da6aa5c211c5536edcb8f
6
+ metadata.gz: 84aa49c11d99383eed56aa20dd29142b2040de89cb3faefbc6263114743d1d525cfb096cfe93429b93f8451bcdc3b56cbdd85e3fc1dcd72c38f7752531cba107
7
+ data.tar.gz: 6fdf3e3df2b6c53e28055a9f0a8a4fea295803d3321db74d4c65c500b9ee78dc08d9b9b026aadfd7c5c358b2b4f24049718f03e39a5dfac4213e35dc6c15c568
@@ -1,2 +1,24 @@
1
- # 1.0.0
1
+ # 0.4.0
2
+ - Adds listener_startup lifecycle event
3
+
4
+ # 0.3.0
5
+ - Adds Mocks for testing in applications
6
+
7
+ # 0.2.2
8
+ - Fix issue where multi-subscriber options were getting overridden
9
+
10
+ # 0.2.1
11
+ - Use Rails 5 reloader
12
+ - Fix ActiveRecord connection issues using ConnectionHandler
13
+ - Use Google's Default Enviroment Variables for fallback
14
+
15
+ # 0.2.0
16
+ - Adds PubSub connection testing
17
+ - Fixes a case where subserver would infinitly kill and respawn listeners
18
+ - Cleans up logger code
19
+
20
+ # 0.1.1
21
+ - Fixes connection handling
22
+
23
+ # 0.1.0
2
24
  - Initial Public Release
@@ -26,6 +26,7 @@ module Subserver
26
26
  death_handlers: [],
27
27
  lifecycle_events: {
28
28
  startup: [],
29
+ listener_startup: [],
29
30
  quiet: [],
30
31
  shutdown: [],
31
32
  heartbeat: [],
@@ -88,8 +88,8 @@ module Subserver
88
88
  end
89
89
  end
90
90
 
91
- # Before this point, the process is initializing with just the main thread.
92
- # Starting here the process will now have multiple threads running.
91
+ # Until this point, the process is initializing with just the main thread.
92
+ # After this point the process will have multiple threads running.
93
93
  fire_event(:startup, reverse: false, reraise: true)
94
94
 
95
95
  logger.debug { "Middleware: #{Subserver.middleware.map(&:klass).join(', ')}" }
@@ -90,6 +90,8 @@ module Subserver
90
90
 
91
91
  def run
92
92
  begin
93
+ # This begins the listener process in a forked thread
94
+ fire_event(:listener_startup, reverse: false, reraise: true)
93
95
  connect_subscriber
94
96
  @pubsub_listener.start
95
97
  rescue Subserver::Shutdown
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Subserver
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-10 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-pubsub