fluent-plugin-serialport 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -4,6 +4,10 @@ fluent-plugin-serialport provides input plugin for {Fluentd}[http://fluentd.org]
4
4
 
5
5
  = Install
6
6
 
7
+ gem install fluent-plugin-serialport
8
+
9
+ or
10
+
7
11
  git clone git@github.com:katsyoshi/fluent-plugin-serialport.git
8
12
 
9
13
  cp fluent-plugin-serialport/lib/fluent/plugin/flent-plugin-serial.rb ${FLUENT_DIR}/plugin/.
@@ -13,8 +17,9 @@ cp fluent-plugin-serialport/lib/fluent/plugin/flent-plugin-serial.rb ${FLUENT_DI
13
17
  === Input Configuration
14
18
 
15
19
  <source>
16
- type serial_input
20
+ type serialport
17
21
  com_port /path/to/comport
22
+ tag serial.sensor
18
23
  baud_rate 9600
19
24
  </source>
20
25
 
@@ -25,5 +30,5 @@ cp fluent-plugin-serialport/lib/fluent/plugin/flent-plugin-serial.rb ${FLUENT_DI
25
30
 
26
31
  = Copyright
27
32
 
28
- Copyright:: Copyright (c) 2012- Katsuyoshi MATSUMOTO
33
+ Copyright:: Copyright (c) 2012- MATSUMOTO Katsuyoshi
29
34
  License:: Apache License, Version 2.0
data/Rakefile CHANGED
@@ -7,4 +7,4 @@ Rake::TestTask.new(:test) do |test|
7
7
  test.verbose = true
8
8
  end
9
9
 
10
- task :default => true
10
+ task :default => [:build]
@@ -1,27 +1,22 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("./lib", __FILE__)
1
+ # encoding: utf-8
2
+ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-serialport"
6
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
7
7
  s.authors = ["MATSUMOTO Katsuyoshi"]
8
- s.email = ["matsumoto.katsuyoshi+github@gmail.com"]
9
- s.homepage = ""
10
- s.summary = %q{fluentd plugin for serial port}
11
- s.description = %q{fluentd plugin for serial port}
12
-
13
- s.rubyforge_project = "fluent-plugin-serialport"
8
+ s.email = ["matsumoto.katsuyoshi+rubygems@gmail.com"]
9
+ s.homepage = "https://github.com/katsyoshi/fluent-plugin-serialport"
10
+ s.summary = "fluentd plugin for serial port"
11
+ s.description = "fluentd plugin for serial port"
12
+ s.has_rdoc = false
13
+ # s.rubyforge_project = "fluent-plugin-serialport"
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_development_dependency "fluentd", ["~>0.10.7"]
21
- s.add_development_dependency "serialport"
22
- s.add_runtime_dependency "fluentd", ["~>0.10.7"]
23
- s.add_runtime_dependency "serialport"
24
- # specify any dependencies here; for example:
25
- # s.add_development_dependency "rspec"
26
- # s.add_runtime_dependency "rest-client"
20
+ s.add_dependency "fluentd"
21
+ s.add_dependency "serialport"
27
22
  end
@@ -1,6 +1,6 @@
1
1
  module Fluent
2
2
  class SerialPortInput < Input
3
- Plugin.register_input('serial_input', self)
3
+ Plugin.register_input('serialport', self)
4
4
  config_param :com_port, :string
5
5
  config_param :baud_rate, :integer
6
6
  config_param :tag, :string, :default => "serial"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-serialport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,29 +13,13 @@ date: 2012-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 0.10.7
22
- type: :development
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 0.10.7
30
- - !ruby/object:Gem::Dependency
31
- name: serialport
32
16
  requirement: !ruby/object:Gem::Requirement
33
17
  none: false
34
18
  requirements:
35
19
  - - ! '>='
36
20
  - !ruby/object:Gem::Version
37
21
  version: '0'
38
- type: :development
22
+ type: :runtime
39
23
  prerelease: false
40
24
  version_requirements: !ruby/object:Gem::Requirement
41
25
  none: false
@@ -43,22 +27,6 @@ dependencies:
43
27
  - - ! '>='
44
28
  - !ruby/object:Gem::Version
45
29
  version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: fluentd
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.10.7
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.10.7
62
30
  - !ruby/object:Gem::Dependency
63
31
  name: serialport
64
32
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +45,7 @@ dependencies:
77
45
  version: '0'
78
46
  description: fluentd plugin for serial port
79
47
  email:
80
- - matsumoto.katsuyoshi+github@gmail.com
48
+ - matsumoto.katsuyoshi+rubygems@gmail.com
81
49
  executables: []
82
50
  extensions: []
83
51
  extra_rdoc_files: []
@@ -90,7 +58,7 @@ files:
90
58
  - lib/fluent/plugin/in_serialport.rb
91
59
  - test/plugin/test_in_serialport.rb
92
60
  - test/test_helper.rb
93
- homepage: ''
61
+ homepage: https://github.com/katsyoshi/fluent-plugin-serialport
94
62
  licenses: []
95
63
  post_install_message:
96
64
  rdoc_options: []
@@ -109,12 +77,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
77
  - !ruby/object:Gem::Version
110
78
  version: '0'
111
79
  requirements: []
112
- rubyforge_project: fluent-plugin-serialport
113
- rubygems_version: 1.8.23
80
+ rubyforge_project:
81
+ rubygems_version: 1.8.24
114
82
  signing_key:
115
83
  specification_version: 3
116
84
  summary: fluentd plugin for serial port
117
85
  test_files:
118
86
  - test/plugin/test_in_serialport.rb
119
87
  - test/test_helper.rb
120
- has_rdoc:
88
+ has_rdoc: false