Skip to content

Commit 368677d

Browse files
committed
New upstream version 3.2.2
1 parent 20ca2a9 commit 368677d

311 files changed

Lines changed: 7654 additions & 4401 deletions

File tree

Some content is hidden

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

ChangeLog

Lines changed: 1408 additions & 0 deletions
Large diffs are not rendered by default.

LEGAL

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ mentioned below.
979979
{MIT License}[rdoc-label:label-MIT+License]
980980

981981
[lib/rubygems/resolver/molinillo]
982-
[lib/bundler/vendor/molinillo]
983982

984983
molinillo is under the following license.
985984

@@ -988,6 +987,15 @@ mentioned below.
988987

989988
{MIT License}[rdoc-label:label-MIT+License]
990989

990+
[lib/bundler/vendor/pub_grub]
991+
992+
pub_grub is under the following license.
993+
994+
>>>
995+
Copyright (c) 2018 John Hawthorn
996+
997+
{MIT License}[rdoc-label:label-MIT+License]
998+
991999
[lib/bundler/vendor/connection_pool]
9921000

9931001
connection_pool is under the following license.

ast.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ static VALUE
202202
node_id_for_backtrace_location(rb_execution_context_t *ec, VALUE module, VALUE location)
203203
{
204204
int node_id;
205+
206+
if (!rb_frame_info_p(location)) {
207+
rb_raise(rb_eTypeError, "Thread::Backtrace::Location object expected");
208+
}
209+
205210
node_id = rb_get_node_id_from_frame_info(location);
206211
if (node_id == -1) {
207212
return Qnil;

bignum.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4184,7 +4184,6 @@ rb_int_parse_cstr(const char *str, ssize_t len, char **endp, size_t *ndigits,
41844184
}
41854185
if (!c || ISSPACE(c)) --str;
41864186
if (end) len = end - str;
4187-
ASSERT_LEN();
41884187
}
41894188
c = *str;
41904189
c = conv_digit(c);

common.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,6 @@ update-config_files: PHONY
13751375

13761376
refresh-gems: update-bundled_gems prepare-gems
13771377
prepare-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=extract-gems)
1378-
prepare-gems: $(DOT_WAIT) $(HAVE_BASERUBY:yes=outdate-bundled-gems)
13791378
extract-gems: $(HAVE_BASERUBY:yes=update-gems)
13801379

13811380
update-gems$(gnumake:yes=-sequential): PHONY

compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12311,7 +12311,7 @@ ibf_load_iseq_each(struct ibf_load *load, rb_iseq_t *iseq, ibf_offset_t offset)
1231112311
verify_call_cache(iseq);
1231212312

1231312313
RB_GC_GUARD(dummy_frame);
12314-
rb_vm_pop_frame(ec);
12314+
rb_vm_pop_frame_no_int(ec);
1231512315
}
1231612316

1231712317
struct ibf_dump_iseq_list_arg
@@ -13062,7 +13062,7 @@ ibf_dump_memsize(const void *ptr)
1306213062
static const rb_data_type_t ibf_dump_type = {
1306313063
"ibf_dump",
1306413064
{ibf_dump_mark, ibf_dump_free, ibf_dump_memsize,},
13065-
0, 0, RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_FREE_IMMEDIATELY
13065+
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
1306613066
};
1306713067

1306813068
static void

configure

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8235,39 +8235,6 @@ else $as_nop
82358235
as_fn_error $? "Unsupported OS X version is required" "$LINENO" 5
82368236
fi
82378237
rm -f conftest.err conftest.i conftest.$ac_ext
8238-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if thread-local storage is supported" >&5
8239-
printf %s "checking if thread-local storage is supported... " >&6; }
8240-
if test ${rb_cv_tls_supported+y}
8241-
then :
8242-
printf %s "(cached) " >&6
8243-
else $as_nop
8244-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245-
/* end confdefs.h. */
8246-
int __thread conftest;
8247-
int
8248-
main (void)
8249-
{
8250-
8251-
;
8252-
return 0;
8253-
}
8254-
_ACEOF
8255-
if ac_fn_c_try_link "$LINENO"
8256-
then :
8257-
rb_cv_tls_supported=yes
8258-
else $as_nop
8259-
rb_cv_tls_supported=no
8260-
fi
8261-
rm -f core conftest.err conftest.$ac_objext conftest.beam \
8262-
conftest$ac_exeext conftest.$ac_ext
8263-
fi
8264-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_tls_supported" >&5
8265-
colorize_result "$rb_cv_tls_supported" ; }
8266-
if test x"$rb_cv_tls_supported" != xyes
8267-
then :
8268-
printf "%s\n" "#define RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED 1" >>confdefs.h
8269-
8270-
fi
82718238
;; #(
82728239
*) :
82738240
;;
@@ -8350,6 +8317,40 @@ then :
83508317

83518318
as_fn_error $? "too old GCC: $gcc_major.$gcc_minor" "$LINENO" 5
83528319

8320+
fi
8321+
8322+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if thread-local storage is supported" >&5
8323+
printf %s "checking if thread-local storage is supported... " >&6; }
8324+
if test ${rb_cv_tls_supported+y}
8325+
then :
8326+
printf %s "(cached) " >&6
8327+
else $as_nop
8328+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329+
/* end confdefs.h. */
8330+
int __thread conftest;
8331+
int
8332+
main (void)
8333+
{
8334+
8335+
;
8336+
return 0;
8337+
}
8338+
_ACEOF
8339+
if ac_fn_c_try_link "$LINENO"
8340+
then :
8341+
rb_cv_tls_supported=yes
8342+
else $as_nop
8343+
rb_cv_tls_supported=no
8344+
fi
8345+
rm -f core conftest.err conftest.$ac_objext conftest.beam \
8346+
conftest$ac_exeext conftest.$ac_ext
8347+
fi
8348+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_tls_supported" >&5
8349+
colorize_result "$rb_cv_tls_supported" ; }
8350+
if test x"$rb_cv_tls_supported" != xyes
8351+
then :
8352+
printf "%s\n" "#define RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED 1" >>confdefs.h
8353+
83538354
fi
83548355

83558356
else $as_nop

configure.ac

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,6 @@ AS_CASE(["$target_os"],
366366
[AC_MSG_RESULT(yes)],
367367
[AC_MSG_RESULT(no)
368368
AC_MSG_ERROR([Unsupported OS X version is required])])
369-
AC_CACHE_CHECK([if thread-local storage is supported], [rb_cv_tls_supported],
370-
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[int __thread conftest;]])],
371-
[rb_cv_tls_supported=yes],
372-
[rb_cv_tls_supported=no])])
373-
AS_IF([test x"$rb_cv_tls_supported" != xyes],
374-
[AC_DEFINE(RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED)])
375369
])
376370

377371
RUBY_MINGW32
@@ -391,6 +385,13 @@ AS_IF([test "$GCC" = yes], [
391385
AS_IF([test "$gcc_major" -lt 4], [
392386
AC_MSG_ERROR([too old GCC: $gcc_major.$gcc_minor])
393387
])
388+
389+
AC_CACHE_CHECK([if thread-local storage is supported], [rb_cv_tls_supported],
390+
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[int __thread conftest;]])],
391+
[rb_cv_tls_supported=yes],
392+
[rb_cv_tls_supported=no])])
393+
AS_IF([test x"$rb_cv_tls_supported" != xyes],
394+
[AC_DEFINE(RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED)])
394395
], [
395396
linker_flag=
396397
])

doc/syntax/literals.rdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ the content. Note that empty lines and lines consisting solely of literal tabs
277277
and spaces will be ignored for the purposes of determining indentation, but
278278
escaped tabs and spaces are considered non-indentation characters.
279279

280+
For the purpose of measuring an indentation, a horizontal tab is regarded as a
281+
sequence of one to eight spaces such that the column position corresponding to
282+
its end is a multiple of eight. The amount to be removed is counted in terms
283+
of the number of spaces. If the boundary appears in the middle of a tab, that
284+
tab is not removed.
285+
280286
A heredoc allows interpolation and escaped characters. You may disable
281287
interpolation and escaping by surrounding the opening identifier with single
282288
quotes:

ext/ripper/lib/ripper/lexer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def on_heredoc_beg(tok)
228228

229229
def on_heredoc_end(tok)
230230
@buf.push Elem.new([lineno(), column()], __callee__, tok, state())
231-
@buf = @stack.pop
231+
@buf = @stack.pop unless @stack.empty?
232232
end
233233

234234
def _push_token(tok)

0 commit comments

Comments
 (0)