Граф коммитов

62887 Коммитов

Автор SHA1 Сообщение Дата
卜部昌平 2c96e04868 configure.ac: use compiler-provided toolchains
These days as link-time optimisations spread accross compilers, they
tend to ship their own version of ld, ar, etc.  Why not detect such
things if any.  Users can select compilers by ./configure --with-gcc=
whatever, or select individual tool by e.g. ./configure NM=whatever.

The added AC_ARG_VAR macros enrich ./configure --help output.
2020-08-21 11:04:54 +09:00
卜部昌平 8b022da518 HAVE_STMT_AND_DECL_IN_EXPR: not for Sun C++
Because we check HAVE_STMT_AND_DECL_IN_EXPR in configure, it is peoven
to work in C.  But C++ situation can be different.  Oracle Developer
Studio is another example of such things.
2020-08-21 11:04:54 +09:00
卜部昌平 80b316212a ext/-test-/cxxanyargs: suppress SunPro warning
I found a way to suppress particular kind of warnings via pragmas.
2020-08-21 11:04:54 +09:00
卜部昌平 01826b3fda RBIMPL_HAS_CPP_ATTRIBUTE: handle SunPro
Oracle Developer Studio's C++ preprocessor started to understand
__has_cpp_attribute since version 12.5, and is broken.  After looking
around for a while I found Boost and ICU also had this issue before.
Let me add workaround for it.
2020-08-21 11:04:54 +09:00
Burdette Lamar b6c7b94b1c
Remove nil-return examples from array.c (#3437) 2020-08-20 20:40:26 -05:00
git 6ba038af31 * 2020-08-21 [ci skip] 2020-08-21 02:10:09 +09:00
Burdette Lamar 51525557fd
Partial compliance with doc/method_documentation.rdoc in string.c (#3436)
Removes references to *-convertible thingies.
2020-08-20 12:09:49 -05:00
Burdette Lamar 1d1e36fab6
Partial compliance with doc/method_documentation.rdoc in hash.c (#3432)
Removes references to *-convertible thingies.
2020-08-20 07:34:24 -05:00
Hiroshi SHIBATA dfda2f739b
Promote find to default gems 2020-08-20 21:00:53 +09:00
aycabta 6509652c13 Skip irb/test_history on Windows too 2020-08-20 13:24:55 +09:00
Hiroshi SHIBATA 8a40e9b5a2
Promote set to default gems 2020-08-20 12:39:11 +09:00
Marc-Andre Lafortune eae7aef020 [DOC] Improve Hash's doc for missing keys 2020-08-19 19:32:15 -04:00
Marc-Andre Lafortune a586ccf21f [DOC] Improve and simplify key egality documentation for Hash 2020-08-19 19:32:15 -04:00
Burdette Lamar 63d213eb13
Partial compliance with doc/method_documentation.rdoc (#3431)
Removes references to *-convertible thingies.
2020-08-19 16:26:40 -05:00
Jean Boussier a74df67244 Fix ObjectSpace.trace_object_allocations_stop to not raise if the tracepoint were not initialized 2020-08-19 08:13:09 -07:00
git 7d01d8811b * 2020-08-20 [ci skip] 2020-08-20 00:09:19 +09:00
Jean Boussier aaf0e33c0a register_fstring: avoid duping the passed string when possible
If the passed string is frozen, bare and not shared, then there
is no need to duplicate it.

Ref: 4ab69ebbd7
Ref: https://bugs.ruby-lang.org/issues/11386
2020-08-19 08:08:56 -07:00
Hiroshi SHIBATA 7f0ea20581
Added did_you_mean entry because did_you_mean uses MIT license 2020-08-19 19:36:16 +09:00
Hiroshi SHIBATA 5b04e2362c
[ruby/racc] Fixed the licenses field of gemspec
https://github.com/ruby/racc/commit/a1aeecff03
2020-08-19 19:35:04 +09:00
aycabta f81811fc2f Skip Editline for history tests of IRB
Because Editline erases all histories in Readline::HISTORY when
Readline.readline is called.
2020-08-19 19:15:21 +09:00
卜部昌平 8cc5f74ffc RHASH_EMPTY_P: convert into an inline function 2020-08-19 15:10:53 +09:00
卜部昌平 99093e1600 RHASH_TBL: is now ext-only
It seems almost no internal codes use RHASH_TBL any longer.  Why not
just eliminate it entirely, so that the macro can be purely ext-only.
2020-08-19 15:10:53 +09:00
卜部昌平 d2eeb83634 tool/update-deps -fix 2020-08-19 14:30:57 +09:00
卜部昌平 6649677eb9 ROBJECT_IV_INDEX_TBL: convert into an inline function
Former ROBJECT_IV_INDEX_TBL macro included RCLASS_IV_INDEX_TBL, which is
not disclosed to extension libraies.  The macro was kind of broken.  Why
not just deprecate it, and convert the internal use into an inline
function.
2020-08-19 14:30:57 +09:00
aycabta e2c2283a80 Skip irb/test_history on Solaris 2020-08-19 13:03:32 +09:00
Aaron Patterson 7226f76255
Reset object allocation trace information
Compaction makes collisions in the weak map more likely.  For now, clear
the tracing information before the test run so we get accurate results
2020-08-18 19:57:45 -07:00
aycabta e939a5c29f Use "in" and "out" options of "system" instead of "replace_stdio" 2020-08-19 11:18:50 +09:00
Aaron Patterson 7a58ee9b96 Update references when tracing allocations
The allocation tracing code keeps essentially a weak reference to
objects that have been allocated (storing the allocation information
along with the weak ref).  Compacting the heap would break references in
this weak map, so the wrong values could be returned.

This commit just updates the values in the weak ref in order to fix the
allocation tracing book keeping
2020-08-18 19:10:51 -07:00
git 371c051ca8 * 2020-08-19 [ci skip] 2020-08-19 09:46:14 +09:00
aycabta ca6868a430 Do "write" to temp stdin before "reopen" 2020-08-19 09:42:34 +09:00
Yusuke Endoh bed6b7206a test/irb/test_history.rb: prevent warnings
```
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:16:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:34:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:57:
warning: assigned but unused variable - result_output
/home/chkbuild/chkbuild/tmp/build/20200818T123003Z/ruby/test/irb/test_history.rb:80:
warning: assigned but unused variable - result_output
```
2020-08-18 23:32:46 +09:00
aycabta 6767a9ef2b Lounch external process on Windows correctly 2020-08-18 21:43:19 +09:00
Hiroshi SHIBATA d3b2c1a175
Fixed the invalid SPDX identifier on gemspec 2020-08-18 20:26:40 +09:00
Hiroshi SHIBATA 8fb02b7a97
Update the license for the default gems to dual licenses 2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA 0bb8bd7623
Added the missing licenses field to some default gems 2020-08-18 20:26:39 +09:00
Hiroshi SHIBATA a114869905
Fixed the attribute name for multiple licenses. 2020-08-18 20:26:39 +09:00
Nobuyoshi Nakada 4f697bcf73
Strip trailing spaces [ci skip] 2020-08-18 20:10:34 +09:00
aycabta 01b6c520f5 [ruby/irb] Change the way the IRB is invoked as an external process
https://github.com/ruby/irb/commit/f4bcdf4375
2020-08-18 20:06:52 +09:00
aycabta 172d44e809 [ruby/reline] Add require 'rbconfig' to use RbConfig
https://github.com/ruby/reline/commit/4a0d32a3d0
2020-08-18 19:10:09 +09:00
Nobuyoshi Nakada f2435c1508 [ruby/reline] Get rid of loading pathname unnecessarily
https://github.com/ruby/reline/commit/9bd54b7f1c
2020-08-18 19:09:58 +09:00
Maciej Mensfeld d1b06229fa [ruby/reline] Use the standard SPDX ID for license in gemspec
It is better to use SPDX ID for license field:

https://guides.rubygems.org/specification-reference/#license=

ref: https://spdx.org/licenses/Ruby.html
https://github.com/ruby/reline/commit/8468a727e5
2020-08-18 19:09:43 +09:00
aycabta ad24eaabfd [ruby/reline] Remove duplicated line of code
Co-authored-by: Quentin Sabah <quentin.sabah@gmail.com>

https://github.com/ruby/reline/commit/5526e9f7ee
2020-08-18 19:08:50 +09:00
aycabta 80a7358cfc [ruby/reline] Keep original characters in inputrc
https://github.com/ruby/reline/commit/96583c6336
2020-08-18 19:08:40 +09:00
Mark Delk 44b24ab4c1 [ruby/reline] Support mode icon
Co-authored-by: aycabta <aycabta@gmail.com>

https://github.com/ruby/reline/commit/067b618123
2020-08-18 19:08:32 +09:00
aycabta 0bc748db36 [ruby/reline] Call #start_terminal after generating temporary inputrc
because inputrc will be read when starting up

https://github.com/ruby/reline/commit/0a30464385
2020-08-18 19:08:21 +09:00
aycabta 568615d395 [ruby/reline] Use single quotes for non-expanded string literals
https://github.com/ruby/reline/commit/3bf7c7d722
2020-08-18 19:08:11 +09:00
aycabta f0e6ecec65 [ruby/reline] Use temporary dir with yamatanooroti test
https://github.com/ruby/reline/commit/8d7df88e98
2020-08-18 19:07:57 +09:00
aycabta 215fe54777 [ruby/reline] Check Errno::EIO
Catch Errno::EIO what will be occurred if the console terminates I/O before
Reline finishes rendering.

https://github.com/ruby/reline/commit/e51eaa6d43
2020-08-18 19:04:31 +09:00
Tomás Pollak f0d3d4fedb [ruby/reline] Add home/end mapping for urxvt and relatives
https://github.com/ruby/reline/commit/c30b293f1c
2020-08-18 19:03:27 +09:00
aycabta a30dea5852 [ruby/irb] Support shortening lambda notetion for nesting level of prompt
https://github.com/ruby/irb/commit/f1a775af47
2020-08-18 14:38:02 +09:00