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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df7fe5c76f75b85e1c6ae332b5dc4db8268956c9
4
- data.tar.gz: ddb32ec9f34855f7fe8ae5bfef85f5c8606b9295
3
+ metadata.gz: 2c6739b242c00d225c300175bcbe918d55f7f0d8
4
+ data.tar.gz: e25c7e9a75c02bc848de55610f63e34460ab179a
5
5
  SHA512:
6
- metadata.gz: 1aa3dd8871ac3b44fe9e063a5fef7ed300f2580a76ebb0a122951dd1136fe86c99322f5342515fafcaf723c337b90ccc59a4a89c47cb02fe007912ba9e493b6f
7
- data.tar.gz: 30018c03c4cc3178e2798c9f7edf60d290cdef165ee41bccc5a9256f0fe922b5f9473a6f6fb6d3fe8662f56111eef6878729874b05bc69b06729c4e521a1c6b5
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
- Obviously you will need to have [systemd](http://www.freedesktop.org/wiki/Software/systemd/)
19
- installed on your system in order to use the gem. The two native library
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
- ## Contributing
109
+ ## Pull Requests
95
110
 
96
111
  1. Fork it
97
- 2. Create your feature branch (`git checkout -b my-new-feature`)
98
- 3. Commit your changes (`git commit -am 'Add some feature'`)
99
- 4. Push to the branch (`git push origin my-new-feature`)
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
  [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ledbettj/systemd-journal/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
@@ -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[libsystemd-id128.so libsystemd-id128.so.0]
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[libsystemd-journal.so libsystemd-journal.so.0]
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
@@ -1,6 +1,6 @@
1
1
  module Systemd
2
2
  class Journal
3
3
  # The version of the systemd-journal gem.
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
@@ -1,7 +1,9 @@
1
1
  require 'rspec'
2
2
  require 'simplecov'
3
3
 
4
- SimpleCov.start
4
+ SimpleCov.start do
5
+ add_filter '.bundle/'
6
+ end
5
7
  require 'systemd/journal'
6
8
 
7
9
  RSpec.configure do |config|
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.0
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-03 00:00:00.000000000 Z
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.3
112
+ rubygems_version: 2.2.0
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Ruby bindings to libsystemd-journal