Skip to content

Commit 30ff4bb

Browse files
committed
Merge branch 'master-2.7' into dist/2.7/buster
2 parents 731c9b4 + e8a0b60 commit 30ff4bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1668
-1355
lines changed

ChangeLog

Lines changed: 451 additions & 10 deletions
Large diffs are not rendered by default.

addr2line.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,7 @@ debug_info_read(DebugInfoReader *reader, int num_traces, void **traces,
15851585
static unsigned long
15861586
uncompress_debug_section(ElfW(Shdr) *shdr, char *file, char **ptr)
15871587
{
1588+
*ptr = NULL;
15881589
#ifdef SUPPORT_COMPRESSED_DEBUG_LINE
15891590
ElfW(Chdr) *chdr = (ElfW(Chdr) *)(file + shdr->sh_offset);
15901591
unsigned long destsize = chdr->ch_size;
@@ -1605,6 +1606,7 @@ uncompress_debug_section(ElfW(Shdr) *shdr, char *file, char **ptr)
16051606

16061607
fail:
16071608
free(*ptr);
1609+
*ptr = NULL;
16081610
#endif
16091611
return 0;
16101612
}

class.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,17 +911,22 @@ include_modules_at(const VALUE klass, VALUE c, VALUE module, int search_super)
911911
}
912912

913913
while (module) {
914+
int origin_seen = FALSE;
914915
int superclass_seen = FALSE;
915916
struct rb_id_table *tbl;
916917

918+
if (klass == c)
919+
origin_seen = TRUE;
917920
if (klass_m_tbl && klass_m_tbl == RCLASS_M_TBL(module))
918921
return -1;
919922
/* ignore if the module included already in superclasses */
920923
for (p = RCLASS_SUPER(klass); p; p = RCLASS_SUPER(p)) {
921924
int type = BUILTIN_TYPE(p);
925+
if (c == p)
926+
origin_seen = TRUE;
922927
if (type == T_ICLASS) {
923928
if (RCLASS_M_TBL(p) == RCLASS_M_TBL(module)) {
924-
if (!superclass_seen) {
929+
if (!superclass_seen && origin_seen) {
925930
c = p; /* move insertion point */
926931
}
927932
goto skip;

debian/Dockerfile.bionic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG BUILDDATE=99999999
77
RUN sed -i -e 's|archive\.ubuntu\.com/ubuntu|ap-northeast-1.ec2.archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list
88
# Allow use of debhelper-compat 12 in backport
99
# https://help.ubuntu.com/community/UbuntuBackports
10-
RUN /bin/echo -e "Package: debhelper\nPin: release a=bionic-backports\nPin-Priority: 500\n" | tee -a /etc/apt/preferences
10+
RUN /bin/echo -e "Package: debhelper libdebhelper-perl dh-autoreconf dwz\nPin: release a=bionic-backports\nPin-Priority: 500\n\n" | tee -a /etc/apt/preferences
1111

1212
ENV DEBIAN_FRONTEND=noninteractive
1313
RUN mkdir -p /build \

debian/Dockerfile.bullseye

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM debian:bullseye
2+
3+
# just to invalidate cache
4+
ARG BUILDDATE=99999999
5+
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
RUN mkdir -p /build \
8+
&& apt-get update \
9+
&& apt-get install -y debhelper dh-make devscripts gnupg2 vim equivs
10+
RUN mkdir -p -m700 /root/.gnupg
11+
12+
ADD control /control
13+
RUN mk-build-deps -i --t 'apt-get -y -o Debug::pkgProblemResolver=yes --no-install-recommends' /control
14+
RUN apt-get install -y tzdata

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ruby2.7 (2.7.5-0nkmi1~dist) unstable; urgency=medium
2+
3+
* 2.7.5
4+
5+
-- Sorah Fukumori <[email protected]> Sat, 08 Jan 2022 09:18:20 +0900
6+
17
ruby2.7 (2.7.4-0nkmi1~dist) unstable; urgency=medium
28

39
* 2.7.4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_valid_socket_ip_address_list, 'https://github.com/ruby/resolv/pull/2'

enum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj)
648648
{
649649
VALUE ary = rb_ary_new();
650650

651-
rb_block_call(obj, id_each, argc, argv, collect_all, ary);
651+
rb_block_call_kw(obj, id_each, argc, argv, collect_all, ary, RB_PASS_CALLED_KEYWORDS);
652652

653653
return ary;
654654
}

ext/cgi/escape/escape.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ static VALUE
3636
optimized_escape_html(VALUE str)
3737
{
3838
VALUE vbuf;
39-
char *buf = ALLOCV_N(char, vbuf, RSTRING_LEN(str) * HTML_ESCAPE_MAX_LEN);
39+
typedef char escape_buf[HTML_ESCAPE_MAX_LEN];
40+
char *buf = *ALLOCV_N(escape_buf, vbuf, RSTRING_LEN(str));
4041
const char *cstr = RSTRING_PTR(str);
4142
const char *end = cstr + RSTRING_LEN(str);
4243

ext/date/date.gemspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# frozen_string_literal: true
2+
3+
version = File.foreach(File.expand_path("../lib/date.rb", __FILE__)).find do |line|
4+
/^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
5+
end
6+
27
Gem::Specification.new do |s|
38
s.name = "date"
4-
s.version = '3.0.0'
9+
s.version = version
510
s.summary = "A subclass of Object includes Comparable module for handling dates."
611
s.description = "A subclass of Object includes Comparable module for handling dates."
712

0 commit comments

Comments
 (0)