logjam_agent 0.32.1 → 0.32.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 +4 -4
- data/lib/logjam_agent.rb +1 -0
- data/lib/logjam_agent/monkey_patches/ffi-rzmq-patch.rb +19 -0
- data/lib/logjam_agent/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e63a0c31560b5452a3a9dc6edec717fa47324ec23f656f7e361fa53eaef16aa2
|
4
|
+
data.tar.gz: 6e7c82b4bb09db8d5633b6ddd57b8652029c00a3ba29576ef29514792c8ce16e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540a920a53669c5fef7d3638387f286e8d6931a83bb30a8388f3925c788ac4a8871419bd3325b9e710317dda01fadbc6d308d574cc6c14ebb8c08bb0875a3b88
|
7
|
+
data.tar.gz: c9bb062f3d5622b8c5bd888012748d0f84169cc1693c0a78285ddac7ce4f77b3bc29167b7b7cec96d41642bce13743d65c21dbd96432e088b906d71821b85983
|
data/lib/logjam_agent.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# see https://github.com/chuckremes/ffi-rzmq/pull/133
|
2
|
+
|
3
|
+
require 'ffi-rzmq'
|
4
|
+
require 'ffi-rzmq/message'
|
5
|
+
|
6
|
+
module ZMQ
|
7
|
+
class Message
|
8
|
+
def copy_in_bytes bytes, len
|
9
|
+
data_buffer = LibC.malloc len
|
10
|
+
# writes the exact number of bytes, no null byte to terminate string
|
11
|
+
data_buffer.put_bytes 0, bytes, 0, len
|
12
|
+
|
13
|
+
# use libC to call free on the data buffer; earlier versions used an
|
14
|
+
# FFI::Function here that called back into Ruby, but Rubinius won't
|
15
|
+
# support that and there are issues with the other runtimes too
|
16
|
+
LibZMQ.zmq_msg_init_data @pointer, data_buffer, len, LibC::Free, nil
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/logjam_agent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.32.
|
4
|
+
version: 0.32.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/logjam_agent/buffered_logger.rb
|
237
237
|
- lib/logjam_agent/forwarders.rb
|
238
238
|
- lib/logjam_agent/middleware.rb
|
239
|
+
- lib/logjam_agent/monkey_patches/ffi-rzmq-patch.rb
|
239
240
|
- lib/logjam_agent/rack/logger.rb
|
240
241
|
- lib/logjam_agent/rack/rails_support.rb
|
241
242
|
- lib/logjam_agent/rack/sinatra_request.rb
|