adp-fluentd-plugin-gzip 0.0.4 → 0.0.5

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
  SHA256:
3
- metadata.gz: 5dbcc94bf83b9b8e4a3d25b900fd593467b696a65b96287add90b17e77d69f70
4
- data.tar.gz: 77dbc39e996acac186c81d24904b4b01773ab3f09df49c51e5a0f6a773aafc3e
3
+ metadata.gz: d64b401c92b4a5c10a6a08ec7f6bbe1eb0e905dec4c1a165241facf3a7cab4ad
4
+ data.tar.gz: '087fce736af304a20efd923ac0f2af9e9237d66e3f01a17a31a8e92e8f7c67c3'
5
5
  SHA512:
6
- metadata.gz: e1d555f90a2237f985f8639aded8eadda601366df45bc767047333d6e05b86a531f2073cf6f0b65cc0294992778f1c993740a57a2650d25670b63da1f6e24e6d
7
- data.tar.gz: e788e6c2cdf99994da22206fa2e263a432c478d895361ec6f9e7c110f69b91140dab5498a943641fa8ed7a4532ece37f6749d72746dde11bd2184bea52180504
6
+ metadata.gz: 016b14226653374078bb5188b0385e8736af11c500c1d54400f30ab84c68acf7165bbc373f918b1ed3363f800798a85477cb66c074bf154963e1fc80c78eba6c
7
+ data.tar.gz: ec6ab9697ea8170e05aab9382adc1bef5850cfe35fe93abae33ab05a429794c229048e6c6e826d20bf05c0363b4a0312322eac033e4d48ade20e58f5803f1522
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "adp-fluentd-plugin-gzip"
5
- spec.version = "0.0.4"
5
+ spec.version = "0.0.5"
6
6
  spec.authors = ["Aleksander Dudek"]
7
7
  spec.email = ["aleksander.dudek@ringieraxelspringer.pl"]
8
8
 
@@ -5,26 +5,28 @@ require 'logger'
5
5
  logger = Logger.new(STDOUT)
6
6
  logger.level = Logger::INFO
7
7
 
8
- module Fluent::Plugin
9
- class GzipParser < Parser
10
- Fluent::Plugin.register_parser('gzip', self)
8
+ module Fluent
9
+ module Plugin
10
+ class GzipParser < Parser
11
+ Plugin.register_parser('gzip', self)
11
12
 
12
- def configure(conf)
13
- super
14
- end
13
+ def configure(conf)
14
+ super
15
+ end
15
16
 
16
- def parse(text)
17
- logger.info("Text: #{text}")
18
- logger.info("After compression: #{compress(text)}")
19
- text
20
- end
17
+ def parse(text)
18
+ logger.info("Text: #{text}")
19
+ logger.info("After compression: #{compress(text)}")
20
+ text
21
+ end
21
22
 
22
- def compress(string, level = Zlib::DEFAULT_COMPRESSION, strategy = Zlib::DEFAULT_STRATEGY)
23
- output = Stream.new
24
- gz = Zlib::GzipWriter.new(output, level, strategy)
25
- gz.write(string)
26
- gz.close
27
- output.string
23
+ def compress(string, level = Zlib::DEFAULT_COMPRESSION, strategy = Zlib::DEFAULT_STRATEGY)
24
+ output = Stream.new
25
+ gz = Zlib::GzipWriter.new(output, level, strategy)
26
+ gz.write(string)
27
+ gz.close
28
+ output.string
29
+ end
28
30
  end
29
31
  end
30
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adp-fluentd-plugin-gzip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Dudek