adp-fluent-plugin-kinesis 0.0.1 → 0.0.2

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: afd68811113411e65b8cb4fab4f71291cb81b87370def3ad7d599ca4e8d2a919
4
- data.tar.gz: 574c80a098f212524c0f165a9b44eba3b2ad27cb8f65b2912ec9b4695ac16fe3
3
+ metadata.gz: 6e34d347f710d0d69f82b19add79c4b458b2c7a1c40ddba3b00087dea8111f4d
4
+ data.tar.gz: ff3f728332988e411ea2918dcde84a284d2e7f81f871af0a2a3131892a718438
5
5
  SHA512:
6
- metadata.gz: 97f2bfa45cdb36fa42845985c8f2b4ff7ebe728f1b5ef837aca880c283ae53a04c887b47306d876d3f46e8a6da289f45fce963a30c29051af875242381d58a26
7
- data.tar.gz: dbf3372c1e4f225c736fafe3bf5de4efdae832874fe50aa6a23e5201b0d56a26badbfd6c25a0a71ef885fe99e5f6da2474cca7d37caccd5284d7dabdb7a446c4
6
+ metadata.gz: b62b0eda02af075652125f5e75895532772854c2916bccf5870e6f93f29dd06729a4c3f2ad13ab2a860a1a27b136ece96b0ef4c9d41244a0308c22b9e779945f
7
+ data.tar.gz: faf1d5b48454907b9ff90c24a08742515e7c95da13734eeb15f46a4823a7439bfa743689d907e9c6bac6768811ad61f5f2a453ebc81e55c2b8289191bac8144f
@@ -17,6 +17,7 @@ require 'fluent/msgpack_factory'
17
17
  require 'fluent/plugin/output'
18
18
  require 'fluent/plugin/kinesis_helper/client'
19
19
  require 'fluent/plugin/kinesis_helper/api'
20
+ require 'fluent/plugin/kinesis_helper/compression'
20
21
  require 'zlib'
21
22
 
22
23
  module Fluent
@@ -112,12 +113,14 @@ module Fluent
112
113
  ->(tag, time, record) {
113
114
  raise InvalidRecordError, record unless record.is_a? Hash
114
115
  raise KeyNotFoundError.new(@data_key, record) if record[@data_key].nil?
116
+ log.info("record: #{record}")
115
117
  compressor.call(record[@data_key].to_s.b)
116
118
  }
117
119
  end
118
120
  end
119
121
 
120
122
  def compressor_create
123
+ log.info("@compression: #{@compression}")
121
124
  case @compression
122
125
  when "zlib"
123
126
  ->(data) { Zlib::Deflate.deflate(data) }
@@ -13,5 +13,5 @@
13
13
  # language governing permissions and limitations under the License.
14
14
 
15
15
  module FluentPluginKinesis
16
- VERSION = '0.0.1'
16
+ VERSION = '0.0.2'
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adp-fluent-plugin-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services