aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/net-imap] Clean up authenticators rdocnicholas a. evans2021-05-065-18/+36
| | | | | | Added RFC links to all SASL mechanism specifications. https://github.com/ruby/net-imap/commit/53ff4b0c09
* [ruby/net-imap] Update AUTH=PLAIN to be a little closer to RFC4616nicholas a. evans2021-05-062-3/+41
| | | | | | | | * Add authzid support * must not contain NULL chars * improve rdoc https://github.com/ruby/net-imap/commit/a587fc71b7
* [ruby/net-imap] Move each authenticator to its own filenicholas a. evans2021-05-066-204/+257
| | | | | | | | | | | Also updates rdoc with SASL specifications and deprecations. Of these four, only `PLAIN` isn't deprecated! +@@authenticators+ was changed to a class instance var +@authenticators+. No one should have been using the class variable directly, so that should be fine. https://github.com/ruby/net-imap/commit/23f241b081
* [ruby/erb] Document that `<% #` doesn't workTakashi Kokubun2021-05-051-1/+1
| | | | | | [Bug #17846] https://github.com/ruby/erb/commit/b58b188028fbb403f75d48d62717373fc0908f7a
* Reuse sysconf resultNobuyoshi Nakada2021-05-061-12/+12
|
* Revised PAGE_MAX_SIZE caseNobuyoshi Nakada2021-05-061-1/+4
|
* Check only whether PAGE_SIZE is compile-time constNobuyoshi Nakada2021-05-061-14/+8
|
* Get rid of including sys/user.h on macOSNobuyoshi Nakada2021-05-061-1/+4
| | | | | | | | | | | LIST_HEAD in ccan/list conflicts with sys/queue.h. ``` ./ccan/list/list.h:75:9: warning: 'LIST_HEAD' macro redefined [-Wmacro-redefined] ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/queue.h:465:9: note: previous definition is here ^ ```
* Fall back to sysconf to determine page size during runtimePeter Zhu2021-05-051-2/+14
| | | | | On some platforms the PAGE_SIZE macro does not exist so we can fall back to `sysconf` to determine the page size at runtime.
* Fix PAGE_SIZE macro detection in autoconfPeter Zhu2021-05-052-27/+29
| | | | | | | | | | | | The current fix for PAGE_SIZE macro detection in autoconf does not work correctly. I see the following output with running configure on Linux: ``` checking PAGE_SIZE is defined... no ``` Linux has PAGE_SIZE macro. This is happening because the macro exists in sys/user.h and not in the malloc headers.
* PAGE_SIZE is used only when mmap is availableNobuyoshi Nakada2021-05-061-0/+4
|
* * 2021-05-06 [ci skip]git2021-05-061-1/+1
|
* Fix compilation on M1 MacNobuyoshi Nakada2021-05-052-47/+89
| | | | | As PAGE_SIZE may not be a preprocessor constant, dispatch at runtime in that case.
* configure.ac: check if __builtin_expect is available or notYusuke Endoh2021-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/ruby/internal/has/builtin.h uses HAVE_BUILTIN___BUILTIN_EXPECT for icc but previously it was not defined. This is a follow up of 8b32de2ec9b72d4c9ede19b70ec9497718fb25a6 and this will fix the following failures: http://rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20210505T030003Z.fail.html.gz ``` 1) Failure: TestMkmf::TestConvertible#test_typeof_builtin [/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/test/mkmf/test_convertible.rb:9]: convertible_int: checking for convertible type of short... -------------------- short -------------------- convertible_int: checking for convertible type of int... -------------------- int -------------------- convertible_int: checking for convertible type of long... -------------------- long -------------------- convertible_int: checking for convertible type of signed short... -------------------- failed "icc -std=gnu99 -o conftest -I. -I/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/.ext/include/x86_64-linux -I/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/include -I./test -O3 -ggdb -Wall -Wextra -Wdeprecated-declarations -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-unused-parameter -Wunused-variable -diag-disable=175,188,1684,2259,2312 -Wextra-tokens -Wundef conftest.c -L. -L/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby -Wl,-rpath,/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/lib -L/home/chkbuild/chkbuild/tmp/build/20210505T030003Z/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lm -lc" In file included from /home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/include/ruby/defines.h(72), from /home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/include/ruby/ruby.h(23), from /home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/include/ruby.h(39), from conftest.c(1): /home/chkbuild/chkbuild/tmp/build/20210505T030003Z/ruby/include/ruby/backward/2/assume.h(34): warning #193: zero used for undefined preprocessing identifier "HAVE_BUILTIN___BUILTIN_EXPECT" #if RBIMPL_HAS_BUILTIN(__builtin_expect) ... ```
* Workaround for gcc-4 bugNobuyoshi Nakada2021-05-051-1/+12
| | | | False positive `-Wundef` in `#elif` after `#if defined`.
* `_MSC_VER` may not be definedxtkoba2021-05-041-1/+1
|
* Fix compilation error in thread_win32.cPeter Zhu2021-05-041-5/+5
| | | | USE_WIN32_MUTEX flag may not be defined.
* Fix compilation errors in FreeBSDPeter Zhu2021-05-041-2/+2
| | | | __FreeBSD_version is defined in sys/param.h.
* Fix compilation error in mingwPeter Zhu2021-05-041-2/+9
| | | | __LITTLE_ENDIAN is not defined.
* Fix compilation errors for c99Peter Zhu2021-05-041-1/+1
| | | | ENUM_OVER_INT is sometimes not defined. Use #ifdef instead if #if.
* test/net/ftp/test_ftp.rb - fix intermittent MinGW failureMSP-Greg2021-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | Fixes intermittent error as below: [242/838] 5316=test_ftp #<Thread:0x0000020aa8733f20 D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2532 run> terminated with exception (report_on_exception is true): D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:199:in `assert': Expected #<Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.> to be nil. (MiniTest::Assertion) from D:/a/ruby/ruby/src/tool/lib/test/unit/core_assertions.rb:504:in `assert' from D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:299:in `assert_nil' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:430:in `ensure in block in test_list_read_timeout_exceeded' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:431:in `block in test_list_read_timeout_exceeded' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server' D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `write': An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET) from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `print' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `block (2 levels) in test_list_read_timeout_exceeded' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each_with_index' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `block in test_list_read_timeout_exceeded' from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server'
* What's Here for class IO (#4440)Burdette Lamar2021-05-041-0/+149
| | | | * What's Here for class IO
* Fix documentation for IO#unget{byte,c}Jeremy Evans2021-05-041-9/+44
| | | | Fixes [Bug #14400]
* * 2021-05-05 [ci skip]git2021-05-051-1/+1
|
* Correctly update array capacity after reallocPeter Zhu2021-05-041-5/+10
| | | | | | | | | Reallocating to a smaller size in the transient heap may result in no change in the actual capacity but the capacity of the array is still updated to the smaller value. This commit changes `ary_heap_realloc` to return the new capacity which can be used by the caller to correctly update the capacity.
* Fix -Wundef warnings for RBIMPL_HAS_BUILTINBenoit Daloze2021-05-041-0/+15
| | | | | | | | | | | | * See [Feature #17752] * Defining explicitly to 0 seems the best solution, see https://github.com/ruby/ruby/pull/4428 * For example: ./include/ruby/internal/has/builtin.h:49:33: error: "RBIMPL_HAS_BUILTIN___builtin_assume" is not defined, evaluates to 0 [-Werror=undef] 49 | # define RBIMPL_HAS_BUILTIN(_) (RBIMPL_HAS_BUILTIN_ ## _) | ^~~~~~~~~~~~~~~~~~~ ./include/ruby/internal/assume.h:75:7: note: in expansion of macro ‘RBIMPL_HAS_BUILTIN’ 75 | #elif RBIMPL_HAS_BUILTIN(__builtin_assume) | ^~~~~~~~~~~~~~~~~~
* HAVE_* macros should not be defined with value 0Benoit Daloze2021-05-042-5/+1
| | | | * See [Feature #17752]
* Fix -Wundef warnings for patterns `#if HAVE`Benoit Daloze2021-05-049-14/+14
| | | | | | * See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
* Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFEBenoit Daloze2021-05-044-4/+4
| | | | * See [Feature #17752]
* Fix -Wundef warnings in core extensionsBenoit Daloze2021-05-042-3/+3
| | | | * See [Feature #17752]
* Add RBIMPL_RVALUE_EMBED_LEN_MAX neeeded by internal/bignum.hBenoit Daloze2021-05-042-4/+5
| | | | | | | * It evaluated to 0 before, revealed by -Wundef * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Fix trivial -Wundef warningsBenoit Daloze2021-05-0416-19/+21
| | | | | | * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Fix -Wundef warnings in coroutine/*/Context.hBenoit Daloze2021-05-042-0/+6
| | | | | | * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* vm_dump.c: rename HAVE_BACKTRACE to USE_BACKTRACEBenoit Daloze2021-05-041-7/+8
| | | | | | | * HAVE_ macros should only be defined or undefined, not used for their value. * See [Feature #17752] Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
* Add -Werror=undef to default warnflags for coreBenoit Daloze2021-05-041-0/+1
| | | | | | * See [Feature #17752] * For external extensions it's transformed to just warn and not error (-Wundef) like other other -Werror in warnflags.
* test/net/imap/test_imap.rb: wait a moment before socket is closedYusuke Endoh2021-05-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | to try to suppress a failure on Solaris. This is the same as 19504d115dc09558255fcb5213f80dd8454ab189 http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20210504T070007Z.fail.html.gz ``` 1) Error: IMAPTest#test_idle_done_not_during_idle: Errno::EINVAL: Invalid argument - connect(2) for [::1]:33839 /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:1214:in `__connect_nonblock' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:1214:in `connect_nonblock' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:56:in `connect_internal' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:137:in `connect' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:642:in `block in tcp' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:227:in `each' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:227:in `foreach' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/.ext/common/socket.rb:632:in `tcp' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/lib/net/imap.rb:1223:in `tcp_socket' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/lib/net/imap.rb:1180:in `initialize' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/test/net/imap/test_imap.rb:289:in `new' /export/home/chkbuild/chkbuild-sunc/tmp/build/20210504T070007Z/ruby/test/net/imap/test_imap.rb:289:in `test_idle_done_not_during_idle' ```
* Suppress maybe-uninitialized warning by mingw gcc 11Nobuyoshi Nakada2021-05-041-1/+12
|
* spec/ruby/library/net/http/http/fixtures/http_server.rb host naming for WindowsMSP-Greg2021-05-041-1/+1
|
* Fix test/net/http/test_https.rb host naming for WindowsMSP-Greg2021-05-041-43/+25
|
* Eagerly allocate instance variable tables along with objectAaron Patterson2021-05-033-15/+63
| | | | | | | | This allows us to allocate the right size for the object in advance, meaning that we don't have to pay the cost of ivar table extension later. The idea is that if an object type ever became "extended" at some point, then it is very likely it will become extended again. So we may as well allocate the ivar table up front.
* * 2021-05-04 [ci skip]git2021-05-041-1/+1
|
* Workaround failures on WindowsNobuyoshi Nakada2021-05-041-0/+2
|
* * 2021-05-03 [ci skip]git2021-05-031-1/+1
|
* Get rid of misleading indentationxtkoba2021-05-031-1/+2
|
* Adjust struct member offset for i386 Cygwinxtkoba2021-05-011-0/+8
| | | Fixes [Bug #17606]
* Fix example for custom warn methodAdam Daniels2021-04-301-1/+1
| | | | | | Regexp has a match? method. [ci skip]
* * 2021-05-01 [ci skip]git2021-05-011-2/+2
|
* Correct documentation example on Hash#digNick Kelley2021-04-301-1/+1
| | | | | | | | | | Fixes [Misc #17842]. The current documentation suggests that: {foo: {bar: {baz: 2}}}.dig(:foo, :bar) # => {:bar=>{:baz=>2}} when it should be: {foo: {bar: {baz: 2}}}.dig(:foo, :bar) # => {:baz=>2}
* Silence GCC 11 warningsxtkoba2021-04-301-2/+2
| | | | | | | | | | | ``` ../strftime.c: In function 'rb_strftime_with_timespec': ../strftime.c:392:39: warning: comparison is always false due to limited range of data type [-Wtype-limits] 392 | if (vtm->wday < 0 || vtm->wday > 6) | ^ ../strftime.c:403:39: warning: comparison is always false due to limited range of data type [-Wtype-limits] 403 | if (vtm->wday < 0 || vtm->wday > 6) | ^ ```
* [ruby/irb] Need reline >= 0.1.6ima1zumi2021-04-301-1/+1
| | | | | | | | | irb 1.3.5 need reline >= 0.1.6 because irb use `Reline::IOGate.in_pasting?`. This method defined after reline 0.1.6. fix #228. https://github.com/ruby/irb/commit/6b7b8fc324