fluent-plugin-dio 1.0.0 → 1.0.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: 78e7cd65f4def43f0d15821f75ab3eb0dbc5c995
4
- data.tar.gz: 7b25ffb3c7bdafd18e4ea1bf8c98db9f531ee136
3
+ metadata.gz: d3a90ebd4aaff7be7e4d1ae1ace489bc8a58ceaa
4
+ data.tar.gz: 36a6127ac5e30d57c420aeea488b5f232411126a
5
5
  SHA512:
6
- metadata.gz: a9a6ac5a4cd2d658cddb148b5b540c36c0f5afb478faa9b42a309c56b30bf97a03bbd3b48acd0098069354ff0308a43a689a1d1ed9dfefbc1a3d9376bbb1afe9
7
- data.tar.gz: 80062d5539d62ac3058c4ff7d80dd559d2050d931f591adf2e51fc570a25295ce60688a4b2791594854cc2d9164819cecb03cfd9ea477f255dc70c9694cf6dfd
6
+ metadata.gz: 90c9f06b5a6eef69ddfa8739853cf50622637b9e84e43a968e17af0120c3c4fd6fe8cf303e9f35da250094789592855f83045d285f004def29e329607bb17c53
7
+ data.tar.gz: ab04b1bb084d1e395a6bed950a25f9f577f11c0edbeba5b81ffada367f92877401c5055780a34e7f14aff410ea051906daf6300a197e5e7d3227030f87ab4f29
data/.travis.yml ADDED
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1
5
+ - 2.2
6
+ - 2.3.3
7
+ - 2.4.0
8
+
9
+ before_install:
10
+ - gem update bundler
11
+
12
+ cache: bundler
13
+
14
+ script:
15
+ - bundle exec rake test
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Fluent::Plugin::Dio
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/fluent/plugin`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ [![Build Status](https://travis-ci.org/hikouki/fluent-plugin-dio.svg?branch=master)](https://travis-ci.org/hikouki/fluent-plugin-dio)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Output filter plugin of fluentd. Convert to timestamp from date string.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,13 +22,28 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ### DioFilter
26
26
 
27
- ## Development
27
+ Add dio filter.
28
28
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
29
+ ```xml
30
+ <filter test.**>
31
+ @type dio
32
+ keys created_at, updated_at
33
+ </filter>
34
+ ```
35
+
36
+ Assuming following inputs are coming:
37
+
38
+ ```javascript
39
+ {"a" => 1, "created_at" => "2011-01-02 13:14:15 UTC", "updated_at" => "2011-01-01 13:14:15 UTC"}
40
+ ```
41
+
42
+ Then output becomes as belows:
30
43
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+ ```javascript
45
+ {"a" => 1, "created_at" => 1293974055, "updated_at" => 1293887655}
46
+ ```
32
47
 
33
48
  ## Contributing
34
49
 
@@ -4,13 +4,17 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-dio"
7
- spec.version = "1.0.0"
8
- spec.authors = ["koki-higashikawa"]
7
+ spec.version = "1.0.1"
8
+ spec.authors = ["hikouki"]
9
9
  spec.email = ["koki.higashikawa@crowdworks.co.jp"]
10
10
 
11
- spec.summary = %q{Output filter plugin. to timestamp from strtime}
12
- spec.description = %q{Output filter plugin. to timestamp from strtime}
11
+ spec.summary = %q{Output filter plugin of fluentd. Convert to timestamp from date string.}
12
+ spec.description = %q{Output filter plugin of fluentd. Convert to timestamp from date string.}
13
13
  spec.homepage = "https://github.com/hikouki/fluent-plugin-dio"
14
+ spec.has_rdoc = false
15
+ spec.license = "MIT"
16
+
17
+ spec.required_ruby_version = '>= 2.1'
14
18
 
15
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
20
  f.match(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - koki-higashikawa
7
+ - hikouki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Output filter plugin. to timestamp from strtime
69
+ description: Output filter plugin of fluentd. Convert to timestamp from date string.
70
70
  email:
71
71
  - koki.higashikawa@crowdworks.co.jp
72
72
  executables: []
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - ".travis.yml"
77
78
  - Gemfile
78
79
  - README.md
79
80
  - Rakefile
@@ -82,7 +83,8 @@ files:
82
83
  - fluent-plugin-dio.gemspec
83
84
  - lib/fluent/plugin/filter_dio.rb
84
85
  homepage: https://github.com/hikouki/fluent-plugin-dio
85
- licenses: []
86
+ licenses:
87
+ - MIT
86
88
  metadata: {}
87
89
  post_install_message:
88
90
  rdoc_options: []
@@ -92,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
94
  requirements:
93
95
  - - ">="
94
96
  - !ruby/object:Gem::Version
95
- version: '0'
97
+ version: '2.1'
96
98
  required_rubygems_version: !ruby/object:Gem::Requirement
97
99
  requirements:
98
100
  - - ">="
@@ -103,5 +105,5 @@ rubyforge_project:
103
105
  rubygems_version: 2.5.1
104
106
  signing_key:
105
107
  specification_version: 4
106
- summary: Output filter plugin. to timestamp from strtime
108
+ summary: Output filter plugin of fluentd. Convert to timestamp from date string.
107
109
  test_files: []