logjam_agent 0.17.0 → 0.17.1
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/README.md +4 -3
- data/lib/logjam_agent.rb +3 -3
- data/lib/logjam_agent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6613b91165bdc35289c91ab2f90b40b60d2b807
|
4
|
+
data.tar.gz: 6e8308155e9c85d0aa838c62b78bc670e28108aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c0920e52a6ee1baa3cf044faa496e97f9e161cea3e6e3c92335d1b7b1c2a9d5ecc4f0b6e6c916326b24154a932c3fd572112a52c910f820b37ff2ade085372
|
7
|
+
data.tar.gz: 735546bd20a054d83bad925974c20113b6a16c0d93289e0985b194430e714d52e44b2e1be0607e1008ba433f6605e43958ed51187bb01860aba7b41b747dcd30
|
data/README.md
CHANGED
@@ -80,10 +80,11 @@ module LogjamAgent
|
|
80
80
|
self.max_bytes_all_lines = 1024 * 1024
|
81
81
|
|
82
82
|
# Configure compression method. Defaults to NO_COMPRESSION. Available
|
83
|
-
# compression methods are
|
84
|
-
# Snappy is faster and less CPU intensive than
|
83
|
+
# compression methods are ZLIB_COMPRESSION and SNAPPY_COMPRESSION.
|
84
|
+
# Snappy is faster and less CPU intensive than ZLIB, ZLIB achieves
|
85
85
|
# higher compression rates.
|
86
|
-
# self.compression_method =
|
86
|
+
# self.compression_method = ZLIB_COMPRESSION
|
87
|
+
# self.compression_method = SNAPPY_COMPRESSION
|
87
88
|
end
|
88
89
|
```
|
89
90
|
|
data/lib/logjam_agent.rb
CHANGED
@@ -115,7 +115,7 @@ module LogjamAgent
|
|
115
115
|
extend RequestHandling
|
116
116
|
|
117
117
|
NO_COMPRESSION = 0
|
118
|
-
|
118
|
+
ZLIB_COMPRESSION = 1
|
119
119
|
SNAPPY_COMPRESSION = 2
|
120
120
|
|
121
121
|
mattr_reader :compression_method
|
@@ -128,7 +128,7 @@ module LogjamAgent
|
|
128
128
|
rescue LoadError
|
129
129
|
# do nothing
|
130
130
|
end
|
131
|
-
when NO_COMPRESSION,
|
131
|
+
when NO_COMPRESSION, ZLIB_COMPRESSION
|
132
132
|
@@compression_method = compression_method
|
133
133
|
else
|
134
134
|
raise ArgumentError.new("unknown compression method")
|
@@ -225,7 +225,7 @@ module LogjamAgent
|
|
225
225
|
def self.encode_payload(data)
|
226
226
|
json = json_encode_payload(data)
|
227
227
|
case compression_method
|
228
|
-
when
|
228
|
+
when ZLIB_COMPRESSION
|
229
229
|
ActiveSupport::Gzip.compress(json)
|
230
230
|
when SNAPPY_COMPRESSION
|
231
231
|
Snappy.deflate(json)
|
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.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|