fluent-plugin-light-core 0.1.3 → 0.1.4

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: 262f7c2b69259e409b93285c4138386a24d7ee2d12d81f120ef1306875d0d701
4
- data.tar.gz: 19ecb1abd1e754ffe2da66f72c8cb211fe81aa5a4e3543c742f63d6ee121a474
3
+ metadata.gz: 0347a4994b0d80fe628f8e94b46ba34e09f3a7bd05d73f3e1149b41c03f4b008
4
+ data.tar.gz: 9200bc7fc01f2bd32199691ef72aeb64cd1b7c8bc4701111cc4dfbad4e51f34d
5
5
  SHA512:
6
- metadata.gz: a39111482eb7fcd051f14f92d4a6f062df5f9673f0a474c2c26ea5c73ba25074a2e13237ae3dc9c67e9ec2743009c4cc59a63476dd20a98883151fb691e62090
7
- data.tar.gz: de9645e74a662f9b5be93e4bdfb7141f8e473c27dff352755f7dca683ced2d505a2a7188270ef5a0a540e1a15f1bce8f5fcb15eaa963efeca89994397eb56abb
6
+ metadata.gz: 19dc0a68b8061e0ab6a9c370a6237ed366a9fe68368df4d0f3877c14d51beb9d7c3f1cb17bc15c75fa95522b53d286d699dfd7516ae375fb05c819d46e2d245d
7
+ data.tar.gz: 6e04a967595b41ce436835c0a8495edf72507559a211498fa9ea86fb8a5e4cddb11dca1de5a39c82353a1c0bd2bd2b664e9ee093c61bf01a102ca6dc2e2b6a1f
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-light-core"
6
- spec.version = "0.1.3"
6
+ spec.version = "0.1.4"
7
7
  spec.authors = ["LIN LI"]
8
8
  spec.email = ["l.li@alphabets.cn"]
9
9
 
@@ -239,9 +239,12 @@ module Fluent
239
239
  end
240
240
 
241
241
  if item[:query]
242
+ record['command'] = item[:query]
242
243
  query = /^command\s* (?<collection>[^ ]*) (?<command>.*)$/.match(item[:query])
243
- record['collection'] = query[:collection]
244
- record['command'] = query[:command]
244
+ unless query.nil?
245
+ record['collection'] = query[:collection]
246
+ record['command'] = query[:command]
247
+ end
245
248
  end
246
249
 
247
250
  return record
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-light-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LIN LI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler