fluent-plugin-systemd 0.0.7 → 0.0.8

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: 52a7137bc995eb3728a32688a3ee7d6ca1dc525a
4
- data.tar.gz: f4341fe249300532ba5e13eb399261c522ebaeb2
3
+ metadata.gz: 2c916a4987e289cd265209f8fe4ff5548dde671a
4
+ data.tar.gz: 2ba1b869f8cc9efa006c02559ea238a4404f65c4
5
5
  SHA512:
6
- metadata.gz: 56296694577ea11491800068cc437089d3846bb30dc60cd9031671e08ca5a8d0a983e9aec42a00db36659b98d68a227d123d97250b79d33b8b75162fc2661343
7
- data.tar.gz: b5fbccaef86385247778712ed68c319eff8f1f648ac4879dd41f59eba3d4fa4d718bc1e46dea9bef5e923d0a634319a89f52e30c200a44fe9138f799d79bc433
6
+ metadata.gz: ab17ffe10ba7f10b4decbc1723981c9f806cab8bf6a83a86cec461b7b628acebc68fa001acb597a5ee07f6b808cdd8bb705bf1f5cd25aec0070c2e2230cdd3ef
7
+ data.tar.gz: a37e74273f2c7b56755a4b4d4d78a8058ace1b9fe2b1115311a41cb2a6b05710f567d8883f1302c0451a7d138a760f1b1174bf5753fc7fd75278254f902c7ad7
@@ -35,7 +35,6 @@ module Fluent
35
35
  private
36
36
 
37
37
  def init_journal
38
- sleep 0.25
39
38
  @journal = Systemd::Journal.new(path: @path)
40
39
  # make sure initial call to wait doesn't return :invalidate
41
40
  # see https://github.com/ledbettj/systemd-journal/issues/70
@@ -89,6 +88,8 @@ module Fluent
89
88
  yield @journal.current_entry
90
89
  @pos_writer.update(@journal.cursor)
91
90
  end
91
+ # prevent a loop of death
92
+ sleep 1
92
93
  end
93
94
  end
94
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-systemd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,24 +101,10 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - Gemfile
105
- - Gemfile.lock
106
104
  - LICENCE
107
105
  - README.md
108
- - Rakefile
109
- - Vagrantfile
110
- - fluent-plugin-systemd.gemspec
111
106
  - lib/fluent/plugin/in_systemd.rb
112
107
  - lib/fluent/plugin/systemd/pos_writer.rb
113
- - pkg/fluent-plugin-systemd-0.0.3.gem
114
- - pkg/fluent-plugin-systemd-0.0.4.gem
115
- - pkg/fluent-plugin-systemd-0.0.5.gem
116
- - pkg/fluent-plugin-systemd-0.0.6.gem
117
- - pkg/fluent-plugin-systemd-0.1.0.gem
118
- - pkg/fluent-plugin-systemd-0.1.1.gem
119
- - pkg/fluent-plugin-systemd-0.1.1.pre.gem
120
- - pkg/fluent-plugin-systemd-0.1.1.pre2.gem
121
- - pkg/fluent-plugin-systemd-0.1.1.pre3.gem
122
108
  homepage: https://github.com/reevoo/fluent-plugin-systemd
123
109
  licenses:
124
110
  - MIT
@@ -139,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
125
  version: '0'
140
126
  requirements: []
141
127
  rubyforge_project:
142
- rubygems_version: 2.6.9
128
+ rubygems_version: 2.6.8
143
129
  signing_key:
144
130
  specification_version: 4
145
131
  summary: Input plugin to read from systemd journal.
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "fluentd", "0.12.31"
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,67 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- fluent-plugin-systemd (0.0.7)
5
- fluentd (~> 0.12)
6
- systemd-journal (~> 1.2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.3.0)
12
- astrolabe (1.3.1)
13
- parser (~> 2.2)
14
- cool.io (1.4.5)
15
- ffi (1.9.17)
16
- fluentd (0.12.31)
17
- cool.io (>= 1.2.2, < 2.0.0)
18
- http_parser.rb (>= 0.5.1, < 0.7.0)
19
- json (>= 1.4.3)
20
- msgpack (>= 0.5.11, < 0.6.0)
21
- sigdump (~> 0.2.2)
22
- string-scrub (>= 0.0.3, <= 0.0.5)
23
- tzinfo (>= 1.0.0)
24
- tzinfo-data (>= 1.0.0)
25
- yajl-ruby (~> 1.0)
26
- http_parser.rb (0.6.0)
27
- json (2.0.3)
28
- msgpack (0.5.12)
29
- parser (2.3.3.1)
30
- ast (~> 2.2)
31
- powerpack (0.0.9)
32
- rainbow (2.2.1)
33
- rake (12.0.0)
34
- reevoocop (0.0.9)
35
- rubocop (= 0.28.0)
36
- rubocop (0.28.0)
37
- astrolabe (~> 1.3)
38
- parser (>= 2.2.0.pre.7, < 3.0)
39
- powerpack (~> 0.0.6)
40
- rainbow (>= 1.99.1, < 3.0)
41
- ruby-progressbar (~> 1.4)
42
- ruby-progressbar (1.8.1)
43
- sigdump (0.2.4)
44
- string-scrub (0.0.5)
45
- systemd-journal (1.2.3)
46
- ffi (~> 1.9)
47
- test-unit (2.5.5)
48
- thread_safe (0.3.5)
49
- tzinfo (1.2.2)
50
- thread_safe (~> 0.1)
51
- tzinfo-data (1.2016.10)
52
- tzinfo (>= 1.0.0)
53
- yajl-ruby (1.3.0)
54
-
55
- PLATFORMS
56
- ruby
57
-
58
- DEPENDENCIES
59
- bundler (~> 1.10)
60
- fluent-plugin-systemd!
61
- fluentd (= 0.12.31)
62
- rake
63
- reevoocop
64
- test-unit (~> 2.5)
65
-
66
- BUNDLED WITH
67
- 1.13.2
data/Rakefile DELETED
@@ -1,31 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
3
- require "reevoocop/rake_task"
4
- require "fileutils"
5
-
6
- ReevooCop::RakeTask.new(:reevoocop)
7
-
8
- Rake::TestTask.new(:test) do |t|
9
- t.test_files = Dir["test/**/test_*.rb"]
10
- end
11
-
12
- task default: "docker:test"
13
- task build: "docker:test"
14
- task default: :reevoocop
15
-
16
- namespace :docker do
17
- distros = [:ubuntu, :"tdagent-ubuntu", :"tdagent-centos"]
18
- task test: distros
19
-
20
- distros.each do |distro|
21
- task distro do
22
- puts "testing on #{distro}"
23
- begin
24
- FileUtils.cp("test/docker/Dockerfile.#{distro}", "Dockerfile")
25
- sh "docker build ."
26
- ensure
27
- FileUtils.rm("Dockerfile")
28
- end
29
- end
30
- end
31
- end
data/Vagrantfile DELETED
@@ -1,71 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
-
4
- # All Vagrant configuration is done below. The "2" in Vagrant.configure
5
- # configures the configuration version (we support older styles for
6
- # backwards compatibility). Please don't change it unless you know what
7
- # you're doing.
8
- Vagrant.configure("2") do |config|
9
- # The most common configuration options are documented and commented below.
10
- # For a complete reference, please see the online documentation at
11
- # https://docs.vagrantup.com.
12
-
13
- # Every Vagrant development environment requires a box. You can search for
14
- # boxes at https://atlas.hashicorp.com/search.
15
- config.vm.box = "centos/7"
16
-
17
- # Disable automatic box update checking. If you disable this, then
18
- # boxes will only be checked for updates when the user runs
19
- # `vagrant box outdated`. This is not recommended.
20
- # config.vm.box_check_update = false
21
-
22
- # Create a forwarded port mapping which allows access to a specific port
23
- # within the machine from a port on the host machine. In the example below,
24
- # accessing "localhost:8080" will access port 80 on the guest machine.
25
- # config.vm.network "forwarded_port", guest: 80, host: 8080
26
-
27
- # Create a private network, which allows host-only access to the machine
28
- # using a specific IP.
29
- # config.vm.network "private_network", ip: "192.168.33.10"
30
-
31
- # Create a public network, which generally matched to bridged network.
32
- # Bridged networks make the machine appear as another physical device on
33
- # your network.
34
- # config.vm.network "public_network"
35
-
36
- # Share an additional folder to the guest VM. The first argument is
37
- # the path on the host to the actual folder. The second argument is
38
- # the path on the guest to mount the folder. And the optional third
39
- # argument is a set of non-required options.
40
- # config.vm.synced_folder "../data", "/vagrant_data"
41
-
42
- # Provider-specific configuration so you can fine-tune various
43
- # backing providers for Vagrant. These expose provider-specific options.
44
- # Example for VirtualBox:
45
- #
46
- # config.vm.provider "virtualbox" do |vb|
47
- # # Display the VirtualBox GUI when booting the machine
48
- # vb.gui = true
49
- #
50
- # # Customize the amount of memory on the VM:
51
- # vb.memory = "1024"
52
- # end
53
- #
54
- # View the documentation for the provider you are using for more
55
- # information on available options.
56
-
57
- # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
58
- # such as FTP and Heroku are also available. See the documentation at
59
- # https://docs.vagrantup.com/v2/push/atlas.html for more information.
60
- # config.push.define "atlas" do |push|
61
- # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
62
- # end
63
-
64
- # Enable provisioning with a shell script. Additional provisioners such as
65
- # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
66
- # documentation for more information about their specific syntax and use.
67
- # config.vm.provision "shell", inline: <<-SHELL
68
- # apt-get update
69
- # apt-get install -y apache2
70
- # SHELL
71
- end
@@ -1,28 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- lib = File.expand_path("../lib", __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "fluent-plugin-systemd"
8
- spec.version = "0.0.7"
9
- spec.authors = ["Ed Robinson"]
10
- spec.email = ["ed@reevoo.com"]
11
-
12
- spec.summary = "Input plugin to read from systemd journal."
13
- spec.description = "This is a fluentd input plugin. It reads logs from the systemd journal."
14
- spec.homepage = "https://github.com/reevoo/fluent-plugin-systemd"
15
- spec.license = "MIT"
16
-
17
-
18
- spec.files = Dir["**/**"].reject { |f| f.match(/^(test|spec|features)\//) }
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.10"
22
- spec.add_development_dependency "rake"
23
- spec.add_development_dependency "test-unit", "~> 2.5"
24
- spec.add_development_dependency "reevoocop"
25
-
26
- spec.add_runtime_dependency "fluentd", "~> 0.12"
27
- spec.add_runtime_dependency "systemd-journal", "~> 1.2"
28
- end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file