fluent-plugin-midi 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 952cfba4a1afa6678e34c4be60d73183ce193c6f
4
- data.tar.gz: bfeb0f3b65a700ed5cf8d08428afc057704b1405
3
+ metadata.gz: 7ee15527917324084f637fb3d0583876ee27e65f
4
+ data.tar.gz: 6aef83ef38ba7324e53c4cdb0e44784ec5283227
5
5
  SHA512:
6
- metadata.gz: a660854aa7727a58fdb6488ee7b43400df4c10691a59379c1bbdd42e153555ed175721e78f530a1aaa5879ac83f8b4fea8062473f914c1ff86b1d8c7286f9d72
7
- data.tar.gz: f94085fe32366893eda1fee7d8de021d83a89fecb3c90f5ff33e4b24bdbe92de01cef98ba69eaefdc6b9f0e563d9806467dca84c7bc2eba2341092e188f6fed8
6
+ metadata.gz: e7b3ca6ecf19a1ba3f294741e3a04acd6770d3276c43b6bae5838b2dd836bf989ef54acc4e7aa089dd04f5ccc5fa0ab6ff948c7da98b33d7b9a18221de470476
7
+ data.tar.gz: 9f85b85a3edc2647c14e157e0ba3b87d33092bceb3fb656a76e6fc9e52ae449d37a184a6b48625e5e7686ef190656173170722fe313128ccaa02caaedacdb372
data/README.md CHANGED
@@ -10,6 +10,19 @@ $ gem install fluent-plugin-midi
10
10
 
11
11
  ## Usage
12
12
 
13
+ ```
14
+ echo '{"status":144, "note": 60, "velocity": 120}' | fluent-cat debug
15
+ echo '{"status":144, "note": 60, "velocity": 0}' | fluent-cat debug
16
+ ```
17
+
18
+ or
19
+
20
+ ```
21
+ echo '{"status":144, "note": 60, "velocity": 120, "duration": 3}' | fluent-cat debug
22
+ ```
23
+
24
+ ## Configuration
25
+
13
26
  ```
14
27
  <match pattern>
15
28
  type midi
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-midi"
7
- spec.version = "0.0.1"
7
+ spec.version = "0.0.2"
8
8
  spec.authors = ["meganemura"]
9
9
  spec.email = ["mura2megane@gmail.com"]
10
10
  spec.summary = %q{MIDI Output plugin for Fluentd event collector}
@@ -21,6 +21,7 @@ module Fluent
21
21
 
22
22
  def shutdown
23
23
  super
24
+ @output.close_port
24
25
  end
25
26
 
26
27
  def emit(tag, es, chain)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-midi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - meganemura