fluent-plugin-zmq-pub 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +9 -18
- data/fluent-plugin-zmq-pub.gemspec +2 -1
- data/lib/fluent/plugin/out_zmq_pub.rb +4 -2
- metadata +4 -4
data/LICENSE
CHANGED
@@ -1,22 +1,13 @@
|
|
1
1
|
Copyright (c) 2012 Hironori Ogibayashi
|
2
2
|
|
3
|
-
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
4
6
|
|
5
|
-
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
@@ -7,13 +7,14 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{0MQ publisher plugin for fluentd}
|
8
8
|
gem.summary = %q{0MQ publisher plugin for fluentd}
|
9
9
|
gem.homepage = ""
|
10
|
+
gem.licenses = ["Apache License, Version 2.0"]
|
10
11
|
|
11
12
|
gem.files = `git ls-files`.split($\)
|
12
13
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
15
|
gem.name = "fluent-plugin-zmq-pub"
|
15
16
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "0.0.
|
17
|
+
gem.version = "0.0.2"
|
17
18
|
gem.add_development_dependency "fluentd"
|
18
19
|
gem.add_runtime_dependency "fluentd"
|
19
20
|
gem.add_development_dependency "zmq"
|
@@ -8,6 +8,7 @@ module Fluent
|
|
8
8
|
def initialize
|
9
9
|
super
|
10
10
|
require 'zmq'
|
11
|
+
@mutex = Mutex.new
|
11
12
|
end
|
12
13
|
|
13
14
|
def configure(conf)
|
@@ -37,9 +38,10 @@ module Fluent
|
|
37
38
|
}
|
38
39
|
|
39
40
|
# to_msgpack in format, unpack in write, then to_msgpack again... better way?
|
40
|
-
@
|
41
|
+
@mutex.synchronize {
|
42
|
+
@publisher.send(pubkey_replaced + " " + record.to_msgpack,ZMQ::NOBLOCK)
|
43
|
+
}
|
41
44
|
}
|
42
|
-
|
43
45
|
end
|
44
46
|
|
45
47
|
def shutdown
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: fluent-plugin-zmq-pub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- OGIBAYASHI Hironori
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2014-03-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -76,8 +76,8 @@ files:
|
|
76
76
|
- test/helper.rb
|
77
77
|
- test/plugin/test_out_zeromq_pub.rb
|
78
78
|
homepage: ""
|
79
|
-
licenses:
|
80
|
-
|
79
|
+
licenses:
|
80
|
+
- Apache License, Version 2.0
|
81
81
|
post_install_message:
|
82
82
|
rdoc_options: []
|
83
83
|
|