genesisreactor 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 184951d768e913426b3973fa531addb8b3728be1
4
- data.tar.gz: d77031cea4b33de11f6e658c1baab541b71b0714
3
+ metadata.gz: d31927f16ab35f354592e6f26cfca7d43db3c4fc
4
+ data.tar.gz: fa7cfab4e03abc62864bb8a6c74436cfa657ac95
5
5
  SHA512:
6
- metadata.gz: afa584f71291e9bc2e7a1a6289f1179c18f3762f71b413a12b89ec6da0d1cdc2012762a444f6ed8db86061293534a55cace16bc108b7e8fbf5f24db871fb3a8f
7
- data.tar.gz: 5619a1d5a845c45151eea6d2b1ca2dedb9e74ad994205e5c5ff9f5bc5f7b795a609c5ebd00a163d6b8cfd7d76c45777f5eca6c8bf6143b2d05c58ef0198c0e36
6
+ metadata.gz: b5d3bc0c5b0024b103908d3d766d188e949759710064dfd9f61d8c43f3d4a6f2c2c8e45a050068d4cef1bf8fb8850f9ee0b1e30532ebf984e14fb818da950785
7
+ data.tar.gz: 860c3a3965c59d308617e8094931826a3a319b19a96e270048f1795c9bac881b9f20eb5c1f57b4d6959dcb21853ed4ee96ef723d8038f64951974d5574d0205d
@@ -22,6 +22,8 @@ module Genesis
22
22
  end
23
23
  end
24
24
 
25
+ # Enable full request logging with @debug
26
+ Thin::Logging.trace=true if @args[:debug]
25
27
  # Since Thin is backed by EventMachine's TCPserver anyways,
26
28
  # This is just a TCPServer like any other - running inside the same EventMachine!
27
29
  Thin::Server.new(@port, '0.0.0.0', dispatch).backend.start
@@ -20,6 +20,7 @@ module Genesis
20
20
  @poolsize = kwargs[:threads] || 100 # maximum concurrency - larger = longer boot and shutdown time
21
21
  @protocols = kwargs[:protocols] || {}
22
22
  @views = kwargs[:views] || {}
23
+ @debug = kwargs[:debug] || false
23
24
  register_handlers(kwargs[:handlers] || {})
24
25
  register_agents(kwargs[:agents] || [])
25
26
  end
@@ -79,7 +80,7 @@ module Genesis
79
80
  @protocols.each do |protocol, _|
80
81
  server = @servers[protocol.protocol]
81
82
  block = server[:start]
82
- server[:server].start(server[:port], @routes[protocol.protocol], views: @views, channel: @channels[protocol.protocol], &block)
83
+ server[:server].start(server[:port], @routes[protocol.protocol], views: @views, channel: @channels[protocol.protocol], debug: @debug, &block)
83
84
  end
84
85
  end
85
86
 
@@ -1,3 +1,3 @@
1
1
  module Genesis
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genesisreactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel