fluent-plugin-out-http 1.3.2 → 1.3.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: ad31d6d8e6d5c91ed3d8de4001209423ac88ab0b4874ff20ca2ad6fc4da1eb61
4
- data.tar.gz: 5b51d999c640acc0e8bdae3dc4f057648ccbb76bcc79e8b10d96dfacf5ea7c8f
3
+ metadata.gz: 6d4a3bd96989a1de8d1d71e651bcb22fb69c679c29901f8f3f38f9f76ff659fd
4
+ data.tar.gz: c50fda8ab077e2c14f8bcfed38b083d732a279ac1356cd0e2db106d279bcbe47
5
5
  SHA512:
6
- metadata.gz: c26560e9256fdd166b1a909b5b166c5fe5a7d14f5b9ebc01c8a125bd74c6feb859ee744853a3e3925e7ad6e58175c3be7e45d991eca54716f1a62d10981fad5b
7
- data.tar.gz: acb1c8e0131912640da47d2e632f91cd7c4986327878a60ea224905c52eb4d545e5e1d8cab6c2abe22a3030764733d9dba22ba6443845319c4850f7bf150407b
6
+ metadata.gz: 69257fe22d883dda33db126e5bb866697277544f3f3142f741c736ab0c57698e280db6a60035dd3c8468adf22090fb7d1bdf14279522b8e4477df4eb47d6a708
7
+ data.tar.gz: 89aeda125386401d33c02f6b144563c14a737b762a56e79ea60bb08dd7ba7a3009012b12bbd965cf8de240ca8932838939750dacafacda4801a3a6d16f933310
@@ -1,14 +1,13 @@
1
1
  rvm:
2
- - 2.2
3
- - 2.3
4
- - 2.4.5
5
- - 2.5.3
6
- - 2.6.0
2
+ - 2.4.6
3
+ - 2.5.6
4
+ - 2.6.4
7
5
  - ruby-head
8
6
 
9
7
  os:
10
8
  - linux
11
9
  - osx
10
+ osx_image: xcode11.2
12
11
 
13
12
  dist: trusty
14
13
 
@@ -1,4 +1,6 @@
1
1
  # Changelog
2
+ ## 1.3.3
3
+ * Revert x-ndjson format payload behavior
2
4
 
3
5
  ## 1.3.2
4
6
  * Fix invalid x-ndjson payload format
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-out-http"
5
- gem.version = "1.3.2"
5
+ gem.version = "1.3.3"
6
6
  gem.authors = ["Marica Odagaki"]
7
7
  gem.email = ["ento.entotto@gmail.com"]
8
8
  gem.summary = %q{A generic Fluentd output plugin to send logs to an HTTP endpoint}
@@ -174,7 +174,7 @@ class Fluent::Plugin::HTTPOutput < Fluent::Plugin::Output
174
174
  end
175
175
 
176
176
  def set_bulk_body(req, data)
177
- req.body = Yajl.dump(data)
177
+ req.body = data.to_s
178
178
  req['Content-Type'] = 'application/x-ndjson'
179
179
  compress_body(req, req.body)
180
180
  end
@@ -471,21 +471,21 @@ class HTTPOutputTest < HTTPOutputTestBase
471
471
  assert_equal 1, @posts.size
472
472
  record = @posts[0]
473
473
 
474
- expected = [
475
- Yajl.dump({
474
+ expected =[
475
+ {
476
+ "binary" => "\u3042",
476
477
  "field1" => 50,
477
478
  "field2" => 20,
478
479
  "field3" => 10,
479
- "otherfield" => 1,
480
+ "otherfield" => 1
481
+ },
482
+ {
480
483
  "binary" => "\u3042",
481
- }) + "\n" +
482
- Yajl.dump({
483
484
  "field1" => 70,
484
485
  "field2" => 30,
485
486
  "field3" => 20,
486
- "otherfield" => 2,
487
- "binary" => "\u3042",
488
- }) + "\n"
487
+ "otherfield" => 2
488
+ }
489
489
  ]
490
490
 
491
491
  assert_equal expected, record[:x_ndjson]
@@ -503,21 +503,21 @@ class HTTPOutputTest < HTTPOutputTestBase
503
503
  assert_equal 1, @posts.size
504
504
  record = @posts[0]
505
505
 
506
- expected = [
507
- Yajl.dump({
506
+ expected =[
507
+ {
508
+ "binary" => "\u3042",
508
509
  "field1" => 50,
509
510
  "field2" => 20,
510
511
  "field3" => 10,
511
- "otherfield" => 1,
512
+ "otherfield" => 1
513
+ },
514
+ {
512
515
  "binary" => "\u3042",
513
- }) + "\n" +
514
- Yajl.dump({
515
516
  "field1" => 70,
516
517
  "field2" => 30,
517
518
  "field3" => 20,
518
- "otherfield" => 2,
519
- "binary" => "\u3042",
520
- }) + "\n"
519
+ "otherfield" => 2
520
+ }
521
521
  ]
522
522
 
523
523
  assert_equal expected, record[:x_ndjson]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-out-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marica Odagaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2019-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby