nypl_ruby_util 0.0.2 → 0.0.3

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: 952f7c7491f09f2e9cb290fa60b27ae4b8fb7e9813aa4770815382a0e4bbc1b6
4
- data.tar.gz: 8fbdca7f3ed50af72afb87b26a419c973197d6222971da773bd14301d8827d88
3
+ metadata.gz: c6c6483ada755b5092548e42bd0bc6f699af6c642d8863e1488fabb78345df59
4
+ data.tar.gz: 343534e1ca8672cb04552aa958a22e98211bfb00fb8996698b28e2ed78f97368
5
5
  SHA512:
6
- metadata.gz: 1b54e839d62443864394a484aa1eef3dcc3cbb5ae3d87e36fc2116e8ba3fd91d37cfdf2f6e59d08a1f22f31eba521ea9fe8c245eabb7863b675653536ebabb7c
7
- data.tar.gz: 53702ca1da7f59a1b3b2dfaa9b46c59f3cdddbc5c44634e9946ef6f36368dc04283f634295f4f422b50f339607aed76233638b6fbd1794775bc6b2c56e8a7854
6
+ metadata.gz: e3bdaa197c01456afae42a28dd4d6c8e95e4f9e7d402ebe3e54f4c4980f2daee7517b8be4c1fb19f62cea77f0a10b7bfafdcf03c04dfc1153f79ca576e5c7cc6
7
+ data.tar.gz: 3a48402301714fa235c8ed865f99e1582aa19064791d099a2d47510cbcd99224852593d14aceb29a998643c37f97386cc94307beda6c336d5b4b6b31aac56c5b
@@ -18,9 +18,8 @@ class KinesisClient
18
18
  end
19
19
 
20
20
  def <<(json_message)
21
- p '<< ', config[:schema_string], avro
22
21
  if config[:schema_string]
23
- message = avro.encode(json_message)
22
+ message = avro.encode(json_message, false)
24
23
  else
25
24
  message = json_message
26
25
  end
@@ -32,6 +32,7 @@ class NYPLAvro
32
32
  def encode(decoded_data, base64 = true)
33
33
  bin_encoder = Avro::IO::DatumWriter.new(@schema)
34
34
  buffer = StringIO.new
35
+ buffer.set_encoding('UTF-8')
35
36
  encoder = Avro::IO::BinaryEncoder.new(buffer)
36
37
 
37
38
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nypl_ruby_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Appel
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.0.3
115
+ rubygems_version: 3.1.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: A repository of common utilities for NYPL Ruby application