fluent-plugin-pgjson 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b50876105f70aba6215cda3bea847f0497209437587954d46808e4820ee62ad
4
- data.tar.gz: c201ea0e5587f595dfb537840efd474689342f2a53683d1c5cce8d09860f8684
3
+ metadata.gz: eb19054f9e9fef7f00b8af99540756d9e8bfedc7a656dc2d56f6448ba75aaccf
4
+ data.tar.gz: 723274d0c3b213c1f2846ecabf1f8c99dcf04f0b68ab9157890b7552276b0210
5
5
  SHA512:
6
- metadata.gz: f9d9799ad2d645a1a72f569f18aa8312d5d920e0b85707e23b1cac36cabe98ec4abfb1ff0335af13fd26db6bd93b09ea9ce47d140684c4f286392d86159fa392
7
- data.tar.gz: 948bdf734a3506afafaba993d77ff6e62c18afe141f412a608c2b74debe75a58ed81c5e0883ae1484ae2505817cebbaa2cdb96f1a99bc6035b59b42cbda6f8f2
6
+ metadata.gz: 75262bb406e5efd5b0eac23b8d06457d4598cafd5bd138bf5cc23ebcafa3922bcc2985f62cda5218f02ebb41706e46188c362a98ba31e872c95029f23a8e7c8a
7
+ data.tar.gz: d585c960134d86bac1346fe30aaa3696237e4371ce687179c2999881236b0443955151f8f4b0e713946a388a5c9f29d20db64e9f4b9c80dd1e77902019b7759e
@@ -0,0 +1,23 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'monthly'
7
+ groups:
8
+ # PR: "Security update [package] from [old] to [new]"
9
+ # This PR should be merged in hurry
10
+ security-updates:
11
+ applies-to: security-updates
12
+ patterns:
13
+ - '*'
14
+
15
+ # PR: "Bump [package] from [old] to [new]"
16
+ # No need to be merged this PR in hurry. It is enough to merge
17
+ # once in a month.
18
+ monthly-updates:
19
+ applies-to: version-updates
20
+ patterns:
21
+ - '*'
22
+ # Allow to create PR both of security and normal updates.
23
+ open-pull-requests-limit: 1
@@ -1,15 +1,27 @@
1
1
  name: linux
2
2
  on:
3
- - push
4
- - pull_request
3
+ push:
4
+ branches: [master]
5
+ pull_request:
6
+ branches: [master]
7
+ schedule:
8
+ - cron: '0 0 1 * *'
5
9
  jobs:
10
+ ruby-versions:
11
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12
+ with:
13
+ engine: cruby
14
+ min_version: 3.2
6
15
  build:
16
+ needs: ruby-versions
7
17
  runs-on: ${{ matrix.os }}
8
18
  strategy:
9
19
  fail-fast: false
10
20
  matrix:
11
- ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0' ]
12
- postgres: [ '9', '10', '11', '12', '13' ]
21
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22
+ exclude:
23
+ - ruby: head
24
+ postgres: [ '14', '15', '16', '17', '18' ]
13
25
  os:
14
26
  - ubuntu-latest
15
27
  services:
@@ -26,12 +38,13 @@ jobs:
26
38
  --health-interval 10s
27
39
  --health-timeout 5s
28
40
  --health-retries 5
29
- name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
41
+ name: Ruby ${{ matrix.ruby }} unit testing with PostgreSQL ${{ matrix.postgres }}
30
42
  steps:
31
- - uses: actions/checkout@v2
32
- - uses: ruby/setup-ruby@v1
43
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
44
+ - uses: ruby/setup-ruby@145243922b4465b78e04dd66294782c7de45901f # v1.345.0
33
45
  with:
34
46
  ruby-version: ${{ matrix.ruby }}
47
+ bundler-cache: true
35
48
  - name: prepare database
36
49
  env:
37
50
  PGPASSWORD: password
@@ -42,6 +55,4 @@ jobs:
42
55
  env:
43
56
  CI: true
44
57
  run: |
45
- gem install bundler rake
46
- bundle install --jobs 4 --retry 3
47
58
  bundle exec rake test
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Fluent::Plugin::PgJson, a plugin for [Fluentd](http://fluentd.org)
2
2
 
3
- ![linux](https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson/workflows/linux/badge.svg?branch=master)
3
+ [![linux](https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson/actions/workflows/linux.yml/badge.svg)](https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson/actions/workflows/linux.yml)
4
4
 
5
5
  Output Plugin for PostgreSQL Json Type.
6
6
 
@@ -68,7 +68,7 @@ CREATE TABLE fluentd (
68
68
  #tag_col tag
69
69
  #record_col record
70
70
  #msgpack false
71
- #encoder yajl
71
+ #encoder json
72
72
  </match>
73
73
  ```
74
74
 
@@ -87,7 +87,7 @@ CREATE TABLE fluentd (
87
87
  |tag_col|The column name for the tag|`tag`|
88
88
  |record_col|The column name for the record|`record`|
89
89
  |msgpack|If true, insert records formatted as msgpack|`false`|
90
- |encoder|JSON encoder (`yajl`, `json`)|`yajl`|
90
+ |encoder|JSON encoder (`yajl`, `json`) Starting from v1.0.3, `yajl` is no longer available and internally defaults to `json`|`json`|
91
91
 
92
92
  ## Copyright
93
93
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "fluent-plugin-pgjson"
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
  s.authors = ["OKUNO Akihiro"]
7
7
  s.email = ["choplin.choplin@gmail.com"]
8
8
  s.homepage = "https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson"
@@ -1,6 +1,5 @@
1
1
  require "fluent/plugin/output"
2
2
  require "pg"
3
- require "yajl"
4
3
  require "json"
5
4
 
6
5
  module Fluent::Plugin
@@ -34,7 +33,7 @@ module Fluent::Plugin
34
33
  desc "If true, insert records formatted as msgpack"
35
34
  config_param :msgpack, :bool, default: false
36
35
  desc "JSON encoder (yajl/json)"
37
- config_param :encoder, :enum, list: [:yajl, :json], default: :yajl
36
+ config_param :encoder, :enum, list: [:yajl, :json], default: :json # NOTE: Contains yajl for backward compatibility
38
37
 
39
38
  config_param :time_format, :string, default: "%F %T.%N %z"
40
39
 
@@ -56,7 +55,8 @@ module Fluent::Plugin
56
55
  end
57
56
  @encoder = case @encoder
58
57
  when :yajl
59
- Yajl
58
+ log.info "encoder 'yajl' is deprecated. Please use 'json' instead."
59
+ JSON
60
60
  when :json
61
61
  JSON
62
62
  end
@@ -17,7 +17,7 @@ class PgJsonOutputTest < Test::Unit::TestCase
17
17
  TIME_COL = "time"
18
18
  TAG_COL = "tag"
19
19
  RECORD_COL = "record"
20
- ENCODER = Yajl
20
+ ENCODER = JSON
21
21
 
22
22
  CONFIG = %[
23
23
  @type pgjson
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-pgjson
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OKUNO Akihiro
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-12-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: fluentd
@@ -93,6 +92,7 @@ executables: []
93
92
  extensions: []
94
93
  extra_rdoc_files: []
95
94
  files:
95
+ - ".github/dependabot.yml"
96
96
  - ".github/workflows/linux.yml"
97
97
  - ".gitignore"
98
98
  - Gemfile
@@ -108,7 +108,6 @@ homepage: https://github.com/fluent-plugins-nursery/fluent-plugin-pgjson
108
108
  licenses:
109
109
  - Apache-2.0
110
110
  metadata: {}
111
- post_install_message:
112
111
  rdoc_options: []
113
112
  require_paths:
114
113
  - lib
@@ -123,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
122
  - !ruby/object:Gem::Version
124
123
  version: '0'
125
124
  requirements: []
126
- rubygems_version: 3.2.30
127
- signing_key:
125
+ rubygems_version: 4.0.20
128
126
  specification_version: 4
129
127
  summary: Fluentd Output Plugin for PostgreSQL JSON Type.
130
128
  test_files: