journald-native 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2149bd01df881850f2b28981f5205b3927a8a1ad
4
- data.tar.gz: e3e6dca4d82b253c973c646120c179da9a9e797f
3
+ metadata.gz: 2a01ba326cf9a1301dabb30adca26fc9f26c6cc1
4
+ data.tar.gz: 1deb14ebe5df156d231ddc52efc56ff5af17aac5
5
5
  SHA512:
6
- metadata.gz: 5ff414045a42a08b18043404efbc581024ed723d5452ba4770c7f5aba24d683d8a6c8d426914774ba9630d586bf33a98ea4f9a8b04e0db7938da70d0fb171cb2
7
- data.tar.gz: bfb25979bdec849aab3076a82a076d9a6ed705602c69f9c547f60cc68d9d143cd992ea596971704508d48c5367f933f6669d53b9dfa2e600d0893b4b1d5ce9b6
6
+ metadata.gz: 2c40c252abe5146efb24e7ee94541c65d7c49a0314db8827a364999ba3765bc453754b784f85d3b07f3b37674bf8b7eea9019c45c488f8ee72f2bc3865651892
7
+ data.tar.gz: 9d0a9f0439099825f8b379ed314ad08eb1f4d917cb0051bb83aa8eea78cec6c3b121ac4bd11710454f779dacbf274ff12963039331862f893400f825c2fb54c8
data/README.md CHANGED
@@ -6,6 +6,26 @@
6
6
  A systemd-journal native logging lib wrapper.
7
7
  [See sd-journal help for more info](http://www.freedesktop.org/software/systemd/man/sd_journal_print.html)
8
8
 
9
+ ## Installation
10
+
11
+ Run
12
+
13
+ ```sh
14
+ gem install journald-native
15
+ ```
16
+
17
+ or add
18
+
19
+ ```ruby
20
+ gem 'journald-native', '~> 1.0'
21
+ ```
22
+
23
+ to your Gemfile.
24
+
25
+ Please note that you need a systemd development package installed in your system like `systemd-devel` in Fedora, `libsystemd-dev` in Debian, also may be a separate package for journal in older systems like `libsystemd-journal-dev`.
26
+
27
+ **NB:** The gem can be installed on non-linux system but it will do nothing there. (Functions will return success without any actual effect)
28
+
9
29
  ## Usage
10
30
 
11
31
  ```ruby
@@ -27,7 +27,7 @@ LIB_DIRS = [LIBDIR]
27
27
 
28
28
  dir_config('systemd', HEADER_DIRS, LIB_DIRS)
29
29
 
30
- $CFLAGS = '-std=c11'
30
+ $CFLAGS = [$CFLAGS, '-std=c11'].join(' ')
31
31
 
32
32
  def have_funcs
33
33
  # check functions. redefine const list in sd_journal.h if changed
@@ -18,7 +18,7 @@
18
18
  #
19
19
 
20
20
  require 'journald/native/version'
21
- require_relative '../journald_native'
21
+ require 'journald_native'
22
22
 
23
23
  module Journald
24
24
  module Native
@@ -1,5 +1,5 @@
1
1
  module Journald
2
2
  module Native
3
- VERSION = '1.0.9'
3
+ VERSION = '1.0.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: journald-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Smirnov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-11 00:00:00.000000000 Z
11
+ date: 2018-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.6
113
+ rubygems_version: 2.6.14.1
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: systemd-journal logging native lib wrapper