1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Jeremy Evans 2e551356a7 Make Kernel#{Pathname,BigDecimal,Complex} return argument if given correct type
This is how Kernel#{Array,String,Float,Integer,Hash,Rational} work.
BigDecimal and Complex instances are always frozen, so this should
not cause backwards compatibility issues for those.  Pathname
instances are not frozen, so potentially this could cause backwards
compatibility issues by not returning a new object.

Based on a patch from Joshua Ballanco, some minor changes by me.

Fixes [Bug #7522]
2019-09-21 16:10:37 -07:00
..
-test- Fix for explicit cast without RUBY_METHOD_FUNC 2019-09-20 19:12:36 +09:00
bigdecimal Make Kernel#{Pathname,BigDecimal,Complex} return argument if given correct type 2019-09-21 16:10:37 -07:00
cgi/escape Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
continuation Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
coverage Split RUBY_ASSERT and so on under include/ruby 2019-07-14 17:45:21 +09:00
date date_parse.c: trim off 2019-08-12 20:41:11 +09:00
dbm Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
digest Check metadata a bit more 2019-08-23 13:00:17 +09:00
etc drop-in type check for rb_define_module_function 2019-08-29 18:34:09 +09:00
fcntl Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
fiber
fiddle Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
gdbm Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
io [ruby/io-console] Added intr: option to IO#raw 2019-09-14 23:27:53 +09:00
json Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
nkf Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
objspace Rename NODE_ARRAY to NODE_LIST to reflect its actual use cases 2019-09-07 13:56:29 +09:00
openssl drop-in type check for rb_define_module_function 2019-08-29 18:34:09 +09:00
pathname Make Kernel#{Pathname,BigDecimal,Complex} return argument if given correct type 2019-09-21 16:10:37 -07:00
psych ext/psych/yaml/api.c: Suppress a "variable set but not used" warning 2019-08-24 20:31:16 +09:00
pty rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
racc/cparse rb_catch now free from ANYARGS 2019-08-27 15:52:26 +09:00
rbconfig/sizeof Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
readline drop-in type check for rb_define_singleton_method 2019-08-29 18:34:09 +09:00
ripper [DOC] Update output of Ripper.sexp [ci skip] 2019-09-07 13:50:05 +09:00
rubyvm Added depend files 2019-07-14 01:31:29 +09:00
sdbm Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
socket Support timeout for Addrinfo 2019-09-10 10:10:59 +09:00
stringio [ruby/stringio] Fixed a typo 2019-08-23 20:52:53 +09:00
strscan Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
syslog Remove documentation of %m in Syslog 2019-08-05 16:10:25 -07:00
win32 Include ruby/assert.h in ruby/ruby.h so that assertions can be there 2019-07-14 17:58:03 +09:00
win32ole Fix call-seq of OpenSSL.fips_mode and WIN32OLE_METHOD#name [ci skip] 2018-11-01 07:25:50 +00:00
zlib rb_ensure now free from ANYARGS 2019-08-27 15:52:26 +09:00
.document
extmk.rb Revert "DEBUG: dump mkmf.log" 2019-09-19 20:57:57 +09:00
Setup
Setup.atheos
Setup.nt