embulk-parser-apache_error_log 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 6cec31b1f52ba754dbffa6d12f538e1102ac89a1
4
- data.tar.gz: fcc6c57ea12373ea4ddc3ae1cca808209867cd3f
3
+ metadata.gz: 82af5070851c56239f62550d11034a6a0f9be74c
4
+ data.tar.gz: 3231808762cd70b7e1e8c77dab1dbdf9fd3816f0
5
5
  SHA512:
6
- metadata.gz: e0cc143ead27a83d4e16184f53840ad8ebde6b6a6ddde0ea809396bdc8b951149bc214d7b6207f4776e15daba2306fe8406076ecd2cf73553f1343ef59ebb55c
7
- data.tar.gz: 032ab86bb84bea3e45acf55c4e15120157278ee40c7b6b9f9a388eeeb9ace8851b55555d7b1c014dc2eaf7d359e6329563d7ff8b7d08be507b9f7b1eb7751df0
6
+ metadata.gz: 5f4ed23ddb74c10a42f3c3e46ca6fa3701aec3201e78aaeed0e5c1b6a566ae3b5473a5c9c8943dd73d7fe57cedce352e8b61f7da1d0d69022071797f5c321fb4
7
+ data.tar.gz: 5b91cd6bb663b016139fbd44f6527878db5abe8fc8ad4773232d0fb1cd0ff634a9354466f119d07e3e48ffdaf3825eddb940a462b9edb3276cd4948ef3357fe6
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-parser-apache_error_log"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["Tomohiro Mitsusmune"]
6
6
  spec.summary = "Apache Error Log parser plugin for Embulk"
7
7
  spec.description = "Parses Apache Error Log files read by other file input plugins."
@@ -2,22 +2,22 @@ module Embulk
2
2
  module Parser
3
3
 
4
4
  class ApacheErrorLog < ParserPlugin
5
- Plugin.register_parser("apache_error_log", self)
5
+ Plugin.register_parser('apache_error_log', self)
6
6
 
7
7
  def self.transaction(config, &control)
8
8
  # configuration code:
9
9
  puts config
10
10
  task = {
11
- 'hostname' => config.param('hostname', :string)
11
+ 'hostname' => config.param('hostname', :string, default: '')
12
12
  }
13
13
 
14
14
  columns = [
15
- Column.new(0, "time", :string),
16
- Column.new(1, "level", :string),
17
- Column.new(2, "pid", :long),
18
- Column.new(3, "client", :string),
19
- Column.new(4, "message", :string),
20
- Column.new(5, "hostname", :string)
15
+ Column.new(0, 'time', :string),
16
+ Column.new(1, 'level', :string),
17
+ Column.new(2, 'pid', :long),
18
+ Column.new(3, 'client', :string),
19
+ Column.new(4, 'message', :string),
20
+ Column.new(5, 'hostname', :string)
21
21
  ]
22
22
 
23
23
  yield(task, columns)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-parser-apache_error_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomohiro Mitsusmune
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2016-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement