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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d612e3dcc5ded7a09900b9c414f8300c36b416eee15db2e8b3f8d0c768ece92d
4
- data.tar.gz: dd94d87e07ad867e68a8e0f90c20dc2844bba256618d825409b17c81f91b89e1
3
+ metadata.gz: 2de70b2bef5aebf5022b121d4b50b6a77428f98718b3a71499ad5e20364152a7
4
+ data.tar.gz: 15b803a1244e1b0e05256c34c842c901aa328807f598a667b0013a278ddae284
5
5
  SHA512:
6
- metadata.gz: bdf1d2f0ebe14aee8d3b222fe519e48d2d35b5e9b9ede1159f080fa30df3eb24078c5611a2c5bc9deddce67dae470d6dd1774d68dcfd37c289dca8889e1d60b2
7
- data.tar.gz: 4e914f4c4500ca1e65f4e8d47b65fe7818382c18c585c1b5104f7b826ed7e84262c99771c23d359238a64aec406f9e74ef8124e7c8bbb96e2cd698b3d783ef0d
6
+ metadata.gz: 469270d89d32df91bf0ed44e719db13d3cccc43c93ea47690a6a00a625e033b9eaf5dc0f0b31b10de0ad659cc39b14643cbd3f20236abe4695ce4361ce824e33
7
+ data.tar.gz: be1efe211d0a0b15295b0a4ebff9debbd7cf21231a31ee84dccd8772a5cbb6dcd4e6f4bab43fc29ba35e7538a7f82da7499e1c7a811d37daab50bf1b1afccb52
@@ -0,0 +1 @@
1
+ * @knu
@@ -11,7 +11,7 @@ jobs:
11
11
  os: [ ubuntu-latest, macos-latest ]
12
12
  runs-on: ${{ matrix.os }}
13
13
  steps:
14
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v4
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
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 = "0.1.1"
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.3.0")
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.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: 2022-12-14 00:00:00.000000000 Z
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.3.0
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.4.0.dev
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.