syslog 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/workflows/test.yml +1 -1
- data/ext/syslog/syslog.c +4 -0
- data/syslog.gemspec +7 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2de70b2bef5aebf5022b121d4b50b6a77428f98718b3a71499ad5e20364152a7
|
4
|
+
data.tar.gz: 15b803a1244e1b0e05256c34c842c901aa328807f598a667b0013a278ddae284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 469270d89d32df91bf0ed44e719db13d3cccc43c93ea47690a6a00a625e033b9eaf5dc0f0b31b10de0ad659cc39b14643cbd3f20236abe4695ce4361ce824e33
|
7
|
+
data.tar.gz: be1efe211d0a0b15295b0a4ebff9debbd7cf21231a31ee84dccd8772a5cbb6dcd4e6f4bab43fc29ba35e7538a7f82da7499e1c7a811d37daab50bf1b1afccb52
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @knu
|
data/.github/workflows/test.yml
CHANGED
data/ext/syslog/syslog.c
CHANGED
@@ -12,6 +12,8 @@
|
|
12
12
|
#include "ruby/util.h"
|
13
13
|
#include <syslog.h>
|
14
14
|
|
15
|
+
#define SYSLOG_VERSION "0.1.2"
|
16
|
+
|
15
17
|
/* Syslog class */
|
16
18
|
static VALUE mSyslog;
|
17
19
|
/*
|
@@ -574,6 +576,8 @@ void Init_syslog(void)
|
|
574
576
|
|
575
577
|
/* Syslog macros */
|
576
578
|
|
579
|
+
rb_define_const(mSyslog, "VERSION", rb_str_new_cstr(SYSLOG_VERSION));
|
580
|
+
|
577
581
|
rb_define_method(mSyslogMacros, "LOG_MASK", mSyslogMacros_LOG_MASK, 1);
|
578
582
|
rb_define_method(mSyslogMacros, "LOG_UPTO", mSyslogMacros_LOG_UPTO, 1);
|
579
583
|
rb_define_singleton_method(mSyslogMacros, "included", mSyslogMacros_included, 1);
|
data/syslog.gemspec
CHANGED
@@ -1,13 +1,18 @@
|
|
1
|
+
source_version = %w[. ext/syslog].find do |dir|
|
2
|
+
break $1 if File.foreach(File.join(__dir__, dir, "syslog.c")).any?(/^#define\s+SYSLOG_VERSION\s+"(.+)"/)
|
3
|
+
rescue Errno::ENOENT
|
4
|
+
end
|
5
|
+
|
1
6
|
Gem::Specification.new do |spec|
|
2
7
|
spec.name = "syslog"
|
3
|
-
spec.version =
|
8
|
+
spec.version = source_version
|
4
9
|
spec.authors = ["Akinori MUSHA"]
|
5
10
|
spec.email = ["knu@idaemons.org"]
|
6
11
|
|
7
12
|
spec.summary = %q{Ruby interface for the POSIX system logging facility.}
|
8
13
|
spec.description = %q{Ruby interface for the POSIX system logging facility.}
|
9
14
|
spec.homepage = "https://github.com/ruby/syslog"
|
10
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
|
11
16
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
12
17
|
|
13
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby interface for the POSIX system logging facility.
|
14
14
|
email:
|
@@ -19,6 +19,7 @@ extensions:
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".git-blame-ignore-revs"
|
22
|
+
- ".github/CODEOWNERS"
|
22
23
|
- ".github/dependabot.yml"
|
23
24
|
- ".github/workflows/test.yml"
|
24
25
|
- ".gitignore"
|
@@ -48,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
48
49
|
requirements:
|
49
50
|
- - ">="
|
50
51
|
- !ruby/object:Gem::Version
|
51
|
-
version: 2.
|
52
|
+
version: 2.5.0
|
52
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
55
|
- - ">="
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: '0'
|
57
58
|
requirements: []
|
58
|
-
rubygems_version: 3.
|
59
|
+
rubygems_version: 3.5.0.dev
|
59
60
|
signing_key:
|
60
61
|
specification_version: 4
|
61
62
|
summary: Ruby interface for the POSIX system logging facility.
|