etc 1.4.2 → 1.4.3

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: 0050c9583f69123bae1291a4537d9c4190ed8db043312d65fca4756196a3d3aa
4
- data.tar.gz: ad8fbd7390bae77af9f8fea34c8ce5fba1e012aa65c4c62c31f6aeae58d0c25c
3
+ metadata.gz: 16938d741512cfff9d22fee4de192f888746f46153a6dc2f75fbf5cf768fc484
4
+ data.tar.gz: b03f93803b05e9d24bf85873584478873fb75d4649fb44c2961b78106d37ea04
5
5
  SHA512:
6
- metadata.gz: 5a104960635bcac115c6890fed938637568e0b51e60a4160405fa1b614924363c973c7a3561fa0c8c69310b9197dd35ca27ce1f8c9484c74fca3cbf994fcffe0
7
- data.tar.gz: 6408aae9355a8950a0e7ad76cc89c765c829d78e62771f6a375a4b79c15df11dd6df0c48842e98aac787a4be197cb773a783590bff8ddf31498a4e5957756ffe
6
+ metadata.gz: b0c6c3e0e5d4982c86a2e19b212aa4d7de5b4147c756974ac5ef9d492996f8e39306fa4e2a0f54d4d723b9db11a0d3f87362a746e523ccd2a85ad3da3bce6116
7
+ data.tar.gz: ca8cfccef1ded506ae7f4d251443b62250ba2e38564f6644be5891d43775f4b5d134b561a01de28b33ceb4f9d5e359212fb9ac697a30243ebff082ee894f9ac3
data/ChangeLog CHANGED
@@ -1,22 +1,145 @@
1
1
  -*- coding: utf-8 -*-
2
2
 
3
- commit 5cac138538ea4ce0176aa035a97fca78e913d65d
3
+ commit 743c26086d6c6012a9fbf68463f0b8b4bf1bd89a
4
4
  Author: Hiroshi SHIBATA <hsbt@ruby-lang.org>
5
- AuthorDate: 2022-12-09 14:57:29 +0900
5
+ AuthorDate: 2023-12-13 13:58:24 +0900
6
6
  Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
7
- CommitDate: 2022-12-09 14:57:29 +0900
7
+ CommitDate: 2023-12-13 13:58:24 +0900
8
8
 
9
- Bump version to 1.4.2
9
+ Bump up 1.4.3
10
10
 
11
- commit 61b3dc486bbfdb662834a7088150050da57a61c9
12
- Author: 卜部昌平 <shyouhei@ruby-lang.org>
13
- AuthorDate: 2022-09-21 10:03:30 +0900
11
+ commit e4c71e59969d7f3580974b91556451d2b09071f6
12
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
13
+ AuthorDate: 2023-11-05 20:42:13 +0900
14
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
15
+ CommitDate: 2023-11-05 20:42:13 +0900
16
+
17
+ Fix inconsistent dll linkage warning
18
+
19
+ commit a9e4d4730d10051b3179380268216c8f56ddb26b
20
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
21
+ AuthorDate: 2023-10-29 16:14:44 +0900
22
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
23
+ CommitDate: 2023-10-29 16:14:44 +0900
24
+
25
+ Start 1.4.3
26
+
27
+ commit 676c954e91909a3af7cb67f4386234e2ad390271
28
+ Author: Hiroshi SHIBATA <hsbt@ruby-lang.org>
29
+ AuthorDate: 2023-10-05 15:07:25 +0900
14
30
  Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
15
- CommitDate: 2022-12-09 14:56:37 +0900
31
+ CommitDate: 2023-10-05 15:27:56 +0900
32
+
33
+ Use test-unit-ruby-core gem
34
+
35
+ commit cfbc607126e9673afd5424312992852c56e3edbc
36
+ Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37
+ AuthorDate: 2023-09-11 04:57:03 +0000
38
+ Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
39
+ CommitDate: 2023-09-11 14:01:19 +0900
40
+
41
+ Bump actions/checkout from 3 to 4
42
+
43
+ Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
44
+ - [Release notes](https://github.com/actions/checkout/releases)
45
+ - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
46
+ - [Commits](https://github.com/actions/checkout/compare/v3...v4)
47
+
48
+ ---
49
+ updated-dependencies:
50
+ - dependency-name: actions/checkout
51
+ dependency-type: direct:production
52
+ update-type: version-update:semver-major
53
+ ...
54
+
55
+ Signed-off-by: dependabot[bot] <support@github.com>
56
+
57
+ commit f7fa1884fa3474f3f81f29739817cb334753f489
58
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
59
+ AuthorDate: 2023-07-13 00:34:45 +0900
60
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
61
+ CommitDate: 2023-07-13 00:34:45 +0900
62
+
63
+ Declare `getlogin` even if unistd.h is not available
64
+
65
+ Although MinGW provides this header but not the function, Windows
66
+ version ruby provides the function.
67
+
68
+ commit b95ddef386486e033735f4f8ac4ddb9abc0c1173
69
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
70
+ AuthorDate: 2023-07-12 21:03:29 +0900
71
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
72
+ CommitDate: 2023-07-12 23:11:13 +0900
73
+
74
+ Chec if the target file exists, not "depend" file
75
+
76
+ commit 1ab19d581502876824483edccfca0777598e7f53
77
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
78
+ AuthorDate: 2023-07-12 20:39:16 +0900
79
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
80
+ CommitDate: 2023-07-12 23:10:54 +0900
81
+
82
+ Fix for srcdir with spaces
83
+
84
+ Fixes #22.
85
+ Build failure when the ruby installed directory name contains spaces.
86
+
87
+ commit 365398ea47feb65d2370fa576c8e992eb3a0d99e
88
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
89
+ AuthorDate: 2023-07-12 16:20:30 +0900
90
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
91
+ CommitDate: 2023-07-12 16:20:30 +0900
92
+
93
+ Declare `getlogin` only if unistd.h is not available
94
+
95
+ commit 40b69c7a5e8524cd95794cde9d4ba9595eef29f9
96
+ Author: Nobuyoshi Nakada <nobu@ruby-lang.org>
97
+ AuthorDate: 2023-07-12 16:08:55 +0900
98
+ Commit: Nobuyoshi Nakada <nobu@ruby-lang.org>
99
+ CommitDate: 2023-07-12 16:08:55 +0900
100
+
101
+ Update test
102
+
103
+ commit f4b5e888ba2d1f8e87a6d2111be5d0a58e5da682
104
+ Author: Benoit Daloze <eregontp@gmail.com>
105
+ AuthorDate: 2023-05-29 21:27:35 +0200
106
+ Commit: Benoit Daloze <eregontp@gmail.com>
107
+ CommitDate: 2023-05-29 21:31:49 +0200
108
+
109
+ Add TruffleRuby in CI
110
+
111
+ commit 51856850035d78a671ae13c7969adf768bae2e9a
112
+ Author: Benoit Daloze <eregontp@gmail.com>
113
+ AuthorDate: 2023-05-29 21:26:06 +0200
114
+ Commit: Benoit Daloze <eregontp@gmail.com>
115
+ CommitDate: 2023-05-29 21:31:49 +0200
116
+
117
+ Use the correct pattern for the fallback of rb_io_descriptor()
118
+
119
+ * See https://github.com/ruby/io-console/pull/43/commits/d1d9aef45ceb14365fdf0ebee3e5ea06f27da682
120
+
121
+ commit ea15eceb1348e8efd24896669a7351a2f530eff6
122
+ Author: Samuel Williams <samuel.williams@oriontransfer.co.nz>
123
+ AuthorDate: 2023-05-28 14:08:25 +0900
124
+ Commit: GitHub <noreply@github.com>
125
+ CommitDate: 2023-05-28 14:08:25 +0900
126
+
127
+ Remove usage of IO internals. (#26)
128
+
129
+ commit f6be64c8adcf25a97610b861d57d9ad26169b090
130
+ Author: Hiroshi SHIBATA <hsbt@ruby-lang.org>
131
+ AuthorDate: 2023-03-24 13:00:18 +0900
132
+ Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
133
+ CommitDate: 2023-03-24 13:35:24 +0900
134
+
135
+ Update test libraries from https://github.com/ruby/ruby/commit/b4e438d8aabaf4bba2b27f374c787543fae07c58
16
136
 
17
- getenv: is in stdlib.h
137
+ commit 7a81385ff554fa6083534103d3aa794878418848
138
+ Author: Keishi Tanaka <k-tanaka@ruby-dev.jp>
139
+ AuthorDate: 2023-01-21 14:30:27 +0900
140
+ Commit: GitHub <noreply@github.com>
141
+ CommitDate: 2023-01-21 14:30:27 +0900
18
142
 
19
- getenv is a very basic function that has been in stdlib.h since
20
- ISO/IEC 9899:1990. There is absolutely zero need for us to redeclare.
143
+ Migrate set-output to $GITHUB_OUTPUT (#24)
21
144
 
22
- pty.c already includes stdlib.h out of the box so we need nothing.
145
+ https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
data/ext/etc/etc.c CHANGED
@@ -54,9 +54,9 @@ static VALUE sGroup;
54
54
  # include <stdlib.h>
55
55
  # endif
56
56
  #endif
57
- char *getlogin();
57
+ RUBY_EXTERN char *getlogin(void);
58
58
 
59
- #define RUBY_ETC_VERSION "1.4.2"
59
+ #define RUBY_ETC_VERSION "1.4.3"
60
60
 
61
61
  #ifdef HAVE_RB_DEPRECATE_CONSTANT
62
62
  void rb_deprecate_constant(VALUE mod, const char *name);
@@ -66,6 +66,17 @@ void rb_deprecate_constant(VALUE mod, const char *name);
66
66
 
67
67
  #include "constdefs.h"
68
68
 
69
+ #ifndef HAVE_RB_IO_DESCRIPTOR
70
+ static int
71
+ io_descriptor_fallback(VALUE io)
72
+ {
73
+ rb_io_t *fptr;
74
+ GetOpenFile(io, fptr);
75
+ return fptr->fd;
76
+ }
77
+ #define rb_io_descriptor io_descriptor_fallback
78
+ #endif
79
+
69
80
  #ifdef HAVE_RUBY_ATOMIC_H
70
81
  # include "ruby/atomic.h"
71
82
  #else
@@ -941,14 +952,11 @@ io_pathconf(VALUE io, VALUE arg)
941
952
  {
942
953
  int name;
943
954
  long ret;
944
- rb_io_t *fptr;
945
955
 
946
956
  name = NUM2INT(arg);
947
957
 
948
- GetOpenFile(io, fptr);
949
-
950
958
  errno = 0;
951
- ret = fpathconf(fptr->fd, name);
959
+ ret = fpathconf(rb_io_descriptor(io), name);
952
960
  if (ret == -1) {
953
961
  if (errno == 0) /* no limit */
954
962
  return Qnil;
data/ext/etc/extconf.rb CHANGED
@@ -43,13 +43,23 @@ have_struct_member('struct group', 'gr_passwd', 'grp.h')
43
43
 
44
44
  # for https://github.com/ruby/etc
45
45
  srcdir = File.expand_path("..", __FILE__)
46
- if !File.exist?("#{srcdir}/depend")
47
- %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h]
46
+ constdefs = "#{srcdir}/constdefs.h"
47
+ if !File.exist?(constdefs)
48
+ ruby = RbConfig.ruby
49
+ if File.file?(ruby)
50
+ ruby = [ruby]
51
+ else
52
+ require "shellwords"
53
+ ruby = Shellwords.split(ruby)
54
+ end
55
+ system(*ruby, "#{srcdir}/mkconstants.rb", "-o", constdefs)
48
56
  end
49
57
 
50
58
  # TODO: remove when dropping 2.7 support, as exported since 3.0
51
59
  have_func('rb_deprecate_constant(Qnil, "None")')
52
60
 
61
+ have_func("rb_io_descriptor")
62
+
53
63
  $distcleanfiles << "constdefs.h"
54
64
 
55
65
  create_makefile("etc")
@@ -0,0 +1,22 @@
1
+ -*- coding: utf-8 -*-
2
+
3
+ commit 5cac138538ea4ce0176aa035a97fca78e913d65d
4
+ Author: Hiroshi SHIBATA <hsbt@ruby-lang.org>
5
+ AuthorDate: 2022-12-09 14:57:29 +0900
6
+ Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
7
+ CommitDate: 2022-12-09 14:57:29 +0900
8
+
9
+ Bump version to 1.4.2
10
+
11
+ commit 61b3dc486bbfdb662834a7088150050da57a61c9
12
+ Author: 卜部昌平 <shyouhei@ruby-lang.org>
13
+ AuthorDate: 2022-09-21 10:03:30 +0900
14
+ Commit: Hiroshi SHIBATA <hsbt@ruby-lang.org>
15
+ CommitDate: 2022-12-09 14:56:37 +0900
16
+
17
+ getenv: is in stdlib.h
18
+
19
+ getenv is a very basic function that has been in stdlib.h since
20
+ ISO/IEC 9899:1990. There is absolutely zero need for us to redeclare.
21
+
22
+ pty.c already includes stdlib.h out of the box so we need nothing.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides access to information typically stored in UNIX /etc directory.
14
14
  email:
@@ -32,6 +32,7 @@ extra_rdoc_files:
32
32
  - logs/ChangeLog-1.3.1
33
33
  - logs/ChangeLog-1.4.0
34
34
  - logs/ChangeLog-1.4.1
35
+ - logs/ChangeLog-1.4.2
35
36
  - test/etc/test_etc.rb
36
37
  files:
37
38
  - ChangeLog
@@ -49,6 +50,7 @@ files:
49
50
  - logs/ChangeLog-1.3.1
50
51
  - logs/ChangeLog-1.4.0
51
52
  - logs/ChangeLog-1.4.1
53
+ - logs/ChangeLog-1.4.2
52
54
  - test/etc/test_etc.rb
53
55
  homepage: https://github.com/ruby/etc
54
56
  licenses:
@@ -72,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
74
  - !ruby/object:Gem::Version
73
75
  version: '0'
74
76
  requirements: []
75
- rubygems_version: 3.4.0.dev
77
+ rubygems_version: 3.5.0.dev
76
78
  signing_key:
77
79
  specification_version: 4
78
80
  summary: Provides access to information typically stored in UNIX /etc directory.