liquid-ext 3.1.1 → 3.1.2

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: 6fed3d8006180ed97f6a4d5fbd2796de98defac3
4
- data.tar.gz: 3e8d3b8add7fc900d94737892b61e80378d58028
3
+ metadata.gz: 1b1cea40a2404ada25782dae605a73f47003b7f4
4
+ data.tar.gz: 699c6876bc639ffb2d589451df6acb92368faccc
5
5
  SHA512:
6
- metadata.gz: d396c48162e6a69365fabb1aee896ef24c46cec9aff54297505299dc92242a338451a9b65288fad7dda823b21a3103de7fabb1e28a5658e8face5a88dce13c10
7
- data.tar.gz: 0bd26ab55ece30d13b9a8ceb713cebdca4236d476e570172530dcb9f851c218d5085d5096ce34995e03270e491a08e0d67c4e4ec7bc3fb7bb03db5c0d534cb28
6
+ metadata.gz: 72a1f313387ca40b060e71fd74254600bf5a748131f98c6c19c9b836758d0ced942de87784ad567f6e002c8fbb23533fe503f9819e5c88381e4313d8917e4fb4
7
+ data.tar.gz: f75ec1b17c96e9ebf5f18557a90dcc1d492fde24550a92c3983804d6833750c21da83733e193cb291d0a2af294785e59f2f861f138bc240b665ceab4f74297a1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- liquid-ext (3.1.1)
4
+ liquid-ext (3.1.2)
5
5
  activesupport
6
6
  erubis
7
7
  mixlib-cli
data/lib/liquid/cli.rb CHANGED
@@ -57,8 +57,8 @@ class CLI
57
57
  cli.instance_eval(&block) if block_given?
58
58
  cli.parse_options
59
59
 
60
- $log.info("cli:initialize", cli.config)
61
60
  $conf.reload!
61
+ $log.info("cli:initialize", cli.config)
62
62
 
63
63
  # infer some variables
64
64
  opts = cli.config.merge({
data/lib/liquid/server.rb CHANGED
@@ -6,10 +6,23 @@ module Liquid
6
6
  def initialize
7
7
  $log.info("#{self.class.name.downcase} #{RUBY_DESCRIPTION}")
8
8
  $log.info("#{self.class.name.downcase}", env: Env.mode)
9
+ initialize_raven
9
10
  initialize_tracker
10
11
  initialize_metrics
11
12
  end
12
13
 
14
+ def initialize_raven
15
+ return unless $conf.raven
16
+ require 'raven'
17
+ Raven.configure do |config|
18
+ config.dsn = $conf.raven.dsn
19
+ config.logger = $log
20
+ end
21
+ $log.add_exception_handler do |exc, message, attribs|
22
+ Raven.capture_exception(exc)
23
+ end
24
+ end
25
+
13
26
  def initialize_tracker
14
27
  if $conf.tracker.kafka.enabled
15
28
  # http://kafka.apache.org/documentation.html#producerconfigs
@@ -31,6 +44,7 @@ module Liquid
31
44
  end
32
45
 
33
46
  def initialize_zmachine
47
+ require 'zmachine'
34
48
  ZMachine.logger = $log
35
49
  ZMachine.debug = true if $conf.zmachine.debug
36
50
  ZMachine.heartbeat_interval = 0.1
data/lib/liquid/zmq.rb CHANGED
@@ -61,6 +61,8 @@ class ZContext
61
61
 
62
62
  def self.destroy
63
63
  instance.destroy
64
+ rescue Java::JavaLang::IllegalStateException
65
+ # ignore broken shutdown in zeromq
64
66
  end
65
67
 
66
68
  def self.router(opts = {})
data/liquid-ext.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "liquid-ext"
5
- spec.version = "3.1.1"
5
+ spec.version = "3.1.2"
6
6
  spec.authors = ["LiquidM, Inc."]
7
7
  spec.email = ["opensource@liquidm.com"]
8
8
  spec.description = %q{Ruby core extensions and helper libraries}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LiquidM, Inc.