aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/io-console] Added `intr:` option to IO#rawNobuyoshi Nakada2019-09-141-1/+24
| | | | | | Enters raw-mode but enable interrupts. https://github.com/ruby/io-console/commit/7cba76561a
* [ruby/io-console] Suppress yet another warning on WindowsNobuyoshi Nakada2019-09-101-1/+1
| | | | https://github.com/ruby/io-console/commit/4e17c90788
* [ruby/io-console] Suppress warnings on WindowsNobuyoshi Nakada2019-09-101-3/+4
| | | | | | About unused variables and a function. https://github.com/ruby/io-console/commit/32baf54e7a
* Support timeout for AddrinfoMasaki Matsushita2019-09-103-13/+145
| | | | | | | | | | | | Addrinfo.getaddrinfo and .foreach now accepts :timeout in seconds as a keyword argument. If getaddrinfo_a(3) is available, the timeout will be applied for name resolution. Otherwise, it will be ignored. Socket.tcp accepts :resolv_timeout to use this feature. This commit is retry of 6382f5cc91ac9e36776bc854632d9a1237250da7. Test was failed on Solaris machines which don't have "http" in /etc/services. In this commit, use "ssh" instead.
* [ruby/io-console] Added IO#check_winsize_changed on WindowsNobuyoshi Nakada2019-09-101-0/+25
| | | | https://github.com/ruby/io-console/commit/ee648fa8bb
* [ruby/io-console] Added scroll methodsNobuyoshi Nakada2019-09-101-0/+57
| | | | https://github.com/ruby/io-console/commit/83e70de8ab
* [ruby/io-console] Added line/screen erase methodsNobuyoshi Nakada2019-09-101-0/+115
| | | | https://github.com/ruby/io-console/commit/e6344108a1
* [ruby/io-console] Added IO#goto_columnNobuyoshi Nakada2019-09-101-0/+27
| | | | https://github.com/ruby/io-console/commit/143a9d5764
* [ruby/io-console] Added relative cursor move methodsNobuyoshi Nakada2019-09-101-0/+70
| | | | https://github.com/ruby/io-console/commit/21d340e4a2
* [ruby/io-console] Added IO#goto and IO#cursor= for VTNobuyoshi Nakada2019-09-101-10/+15
| | | | https://github.com/ruby/io-console/commit/7f2b1b473d
* [ruby/io-console] Added IO#cursor for VTNobuyoshi Nakada2019-09-101-1/+18
| | | | https://github.com/ruby/io-console/commit/41a6a6cace
* [ruby/io-console] Added console_vt_responseNobuyoshi Nakada2019-09-101-13/+83
| | | | | | A function to query console info. https://github.com/ruby/io-console/commit/db75a07fa3
* [ruby/io-console] Drop fat gem supportNobuyoshi Nakada2019-09-101-1/+0
| | | | https://github.com/ruby/io-console/commit/972ceb081d
* add minimaist C++ check卜部昌平2019-09-091-2/+41
| | | | | | | | | | This is a test extension so we basically want test failures rather than a configure breakage but if there is no C++ compiler, we need no test at all because there will be no chance for the tested header file to be used later. This makes it possible to build the ruby binary without any C++ compiler installed in a build environment.
* static member variables must explictly be initialized卜部昌平2019-09-091-0/+2
| | | | | | These variables then get their room for storage. See also https://github.com/ruby/ruby/runs/214042030
* Revert "save committers' weekend from CI failures"卜部昌平2019-09-093-0/+378
| | | | This reverts commit 53d21087da078cf999cc4757b03b2ff0fab4c2cf.
* Revert "Support timeout for Addrinfo"Masaki Matsushita2019-09-093-145/+13
| | | | | This reverts commit 6382f5cc91ac9e36776bc854632d9a1237250da7. test failed on Solaris.
* Support timeout for AddrinfoMasaki Matsushita2019-09-093-13/+145
| | | | | | | | Addrinfo.getaddrinfo and .foreach now accepts :timeout in seconds as a keyword argument. If getaddrinfo_a(3) is available, the timeout will be applied for name resolution. Otherwise, it will be ignored. Socket.tcp accepts :resolv_timeout to use this feature.
* Rename NODE_ARRAY to NODE_LIST to reflect its actual use casesYusuke Endoh2019-09-071-2/+2
| | | | | | | | | | and NODE_ZARRAY to NODE_ZLIST. NODE_ARRAY is used not only by an Array literal, but also the contents of Hash literals, method call arguments, dynamic string literals, etc. In addition, the structure of NODE_ARRAY is a linked list, not an array. This is very confusing, so I believe `NODE_LIST` is a better name.
* [DOC] Update output of Ripper.sexp [ci skip]Kazuhiro NISHIYAMA2019-09-071-1/+1
|
* save committers' weekend from CI failures卜部昌平2019-09-063-378/+0
| | | | Kill the failing tests.
* avoid name mangling卜部昌平2019-09-061-1/+1
| | | | | Otherwise the dynamic linker cannot find this function. See also https://ci.appveyor.com/project/ruby/ruby/builds/27224231/job/4pg6lxlsnsjotu2l
* nullptr is a C++11ism.卜部昌平2019-09-061-2/+3
| | | | | Should use numeric 0 for maximum portability. See also https://travis-ci.org/ruby/ruby/jobs/581543798
* fix Visual Studio compilation error卜部昌平2019-09-061-1/+1
| | | | See also https://github.com/ruby/ruby/runs/213964487
* add test for cxxanyargs.hpp卜部昌平2019-09-063-0/+377
|
* drop-in type check for rb_define_singleton_method卜部昌平2019-08-293-11/+11
| | | | | | We can check the function pointer passed to rb_define_singleton_method like how we do so in rb_define_method. Doing so revealed many arity mismatches.
* drop-in type check for rb_define_module_function卜部昌平2019-08-292-2/+2
| | | | | | We can check the function pointer passed to rb_define_module_function like how we do so in rb_define_method. The difference is that this changeset reveales lots of atiry mismatches.
* fix arity of bug_start卜部昌平2019-08-291-1/+1
| | | | | This is just a trivial mistake introduced in 0f36e8fc03a5c6433972d6bb5f177d5f6e106bac.
* Revert "Add pipeline operator [Feature #15799]"Nobuyoshi Nakada2019-08-291-1/+0
| | | | | | | | | | | | | This reverts commits: * d365fd5a024254d7c105a62a015a7ea29ccf3e5d * d780c3662484d6072b3a6945b840049de72c2096 * aa7211836b769231a2a8ef6b6ec2fd0ec882ef29 * 043f010c28e82ea38978bf8ed885416f133b5b75 * bb4dd7c6af05c7821d572e2592ea3d0cc748d81f * 043f010c28e82ea38978bf8ed885416f133b5b75 * f169043d81524b5b529f2c1e9c35437ba5bc3a7a http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645
* st_foreach now free from ANYARGS卜部昌平2019-08-273-5/+4
| | | | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from st_foreach. I strongly believe that this commit should have had come with b0af0592fdd9e9d4e4b863fde006d67ccefeac21, which added extra parameter to st_foreach callbacks.
* rb_catch now free from ANYARGS卜部昌平2019-08-271-2/+2
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_catch, and fixes some bugs revealed by that.
* rb_ensure now free from ANYARGS卜部昌平2019-08-277-16/+30
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_ensure, which also revealed many arity / type mismatches.
* rb_rescue / rb_rescue2 now free from ANYARGS卜部昌平2019-08-271-4/+2
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_rescue / rb_rescue2, which revealed many arity / type mismatches.
* rb_iterate now takes rb_block_call_func_t卜部昌平2019-08-271-1/+1
| | | | | | After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit makes rb_iterate free from ANYARGS.
* ext/psych/yaml/api.c: Suppress a "variable set but not used" warningYusuke Endoh2019-08-241-1/+3
| | | | | | | | | | | ``` compiling ../.././ext/psych/yaml/api.c ../.././ext/psych/yaml/api.c: In function 'yaml_document_delete': ../.././ext/psych/yaml/api.c:1122:7: warning: variable 'context' set but not used [-Wunused-but-set-variable] } context; ^~~~~~~ ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20190824T093004Z.log.html.gz
* [ruby/stringio] Fixed a typoNobuyoshi Nakada2019-08-231-1/+1
| | | | | | https://github.com/ruby/stringio/commit/b249631c433f800c979be2705bf63555075db2fc#commitcomment-34804150 https://github.com/ruby/stringio/commit/998d6257fb
* Check metadata a bit moreNobuyoshi Nakada2019-08-231-0/+12
|
* Hoisted out get_digest_obj_metadataNobuyoshi Nakada2019-08-231-7/+13
|
* Hoisted out rb_id_metadataNobuyoshi Nakada2019-08-223-4/+8
|
* Hoisted out rb_digest_namespaceNobuyoshi Nakada2019-08-225-12/+11
|
* Separated initializing IDsNobuyoshi Nakada2019-08-211-2/+6
|
* Hoisted out unixsocket_len, triming NUL chars from sun_pathNobuyoshi Nakada2019-08-161-29/+30
|
* [ruby/stringio] Supported BOMNobuyoshi Nakada2019-08-141-0/+81
| | | | https://github.com/ruby/stringio/commit/b249631c43
* [ruby/stringio] Supported `mode:` optionNobuyoshi Nakada2019-08-141-1/+20
| | | | https://github.com/ruby/stringio/commit/53def32ba0
* [ruby/stringio] Allow bignum modeNobuyoshi Nakada2019-08-141-2/+3
| | | | https://github.com/ruby/stringio/commit/d28927b561
* [ruby/stringio] Added support for older versionsNobuyoshi Nakada2019-08-142-0/+56
| | | | | https://github.com/ruby/stringio/commit/c4a13d41cd https://github.com/ruby/stringio/commit/359c9f395c
* [ruby/stringio] stringio: encoding supportNobuyoshi Nakada2019-08-141-27/+20
| | | | https://github.com/ruby/stringio/commit/7b20075ab0
* date_parse.c: trim offNobuyoshi Nakada2019-08-123-13/+10
| | | | | * ext/date/date_parse.c (date_zone_to_diff): trim off by zone name length.
* date_parse.c: avoid copyingNobuyoshi Nakada2019-08-123-51/+120
| | | | | * ext/date/date_parse.c (date_zone_to_diff): get rid of copying the whole argument string.
* Warn instance variable `E`Nobuyoshi Nakada2019-08-101-3/+12
| | | | It is not dumped, as it is a short alias for `:encoding`.