logjam_agent 0.17.0 → 0.17.1

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: fa38a215553f0e5b93916fbe5f5b1f23d25a088d
4
- data.tar.gz: 86d813bd6c4ca2830637eca5799d4e23866434de
3
+ metadata.gz: a6613b91165bdc35289c91ab2f90b40b60d2b807
4
+ data.tar.gz: 6e8308155e9c85d0aa838c62b78bc670e28108aa
5
5
  SHA512:
6
- metadata.gz: 2a6fef99a5b96a77e12d5467ee064187499cfce06f2d179a6a110753d8997ff477903bea56f5d3b97faeb426c9fa6cb1116f1aa65b780d237e271aac6763c74a
7
- data.tar.gz: 3e0055031a828a202bb9d12db658e9437eabe9bfa22b39a6c9c8eb787dde3312a423d80e9169936a4cf177c8e4f6d4d0286554f2d886c18d519a88c5f73b76cf
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 GZIP_COMPRESSION and SNAPPY_COMPRESSION.
84
- # Snappy is faster and less CPU intensive than GZIP, GZIP achieves
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 = GZIP_COMPRESSION
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
- GZIP_COMPRESSION = 1
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, GZIP_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 GZIP_COMPRESSION
228
+ when ZLIB_COMPRESSION
229
229
  ActiveSupport::Gzip.compress(json)
230
230
  when SNAPPY_COMPRESSION
231
231
  Snappy.deflate(json)
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.17.0"
2
+ VERSION = "0.17.1"
3
3
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake