systemd-journal 1.1.0 → 1.1.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 +4 -4
- data/README.md +25 -10
- data/lib/systemd/id128.rb +2 -1
- data/lib/systemd/journal/native.rb +2 -1
- data/lib/systemd/journal/version.rb +1 -1
- data/spec/spec_helper.rb +3 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c6739b242c00d225c300175bcbe918d55f7f0d8
|
4
|
+
data.tar.gz: e25c7e9a75c02bc848de55610f63e34460ab179a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545d435b72630e2c39da338a36fade67e7ebfef43771587c46913ed1013830a721b207d47b530c7af82a51ed126c9c6bc38c446c9d880b15e47e47d2e4a16250
|
7
|
+
data.tar.gz: 6fe063ad1eadbaaa2396374655d89b4e95375bb6405a14ce627ce7363c50040c5989d2318fd5b42134715154ae4988558990caddbb521d1de7e9a638884ede23
|
data/README.md
CHANGED
@@ -15,10 +15,23 @@ And then execute:
|
|
15
15
|
|
16
16
|
bundle install
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
dependencies are `libsystemd-journal` and `libsystemd-id128`.
|
18
|
+
Or just `gem install systemd-journal` if you're not into that whole bundler
|
19
|
+
thing.
|
21
20
|
|
21
|
+
## Dependencies
|
22
|
+
|
23
|
+
Obviously you will need to have
|
24
|
+
[systemd](http://www.freedesktop.org/wiki/Software/systemd/) installed on your
|
25
|
+
system in order to use the gem.
|
26
|
+
|
27
|
+
__systemd 208__:
|
28
|
+
|
29
|
+
* `libsystemd-journal`
|
30
|
+
* `libsystemd-id128`
|
31
|
+
|
32
|
+
__systemd 209+__:
|
33
|
+
|
34
|
+
* `libsystemd`
|
22
35
|
|
23
36
|
## Usage
|
24
37
|
|
@@ -83,21 +96,23 @@ Accessing the catalog:
|
|
83
96
|
# or if you have a message id:
|
84
97
|
puts Systemd::Journal.catalog_for(j.current_entry.message_id)
|
85
98
|
|
86
|
-
|
87
99
|
See the documentation for more examples.
|
88
100
|
|
89
101
|
## Issues?
|
90
102
|
|
103
|
+
This gem has been tested primarily on Arch Linux running systemd 208. Please
|
104
|
+
let me know if you have issues on other distributions.
|
105
|
+
|
91
106
|
If you run into problems or have questions, please open an
|
92
|
-
[Issue](https://github.com/ledbettj/systemd-journal/issues).
|
107
|
+
[Issue](https://github.com/ledbettj/systemd-journal/issues) or Pull Request.
|
93
108
|
|
94
|
-
##
|
109
|
+
## Pull Requests
|
95
110
|
|
96
111
|
1. Fork it
|
97
|
-
2. Create your feature branch
|
98
|
-
3. Commit your changes
|
99
|
-
4. Push to the branch
|
112
|
+
2. Create your feature branch
|
113
|
+
3. Commit your changes
|
114
|
+
4. Push to the branch
|
100
115
|
5. Create new Pull Request, targeting the __develop__ branch.
|
101
|
-
6. Wipe hands on pants, you're done
|
116
|
+
6. Wipe hands on pants, you're done!
|
102
117
|
|
103
118
|
[](https://bitdeli.com/free "Bitdeli Badge")
|
data/lib/systemd/id128.rb
CHANGED
@@ -46,7 +46,8 @@ module Systemd
|
|
46
46
|
unless $NO_FFI_SPEC
|
47
47
|
require 'ffi'
|
48
48
|
extend FFI::Library
|
49
|
-
ffi_lib %w
|
49
|
+
ffi_lib %w{ libsystemd.so.0 libsystemd.so
|
50
|
+
libsystemd-id128.so.0 libsystemd-id128.so }
|
50
51
|
|
51
52
|
attach_function :sd_id128_get_machine, [:pointer], :int
|
52
53
|
attach_function :sd_id128_get_boot, [:pointer], :int
|
@@ -8,7 +8,8 @@ module Systemd
|
|
8
8
|
# rubocop:disable LineLength
|
9
9
|
require 'ffi'
|
10
10
|
extend FFI::Library
|
11
|
-
ffi_lib %w
|
11
|
+
ffi_lib %w{ libsystemd.so.0 libsystemd.so
|
12
|
+
libsystemd-journal.so.0 libsystemd-journal.so}
|
12
13
|
|
13
14
|
# setup/teardown
|
14
15
|
attach_function :sd_journal_open, [:pointer, :int], :int
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: systemd-journal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Ledbetter
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 1.9.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.9.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: simplecov
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
description: Provides the ability to navigate and read entries from the systemd journal
|
@@ -61,8 +61,8 @@ executables: []
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
-
- .gitignore
|
65
|
-
- .rubocop.yml
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rubocop.yml"
|
66
66
|
- Gemfile
|
67
67
|
- LICENSE.txt
|
68
68
|
- README.md
|
@@ -99,17 +99,17 @@ require_paths:
|
|
99
99
|
- lib
|
100
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.0
|
112
|
+
rubygems_version: 2.2.0
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Ruby bindings to libsystemd-journal
|