2016-05-28 06:08:37 -04:00
|
|
|
Sat May 28 19:08:36 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_comprehensive.rb: Add error messages to tests
|
|
|
|
for data file availability; refactoring.
|
|
|
|
|
openssl: move SSLSocket#initialize to C extension
* ext/openssl/lib/openssl/ssl.rb (SSLSocket): Move the implementation of
SSLSocket#initialize to C. Initialize the SSL (OpenSSL object) in it.
Currently this is delayed until ossl_ssl_setup(), which is called from
SSLSocket#accept or #connect. Say we call SSLSocket#hostname= with an
illegal value. We expect an exception to be raised in #hostname= but
actually we get it in the later SSLSocket#connect. Because the SSL is
not ready at #hostname=, the actual call of SSL_set_tlsext_host_name()
is also delayed.
This also fixes: [ruby-dev:49376] [Bug #11724]
* ext/openssl/ossl_ssl.c (ossl_ssl_initialize): Added. Almost the same
as the Ruby version but this instantiate the SSL object at the same
time.
(ossl_ssl_setup): Adjust to the changes. Just set the underlying IO to
the SSL.
(ssl_started): Added. Make use of SSL_get_fd(). This returns -1 if not
yet set by SSL_set_fd().
(ossl_ssl_data_get_struct): Removed. Now GetSSL() checks that the SSL
exists.
(ossl_ssl_set_session): Don't call ossl_ssl_setup() here as now the
SSL is already instantiated in #initialize.
(ossl_ssl_shutdown, ossl_start_ssl, ossl_ssl_read_internal,
ossl_ssl_write_internal, ossl_ssl_stop, ossl_ssl_get_cert,
ossl_ssl_get_peer_cert, ossl_ssl_get_peer_cert_chain,
ossl_ssl_get_version, ossl_ssl_get_cipher, ossl_ssl_get_state,
ossl_ssl_pending, ossl_ssl_session_reused,
ossl_ssl_get_verify_result, ossl_ssl_get_client_ca_list,
ossl_ssl_npn_protocol, ossl_ssl_alpn_protocol, ossl_ssl_tmp_key): Use
GetSSL() instead of ossl_ssl_data_get_struct(). Use ssl_started().
(Init_ossl_ssl): Add method declarations of SSLSocket#{initialize,
hostname=}.
* ext/openssl/ossl_ssl.h (GetSSL): Check that the SSL is not NULL. It
should not be NULL because we now set it in #initialize.
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize): No need
to check if the SSL is NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-28 01:00:36 -04:00
|
|
|
Sat May 28 14:00:10 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/lib/openssl/ssl.rb (SSLSocket): Move the implementation of
|
|
|
|
SSLSocket#initialize to C. Initialize the SSL (OpenSSL object) in it.
|
|
|
|
Currently this is delayed until ossl_ssl_setup(), which is called from
|
|
|
|
SSLSocket#accept or #connect. Say we call SSLSocket#hostname= with an
|
|
|
|
illegal value. We expect an exception to be raised in #hostname= but
|
|
|
|
actually we get it in the later SSLSocket#connect. Because the SSL is
|
|
|
|
not ready at #hostname=, the actual call of SSL_set_tlsext_host_name()
|
|
|
|
is also delayed.
|
|
|
|
This also fixes: [ruby-dev:49376] [Bug #11724]
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_ssl_initialize): Added. Almost the same
|
|
|
|
as the Ruby version but this instantiate the SSL object at the same
|
|
|
|
time.
|
|
|
|
|
|
|
|
(ossl_ssl_setup): Adjust to the changes. Just set the underlying IO to
|
|
|
|
the SSL.
|
|
|
|
|
|
|
|
(ssl_started): Added. Make use of SSL_get_fd(). This returns -1 if not
|
|
|
|
yet set by SSL_set_fd().
|
|
|
|
|
|
|
|
(ossl_ssl_data_get_struct): Removed. Now GetSSL() checks that the SSL
|
|
|
|
exists.
|
|
|
|
|
|
|
|
(ossl_ssl_set_session): Don't call ossl_ssl_setup() here as now the
|
|
|
|
SSL is already instantiated in #initialize.
|
|
|
|
|
|
|
|
(ossl_ssl_shutdown, ossl_start_ssl, ossl_ssl_read_internal,
|
|
|
|
ossl_ssl_write_internal, ossl_ssl_stop, ossl_ssl_get_cert,
|
|
|
|
ossl_ssl_get_peer_cert, ossl_ssl_get_peer_cert_chain,
|
|
|
|
ossl_ssl_get_version, ossl_ssl_get_cipher, ossl_ssl_get_state,
|
|
|
|
ossl_ssl_pending, ossl_ssl_session_reused,
|
|
|
|
ossl_ssl_get_verify_result, ossl_ssl_get_client_ca_list,
|
|
|
|
ossl_ssl_npn_protocol, ossl_ssl_alpn_protocol, ossl_ssl_tmp_key): Use
|
|
|
|
GetSSL() instead of ossl_ssl_data_get_struct(). Use ssl_started().
|
|
|
|
|
|
|
|
(Init_ossl_ssl): Add method declarations of SSLSocket#{initialize,
|
|
|
|
hostname=}.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.h (GetSSL): Check that the SSL is not NULL. It
|
|
|
|
should not be NULL because we now set it in #initialize.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize): No need
|
|
|
|
to check if the SSL is NULL.
|
|
|
|
|
2016-05-27 21:47:44 -04:00
|
|
|
Sat May 28 10:47:40 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* gems/bundled_gems: Update latest releases, power_assert-0.3.0,
|
|
|
|
test-unit 3.1.9, minitest 5.9.0, did_you_mean 1.0.1
|
|
|
|
|
2016-05-27 21:46:27 -04:00
|
|
|
Sat May 28 10:45:40 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
2016-05-28 01:33:52 -04:00
|
|
|
* addr2line.c: drop support for ATARI ST platform. It was
|
|
|
|
discontinued more than two decades ago. [fix GH-1350] Patch by
|
|
|
|
@cremno
|
2016-05-27 21:46:27 -04:00
|
|
|
* include/ruby/ruby.h: ditto.
|
|
|
|
* io.c: ditto.
|
|
|
|
|
2016-05-27 21:39:48 -04:00
|
|
|
Sat May 28 10:39:47 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_comprehensive.rb: Converted exception for
|
|
|
|
unavailable Unicode data files to failed assertion.
|
|
|
|
|
2016-05-27 21:26:21 -04:00
|
|
|
Sat May 28 10:26:18 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
2016-05-28 01:33:52 -04:00
|
|
|
* lib/cgi/util.rb: added missing quote.
|
2016-05-27 21:26:21 -04:00
|
|
|
[fix GH-1363][ci skip] Patch by @dwaller
|
|
|
|
|
2016-05-27 04:38:50 -04:00
|
|
|
Fri May 27 17:38:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* variable.c (rb_local_constants_i): exclude hidden constants.
|
|
|
|
[ruby-core:75575] [Bug #12389]
|
|
|
|
|
2016-05-27 04:09:46 -04:00
|
|
|
Fri May 27 17:09:44 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* transcode.c (str_transcode0): scrub in the given encoding when
|
|
|
|
the source encoding is given, not in the encoding of the
|
|
|
|
receiver. [ruby-core:75732] [Bug #12431]
|
|
|
|
|
2016-05-27 02:07:34 -04:00
|
|
|
Fri May 27 15:07:32 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): remove nul padding which
|
|
|
|
caused syntax error if fmt is not a string literal.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_verify): suppress array-bounds
|
|
|
|
warnings by old clang.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args0): make extractor macros
|
2016-05-27 09:13:08 -04:00
|
|
|
inline functions, which do not validate the format and are
|
2016-05-27 02:07:34 -04:00
|
|
|
unnecessary to be expanded.
|
|
|
|
|
2016-05-26 12:51:49 -04:00
|
|
|
Fri May 27 01:00:36 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* symbol.c (is_identchar): use ISDIGIT instead of rb_enc_isalnum.
|
|
|
|
Though rb_enc_isalnum is encoding aware function, its argument here
|
|
|
|
is *m, which is a single byte. Therefore ISDIGIT is faster.
|
|
|
|
|
|
|
|
* symbol.c (is_special_global_name): ditto.
|
|
|
|
|
|
|
|
* symbol.c (rb_enc_symname_type): ditto.
|
|
|
|
|
2016-05-26 11:39:43 -04:00
|
|
|
Fri May 27 00:39:40 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): add nul padding here to
|
|
|
|
apply to all references.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_verify): move length mismatch
|
|
|
|
check outside conditional operators.
|
|
|
|
|
2016-05-26 01:24:58 -04:00
|
|
|
Thu May 26 14:21:10 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dh.c (ossl_dh_compute_key): Check that the DH
|
|
|
|
has 'p' (the prime) before calling DH_size(). We can create a DH with
|
|
|
|
no parameter but DH_size() does not check and dereferences NULL.
|
|
|
|
[ruby-core:75720] [Bug #12428]
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_sign): Ditto. DSA_size() does
|
|
|
|
not check dsa->q.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_rsa.c (ossl_rsa_public_encrypt,
|
|
|
|
ossl_rsa_public_decrypt, ossl_rsa_private_encrypt,
|
|
|
|
ossl_rsa_private_decrypt): Ditto. RSA_size() does not check rsa->n.
|
|
|
|
|
2016-05-26 01:13:54 -04:00
|
|
|
Thu May 26 14:13:52 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_count): verify length with
|
|
|
|
counting variables together.
|
|
|
|
|
2016-05-25 20:45:44 -04:00
|
|
|
Thu May 26 09:45:41 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_comprehensive.rb: Add set of comprehensive
|
|
|
|
(across most Unicode characters; later across most character encodings)
|
|
|
|
tests for case mapping.
|
|
|
|
|
2016-05-25 16:01:24 -04:00
|
|
|
Thu May 26 05:00:13 2016 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* class.c (rb_define_class): Fix documentation.
|
|
|
|
|
2016-05-25 07:51:37 -04:00
|
|
|
Wed May 25 20:50:12 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (unescape_nonascii): scan hex up to only 3 characters.
|
|
|
|
[Bug #12420] [Bug #12423]
|
|
|
|
|
2016-05-25 06:07:19 -04:00
|
|
|
Wed May 25 19:07:19 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Handle DOTLESS_i by hand because it isn't involved in folding.
|
|
|
|
|
2016-05-25 05:45:22 -04:00
|
|
|
Wed May 25 18:30:53 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* regparse.c (fetch_token_in_cc): raise error if given octal escaped
|
|
|
|
character is too big. [Bug #12420] [Bug #12423]
|
|
|
|
|
2016-05-25 04:50:03 -04:00
|
|
|
Wed May 25 17:45:15 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl, test/openssl: Drop OpenSSL < 0.9.8 support.
|
|
|
|
|
2016-05-25 04:46:40 -04:00
|
|
|
Wed May 25 17:43:30 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/openssl_missing.h, ext/openssl/ossl.h: Remove
|
|
|
|
unnecessary 'extern "C"' blocks. We don't use C++ and these headers
|
|
|
|
are local to ext/openssl, so there is no need to enclose with it.
|
|
|
|
|
2016-05-25 04:46:39 -04:00
|
|
|
Wed May 25 17:42:58 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/extconf.rb: Remove check of OPENSSL_FIPS macro. This is
|
|
|
|
unneeded because we can check the macro directly in source code,
|
|
|
|
just as we already do for OPENSSL_NO_* macros.
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c: Replace occurrences of HAVE_OPENSSL_FIPS with
|
|
|
|
OPENSSL_FIPS.
|
|
|
|
|
2016-05-25 04:13:37 -04:00
|
|
|
Wed May 25 17:13:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* class.c (rb_scan_args): merge code for n_trail.
|
|
|
|
|
2016-05-25 04:11:36 -04:00
|
|
|
Wed May 25 17:11:34 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_validate): move failed
|
|
|
|
condition to the terminal. [ruby-core:75714] [Bug #12426]
|
|
|
|
|
2016-05-25 00:21:32 -04:00
|
|
|
Wed May 25 13:13:37 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* regcomp.c: remove condition for debug output because prelude
|
|
|
|
doesn't use regexp now.
|
|
|
|
|
2016-05-25 00:21:31 -04:00
|
|
|
Wed May 25 13:10:30 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* regcomp.c (compile_length_tree): return error code immediately
|
|
|
|
if compile_length_tree raised error [Bug #12418]
|
|
|
|
|
2016-05-24 19:01:39 -04:00
|
|
|
Wed May 25 08:01:39 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Fix flag error for switch from titlecase to lowercase.
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Tests for above error.
|
|
|
|
|
2016-05-24 12:30:15 -04:00
|
|
|
Wed May 25 01:13:55 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c (ec_key_new_from_group): Create a new
|
|
|
|
EC_KEY on given EC group. Extracted from ossl_ec_key_initialize().
|
|
|
|
(ossl_ec_key_s_generate): Added. Create a new EC instance and
|
|
|
|
generate a random private and public key.
|
|
|
|
(ossl_ec_key_initialize): Use ec_key_new_from_group().
|
|
|
|
(Init_ossl_ec): Define the new method EC.generate. This change is
|
|
|
|
for consistency with other PKey types. [ruby-core:45541] [Bug #6567]
|
|
|
|
|
|
|
|
* test/openssl/test_pkey_ec.rb: Test that EC.generate works.
|
|
|
|
|
2016-05-24 12:27:11 -04:00
|
|
|
Wed May 25 00:37:16 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_generate_key): Fix up RDoc.
|
|
|
|
(Init_ossl_ec): Rename EC#generate_key to EC#generate_key!. Make the
|
|
|
|
old name an alias of #generate_key!. This change is for consistency
|
|
|
|
with other PKey types. [ruby-core:45541] [Bug #6567]
|
|
|
|
|
|
|
|
* test/openssl/test_pkey_ec.rb: Use EC#generate_key! instead of
|
|
|
|
EC#generate_key.
|
|
|
|
|
2016-05-24 11:23:06 -04:00
|
|
|
Wed May 25 00:23:05 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_set): check the arity after
|
|
|
|
adjusting argc for an option hash, for optimization in simpler
|
|
|
|
cases.
|
|
|
|
|
2016-05-24 11:21:53 -04:00
|
|
|
Wed May 25 00:21:52 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (XCFLAGS): merge flags only for ruby itself from
|
|
|
|
ruby_cflags.
|
|
|
|
|
2016-05-24 09:09:03 -04:00
|
|
|
Tue May 24 22:04:15 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_cipher.c (ossl_cipher_set_key, ossl_cipher_set_iv):
|
|
|
|
Reject too long values as well as too short ones. Currently they
|
|
|
|
just truncate the input but this would hide bugs and lead to
|
|
|
|
unexpected encryption/decryption results.
|
|
|
|
|
|
|
|
* test/openssl/test_cipher.rb: Test that Cipher#key= and #iv= reject
|
|
|
|
Strings with invalid length.
|
|
|
|
|
2016-05-24 08:39:57 -04:00
|
|
|
Tue May 24 21:32:21 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): Use
|
|
|
|
ASN1_OCTET_STRING_set() instead of M_ASN1_OCTET_STRING_set(). Macros
|
|
|
|
prefixed by "M_" are discouraged to be used from outside OpenSSL
|
|
|
|
library[1].
|
|
|
|
(ossl_x509ext_get_value): Likewise, use ASN1_STRING_print() instead
|
|
|
|
of M_ASN1_OCTET_STRING_print().
|
|
|
|
[1] https://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=CHANGES;h=bf61913d7b01212b4d8b2f3c13d71d645914f67c;hb=b6079a7835f61daa9fb2cbf9addfa86049523933#l878
|
|
|
|
|
|
|
|
* ext/openssl/ossl.h: Include openssl/asn1.h instead of
|
|
|
|
openssl/asn1_mac.h. It just includes openssl/asn1.h and defines some
|
|
|
|
additional "M_" macros.
|
|
|
|
|
2016-05-24 05:52:14 -04:00
|
|
|
Tue May 24 18:52:11 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args_verify): verify the format to
|
|
|
|
scan if no invalid chars and variable argument length matching,
|
|
|
|
at the compile time if possible.
|
|
|
|
|
2016-05-24 04:18:47 -04:00
|
|
|
Tue May 24 17:18:46 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/defines.h (ERRORFUNC, WARNINGFUNC): add fallback
|
|
|
|
definitions.
|
|
|
|
|
2016-05-24 03:49:25 -04:00
|
|
|
Tue May 24 16:37:43 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (ruby_cflags): separate from optflags [Bug #12409]
|
|
|
|
-fexcess-precision=standard and -fp-model precise are set to this now.
|
|
|
|
|
|
|
|
* configure.in (cflags): use ruby_cflags.
|
|
|
|
|
2016-05-24 03:20:55 -04:00
|
|
|
Tue May 24 16:20:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (ERRORFUNC, WARNINGFUNC): __error__ and __warning__
|
|
|
|
attributes take a parenthesized string literal.
|
|
|
|
|
2016-05-23 23:43:59 -04:00
|
|
|
Tue May 24 12:35:56 2016 URABE Shyouhei <shyouhei@ruby-lang.org>
|
|
|
|
|
2016-05-24 10:00:53 -04:00
|
|
|
* common.mk: sort lines, and add missing dependencies suggested
|
2016-05-23 23:43:59 -04:00
|
|
|
by tool/update-deps
|
|
|
|
|
2016-05-23 08:33:39 -04:00
|
|
|
Mon May 23 21:33:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/missing.h (isfinite): move from numeric.c.
|
|
|
|
|
2016-05-23 08:10:38 -04:00
|
|
|
Mon May 23 21:09:06 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
|
|
|
|
variable. ossl_raise() may be called before dOSSL is set. Since
|
|
|
|
global variables default to 0 and the default value of dOSSL set in
|
|
|
|
Init_openssl() is also Qfalse, there is no real issue but confusing.
|
|
|
|
Patch by Bertram Scharpf <software@bertram-scharpf.de>
|
|
|
|
[ruby-core:58264] [Bug #9101]
|
|
|
|
|
2016-05-23 07:40:07 -04:00
|
|
|
Mon May 23 20:32:16 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_asn1.c, ext/openssl/ossl_bn.c,
|
|
|
|
ext/openssl/ossl_cipher.c, ext/openssl/ossl_digest.c
|
|
|
|
ext/openssl/ossl_engine.c, ext/openssl/ossl_ns_spki.c
|
|
|
|
ext/openssl/ossl_pkcs12.c, ext/openssl/ossl_pkcs7.c
|
|
|
|
ext/openssl/ossl_pkey.c, ext/openssl/ossl_pkey_ec.c
|
|
|
|
ext/openssl/ossl_rand.c, ext/openssl/ossl_ssl.c
|
|
|
|
ext/openssl/ossl_x509attr.c, ext/openssl/ossl_x509cert.c
|
|
|
|
ext/openssl/ossl_x509ext.c, ext/openssl/ossl_x509store.c: Use
|
|
|
|
StringValueCStr() where NUL-terminated string is expected.
|
|
|
|
|
2016-05-23 07:21:11 -04:00
|
|
|
Mon May 23 20:20:12 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/bigdecimal/bigdecimal.c (isfinite): get rid of a warning on
|
|
|
|
cygwin. [Bug #12417][ruby-core:75691]
|
|
|
|
|
2016-05-23 06:47:37 -04:00
|
|
|
Mon May 23 19:41:27 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_rand.c (ossl_rand_egd, ossl_rand_egd_bytes):
|
|
|
|
RAND_egd{_bytes,}() return -1 on failure, not 0.
|
|
|
|
Patch by cremno phobia <cremno@mail.ru>
|
|
|
|
[ruby-core:63795] [Bug #10053]
|
|
|
|
(ossl_pseudo_bytes): Similar, RAND_pseudo_bytes() may return 0 or
|
|
|
|
-1 on failure.
|
|
|
|
|
2016-05-23 02:55:48 -04:00
|
|
|
Mon May 23 15:52:07 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/bigdecimal/bigdecimal.c (isfinite): isfinite does not always
|
2016-05-23 06:35:37 -04:00
|
|
|
exist. fixed build error on Windows introduced at r55123.
|
2016-05-23 02:55:48 -04:00
|
|
|
|
2016-05-23 00:19:43 -04:00
|
|
|
Mon May 23 13:19:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args0): make compile error if the
|
|
|
|
format is wrong or does not match with the variable argument
|
|
|
|
length if possible.
|
|
|
|
|
2016-05-22 23:47:11 -04:00
|
|
|
Mon May 23 12:47:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args0): raise fatal error if
|
|
|
|
variable argument length does not match, it is a bug in the code
|
|
|
|
which uses rb_scan_args, not a runtime error.
|
|
|
|
|
2016-05-22 23:30:30 -04:00
|
|
|
Mon May 23 12:30:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): consider
|
|
|
|
non-finite float values not to raise FloatDomainError.
|
|
|
|
[ruby-core:75682] [Bug #12414]
|
|
|
|
|
2016-05-22 23:23:24 -04:00
|
|
|
Mon May 23 12:21:18 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_fill): suppress warnings: 'item' may be used
|
|
|
|
uninitialized in this function
|
|
|
|
|
2016-05-22 19:09:38 -04:00
|
|
|
Mon May 23 07:41:49 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* dir.c (dir_close): update RDoc for 2.3 #close change
|
|
|
|
[ruby-core:75679] [Bug #12413]
|
|
|
|
|
2016-05-22 07:03:43 -04:00
|
|
|
Sun May 22 20:01:21 2016 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|
|
|
|
|
|
|
* lib/drb/timeridconv.rb: use finalizer trick instead of thread.
|
|
|
|
|
|
|
|
* test/drb/ut_timerholder.rb: ditto.
|
|
|
|
|
2016-05-22 04:25:18 -04:00
|
|
|
Sun May 22 17:25:18 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
2016-05-23 09:26:22 -04:00
|
|
|
* test/ruby/enc/test_case_options.rb: adjust test class name
|
2016-05-22 04:25:18 -04:00
|
|
|
to match file name
|
|
|
|
|
2016-05-22 04:24:08 -04:00
|
|
|
Sun May 22 17:24:07 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
2016-05-23 09:26:22 -04:00
|
|
|
* rename test/ruby/enc/test_casing_options.rb to test_case_options.rb
|
2016-05-22 04:24:08 -04:00
|
|
|
for consistency
|
|
|
|
|
2016-05-22 04:06:57 -04:00
|
|
|
Sun May 22 17:06:55 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* transcode.c (enc_arg, str_transcode_enc_args, econv_args):
|
|
|
|
remove volatile, and add GC guards in callers.
|
|
|
|
[ruby-core:75664] [Bug #12411]
|
|
|
|
|
2016-05-22 03:27:02 -04:00
|
|
|
Sun May 22 16:27:00 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/-test-/integer/core_ext.c: move testutil/integer.c.
|
|
|
|
|
|
|
|
* test/lib/-test-/integer.rb: extract implementation details from
|
|
|
|
test/unit/assertions.rb. [Bug #12408]
|
|
|
|
|
* include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
new encoding primitive 'case_map' for case mapping
* enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
add onigenc_unicode_case_map as case_map primitive
* enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
gbk.c, iso_8859_1/2/3/4/5/6/7/8/9/10/11/13/14/15/16.c, koi8_r/u.c,
shift_jis.c, us_ascii.c, windows_1250/1251/1252.c:
add onigenc_not_support_case_map as case_map primitive
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-22 01:57:44 -04:00
|
|
|
Sun May 22 14:57:43 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
2016-05-23 09:26:22 -04:00
|
|
|
* include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
|
* include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
new encoding primitive 'case_map' for case mapping
* enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
add onigenc_unicode_case_map as case_map primitive
* enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
gbk.c, iso_8859_1/2/3/4/5/6/7/8/9/10/11/13/14/15/16.c, koi8_r/u.c,
shift_jis.c, us_ascii.c, windows_1250/1251/1252.c:
add onigenc_not_support_case_map as case_map primitive
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-22 01:57:44 -04:00
|
|
|
new encoding primitive 'case_map' for case mapping
|
|
|
|
|
|
|
|
* enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
|
|
|
|
add onigenc_unicode_case_map as case_map primitive
|
|
|
|
|
|
|
|
* enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
|
|
|
|
gbk.c, iso_8859_1/2/3/4/5/6/7/8/9/10/11/13/14/15/16.c, koi8_r/u.c,
|
|
|
|
shift_jis.c, us_ascii.c, windows_1250/1251/1252.c:
|
|
|
|
add onigenc_not_support_case_map as case_map primitive
|
|
|
|
|
2016-05-22 01:45:45 -04:00
|
|
|
Sun May 22 14:45:45 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
2016-05-23 09:26:22 -04:00
|
|
|
* regenc.h/c: Define new function onigenc_not_support_case_map
|
2016-05-22 01:45:45 -04:00
|
|
|
|
2016-05-21 23:31:22 -04:00
|
|
|
Sun May 22 12:14:06 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): use original rb_scan_args
|
|
|
|
when fmt is dynamic.
|
|
|
|
|
2016-05-21 22:44:54 -04:00
|
|
|
Sun May 22 11:41:12 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* class.c (rb_scan_args): moved to bottom of the file to make the
|
|
|
|
effect of `#undef rb_scan_args` the minimum.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): overwrite only if GCC and
|
|
|
|
optimized. Visual C++ 14 or later can compile it but make it
|
|
|
|
conservative.
|
|
|
|
|
|
|
|
Sat May 21 22:45:50 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): don't use ALWAYS_INLINE with
|
|
|
|
`inline`. if gcc needs this duplication, do in ALWAYS_INLINE macro.
|
|
|
|
|
|
|
|
Sat May 21 21:11:56 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_scan_args): use __VA_ARGS__ instead of
|
|
|
|
va_arg to allow compilers optimize more aggressive.
|
|
|
|
https://gustedt.wordpress.com/2011/07/10/avoid-writing-va_arg-functions/
|
|
|
|
rb_scan_args is now expected to be statically resolved.
|
|
|
|
|
2016-05-21 13:47:52 -04:00
|
|
|
Sun May 22 02:41:52 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/zlib/zlib.c: remove hacky macro introduced at r30437.
|
|
|
|
|
|
|
|
* ext/zlib/zlib.c (gzfile_make_header): cast as long (instead of int).
|
|
|
|
|
|
|
|
* ext/zlib/zlib.c (gzfile_make_footer): ditto.
|
|
|
|
|
2016-05-21 09:24:32 -04:00
|
|
|
Sat May 21 21:07:18 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (ALWAYS_INLINE): force compilers the function inlined.
|
|
|
|
|
2016-05-21 03:25:00 -04:00
|
|
|
Sat May 21 16:16:03 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_ssl_stop): Don't free the SSL struct
|
|
|
|
here. Since some methods such as SSLSocket#connect releases GVL,
|
|
|
|
there is a chance of use after free if we free the SSL from another
|
|
|
|
thread. SSLSocket#stop was documented as "prepares it for another
|
|
|
|
connection" so this is a slightly incompatible change. However when
|
|
|
|
this sentence was added (r30090, Add toplevel documentation for
|
|
|
|
OpenSSL, 2010-12-06), it didn't actually. The current behavior is
|
|
|
|
from r40304 (Correct shutdown behavior w.r.t GC., 2013-04-15).
|
|
|
|
[ruby-core:74978] [Bug #12292]
|
|
|
|
|
|
|
|
* ext/openssl/lib/openssl/ssl.rb (sysclose): Update doc.
|
|
|
|
|
|
|
|
* test/openssl/test_ssl.rb: Test this.
|
|
|
|
|
2016-05-21 01:45:41 -04:00
|
|
|
Sat May 21 14:41:14 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c: [DOC] Fix SSL client example. The variable name
|
|
|
|
was wrong. Patch by Andreas Tiefenthaler <at@an-ti.eu> (@pxlpnk).
|
|
|
|
[GH ruby/openssl#32]
|
|
|
|
|
2016-05-21 01:30:48 -04:00
|
|
|
Sat May 21 14:25:38 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c: rename PKey::EC#private_key? and
|
|
|
|
#public_key? to #private? and #public? for consistency with other
|
|
|
|
PKey types. Old names remain as alias. [ruby-core:45541] [Bug #6567]
|
|
|
|
|
|
|
|
* test/openssl/test_pkey_ec.rb (test_check_key): check private? and
|
|
|
|
public? works correctly.
|
|
|
|
|
2016-05-20 23:44:10 -04:00
|
|
|
Sat May 21 12:40:36 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/lib/openssl/buffering.rb (read_nonblock, readpartial):
|
|
|
|
Remove impossible EOFError raise. Patch by Zach Anker
|
|
|
|
<zanker@squareup.com>. [GH ruby/openssl#23]
|
|
|
|
|
2016-05-20 22:18:44 -04:00
|
|
|
Sat May 21 11:18:42 2016 Evgeni Golov <evgeni@golov.de>
|
|
|
|
|
|
|
|
* lib/ipaddr.rb: [DOC] fix documentation of IN6MASK to mention
|
|
|
|
IPv6. [Fix GH-1349]
|
|
|
|
|
2016-05-20 22:12:55 -04:00
|
|
|
Sat May 21 11:12:53 2016 Dan Martinez <dfm@razorwind.org>
|
|
|
|
|
|
|
|
* io.c (Init_IO): [DOC] define dummy ARGF instead of ARGF.class to
|
|
|
|
re-enable the generation of ARGF documentation. [Fix GH-1358]
|
|
|
|
|
2016-05-20 22:07:31 -04:00
|
|
|
Sat May 21 11:07:29 2016 0x01f7 <souk.0x01f7@gmail.com>
|
|
|
|
|
|
|
|
* doc/syntax/methods.rdoc (Method Names): add proper closing tag.
|
|
|
|
[Fix GH-1356]
|
|
|
|
|
2016-05-20 20:26:31 -04:00
|
|
|
Sat May 21 09:26:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (RUBY_CHECK_SETJMP): fix missing macro definition
|
|
|
|
for the configured result. fix up r55021.
|
|
|
|
|
2016-05-20 11:36:34 -04:00
|
|
|
Sat May 21 00:36:32 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* process.c (rb_execarg_commandline): build command line string
|
|
|
|
from argument vector in rb_execarg.
|
|
|
|
[ruby-core:75611] [Bug #12398]
|
|
|
|
|
2016-05-20 11:05:25 -04:00
|
|
|
Fri May 20 23:25:42 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c (ossl_pem_passwd_value): Added. Convert the
|
|
|
|
argument to String with StringValue() and validate the length is in
|
|
|
|
4..PEM_BUFSIZE. PEM_BUFSIZE is a macro defined in OpenSSL headers.
|
|
|
|
(ossl_pem_passwd_cb): When reading/writing encrypted PEM format, we
|
|
|
|
used to pass the password to PEM_def_callback() directly but it was
|
|
|
|
problematic. It is not NUL character safe. And surprisingly, it
|
|
|
|
silently truncates the password to 1024 bytes. [GH ruby/openssl#51]
|
|
|
|
|
|
|
|
* ext/openssl/ossl.h: Add function prototype declaration of newly
|
|
|
|
added ossl_pem_passwd_value().
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey.c (ossl_pkey_new_from_data): Use
|
|
|
|
ossl_pem_passwd_value() to validate the password String.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize, ossl_dsa_export):
|
|
|
|
ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize,
|
|
|
|
ossl_ec_key_to_string): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize, ossl_rsa_export):
|
|
|
|
ditto.
|
|
|
|
|
|
|
|
* test/openssl/test_pkey_{dsa,ec,rsa}.rb: test this.
|
|
|
|
|
2016-05-20 10:55:23 -04:00
|
|
|
Fri May 20 23:45:53 2016 Naohisa Goto <ngotogenome@gmail.com>
|
|
|
|
|
|
|
|
* id_table.c (list_id_table_init): When unaligned word access is
|
|
|
|
prohibited and sizeof(VALUE) is 8 (64-bit machines),
|
|
|
|
capa should always be even number for 8-byte word alignment
|
|
|
|
of the values of a table. This code assumes that sizeof(ID) is 4,
|
|
|
|
sizeof(VALUE) is 8, and xmalloc() returns 8-byte aligned memory.
|
|
|
|
This fixes bus error on 64-bit SPARC Solaris 10.
|
|
|
|
[Bug #12406][ruby-dev:49631]
|
|
|
|
|
2016-05-20 09:33:10 -04:00
|
|
|
Fri May 20 22:30:09 2016 Naohisa Goto <ngotogenome@gmail.com>
|
|
|
|
|
|
|
|
* symbol.h (rb_id2sym): Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
|
|
|
|
|
2016-05-20 09:21:55 -04:00
|
|
|
Fri May 20 22:19:00 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
|
|
|
* ext/date/date_core.c: [DOC] fix typos.
|
|
|
|
[fix GH-1360] patched by @soundasleep
|
|
|
|
|
Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
macros for skipping __extension__ on non-GCC compilers.
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
__extension__ because __extension__ is a GNU extension.
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
[Bug #12397] [ruby-dev:49629].
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
rb_external_str_new_cstr, rb_locale_str_new_cstr,
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-20 08:29:06 -04:00
|
|
|
Fri May 20 21:26:58 2016 Naohisa Goto <ngotogenome@gmail.com>
|
|
|
|
|
|
|
|
* include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
|
|
|
|
macros for skipping __extension__ on non-GCC compilers.
|
|
|
|
* eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
|
|
|
|
__extension__ because __extension__ is a GNU extension.
|
|
|
|
Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
|
|
|
|
[Bug #12397] [ruby-dev:49629].
|
|
|
|
* internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
|
|
|
|
* include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
|
|
|
|
* include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
|
|
|
|
rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
|
|
|
|
rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
|
|
|
|
rb_external_str_new_cstr, rb_locale_str_new_cstr,
|
|
|
|
rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto
|
|
|
|
|
2016-05-20 08:17:14 -04:00
|
|
|
Fri May 20 21:17:13 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/win32ole/win32ole.c (fole_missing): make substring or dup to
|
|
|
|
share the content if possible.
|
|
|
|
|
2016-05-20 06:48:51 -04:00
|
|
|
Fri May 20 19:48:48 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (NEW_PARTIAL_MEMO_FOR): shrink buffer array not to
|
|
|
|
mark non-VALUE fields. fix check_rvalue_consistency abort with
|
|
|
|
RGENGC_CHECK_MODE=2.
|
|
|
|
|
|
|
|
* internal.h (NEW_CMP_OPT_MEMO): exclude struct cmp_opt_data from
|
|
|
|
the valid array range.
|
|
|
|
|
|
|
|
* enum.c (slicewhen_i): exclude inverted too.
|
|
|
|
|
2016-05-19 08:23:57 -04:00
|
|
|
Thu May 19 21:21:57 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
|
|
|
* re.c (rb_reg_match_m_p): [DOC] fix return value in rdoc.
|
|
|
|
|
|
|
|
* test/ruby/test_regexp.rb (TestRegexp#test_match_p): add some
|
|
|
|
tests from document.
|
|
|
|
|
2016-05-19 00:53:05 -04:00
|
|
|
Thu May 19 13:22:44 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c (Init_openssl): register an ex_data index for
|
|
|
|
X509_STORE and X509_STORE_CTX respectively. Since they don't share
|
|
|
|
the ex_data index registry, we can't use the same index.
|
|
|
|
(ossl_verify_cb): use the the correct index.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_ssl_verify_callback): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509store.c (ossl_x509store_set_vfy_cb): ditto.
|
|
|
|
(ossl_x509stctx_verify): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl.h (void ossl_clear_error): add extern declarations
|
|
|
|
of ossl_store_{ctx_,}ex_verify_cb_idx.
|
|
|
|
|
|
|
|
* ext/openssl/openssl_missing.c: remove X509_STORE_set_ex_data and
|
|
|
|
X509_STORE_get_ex_data.
|
|
|
|
|
|
|
|
* ext/openssl/openssl_missing.h: implement X509_STORE_get_ex_data,
|
|
|
|
X509_STORE_set_ex_data and X509_STORE_get_ex_new_index as macros.
|
|
|
|
|
2016-05-19 00:12:57 -04:00
|
|
|
Thu May 19 13:11:35 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509attr.c (ossl_x509attr_set_value): check that the
|
|
|
|
argument is an OpenSSL::ASN1::Data before converting to ASN1_TYPE.
|
|
|
|
This fixes SEGV on OpenSSL::X509::Attribute#value=(non-asn1-value).
|
|
|
|
|
|
|
|
* test/openssl/test_x509attr.rb: add tests for OpenSSL::X509::Attribute.
|
|
|
|
|
2016-05-18 23:10:12 -04:00
|
|
|
Thu May 19 12:10:10 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (rb_reg_match_m_p): fix match against empty string.
|
|
|
|
rb_str_offset returns the end when the position exceeds the
|
|
|
|
length. fix the range parameter of onig_search.
|
|
|
|
[ruby-core:75604] [Bug #12394]
|
|
|
|
|
2016-05-18 22:37:38 -04:00
|
|
|
Thu May 19 11:37:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
2016-05-18 23:09:00 -04:00
|
|
|
* re.c (rb_reg_match_m_p): should return false if no match, as the
|
2016-05-18 22:37:38 -04:00
|
|
|
document says. [Feature #8110]
|
|
|
|
|
2016-05-18 11:17:31 -04:00
|
|
|
Thu May 19 00:17:01 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (reg_names_iter): specify capacify
|
|
|
|
|
2016-05-18 08:31:53 -04:00
|
|
|
Wed May 18 21:29:59 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread.c (recursive_list_access): a object id may be a Bignum. so,
|
|
|
|
the list must be a objhash, instead of a identhash.
|
|
|
|
this fixes many test errors on mswin64 CI.
|
|
|
|
|
2016-05-18 06:37:13 -04:00
|
|
|
Wed May 18 19:33:54 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (rb_reg_match_m_p): Introduce Regexp#match?, which returns
|
|
|
|
bool and doesn't save backref.
|
|
|
|
|
2016-05-18 03:59:09 -04:00
|
|
|
Wed May 18 16:52:03 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): pop errors
|
|
|
|
leaked by PKCS12_parse(). This is a bug in OpenSSL, which exists
|
|
|
|
in the versions before the version 1.0.0t, 1.0.1p, 1.0.2d.
|
|
|
|
|
2016-05-18 03:04:55 -04:00
|
|
|
Wed May 18 16:04:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/downloader.rb (Downloader::RubyGems.download): verify gems
|
|
|
|
only if RubyGems is 2.4 or later. old RubyGems fails to verify
|
|
|
|
almost all of bundled gems.
|
|
|
|
|
2016-05-18 01:52:40 -04:00
|
|
|
Wed May 18 14:52:38 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (rb_str_modify_expand): check integer overflow.
|
|
|
|
[ruby-core:75592] [Bug #12390]
|
|
|
|
|
2016-05-18 00:56:02 -04:00
|
|
|
Wed May 18 13:11:44 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (match_ary_subseq): get subseq of match array without creating
|
|
|
|
temporary array.
|
|
|
|
|
|
|
|
* re.c (match_ary_aref): get element(s) of match array without creating
|
|
|
|
temporary array.
|
|
|
|
|
|
|
|
* re.c (match_aref): Use match_ary_subseq with handling irregulars.
|
|
|
|
|
|
|
|
* re.c (match_values_at): Use match_ary_aref.
|
|
|
|
|
2016-05-18 00:07:47 -04:00
|
|
|
Wed May 18 13:03:07 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509cert.c (ossl_x509_verify): X509_verify()
|
|
|
|
family may put errors on 0 return (0 means verification failure).
|
|
|
|
Clear OpenSSL error queue before return to Ruby. Since the queue is
|
|
|
|
thread global, remaining errors in the queue can cause an unexpected
|
|
|
|
error in the next OpenSSL operation. [ruby-core:48284] [Bug #7215]
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509crl.c (ossl_x509crl_verify): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509req.c (ossl_x509req_verify): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_x509store.c (ossl_x509stctx_verify): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dh.c (dh_generate): clear the OpenSSL error
|
|
|
|
queue before re-raising exception.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dsa.c (dsa_generate): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_rsa.c (rsa_generate): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_start_ssl): ditto.
|
|
|
|
|
|
|
|
* test/openssl: check that OpenSSL.errors is empty every time after
|
|
|
|
running a test case.
|
|
|
|
|
2016-05-18 00:07:45 -04:00
|
|
|
Wed May 18 12:07:42 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c (ossl_clear_error): Extracted from
|
|
|
|
ossl_make_error(). This prints errors in the OpenSSL error queue if
|
|
|
|
OpenSSL.debug is true, and clears the queue.
|
|
|
|
(ossl_make_error): use ossl_clear_error().
|
|
|
|
|
|
|
|
* ext/openssl/ossl.h: add prototype declaration of ossl_make_error().
|
|
|
|
(OSSL_BIO_reset) use ossl_clear_error() to clear the queue. Clearing
|
|
|
|
silently makes debugging difficult.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_engine.c (ossl_engine_s_by_id): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
|
|
|
|
(ossl_ec_group_initialize): ditto.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): ditto.
|
|
|
|
|
2016-05-17 22:55:46 -04:00
|
|
|
Wed May 18 11:53:49 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey_ec.c (ossl_ec_point_mul): Validate the
|
|
|
|
arguments before passing to EC_POINT(s)_mul(). Add description of this
|
|
|
|
method. [ruby-core:65152] [Bug #10268]
|
|
|
|
|
|
|
|
* test/openssl/test_pkey_ec.rb (test_ec_point_mul): Test that
|
|
|
|
OpenSSL::PKey::EC::Point#mul works.
|
|
|
|
|
2016-05-17 22:55:45 -04:00
|
|
|
Wed May 18 11:19:59 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_bn.c (try_convert_to_bnptr): Extracted from
|
|
|
|
GetBNPtr(). This doesn't raise exception but returns NULL on error.
|
|
|
|
(GetBNPtr): Raise TypeError if conversion fails.
|
|
|
|
(ossl_bn_eq): Implement BN#==.
|
|
|
|
(ossl_bn_eql): #eql? should not raise TypeError even if the argument
|
|
|
|
is not compatible with BN.
|
|
|
|
(ossl_bn_hash): Implement BN#hash.
|
|
|
|
|
|
|
|
* ext/openssl/ossl_bn.c (Init_ossl_bn): Define #== and #hash.
|
|
|
|
|
|
|
|
* test/openssl/test_bn.rb: Test BN#eql?, #== and #hash
|
|
|
|
|
2016-05-17 21:17:43 -04:00
|
|
|
Wed May 18 10:17:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (RB_INTEGER_TYPE_P): new macro and
|
|
|
|
underlying inline function to check if the object is an
|
|
|
|
Integer (Fixnum or Bignum).
|
|
|
|
|
2016-05-17 20:54:52 -04:00
|
|
|
Wed May 18 09:52:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (enum_sum, hash_sum, hash_sum_i, enum_sum_i, sum_iter):
|
|
|
|
Optimize for hashes when each method isn't redefined.
|
|
|
|
|
2016-05-17 20:16:06 -04:00
|
|
|
Wed May 18 09:14:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (enum_sum, int_range_sum): Extract int_range_sum from
|
|
|
|
enum_sum.
|
|
|
|
|
2016-05-17 14:16:08 -04:00
|
|
|
Wed May 18 03:16:06 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (match_values_at): fix regression at r55036.
|
|
|
|
MatchData#values_at accepts Range.
|
|
|
|
|
2016-05-17 13:10:01 -04:00
|
|
|
Wed May 18 02:02:58 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (match_aref): remove useless condition and call rb_fix2int.
|
|
|
|
rb_reg_nth_match handles negative index.
|
|
|
|
|
2016-05-17 13:10:01 -04:00
|
|
|
Wed May 18 01:57:43 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (match_values_at): MatchData#values_at supports named captures
|
|
|
|
[Feature #9179]
|
|
|
|
|
2016-05-18 09:40:51 -04:00
|
|
|
* re.c (namev_to_backref_number): separated.
|
2016-05-17 13:10:01 -04:00
|
|
|
|
2016-05-17 20:16:06 -04:00
|
|
|
Wed May 18 00:05:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
2016-05-17 11:08:33 -04:00
|
|
|
|
|
|
|
* enum.c (enum_sum): Optimize for a range from int to int.
|
|
|
|
|
|
|
|
* test/ruby/test_enum.rb (test_range_sum): Move from test_range.rb,
|
|
|
|
and add assertions for some conditions.
|
|
|
|
|
|
|
|
* test/ruby/test_enum.rb (test_hash_sum): Move from test_hash.rb.
|
|
|
|
|
|
|
|
* test/ruby/test_hash.rb, test/ruby/test_range.rb: Remove test_sum.
|
|
|
|
|
2016-05-17 10:09:37 -04:00
|
|
|
Tue May 17 23:08:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (enum_sum): [DOC] Write documentation.
|
|
|
|
|
2016-05-17 09:58:46 -04:00
|
|
|
Tue May 17 22:53:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (enum_sum): Implement Enumerable#sum.
|
|
|
|
|
|
|
|
* test/ruby/test_enum.rb (test_sum): Test sum for Enumerable.
|
|
|
|
|
|
|
|
* test/ruby/test_hash.rb (test_sum): Test sum for Hash.
|
|
|
|
|
|
|
|
* test/ruby/test_range.rb (test_sum): Test sum for Range.
|
|
|
|
|
Use Integer instead of Fixnum and Bignum.
* object.c, numeric.c, enum.c, ext/-test-/bignum/mul.c,
lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rexml/xpath_parser.rb,
lib/rubygems/specification.rb, lib/uri/generic.rb,
bootstraptest/test_eval.rb, basictest/test.rb,
test/-ext-/bignum/test_big2str.rb, test/-ext-/bignum/test_div.rb,
test/-ext-/bignum/test_mul.rb, test/-ext-/bignum/test_str2big.rb,
test/csv/test_data_converters.rb, test/date/test_date.rb,
test/json/test_json_generate.rb, test/minitest/test_minitest_mock.rb,
test/openssl/test_cipher.rb, test/rexml/test_jaxen.rb,
test/ruby/test_array.rb, test/ruby/test_basicinstructions.rb,
test/ruby/test_bignum.rb, test/ruby/test_case.rb,
test/ruby/test_class.rb, test/ruby/test_complex.rb,
test/ruby/test_enum.rb, test/ruby/test_eval.rb,
test/ruby/test_iseq.rb, test/ruby/test_literal.rb,
test/ruby/test_math.rb, test/ruby/test_module.rb,
test/ruby/test_numeric.rb, test/ruby/test_range.rb,
test/ruby/test_rational.rb, test/ruby/test_refinement.rb,
test/ruby/test_rubyvm.rb, test/ruby/test_struct.rb,
test/ruby/test_variable.rb, test/rubygems/test_gem_specification.rb,
test/thread/test_queue.rb: Use Integer instead of Fixnum and Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-17 09:15:57 -04:00
|
|
|
Tue May 17 22:11:41 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* object.c, numeric.c, enum.c, ext/-test-/bignum/mul.c,
|
|
|
|
lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rexml/xpath_parser.rb,
|
|
|
|
lib/rubygems/specification.rb, lib/uri/generic.rb,
|
|
|
|
bootstraptest/test_eval.rb, basictest/test.rb,
|
|
|
|
test/-ext-/bignum/test_big2str.rb, test/-ext-/bignum/test_div.rb,
|
|
|
|
test/-ext-/bignum/test_mul.rb, test/-ext-/bignum/test_str2big.rb,
|
|
|
|
test/csv/test_data_converters.rb, test/date/test_date.rb,
|
|
|
|
test/json/test_json_generate.rb, test/minitest/test_minitest_mock.rb,
|
|
|
|
test/openssl/test_cipher.rb, test/rexml/test_jaxen.rb,
|
|
|
|
test/ruby/test_array.rb, test/ruby/test_basicinstructions.rb,
|
|
|
|
test/ruby/test_bignum.rb, test/ruby/test_case.rb,
|
|
|
|
test/ruby/test_class.rb, test/ruby/test_complex.rb,
|
|
|
|
test/ruby/test_enum.rb, test/ruby/test_eval.rb,
|
|
|
|
test/ruby/test_iseq.rb, test/ruby/test_literal.rb,
|
|
|
|
test/ruby/test_math.rb, test/ruby/test_module.rb,
|
|
|
|
test/ruby/test_numeric.rb, test/ruby/test_range.rb,
|
|
|
|
test/ruby/test_rational.rb, test/ruby/test_refinement.rb,
|
|
|
|
test/ruby/test_rubyvm.rb, test/ruby/test_struct.rb,
|
|
|
|
test/ruby/test_variable.rb, test/rubygems/test_gem_specification.rb,
|
|
|
|
test/thread/test_queue.rb: Use Integer instead of Fixnum and Bignum.
|
|
|
|
|
2016-05-17 02:53:48 -04:00
|
|
|
Tue May 17 15:26:10 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* [Feature #12005] Unify Fixnum and Bignum into Integer
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_class_of): Return rb_cInteger for fixnums.
|
|
|
|
|
|
|
|
* insns.def (INTEGER_REDEFINED_OP_FLAG): Unified from
|
|
|
|
FIXNUM_REDEFINED_OP_FLAG and BIGNUM_REDEFINED_OP_FLAG.
|
|
|
|
|
|
|
|
* vm_core.h: Ditto.
|
|
|
|
|
|
|
|
* vm_insnhelper.c (opt_eq_func): Use INTEGER_REDEFINED_OP_FLAG instead
|
|
|
|
of FIXNUM_REDEFINED_OP_FLAG.
|
|
|
|
|
|
|
|
* vm.c (vm_redefinition_check_flag): Use rb_cInteger instead of
|
|
|
|
rb_cFixnum and rb_cBignum.
|
|
|
|
(C): Use Integer instead of Fixnum and Bignum.
|
|
|
|
|
|
|
|
* numeric.c (fix_succ): Removed.
|
|
|
|
(Init_Numeric): Define Fixnum as Integer.
|
|
|
|
|
2016-05-17 08:57:48 -04:00
|
|
|
* bignum.c (bignew): Use rb_cInteger instead of rb_cBignum.
|
2016-05-17 02:53:48 -04:00
|
|
|
(rb_int_coerce): replaced from rb_big_coerce and return fixnums
|
|
|
|
as-is.
|
|
|
|
(Init_Bignum): Define Bignum as Integer.
|
|
|
|
Don't define ===.
|
|
|
|
|
|
|
|
* error.c (builtin_class_name): Return "Integer" for fixnums.
|
|
|
|
|
|
|
|
* sprintf.c (ruby__sfvextra): Use rb_cInteger instead of rb_cFixnum.
|
|
|
|
|
|
|
|
* ext/-test-/testutil: New directory to test.
|
|
|
|
Currently it provides utilities for fixnum and bignum.
|
|
|
|
|
|
|
|
* ext/json/generator/generator.c: Define mInteger_to_json.
|
|
|
|
|
|
|
|
* lib/mathn.rb (Fixnum#/): Redefinition removed.
|
|
|
|
|
2016-05-16 22:58:40 -04:00
|
|
|
Tue May 17 11:58:58 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (RUBY_CHECK_BUILTIN_SETJMP): declare t as NORETURN
|
|
|
|
to suppress warnings by -Wsuggest-attribute=noreturn.
|
|
|
|
[ruby-core:75510] [Bug #12383]
|
|
|
|
|
2016-05-16 21:40:20 -04:00
|
|
|
Tue May 17 10:40:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (RUBY_CHECK_SETJMP): needs the header and proper
|
|
|
|
arguments for builtin setjmp functions.
|
|
|
|
|
2016-05-16 07:00:29 -04:00
|
|
|
Mon May 16 20:00:30 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.h: Additional uses of ONIG_CASE_MAPPING compilation switch
|
|
|
|
|
2016-05-16 06:46:32 -04:00
|
|
|
Mon May 16 19:46:33 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h: Introducing ONIG_CASE_MAPPING compilation
|
|
|
|
switch
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h, enc/unicode.h: Using ONIG_CASE_MAPPING
|
|
|
|
compilation switch
|
|
|
|
|
2016-05-16 06:29:36 -04:00
|
|
|
Mon May 16 19:29:31 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* gems/bundled_gems: Update xmlrpc-0.1.1. xmlrpc-0.1.0 didn't allow
|
|
|
|
to install on 2.4.0dev.
|
|
|
|
|
2016-05-16 00:29:01 -04:00
|
|
|
Mon May 16 13:28:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (FUNC_STDCALL, FUNC_CDECL, FUNC_FASTCALL): set
|
|
|
|
macro names explicitly to the old names, which are accidentally
|
|
|
|
changed at r54985, for backward compatibilities.
|
|
|
|
fiddle also depends on these names to fallback to ANSI names.
|
|
|
|
[ruby-core:75494] [Bug #12377]
|
|
|
|
|
2016-05-15 22:41:11 -04:00
|
|
|
Mon May 16 11:39:02 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/xmlrpc.rb, lib/xmlrpc/*, test/xmlrpc: XMLRPC is bundled gem
|
|
|
|
on Ruby 2.4. It is extracted to https://github.com/ruby/xmlrpc
|
|
|
|
[Feature #12160][ruby-core:74239]
|
|
|
|
* gems/bundled_gems: ditto.
|
|
|
|
|
2016-05-15 17:11:33 -04:00
|
|
|
Mon May 16 06:06:21 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* proc.c: fix RDoc of Proc#===/call/yield/[]
|
|
|
|
[Bug #12332]
|
|
|
|
|
2016-05-15 07:59:00 -04:00
|
|
|
Sun May 15 20:55:31 2016 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|
|
|
|
|
|
|
* lib/drb/timeridconv.rb: don't use keeper thread. [Bug #12342]
|
|
|
|
|
|
|
|
* test/drb/ut_timerholder.rb: ditto.
|
|
|
|
|
2016-05-15 03:17:46 -04:00
|
|
|
Sun May 15 16:15:25 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_entry): extract rb_ary_elt to organize if-conditions
|
2016-05-17 08:57:48 -04:00
|
|
|
and check whether is embedded at once.
|
2016-05-15 03:17:46 -04:00
|
|
|
|
2016-05-14 21:57:28 -04:00
|
|
|
Sun May 15 10:57:26 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_get_ev_const): warn deprecated constant even
|
|
|
|
in the class context. [ruby-core:75505] [Bug #12382]
|
|
|
|
|
2016-05-14 14:43:11 -04:00
|
|
|
Sun May 15 03:13:01 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* iseq.h (struct iseq_compile_data): use struct rb_id_table
|
|
|
|
instead of st_table.
|
|
|
|
|
|
|
|
* iseq.c (prepare_iseq_build): don't allocate ivar_cache_table
|
|
|
|
until it has at least one element.
|
|
|
|
|
|
|
|
* iseq.c (compile_data_free): free ivar_cache_table only if it
|
|
|
|
is allocated.
|
|
|
|
|
|
|
|
* compile.c (get_ivar_ic_value): allocate if the table is not
|
|
|
|
allocated yet.
|
|
|
|
|
2016-05-13 20:04:36 -04:00
|
|
|
Sat May 14 09:04:34 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
|
|
|
|
library path environment variable as well as latter pkg-config
|
|
|
|
calls. [ruby-dev:49619] [Bug #12379]
|
|
|
|
|
2016-05-13 11:16:57 -04:00
|
|
|
Sat May 14 00:16:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* random.c (make_seed_value): append leading-zero-guard and get
|
|
|
|
rid of making a local copy of the seed.
|
|
|
|
|
2016-05-12 19:46:43 -04:00
|
|
|
Fri May 13 08:46:42 2016 cremno <cremno@mail.ru>
|
|
|
|
|
2016-05-13 21:09:00 -04:00
|
|
|
* NEWS: drop FreeBSD < 4 support. [Fix GH-1339]
|
2016-05-12 19:46:43 -04:00
|
|
|
The most recent version affected by this is 3.5 and was released
|
|
|
|
in 2000.
|
|
|
|
https://www.freebsd.org/releases/3.5R/announce.html
|
|
|
|
https://en.wikipedia.org/wiki/History_of_FreeBSD#Version_history
|
|
|
|
|
2016-05-12 14:12:47 -04:00
|
|
|
Fri May 13 03:12:09 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/defines.h (GCC_VERSION_SINCE): moved from internal.h.
|
|
|
|
|
2016-05-12 14:12:46 -04:00
|
|
|
Fri May 13 03:11:20 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (__builtin_constant_p): check.
|
|
|
|
|
2016-05-13 10:01:29 -04:00
|
|
|
* internal.h: Use HAVE_BUILTIN___BUILTIN_CONSTANT_P
|
2016-05-12 14:12:46 -04:00
|
|
|
|
2016-05-12 14:12:45 -04:00
|
|
|
Fri May 13 03:10:39 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-05-13 10:01:29 -04:00
|
|
|
* configure.in: use alternative keyword
|
2016-05-12 14:12:45 -04:00
|
|
|
to avoid macros conflicts with them.
|
|
|
|
|
2016-05-11 12:54:10 -04:00
|
|
|
Thu May 12 01:54:08 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/mkmf.rb (try_func): get rid of conflict of declarations of
|
|
|
|
main(). checking local symbol reference does not make sense.
|
|
|
|
|
2016-05-11 11:21:49 -04:00
|
|
|
Thu May 12 00:18:19 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/Makefile.sub (HAVE_QSORT_S): use qsort_s only for Visual Studio
|
|
|
|
2012 or later, because VS2010 seems to causes a SEGV in
|
|
|
|
test/ruby/test_enum.rb.
|
|
|
|
|
2016-05-11 11:04:27 -04:00
|
|
|
Wed May 11 23:59:47 2016 Masaya Tarui <tarui@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_getivar): describe fast-path explicit
|
2016-05-12 09:01:03 -04:00
|
|
|
(compiler friendly). [Bug #12274].
|
2016-05-11 11:04:27 -04:00
|
|
|
|
2016-05-11 08:50:38 -04:00
|
|
|
Wed May 11 21:30:07 2016 Masaya Tarui <tarui@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (iseq_compile_each): share InlineCache during same
|
|
|
|
instance variable accesses. Reducing memory consumption,
|
2016-05-11 11:08:27 -04:00
|
|
|
rising cache hit rate and rising branch prediction hit rate
|
2016-05-11 08:50:38 -04:00
|
|
|
are expected. A part of [Bug #12274].
|
|
|
|
|
|
|
|
* iseq.h (struct iseq_compile_data): introduce instance
|
|
|
|
variable IC table for sharing.
|
|
|
|
|
|
|
|
* iseq.c (prepare_iseq_build, compile_data_free):
|
|
|
|
construct/destruct above table.
|
|
|
|
|
2016-05-11 04:18:56 -04:00
|
|
|
Wed May 11 17:18:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* util.c (ruby_qsort): use qsort_s if available, for Microsoft
|
|
|
|
Visual Studio 2005 (msvcr80.dll) and mingw.
|
|
|
|
|
2016-05-10 21:33:30 -04:00
|
|
|
Wed May 11 10:33:26 2016 Marcus Stollsteimer <sto.mar@web.de>
|
|
|
|
|
2016-05-11 03:13:35 -04:00
|
|
|
* COPYING: Remove trailing-whitespaces.
|
2016-05-10 21:33:30 -04:00
|
|
|
[ci skip][fix GH-1348]
|
|
|
|
|
2016-05-10 08:46:43 -04:00
|
|
|
Tue May 10 21:05:45 2016 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* insns.def (defineclass): Also raise an error when redeclaring the
|
|
|
|
superclass of a class as Object and it has another superclass.
|
|
|
|
[Bug #12367] [ruby-core:75446]
|
|
|
|
|
|
|
|
* test/ruby/test_class.rb: test for above.
|
|
|
|
|
2016-05-10 01:57:11 -04:00
|
|
|
Tue May 10 14:57:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* random.c (obj_random_bytes): base on bytes method instead of
|
|
|
|
rand method, not to call toplevel rand method.
|
|
|
|
|
2016-05-10 00:36:33 -04:00
|
|
|
Tue May 10 13:07:28 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (-fexcess-precision=standard): before r54895 -std=c99
|
|
|
|
is specified and it implied -fexcess-precision=standard.
|
|
|
|
Now with -std=gnu99, it should be explicitly specified.
|
|
|
|
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
|
|
|
|
|
2016-05-08 21:52:01 -04:00
|
|
|
Mon May 9 10:51:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread.c (rb_thread_atfork_internal): move th to an argument.
|
|
|
|
|
|
|
|
* thread.c (rb_thread_atfork): do not repeat GET_THREAD().
|
|
|
|
|
2016-05-08 21:46:37 -04:00
|
|
|
Mon May 9 10:46:36 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): do
|
|
|
|
nothing unless working fork is available.
|
|
|
|
|
|
|
|
* thread_sync.c (rb_mutex_abandon_all): define only if working
|
|
|
|
fork is available.
|
|
|
|
|
|
|
|
* thread_sync.c (rb_mutex_abandon_keeping_mutexes): ditto.
|
|
|
|
|
|
|
|
* thread_sync.c (rb_mutex_abandon_locking_mutex): ditto.
|
|
|
|
|
|
|
|
* thread_win32.c (gvl_init): never used.
|
|
|
|
|
2016-05-08 18:20:05 -04:00
|
|
|
Mon May 9 07:18:06 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/{defines,ruby}.h: need to define function attributes
|
|
|
|
alternatives in defines.h instead of ruby.h, because they are used
|
|
|
|
in oniguruma.h and the header used without including ruby.h at
|
|
|
|
encoding library sources.
|
|
|
|
|
2016-05-08 17:31:23 -04:00
|
|
|
Mon May 9 06:30:12 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (CONSTFUNC, PUREFUNC): fixed build errors on
|
|
|
|
non-gcc build environments introduced at r54952.
|
|
|
|
|
2016-05-08 13:52:38 -04:00
|
|
|
Mon May 9 02:51:51 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* gc.c (rb_gc_unprotect_logging): throw rb_memerror when it cannot
|
|
|
|
allocate memory. This is pointed out by Facebook's Infer.
|
|
|
|
|
|
|
|
* gc.c (gc_prof_setup_new_record): ditto.
|
|
|
|
|
|
|
|
* regparse.c (parse_regexp): ditto.
|
|
|
|
|
|
|
|
* util.c (MALLOC): use xmalloc and xfree like above.
|
|
|
|
|
2016-05-08 13:44:51 -04:00
|
|
|
Mon May 9 02:39:16 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-05-09 10:30:00 -04:00
|
|
|
* configure.in: check function attribute const and pure,
|
2016-05-08 13:44:51 -04:00
|
|
|
and define CONSTFUNC and PUREFUNC if available.
|
|
|
|
Note that I don't add those options as default because
|
|
|
|
it still shows many false-positive (it seems not to consider
|
|
|
|
longjmp).
|
|
|
|
|
|
|
|
* vm_eval.c (stack_check): get rb_thread_t* as an argument
|
|
|
|
to avoid duplicate call of GET_THREAD().
|
|
|
|
|
2016-05-08 08:10:22 -04:00
|
|
|
Sun May 8 21:01:14 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-05-08 10:36:18 -04:00
|
|
|
* ext/openssl/extconf.rb: assume it doesn't have SSLv2 related
|
2016-05-08 08:10:22 -04:00
|
|
|
functions when OPENSSL_NO_SSL2 is defined.
|
|
|
|
Usually openssl's header and the library (libssl) have the same
|
|
|
|
set of functions, but on some environment the library has functions
|
2016-05-08 10:36:18 -04:00
|
|
|
whose headers doesn't declare. (openssl/opensslconf.h and libssl.so
|
2016-05-08 08:10:22 -04:00
|
|
|
aren't be synchronized)
|
|
|
|
To detect such case explicitly check feature macro and remove
|
|
|
|
related functions.
|
|
|
|
|
2016-05-08 05:51:34 -04:00
|
|
|
Sun May 8 18:51:33 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c (rb_home_dir_of): return the default home path if the
|
|
|
|
user name is the current user name, on platforms where struct
|
|
|
|
pwd is not supported. a temporary measure against
|
|
|
|
[Bug #12226].
|
|
|
|
|
2016-05-07 20:55:29 -04:00
|
|
|
Sun May 8 08:51:38 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: add -Wsuggest-attribute=format and suppress warnings.
|
|
|
|
|
2016-05-07 20:55:28 -04:00
|
|
|
Sun May 8 08:31:03 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: add -Wsuggest-attribute=noreturn and suppress warnings.
|
|
|
|
|
2016-05-07 20:55:28 -04:00
|
|
|
Sun May 8 08:19:16 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: add -Werror=implicit-int to avoid missing type of
|
|
|
|
function declaration.
|
|
|
|
|
2016-05-07 09:37:18 -04:00
|
|
|
Sat May 7 22:22:37 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/webrick/ssl.rb: Accept string value for SSLCertName. It is used
|
|
|
|
to invoke ssl server with command line.
|
|
|
|
[fix GH-1329] Patch by @kerlin
|
|
|
|
* test/webrick/test_ssl_server.rb: Added test for GH-1329
|
|
|
|
|
2016-05-07 08:55:17 -04:00
|
|
|
Sat May 7 21:55:12 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/webrick/test_ssl_server.rb: Added basic test for `webrick/ssl`
|
|
|
|
|
2016-05-07 03:22:14 -04:00
|
|
|
Sat May 7 16:22:13 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* random.c (int_pair_to_real_inclusive): optimize to multiply
|
|
|
|
without Bignum.
|
|
|
|
|
2016-05-06 18:58:03 -04:00
|
|
|
Sat May 7 07:58:02 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* process.c (rb_exec_getargs): honor the expected argument types
|
|
|
|
over the conversion method. the basic language functionality
|
|
|
|
should be robust. [ruby-core:75388] [Bug #12355]
|
|
|
|
|
2016-05-05 19:16:28 -04:00
|
|
|
Fri May 6 08:16:26 2016 David Silva <david.silva@digital.cabinet-office.gov.uk>
|
|
|
|
|
|
|
|
* enum.c (enum_find): [DOC] add more examples to the documentation
|
|
|
|
of Enumerable#detect, to show that it equals to Enumerable#find.
|
|
|
|
[Fix GH-1340]
|
|
|
|
|
2016-05-05 05:06:39 -04:00
|
|
|
Thu May 5 18:08:31 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/ruby/test_complexrational.rb: Remove duplicated raise.
|
|
|
|
|
2016-05-05 01:39:35 -04:00
|
|
|
Thu May 5 14:41:05 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (rb_str_sub): Fix a special match variable name.
|
|
|
|
[ci skip]
|
|
|
|
|
2016-05-04 23:22:20 -04:00
|
|
|
Thu May 5 12:22:17 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the
|
|
|
|
same rb_thread_t used for TH_PUSH_TAG, instead of JUMP_TAG with
|
|
|
|
the current thread global variable.
|
|
|
|
|
2016-05-04 21:49:35 -04:00
|
|
|
Thu May 5 10:49:33 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* random.c (fill_random_bytes_syscall): use arc4random_buf if
|
|
|
|
available.
|
|
|
|
|
2016-05-04 10:12:10 -04:00
|
|
|
Wed May 4 23:13:58 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (fix_plus): Remove rb_nucomp_add prototype
|
|
|
|
declaration.
|
|
|
|
|
|
|
|
* numeric.c (fix_mul): Remove rb_nucomp_mul prototype
|
|
|
|
declaration.
|
|
|
|
|
|
|
|
* internal.h (rb_nucomp_add, rb_nucomp_mul): add prototype
|
|
|
|
declarations.
|
|
|
|
|
2016-05-04 05:46:46 -04:00
|
|
|
Wed May 4 18:38:00 2016 Kazuki Tsujimoto <kazuki@callcc.net>
|
|
|
|
|
|
|
|
* lib/net/http/header.rb (Net::HTTPHeader#{each_header,each_name,
|
|
|
|
each_capitalized_name,each_value,each_capitalized}): Return
|
|
|
|
sized enumerators.
|
|
|
|
|
|
|
|
* test/net/http/test_httpheader.rb: add test for above.
|
|
|
|
|
2016-05-04 05:06:59 -04:00
|
|
|
Wed May 4 17:53:15 2016 Kazuki Tsujimoto <kazuki@callcc.net>
|
|
|
|
|
|
|
|
* lib/set.rb (Set#{delete_if,keep_if,collect!,reject!,select!,classify,divide},
|
|
|
|
SortedSet#{delete_if,keep_if}): Return sized enumerators.
|
|
|
|
|
|
|
|
* test/test_set.rb: add test for above.
|
|
|
|
|
2016-05-03 10:31:40 -04:00
|
|
|
Tue May 3 23:25:48 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
|
|
|
* numeric.c: [DOC] Update result of 123456789 ** -2.
|
|
|
|
[ruby-dev:49606] [Bug #12339]
|
|
|
|
|
2016-05-03 10:12:02 -04:00
|
|
|
Tue May 3 23:13:16 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (RCOMPLEX_SET_IMAG): undef RCOMPLEX_SET_IMAG
|
|
|
|
instead of duplicated undef RCOMPLEX_SET_REAL.
|
|
|
|
|
2016-05-03 09:54:19 -04:00
|
|
|
Tue May 3 22:55:07 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* complex.c (rb_complex_set_imag): Fix to properly set imag
|
|
|
|
of complex.
|
|
|
|
|
2016-05-03 09:20:50 -04:00
|
|
|
Tue May 3 22:19:55 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (warnflags): use -std=gnu99 instead of
|
|
|
|
-std=iso9899:1999. [Feature #12336]
|
|
|
|
|
2016-05-03 09:14:30 -04:00
|
|
|
Tue May 3 22:10:09 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount
|
|
|
|
only if it can use SSE 4.2 POPCNT whose latency is 3 cycle.
|
|
|
|
|
|
|
|
* internal.h (rb_popcount64): use __builtin_popcountll because now
|
|
|
|
it is in fast path.
|
|
|
|
|
2016-05-03 01:19:20 -04:00
|
|
|
Tue May 3 14:19:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (new_if_gen): set newline flag to NODE_IF to trace all
|
|
|
|
if/elsif statements. [ruby-core:67720] [Bug #10763]
|
|
|
|
|
2016-05-02 17:04:17 -04:00
|
|
|
Tue May 3 05:35:54 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* process.c (disable_child_handler_fork_child):
|
|
|
|
initialize handler for SIGPIPE for !POSIX_SIGNAL
|
|
|
|
|
2016-05-02 10:05:19 -04:00
|
|
|
Mon May 2 23:03:42 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/win32.c, include/ruby/win32.h (rb_w32_utruncate): implements new
|
|
|
|
truncate alternative which accepts UTF-8 path.
|
|
|
|
|
|
|
|
* file.c (truncate): use above function.
|
|
|
|
[Bug #12340]
|
|
|
|
|
2016-05-02 08:04:04 -04:00
|
|
|
Mon May 2 20:59:21 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (str_coderange): to avoid function call when the string already
|
|
|
|
has coderange information.
|
|
|
|
|
|
|
|
* re.c (rb_reg_prepare_enc): add shortcut path when the regexp has
|
|
|
|
the same encoding of given string.
|
|
|
|
|
|
|
|
* re.c (rb_reg_prepare_re): avoid duplicated allocation of
|
|
|
|
onig_errmsg_buffer.
|
|
|
|
|
|
|
|
|
2016-05-01 23:35:52 -04:00
|
|
|
Mon May 2 12:34:52 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/ruby/test_refinement.rb (test_inspect): Use Integer instead of
|
|
|
|
Fixnum.
|
|
|
|
|
2016-05-01 17:59:41 -04:00
|
|
|
Mon May 2 06:58:38 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* complex.c: Don't refer rb_cFixnum and rb_cBignum.
|
|
|
|
(k_fixnum_p): Use FIXNUM_P.
|
|
|
|
(k_bignum_p): Use RB_TYPE_P.
|
|
|
|
|
2016-05-01 12:28:18 -04:00
|
|
|
Mon May 2 01:27:59 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/ruby/test_numeric.rb (test_step): Use Integer::FIXNUM_MAX.
|
|
|
|
|
2016-05-01 12:15:29 -04:00
|
|
|
Mon May 2 01:15:01 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/ruby/test_module.rb (test_name): Use Integer instead of Fixnum.
|
|
|
|
|
2016-05-01 12:01:36 -04:00
|
|
|
Mon May 2 01:00:04 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit/assertions.rb (assert_fixnum): Defined.
|
|
|
|
(assert_bignum): Defined.
|
|
|
|
|
|
|
|
* test/ruby/test_bignum.rb: Use assert_bignum.
|
|
|
|
|
|
|
|
* test/ruby/test_integer_comb.rb: Use assert_fixnum and assert_bignum.
|
|
|
|
|
|
|
|
* test/ruby/test_optimization.rb: Ditto.
|
|
|
|
|
2016-05-01 11:42:52 -04:00
|
|
|
Mon May 2 00:41:53 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* vm_trace.c (recalc_remove_ruby_vm_event_flags): Add a cast to
|
|
|
|
avoid signed integer overflow.
|
|
|
|
|
2016-05-01 11:16:17 -04:00
|
|
|
Mon May 2 00:06:04 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/lib/envutil.rb: Define Integer::{FIXNUM_MIN,FIXNUM_MAX}.
|
|
|
|
|
|
|
|
* test/ruby/test_bignum.rb: Use Integer::{FIXNUM_MIN,FIXNUM_MAX}.
|
|
|
|
|
|
|
|
* test/ruby/test_bignum.rb: Ditto.
|
|
|
|
|
|
|
|
* test/ruby/test_integer_comb.rb: Ditto.
|
|
|
|
|
|
|
|
* test/ruby/test_marshal.rb: Ditto.
|
|
|
|
|
|
|
|
* test/ruby/test_optimization.rb: Ditto.
|
|
|
|
|
2016-05-01 11:02:47 -04:00
|
|
|
Sun May 1 23:59:59 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): fix for mathn
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_sum): ditto.
|
|
|
|
|
2016-05-01 10:54:44 -04:00
|
|
|
Sun May 1 23:51:54 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit.rb (Options#non_options): fixed wrong regexp.
|
2016-05-02 07:46:00 -04:00
|
|
|
if both positives and negatives were specified, positives had to
|
|
|
|
be specified from the beginning.
|
2016-05-01 10:54:44 -04:00
|
|
|
|
2016-05-01 08:00:35 -04:00
|
|
|
Sun May 1 21:00:07 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/win32.c: drop Win2K support.
|
|
|
|
|
2016-05-01 07:42:41 -04:00
|
|
|
Sun May 1 20:39:47 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* cont.c, hash.c, random.c, win32/win32.c: cleanup some Win9x/ME/NT4
|
|
|
|
support leftovers.
|
|
|
|
[fix GH-1328] patched by @cremno
|
|
|
|
|
2016-04-30 18:32:05 -04:00
|
|
|
Sun May 1 07:30:44 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (search_nonascii): use nlz on big endian environments.
|
|
|
|
|
2016-05-02 07:46:00 -04:00
|
|
|
* internal.h (nlz_intptr): defined.
|
2016-04-30 18:32:05 -04:00
|
|
|
|
2016-04-30 11:39:02 -04:00
|
|
|
Sun May 1 00:03:30 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (__builtin_ctz): check.
|
|
|
|
|
|
|
|
* configure.in (__builtin_ctzll): check.
|
|
|
|
|
|
|
|
* internal.h (rb_popcount32): defined for ntz_int32.
|
|
|
|
it can use __builtin_popcount but this function is not used on
|
|
|
|
GCC environment because it uses __builtin_ctz.
|
|
|
|
When another function uses this, using __builtin_popcount
|
|
|
|
should be re-considered.
|
|
|
|
|
|
|
|
* internal.h (rb_popcount64): ditto.
|
|
|
|
|
|
|
|
* internal.h (ntz_int32): defined for ntz_intptr.
|
|
|
|
|
|
|
|
* internal.h (ntz_int64): defined for ntz_intptr.
|
|
|
|
|
|
|
|
* internal.h (ntz_intptr): defined as ntz for uintptr_t.
|
|
|
|
|
|
|
|
* string.c (search_nonascii): unroll and use ntz.
|
|
|
|
|
2016-04-30 08:55:59 -04:00
|
|
|
Sat Apr 30 21:54:13 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (Init_Numeric): Gather Fixnum method definitions.
|
|
|
|
|
2016-04-30 08:39:53 -04:00
|
|
|
Sat Apr 30 21:28:14 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_div): Define Integer#/.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_div): Don't define Bignum#/.
|
|
|
|
|
|
|
|
* lib/mathn.rb (Integer#/): Replace Integer#/ instead of Bignum#/.
|
|
|
|
|
2016-04-30 08:24:06 -04:00
|
|
|
Sat Apr 30 21:11:08 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_plus): Define Integer#+.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_plus): Don't define Bignum#+.
|
|
|
|
|
2016-04-30 08:09:31 -04:00
|
|
|
Sat Apr 30 21:01:20 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_minus): Define Integer#-.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_minus): Don't define Bignum#-.
|
|
|
|
|
2016-04-30 07:54:26 -04:00
|
|
|
Sat Apr 30 20:53:33 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_mul): Define Integer#*.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_mul): Don't define Bignum#*.
|
|
|
|
|
2016-04-30 07:31:28 -04:00
|
|
|
Sat Apr 30 20:30:44 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_modulo): Define Integer#%.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_modulo): Don't define Bignum#%.
|
|
|
|
|
2016-04-30 07:18:00 -04:00
|
|
|
Sat Apr 30 20:17:08 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_equal): Define Integer#==.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_eq): Don't define Bignum#==.
|
|
|
|
|
2016-04-30 06:42:06 -04:00
|
|
|
Sat Apr 30 19:41:15 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_gt): Define Integer#>.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_gt): Don't define Bignum#>.
|
|
|
|
Renamed from big_gt.
|
|
|
|
|
|
|
|
* internal.h (rb_big_gt): Declared.
|
|
|
|
|
2016-04-30 06:26:17 -04:00
|
|
|
Sat Apr 30 19:24:40 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_ge): Define Integer#>=.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_ge): Don't define Bignum#>=.
|
|
|
|
Renamed from big_ge.
|
|
|
|
|
|
|
|
* internal.h (rb_big_ge): Declared.
|
|
|
|
|
2016-04-30 06:20:43 -04:00
|
|
|
Sat Apr 30 19:20:40 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/standard_library.rdoc: Remove obsoleted classes and modules.
|
|
|
|
|
2016-04-30 06:10:23 -04:00
|
|
|
Sat Apr 30 19:09:23 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_lt): Define Integer#<.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_lt): Don't define Bignum#<.
|
|
|
|
Renamed from big_lt.
|
|
|
|
|
|
|
|
* internal.h (rb_big_lt): Declared.
|
|
|
|
|
2016-04-30 05:48:25 -04:00
|
|
|
Sat Apr 30 18:44:05 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_le): Define Integer#<=.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_le): Don't define Bignum#<=.
|
|
|
|
Renamed from big_le.
|
|
|
|
|
|
|
|
* internal.h (rb_big_le): Declared.
|
|
|
|
|
2016-04-30 05:12:11 -04:00
|
|
|
Sat Apr 30 18:11:44 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
2016-05-02 07:46:00 -04:00
|
|
|
* bignum.c (Init_Bignum): Define Integer::GMP_VERSION.
|
2016-04-30 05:12:11 -04:00
|
|
|
|
2016-04-30 04:27:30 -04:00
|
|
|
Sat Apr 30 16:58:18 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_remainder): Define Integer#remainder.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_remainder): Don't define Bignum#remainder.
|
|
|
|
|
|
|
|
* internal.h (rb_big_remainder): Declared.
|
|
|
|
|
2016-04-30 02:30:08 -04:00
|
|
|
Sat Apr 30 15:29:24 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_uminus): {Fixnum,Bignum}#-@ is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_uminus): Don't define Bignum#-@.
|
|
|
|
|
2016-04-30 01:43:15 -04:00
|
|
|
Sat Apr 30 14:42:20 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_idiv): {Fixnum,Bignum}#div is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_idiv): Don't define Bignum#div.
|
|
|
|
|
2016-04-30 01:26:52 -04:00
|
|
|
Sat Apr 30 14:25:55 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_modulo): {Fixnum,Bignum}#modulo is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_modulo): Don't define Bignum#modulo.
|
|
|
|
|
2016-04-30 01:05:54 -04:00
|
|
|
Sat Apr 30 14:04:30 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_divmod): {Fixnum,Bignum}#divmod is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_divmod): Don't define Bignum#divmod.
|
|
|
|
|
2016-04-30 00:20:56 -04:00
|
|
|
Sat Apr 30 13:20:00 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_fdiv): {Fixnum,Bignum}#fdiv is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_fdiv): Don't define Bignum#fdiv.
|
|
|
|
|
2016-04-29 23:59:02 -04:00
|
|
|
Sat Apr 30 12:25:43 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_pow): {Fixnum,Bignum}#** is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_pow): Don't define Bignum#**.
|
|
|
|
|
2016-04-29 23:30:53 -04:00
|
|
|
Sat Apr 30 12:28:59 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_comp): Renamed from rb_big_neg.
|
|
|
|
|
|
|
|
* numeric.c (fix_comp): Renamed from fix_rev.
|
|
|
|
|
2016-04-29 23:27:20 -04:00
|
|
|
Sat Apr 30 12:25:43 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_comp): {Fixnum,Bignum}#~ is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_neg): Don't define Bignum#~.
|
|
|
|
|
|
|
|
* internal.h (rb_big_neg): Declared.
|
|
|
|
|
2016-04-29 23:08:53 -04:00
|
|
|
Sat Apr 30 12:07:42 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_and): {Fixnum,Bignum}#& is unified into
|
|
|
|
Integer.
|
|
|
|
|
2016-04-30 18:05:43 -04:00
|
|
|
* bignum.c (rb_big_and): Don't define Bignum#&.
|
2016-04-29 23:08:53 -04:00
|
|
|
|
2016-04-29 22:56:17 -04:00
|
|
|
Sat Apr 30 11:56:15 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/thread: removed dummy extension library. thread_sync.c
|
|
|
|
provides "thread.rb" already.
|
|
|
|
|
2016-04-29 22:54:14 -04:00
|
|
|
Sat Apr 30 11:53:48 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_or): {Fixnum,Bignum}#| is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_or): Don't define Bignum#|.
|
|
|
|
|
2016-04-29 22:18:00 -04:00
|
|
|
Sat Apr 30 11:18:47 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_trace.c: Fix typos. [ci skip]
|
|
|
|
|
2016-04-29 21:09:07 -04:00
|
|
|
Sat Apr 30 10:09:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/pty/pty.c (establishShell): honor USER environment variable
|
2016-04-30 20:56:15 -04:00
|
|
|
and login name over uid, one uid can be shared by some login
|
2016-04-29 21:09:07 -04:00
|
|
|
names.
|
|
|
|
|
2016-04-29 09:40:29 -04:00
|
|
|
Fri Apr 29 22:40:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/maintainers.rdoc (ext/io/nonblock): still maintained, as
|
|
|
|
well as ext/io/wait, which is the origin.
|
|
|
|
|
2016-04-29 08:18:51 -04:00
|
|
|
Fri Apr 29 21:18:12 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/maintainers.rdoc (ext/win32): of course, it's still maintained.
|
|
|
|
|
2016-04-29 08:03:13 -04:00
|
|
|
Fri Apr 29 21:03:10 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* gems/bundled_gems: Update latest gems, test-unit-3.1.8 and rake-11.1.2.
|
|
|
|
|
2016-04-29 07:43:13 -04:00
|
|
|
Fri Apr 29 20:43:02 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/maintainers.rdoc: Update latest maintainers list on Ruby 2.4
|
|
|
|
|
2016-04-29 06:52:51 -04:00
|
|
|
Fri Apr 29 19:52:45 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/maintainers.rdoc: Removed deprecated entries. These are already deleted.
|
|
|
|
|
2016-04-29 06:52:49 -04:00
|
|
|
Fri Apr 29 19:48:45 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/maintainers.rdoc: Removed Ruby 1.8 entries. It's not necessary to
|
|
|
|
Ruby 2.4 or later.
|
|
|
|
|
2016-04-28 04:03:19 -04:00
|
|
|
Thu Apr 28 17:03:17 2016 Nicholas Maccharoli <nmaccharoli@gmail.com>
|
|
|
|
|
|
|
|
* hash.c (rb_hash_update_{block,func}_callback): dry up hash
|
|
|
|
update callback code. [Fix GH-1338]
|
|
|
|
|
2016-04-28 03:52:59 -04:00
|
|
|
Thu Apr 28 16:52:05 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (rb_reg_prepare_enc): use rb_enc_asciicompat(enc) instead of
|
|
|
|
rb_enc_str_asciicompat_p(str) to avoid useless rb_enc_get(str) call.
|
|
|
|
|
2016-04-28 03:33:43 -04:00
|
|
|
Thu Apr 28 16:33:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/optparse.rb: [DOC] fix example code. base on the code by
|
|
|
|
Semyon Gaivoronskiy in [ruby-core:75224]. [Bug #12323]
|
|
|
|
|
2016-04-27 20:33:08 -04:00
|
|
|
Thu Apr 28 09:33:03 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.4.
|
|
|
|
Please see entries of 2.6.4 on
|
|
|
|
https://github.com/rubygems/rubygems/blob/master/History.txt
|
|
|
|
|
2016-04-27 16:00:57 -04:00
|
|
|
Thu Apr 28 04:49:07 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* configure.in (rb_cv_lgamma_r_pm0): check if lgamma_r(+0.0)
|
|
|
|
returns positive infinity, in addition to lgamma_r(-0.0).
|
|
|
|
AIX returns an incorrect result of negative infinity.
|
|
|
|
|
|
|
|
* math.c (ruby_lgamma_r): handle +0.0, in addition to -0.0.
|
|
|
|
|
2016-04-27 12:15:21 -04:00
|
|
|
Thu Apr 28 01:11:14 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-05-02 07:46:00 -04:00
|
|
|
* time.c: define _DEFAULT_SOURCE because glibc 2.20 deprecates
|
2016-04-27 12:15:21 -04:00
|
|
|
_BSD_SOURCE.
|
|
|
|
https://sourceware.org/glibc/wiki/Release/2.20
|
|
|
|
|
2016-04-27 11:35:23 -04:00
|
|
|
Thu Apr 28 00:27:55 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_xor): {Fixnum,Bignum}#^ is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_xor): Don't define Bignum#^.
|
|
|
|
|
2016-04-27 07:56:03 -04:00
|
|
|
Wed Apr 27 20:53:59 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_aref): {Fixnum,Bignum}#[] is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_aref): Don't define Bignum#<<.
|
|
|
|
|
|
|
|
* internal.h (rb_big_aref): Declared.
|
|
|
|
|
2016-04-27 03:11:07 -04:00
|
|
|
Wed Apr 27 16:10:35 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/instruction.rb: fix to follow current implementation.
|
|
|
|
|
2016-04-27 02:47:56 -04:00
|
|
|
Wed Apr 27 15:47:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/stringio/stringio.c (strio_s_new): warn if a block is given,
|
|
|
|
as well as IO.new.
|
|
|
|
|
2016-04-27 01:29:49 -04:00
|
|
|
Wed Apr 27 14:29:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (ruby_only_for_internal_use): raise fatal error when
|
|
|
|
deprecated function only for internal use is called, not just a
|
|
|
|
warning.
|
|
|
|
|
2016-04-26 10:43:50 -04:00
|
|
|
Tue Apr 26 23:42:30 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb (rel): should not raise exceptions even if
|
|
|
|
the user input is wrong. only reports the error and continue process.
|
|
|
|
|
2016-04-26 10:35:24 -04:00
|
|
|
Tue Apr 26 23:35:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ruby.c (process_options): convert -e script to the encoding
|
|
|
|
given by a command line option on Windows. assume it is the
|
|
|
|
expected encoding. [ruby-dev:49461] [Bug #11900]
|
|
|
|
|
2016-04-26 08:23:05 -04:00
|
|
|
Tue Apr 26 21:11:02 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_lshift): {Fixnum,Bignum}#<< is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_lshift): Don't define Bignum#<<.
|
|
|
|
|
2016-04-26 08:09:40 -04:00
|
|
|
Tue Apr 26 20:59:40 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_rshift): {Fixnum,Bignum}#>> is unified into
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_rshift): Don't define Bignum#>>.
|
|
|
|
|
2016-04-26 07:47:14 -04:00
|
|
|
Tue Apr 26 20:46:16 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_size): {Fixnum,Bignum}#size is unified into Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_size_m): Don't define Bignum#size.
|
|
|
|
|
|
|
|
* internal.h (rb_big_size_m): Declared.
|
|
|
|
|
2016-04-26 07:17:37 -04:00
|
|
|
Tue Apr 26 20:09:08 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int_bit_length): {Fixnum,Bignum}#bit_length is
|
|
|
|
unified into Integer.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_bit_length): Don't define Bignum#bit_length.
|
|
|
|
|
|
|
|
* internal.h (rb_big_bit_length): Declared.
|
|
|
|
|
2016-04-26 06:59:27 -04:00
|
|
|
Tue Apr 26 19:56:16 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* numeric.c (int_abs): Integer#{abs,magnitude} moved from
|
|
|
|
Fixnum and Bignum.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_abs): Don't define Bignum#{abs,magnitude}.
|
|
|
|
|
2016-04-26 07:17:37 -04:00
|
|
|
* internal.h (rb_big_abs): Declared.
|
|
|
|
|
2016-04-25 01:39:12 -04:00
|
|
|
Mon Apr 25 14:39:11 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/rbconfig/sizeof/extconf.rb: just check the existence of each
|
|
|
|
types, to reduce configuration time, especially cross-compiling.
|
|
|
|
|
|
|
|
* template/sizes.c.tmpl: calculate sizes of checked types at
|
|
|
|
compilation time.
|
|
|
|
|
2016-04-24 22:27:34 -04:00
|
|
|
Mon Apr 25 11:27:27 2016 Marcus Stollsteimer <sto.mar@web.de>
|
|
|
|
|
2016-04-26 11:14:18 -04:00
|
|
|
* doc/extension.rdoc: Improvements to english grammars.
|
2016-04-24 22:27:34 -04:00
|
|
|
[Bug #12246][ruby-core:74792][ci skip]
|
|
|
|
|
2016-04-24 22:17:54 -04:00
|
|
|
Mon Apr 25 11:17:50 2016 Marcus Stollsteimer <sto.mar@web.de>
|
|
|
|
|
|
|
|
* encoding.c: Fix return value of `Encoding::ISO8859_1.name`
|
|
|
|
[Bug #12313][ruby-core:75147][ci skip]
|
|
|
|
* ext/bigdecimal/bigdecimal.c: Fix code sample of `BigDecimal.new`
|
|
|
|
|
2016-04-24 10:32:31 -04:00
|
|
|
Sun Apr 24 23:29:16 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* configure.in: add missing -lm for AIX.
|
|
|
|
|
2016-04-24 05:37:04 -04:00
|
|
|
Sun Apr 24 18:33:58 2016 Kazuki Tsujimoto <kazuki@callcc.net>
|
|
|
|
|
2016-04-24 09:41:38 -04:00
|
|
|
* vm_insnhelper.c (INLINE): disable r54738 if __NO_INLINE__ is defined.
|
2016-04-24 05:37:04 -04:00
|
|
|
It caused "undefined reference to `vm_getivar'".
|
|
|
|
|
2016-04-23 20:32:21 -04:00
|
|
|
Sun Apr 24 09:32:12 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb: Add test cases for Array#sum with
|
|
|
|
non-numeric objects.
|
|
|
|
|
2016-04-23 18:30:42 -04:00
|
|
|
Sun Apr 24 04:21:27 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_insnhelper.c (INLINE): define as `inline` when it is optimized.
|
|
|
|
define as `static inline` when it is not optimized to keep
|
|
|
|
the symbol generated.
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_getivar): use `INLINE` to force inline
|
|
|
|
so that a compiler inlines it into vm_getinstancevariable
|
|
|
|
and optimizes out is_attr and related branches.
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_getivar): use `inline` to recommend inline.
|
|
|
|
Without this vm1_ivar_set is degraded.
|
|
|
|
|
|
|
|
benchmark results:
|
|
|
|
minimum results in each 5 measurements.
|
|
|
|
Execution time (sec)
|
|
|
|
name ruby 2.4.0dev (2016-04-23 trunk 54727) [x86_64-linux] ruby 2.4.0dev (2016-04-23 trunk 54733) [x86_64-linux] built-ruby
|
|
|
|
loop_whileloop 0.641 0.642 0.646
|
|
|
|
vm1_ivar* 1.002 0.999 0.831
|
|
|
|
vm1_ivar_set* 0.369 1.106 0.362
|
|
|
|
|
|
|
|
Speedup ratio: compare with the result of `ruby 2.4.0dev (2016-04-23
|
|
|
|
trunk 54727) [x86_64-linux]' (greater is better)
|
|
|
|
name ruby 2.4.0dev (2016-04-23 trunk 54733) [x86_64-linux]
|
|
|
|
built-ruby
|
|
|
|
loop_whileloop
|
|
|
|
0.998 0.991
|
|
|
|
vm1_ivar*
|
|
|
|
1.003 1.205
|
|
|
|
vm1_ivar_set*
|
|
|
|
0.334 1.018
|
|
|
|
|
2016-04-23 05:16:51 -04:00
|
|
|
Sat Apr 23 18:01:21 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_getivar): specify inline instead of static inline.
|
|
|
|
vm_getivar is called by vm_call_ivar and vm_getinstancevariable.
|
|
|
|
At least with GCC 4.8 and 5.3 on Linux, they are inlining it into
|
|
|
|
vm_call_ivar but not vm_getinstancevariable.
|
|
|
|
By `inline`, they correctly inline it and gains performance.
|
|
|
|
|
|
|
|
Speedup ratio: compare with the result of `ruby 2.4.0dev (2016-04-23
|
|
|
|
trunk 54727) [x86_64-linux]' (greater is better)
|
|
|
|
name built-ruby
|
|
|
|
loop_whileloop 1.001
|
|
|
|
vm1_ivar* 1.189
|
|
|
|
vm1_ivar_set* 1.024
|
|
|
|
|
2016-04-23 07:26:59 -04:00
|
|
|
Note the `inline`'s meaning is different between old GCC
|
2016-04-23 05:16:51 -04:00
|
|
|
and C99. Old GCC's inline means C99's extern inline.
|
|
|
|
https://gcc.gnu.org/onlinedocs/gcc/Inline.html
|
|
|
|
Since Ruby specify -std=iso9899:1999, it works like C99.
|
|
|
|
|
2016-04-23 03:15:26 -04:00
|
|
|
Sat Apr 23 16:11:39 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_mul_size_overflow): use UNLIKELY
|
2016-04-24 09:41:38 -04:00
|
|
|
by user side to improve generality.
|
2016-04-23 03:15:26 -04:00
|
|
|
|
2016-04-23 03:15:25 -04:00
|
|
|
Sat Apr 23 16:10:02 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (RB_LIKELY): use prefix in ruby.h.
|
|
|
|
|
|
|
|
* intern.h (LIKELY): define with RB_LIKELY.
|
|
|
|
|
2016-04-23 00:27:12 -04:00
|
|
|
Sat Apr 23 13:27:25 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* NEWS: Add descriptions for Time#to_time updates.
|
|
|
|
[Bug #12271]
|
|
|
|
|
2016-04-23 00:23:29 -04:00
|
|
|
Sat Apr 23 13:21:24 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* NEWS: Add descriptions for DateTime#to_time updates.
|
|
|
|
[Bug #12189]
|
|
|
|
|
2016-04-22 22:21:29 -04:00
|
|
|
Sat Apr 23 11:21:27 2016 Marcus Stollsteimer <sto.mar@web.de>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (Init_date_core): [DOC] Convert DateTime
|
|
|
|
documentation to RDoc from Markdown.
|
|
|
|
[ruby-core:75136] [Bug #12311]
|
|
|
|
|
2016-04-22 20:03:37 -04:00
|
|
|
Sat Apr 23 09:03:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ruby.c: cygwin does not use w32_cmdvector, command line can be
|
|
|
|
other than UTF-8. [ruby-dev:49519] [Bug #12184]
|
|
|
|
|
2016-04-22 12:02:25 -04:00
|
|
|
Sat Apr 23 01:00:03 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* configure.in: don't use the system-provided round(3) on AIX.
|
|
|
|
In AIX, round(0.49999999999999994) returns 1.0.
|
|
|
|
Use round() in numeric.c instead.
|
|
|
|
|
2016-04-22 08:20:06 -04:00
|
|
|
Fri Apr 22 21:00:44 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/ruby/test_time_tz.rb: Tests depends on Europe/Moscow removed
|
|
|
|
to avoid test failures due to the tzdata change.
|
|
|
|
https://github.com/eggert/tz/commit/8ee11a301cf173afb0c76e0315b9f9ec8ebb9d95
|
|
|
|
Found by naruse.
|
|
|
|
|
2016-04-22 07:42:31 -04:00
|
|
|
Fri Apr 22 20:18:40 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_mul_size_overflow): added to handle
|
|
|
|
mul overflow efficiently.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_alloc_tmp_buffer2): use rb_mul_size_overflow
|
|
|
|
and avoid division where it can define DSIZE_T.
|
|
|
|
|
|
|
|
* gc.c (xmalloc2_size): moved from ruby.h and use rb_mul_size_overflow.
|
|
|
|
|
2016-04-22 07:34:05 -04:00
|
|
|
Fri Apr 22 20:34:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (time_asctime): [DOC] add ctime example, not only
|
|
|
|
asctime. [ruby-core:75126] [Bug #12310]
|
|
|
|
|
2016-04-22 05:47:34 -04:00
|
|
|
Fri Apr 22 18:44:32 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* variable.c: use uint32_t instead of long to avoid confusion about
|
|
|
|
the type of ivtbl->numiv.
|
|
|
|
|
2016-04-22 02:09:29 -04:00
|
|
|
Fri Apr 22 15:09:27 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* eval_jump.c (exec_end_procs_chain): restore previous error info
|
|
|
|
for each end procs. [ruby-core:75038] [Bug #12302]
|
|
|
|
|
2016-04-22 02:07:19 -04:00
|
|
|
Fri Apr 22 15:04:56 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb: the fullpath of merger.rb is too long to
|
|
|
|
copy&paste on Windows. show shorter name instead on the platform.
|
|
|
|
I'm sure that the user of this command on Windows is only me.
|
|
|
|
|
2016-04-22 01:52:30 -04:00
|
|
|
Fri Apr 22 14:52:04 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/merger.rb: remove temporary file.
|
|
|
|
|
2016-04-21 22:27:10 -04:00
|
|
|
Fri Apr 22 11:27:03 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/net/http.rb: Improve documentation for SSL requests via GET method.
|
|
|
|
[fix GH-1325][ci skip] Patch by @jsyeo
|
|
|
|
|
2016-04-21 21:51:18 -04:00
|
|
|
Fri Apr 22 10:51:13 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/webrick/ssl.rb: Support to add SSLCiphers option.
|
|
|
|
[fix GH-1321] Patch by @rhadoo
|
|
|
|
|
2016-04-21 21:43:31 -04:00
|
|
|
Fri Apr 22 10:43:19 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c, win32/file.c: Removed obsoleted safe level checks.
|
|
|
|
[fix GH-1327] Patch by @cremno
|
|
|
|
|
2016-04-21 21:02:01 -04:00
|
|
|
Fri Apr 22 10:01:48 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* benchmark/bm_so_meteor_contest.rb: fix a typo.
|
|
|
|
[fix GH-1330][ci skip] Patch by @sachin21
|
|
|
|
|
2016-04-21 16:59:40 -04:00
|
|
|
Fri Apr 22 04:57:01 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* gc.c (rb_alloc_tmp_buffer_with_count): added like xmalloc2 to
|
|
|
|
avoid duplicated check of size.
|
|
|
|
|
|
|
|
* gc.c (ruby_xmalloc2): added to keep separate layers.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_alloc_tmp_buffer2): added to check
|
|
|
|
the size more statically.
|
|
|
|
|
2016-04-21 16:59:39 -04:00
|
|
|
Fri Apr 22 04:54:40 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (LIKELY): moved from internal.h.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (UNLIKELY): ditto.
|
|
|
|
|
2016-04-21 16:59:39 -04:00
|
|
|
Thu Apr 21 01:44:19 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* gc.c (objspace_malloc_prepare): remove size check because it is
|
|
|
|
used by objspace_xmalloc and objspace_xcalloc.
|
|
|
|
objspace_xmalloc introduces its own check in this commit.
|
|
|
|
objspace_xcalloc checks with xmalloc2_size (ruby_xmalloc2_size).
|
|
|
|
|
|
|
|
* gc.c (objspace_xmalloc0): common xmalloc function.
|
|
|
|
|
|
|
|
* gc.c (objspace_xmalloc): introduce its own size check.
|
|
|
|
|
|
|
|
* gc.c (objspace_xmalloc2): separated from ruby_xmalloc2 to clarify
|
|
|
|
the layer who has the responsibility to check the size.
|
|
|
|
|
|
|
|
* gc.c (objspace_xrealloc): remove duplicated size check.
|
|
|
|
|
|
|
|
* gc.c (ruby_xmalloc2): use objspace_xmalloc2.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (ruby_xmalloc2_size): follow the size limit
|
|
|
|
as SSIZE_MAX. Note that ISO C says size_t is unsigned integer.
|
|
|
|
|
2016-04-20 23:14:05 -04:00
|
|
|
Thu Apr 21 12:14:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: check if succeeded in creating config.h.
|
|
|
|
|
|
|
|
* tool/ifchange: ignore failures when TEST_COLORS unmatched. just
|
|
|
|
use the default value if expected name is not contained in it.
|
|
|
|
[ruby-core:75046] [Bug #12303]
|
|
|
|
|
2016-04-20 04:33:33 -04:00
|
|
|
Wed Apr 20 17:33:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/cgi/escape/escape.c (cgiesc_unescape): define unescape
|
|
|
|
method instead of _unescape, and should pass the optional
|
|
|
|
argument to the super method.
|
|
|
|
|
|
|
|
* lib/cgi/util.rb (CGI::Util#_unescape): remove intermediate
|
|
|
|
method.
|
|
|
|
|
2016-04-20 02:52:30 -04:00
|
|
|
Wed Apr 20 15:52:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (syntax_error_initialize): move the default message,
|
|
|
|
"compile error", from parse.y. the default parameter should
|
|
|
|
belong to the class definition.
|
|
|
|
|
|
|
|
* parse.y (yycompile0): use the default parameter.
|
|
|
|
|
2016-04-19 21:25:55 -04:00
|
|
|
Wed Apr 20 10:25:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (append_compile_error): use rb_syntax_error_append.
|
|
|
|
|
|
|
|
* error.c (rb_syntax_error_append): append messages into a
|
|
|
|
SyntaxError exception instance.
|
|
|
|
|
|
|
|
* parse.y (yycompile0): make new SyntaxError instance in main
|
2016-04-21 08:16:13 -04:00
|
|
|
mode, otherwise error_buffer should be a SyntaxError if error
|
2016-04-19 21:25:55 -04:00
|
|
|
has occurred.
|
|
|
|
|
2016-04-19 04:42:50 -04:00
|
|
|
Tue Apr 19 17:42:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (err_vcatf): rename, and separate appending message from
|
|
|
|
creating a string buffer.
|
|
|
|
|
|
|
|
* error.c (rb_syntax_error_append): merge rb_error_vsprintf and
|
|
|
|
rb_compile_err_append.
|
|
|
|
|
|
|
|
* parse.y (parser_compile_error): use rb_syntax_error_append.
|
|
|
|
|
2016-04-19 00:46:20 -04:00
|
|
|
Tue Apr 19 13:46:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (append_compile_error, compile_bug): pass iseq and get
|
|
|
|
error info and file from it, not by the thread error info.
|
|
|
|
|
|
|
|
* error.c (rb_report_bug_valist): take va_list instead of variadic
|
|
|
|
arguments, and just report the bug but not abort.
|
|
|
|
|
2016-04-19 00:20:48 -04:00
|
|
|
Tue Apr 19 13:18:12 2016 Naotoshi Seo <sonots@gmail.com>
|
|
|
|
|
|
|
|
* lib/time.rb: revert r54167 because it would break
|
|
|
|
backward compatibilities, and it is documented that
|
|
|
|
Time.parse does not take into account time zone
|
|
|
|
abbreations other than ones described in RFC 822
|
|
|
|
|
2016-04-19 00:13:19 -04:00
|
|
|
Tue Apr 19 13:12:03 2016 Naotoshi Seo <sonots@gmail.com>
|
|
|
|
|
|
|
|
* ChangeLog: Fix dates of previous commits
|
|
|
|
|
|
|
|
Tue Apr 19 12:45:03 2016 Naotoshi Seo <sonots@gmail.com>
|
2016-04-18 23:55:13 -04:00
|
|
|
|
2016-04-21 08:16:13 -04:00
|
|
|
* ChangeLog: Add descriptions for logger updates
|
2016-04-18 23:55:13 -04:00
|
|
|
* NEWS: Add descriptions for logger updates
|
|
|
|
|
2016-04-19 00:13:19 -04:00
|
|
|
Tue Apr 19 12:45:02 2016 Naotoshi Seo <sonots@gmail.com>
|
2016-04-18 23:55:13 -04:00
|
|
|
|
|
|
|
* lib/logger.rb: Add shift_period_suffix option
|
|
|
|
|
2016-04-19 00:13:19 -04:00
|
|
|
Tue Apr 19 12:45:01 2016 Naotoshi Seo <sonots@gmail.com>
|
2016-04-18 23:55:13 -04:00
|
|
|
|
|
|
|
* lib/logger.rb: Allow specifying logger parameters in constructor
|
|
|
|
such as level, progname, datetime_format, formatter.
|
|
|
|
|
2016-04-18 03:07:03 -04:00
|
|
|
Mon Apr 18 16:07:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (iseq_peephole_optimize): should not replace the
|
|
|
|
current target INSN, not to follow the replaced dangling link in
|
|
|
|
the caller. [ruby-core:74993] [Bug #11816]
|
|
|
|
|
2016-04-17 23:56:33 -04:00
|
|
|
Mon Apr 18 12:56:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (flo_truncate): add an optional parameter, digits, as
|
|
|
|
well as Float#round. [Feature #12245]
|
2016-04-17 23:55:33 -04:00
|
|
|
|
|
|
|
* numeric.c (int_truncate): add an optional parameter, digits, as
|
|
|
|
well as Integer#round. [Feature #12245]
|
|
|
|
|
2016-04-16 15:20:11 -04:00
|
|
|
Sun Apr 17 04:18:56 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb: revisions are strings.
|
|
|
|
|
2016-04-16 01:25:59 -04:00
|
|
|
Sat Apr 16 14:26:49 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/date/date_core.c : remove not used f_getlocal macro.
|
|
|
|
After r54553 f_getlocal macro is not used.
|
|
|
|
|
2016-04-16 01:14:13 -04:00
|
|
|
Sat Apr 16 14:15:24 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/date/date_core.c : remove not used f_utc6 macro.
|
|
|
|
After r54169 f_utc6 macro is not used.
|
|
|
|
|
2016-04-15 21:00:13 -04:00
|
|
|
Sat Apr 16 10:00:11 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* struct.c (struct_make_members_list, rb_struct_s_def): member
|
|
|
|
names should be unique. [ruby-core:74971] [Bug #12291]
|
2016-04-15 20:59:42 -04:00
|
|
|
|
|
|
|
* struct.c (struct_make_members_list): extract making member name
|
|
|
|
list from char* va_list, with creating symbols without
|
|
|
|
intermediate IDs.
|
|
|
|
|
2016-04-15 12:34:22 -04:00
|
|
|
Sat Apr 16 01:33:27 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb: sort revisions.
|
|
|
|
|
2016-04-15 12:26:38 -04:00
|
|
|
Sat Apr 16 01:16:02 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): Don't yield same element twice.
|
|
|
|
Found by nagachika.
|
|
|
|
|
2016-04-15 12:04:18 -04:00
|
|
|
Sat Apr 16 01:03:32 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): Fix SEGV by [1/2r, 1].sum.
|
|
|
|
|
2016-04-15 10:54:39 -04:00
|
|
|
Fri Apr 15 23:52:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* rational.c (rb_rational_plus): rename from rb_rational_add
|
|
|
|
to be aligned with rb_fix_plus.
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): ditto.
|
|
|
|
|
|
|
|
* internal.h: ditto.
|
|
|
|
|
2016-04-15 10:46:35 -04:00
|
|
|
Fri Apr 15 23:42:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* rational.c (rb_rational_add): rename from nurat_add.
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): use rb_rational_add directly.
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_sum): add assertions for an array of
|
|
|
|
Rational values.
|
|
|
|
|
2016-04-15 09:33:05 -04:00
|
|
|
Fri Apr 15 22:31:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): apply the precision compensated algorithm
|
|
|
|
for an array in which Rational and Float values are mixed.
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_sum): add assertions for the above
|
|
|
|
change.
|
|
|
|
|
2016-04-15 09:30:03 -04:00
|
|
|
Fri Apr 15 22:30:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
2016-04-15 08:12:25 -04:00
|
|
|
|
2016-04-15 09:30:03 -04:00
|
|
|
* thread.c (rb_thread_setname): defer setting native thread name
|
|
|
|
set in initialize until the native thread is created.
|
|
|
|
[ruby-core:74963] [Bug #12290]
|
2016-04-15 08:12:25 -04:00
|
|
|
|
2016-04-15 07:27:38 -04:00
|
|
|
Fri Apr 15 20:27:16 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
|
|
|
|
|
2016-04-15 02:39:49 -04:00
|
|
|
Fri Apr 15 15:38:58 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* common.mk (benchmark): order options for built-ruby and compare-ruby.
|
|
|
|
|
2016-04-15 01:16:04 -04:00
|
|
|
Fri Apr 15 14:14:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_sum): add assertions for Rational and
|
|
|
|
Complex numbers.
|
|
|
|
|
2016-04-14 21:07:14 -04:00
|
|
|
Fri Apr 15 10:07:11 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/io/console/console.c (console_key_pressed_p): raise the same
|
|
|
|
exception, "unknown virtual key code", for names with nul chars.
|
|
|
|
though console_win32_vk() considers the length and can deal with
|
|
|
|
nul chars, rb_sprintf() raised at PRIsVALUE previously, so quote
|
|
|
|
it if it is unprintable.
|
|
|
|
|
2016-04-14 20:02:59 -04:00
|
|
|
Fri Apr 15 09:02:58 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/io/console/console.c (rb_sym2str): fallback definition for
|
|
|
|
older ruby. [ruby-core:74953] [Bug #12284]
|
|
|
|
|
2016-04-14 08:48:44 -04:00
|
|
|
Thu Apr 14 21:46:36 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): Support the optional argument, init, and
|
|
|
|
block.
|
|
|
|
|
2016-04-14 06:06:41 -04:00
|
|
|
Thu Apr 14 19:02:41 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/irb/ext/save-history.rb: suppress warning: method redefined;
|
|
|
|
discarding old save_history=.
|
|
|
|
|
2016-04-14 01:58:16 -04:00
|
|
|
Thu Apr 14 14:58:14 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/tkutil/tkutil.c (tk_hash_kv): the third argument can be
|
|
|
|
nil not only an Array. reported by @windwiny at
|
|
|
|
https://github.com/ruby/ruby/commit/cdaa94e#commitcomment-17096618
|
|
|
|
|
2016-04-14 01:28:58 -04:00
|
|
|
Thu Apr 14 14:28:55 2016 cremno phobia <cremno@mail.ru>
|
|
|
|
|
|
|
|
* cont.c (fiber_initialize_machine_stack_context): fix wrong
|
|
|
|
_MSC_VER check, should be decimal but not hexadecimal.
|
|
|
|
[ruby-core:74936] [Bug #12279]
|
|
|
|
|
2016-04-13 09:51:53 -04:00
|
|
|
Wed Apr 13 22:51:38 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_sum): Array#sum is implemented.
|
|
|
|
Kahan's compensated summation algorithm for precise sum of float
|
|
|
|
numbers is moved from ary_inject_op in enum.c.
|
|
|
|
|
|
|
|
* enum.c (ary_inject_op): Don't specialize for float numbers.
|
|
|
|
|
2016-04-13 10:40:20 -04:00
|
|
|
[ruby-core:74569] [Feature #12217] proposed by mrkn.
|
2016-04-13 09:51:53 -04:00
|
|
|
|
2016-04-13 02:56:36 -04:00
|
|
|
Wed Apr 13 15:56:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (flo_ceil): add an optional parameter, digits, as
|
|
|
|
well as Float#round. [Feature #12245]
|
2016-04-13 02:54:38 -04:00
|
|
|
|
|
|
|
* numeric.c (flo_floor): add an optional parameter, digits, as
|
2016-04-14 21:17:51 -04:00
|
|
|
well as Float#round. [Feature #12245]
|
2016-04-13 02:50:24 -04:00
|
|
|
|
|
|
|
* numeric.c (int_ceil): add an optional parameter, digits, as
|
|
|
|
well as Integer#round. [Feature #12245]
|
2016-04-13 02:47:55 -04:00
|
|
|
|
|
|
|
* numeric.c (int_floor): add an optional parameter, digits, as
|
2016-04-13 02:50:24 -04:00
|
|
|
well as Integer#round. [Feature #12245]
|
2016-04-13 02:47:55 -04:00
|
|
|
|
2016-04-13 01:47:49 -04:00
|
|
|
Wed Apr 13 14:47:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c (Init_File): add alias File.empty? to File.zero?.
|
|
|
|
[Feature #9969]
|
|
|
|
|
2016-04-13 01:36:26 -04:00
|
|
|
Wed Apr 13 14:36:24 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (assign_in_cond): allow multiple assignment in
|
|
|
|
conditional expression. [Feature #10617]
|
|
|
|
|
2016-04-13 01:12:01 -04:00
|
|
|
Wed Apr 13 14:11:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_size): add wrapper function of BIGSIZE and
|
2016-04-14 09:40:30 -04:00
|
|
|
rename the method function with _m suffix.
|
2016-04-13 01:12:01 -04:00
|
|
|
|
|
|
|
* numeric.c (int_round_zero_p): extracted from rb_int_round.
|
|
|
|
optimize for Bignum, and convert VALUE returned by Numeric#size
|
|
|
|
to long.
|
|
|
|
|
2016-04-12 23:03:37 -04:00
|
|
|
Wed Apr 13 12:00:08 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* test/ruby/test_basicinstructions.rb: add a test to check access
|
|
|
|
instance variables on special const objects.
|
|
|
|
|
|
|
|
All of such objects are frozen, so that we can not set instance
|
|
|
|
variables for them. But we can read instance variables and return
|
|
|
|
default value (nil).
|
|
|
|
|
2016-04-12 07:40:37 -04:00
|
|
|
Tue Apr 12 20:40:35 2016 Kaneko Yuichiro <spiketeika@gmail.com>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (time_to_time): should preserve timezone
|
|
|
|
info. [ruby-core:74889] [Bug #12271]
|
|
|
|
|
2016-04-11 22:51:20 -04:00
|
|
|
Tue Apr 12 11:51:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (new_label_body): initialize bit fields, since
|
|
|
|
compile_data_alloc does not clear the memory. [Bug #12082]
|
|
|
|
|
2016-04-11 07:19:52 -04:00
|
|
|
Mon Apr 11 20:18:43 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* vm_backtrace.c (frame2klass): filter only for imemo_ment.
|
|
|
|
T_IMEMO/imemo_iseq can be passed here.
|
|
|
|
|
2016-04-11 04:43:06 -04:00
|
|
|
Mon Apr 11 17:43:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (iseq_optimize): disable tail call optimization in
|
|
|
|
rescued, rescue, and ensure blocks.
|
|
|
|
[ruby-core:73871] [Bug #12082]
|
|
|
|
|
2016-04-10 17:54:41 -04:00
|
|
|
Mon Apr 11 06:54:39 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c (apply2files): apply to a VALUE vector instead of a
|
|
|
|
temporary array.
|
|
|
|
|
2016-04-10 07:54:17 -04:00
|
|
|
Sun Apr 10 20:54:16 2016 Joe Swatosh <joe.swatosh@gmail.com>
|
|
|
|
|
|
|
|
* ext/win32/lib/win32/registry.rb (DeleteValue, DeleteKey): fix
|
|
|
|
API names. [ruby-core:74863] [Bug #12264]
|
|
|
|
|
2016-04-10 04:47:44 -04:00
|
|
|
Sun Apr 10 17:47:42 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c (rb_realpath_internal): no argument conversions since
|
|
|
|
this internal function does not need to_path and encoding
|
|
|
|
conversions, not to be affected by the default internal
|
|
|
|
encoding.
|
|
|
|
|
2016-04-08 21:03:15 -04:00
|
|
|
Sat Apr 9 10:03:12 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* load.c (rb_f_load): raise with the original path name before
|
|
|
|
encoding conversion.
|
|
|
|
|
2016-04-08 13:05:12 -04:00
|
|
|
Sat Apr 9 02:05:10 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* bignum.c (rb_cstr_parse_inum): [EXPERIMENTAL] new function to
|
|
|
|
parse integer in C-string with length. the name and the
|
|
|
|
arguments may be changed in the future.
|
|
|
|
|
|
|
|
* bignum.c (rb_str_to_inum): preserve encoding of the argument in
|
|
|
|
error messages, and no longer needs to copy non-terminated
|
|
|
|
strings.
|
|
|
|
|
|
|
|
* bignum.c (rb_str2big_{poweroftwo,normal,karatsuba,gmp}): ditto.
|
|
|
|
|
2016-04-07 06:04:05 -04:00
|
|
|
Thu Apr 7 19:04:03 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/regexp.rdoc (comments): [DOC] terminators cannot appear in
|
|
|
|
comments. [ruby-core:74838] [Bug #12256]
|
|
|
|
|
2016-04-06 22:24:16 -04:00
|
|
|
Thu Apr 7 11:24:14 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/tkutil/tkutil.c (cbsubst_initialize): fix out-of-bound
|
|
|
|
access when no arguments given. `p Tk::Event.new` crashed.
|
|
|
|
|
2016-04-06 10:29:17 -04:00
|
|
|
Fri Apr 1 01:26:00 2016 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* ext/coverage/coverage.c: Fully reset coverage to not persist global state.
|
|
|
|
It was returning old file coverages as empty arrays to the user.
|
|
|
|
[ruby-core:74596] [Bug #12220]
|
|
|
|
|
|
|
|
* ext/coverage/coverage.c (rb_coverages): remove unused static state.
|
|
|
|
|
|
|
|
* thread.c: Moved and renamed coverage_clear_result_i to reset_coverage_i.
|
|
|
|
|
|
|
|
* test/coverage/test_coverage.rb: improve precision of tests.
|
|
|
|
|
2016-04-06 09:41:33 -04:00
|
|
|
Wed Apr 6 22:41:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (rb_cv_lgamma_r_m0): fix the condition for
|
|
|
|
lgamma_r(-0.0). [Bug #12249]
|
|
|
|
|
2016-04-06 04:40:02 -04:00
|
|
|
Wed Apr 6 17:38:42 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/downloader.rb (RubyGems.download): follow the change of the
|
|
|
|
rubygems ssl_certs directory tree introduced by previous commit.
|
|
|
|
|
2016-04-06 02:01:14 -04:00
|
|
|
Wed Apr 6 15:00:27 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3.
|
|
|
|
Please see entries of 2.6.3 on
|
|
|
|
https://github.com/rubygems/rubygems/blob/master/History.txt
|
|
|
|
|
2016-04-06 01:13:29 -04:00
|
|
|
Wed Apr 6 14:13:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (rb_cv_lgamma_r_m0): check if lgamma_r(-0.0)
|
|
|
|
returns negative infinity. [Bug #12249]
|
|
|
|
|
|
|
|
* math.c (ruby_lgamma_r): define by the configured result.
|
|
|
|
|
2016-04-05 21:56:16 -04:00
|
|
|
Wed Apr 6 10:56:15 2016 Anton Davydov <antondavydov.o@gmail.com>
|
|
|
|
|
|
|
|
* lib/logger.rb (Logger#level=): remove unnecessary local
|
|
|
|
variable.
|
|
|
|
|
|
|
|
* lib/logger.rb (Logger#initialize, Logger#reopen): [DOC] mention
|
|
|
|
the default values. cherrypicked from [GH-1319].
|
|
|
|
|
2016-04-05 21:17:55 -04:00
|
|
|
Wed Apr 6 10:17:53 2016 cremno phobia <cremno@mail.ru>
|
|
|
|
|
|
|
|
* math.c (ruby_lgamma_r): missing/lgamma_r.c is used on Windows,
|
|
|
|
since msvcrt does not provide it.
|
|
|
|
|
|
|
|
* missing/lgamma_r.c (lgamma_r): fix lgamma(-0.0).
|
|
|
|
[ruby-core:74823] [Bug #12249]
|
|
|
|
|
2016-04-05 12:23:39 -04:00
|
|
|
Wed Apr 6 01:22:55 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* math.c (ruby_lgamma_r): mswin's lgamma_r also seems to be wrong.
|
|
|
|
cf. [Bug #12249]
|
|
|
|
|
2016-04-05 11:53:32 -04:00
|
|
|
Wed Apr 6 00:53:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* math.c (ruby_lgamma_r): fix lgamma(-0.0) on mingw and OSX.
|
2016-04-05 11:52:02 -04:00
|
|
|
|
|
|
|
* math.c (ruby_tgamma): fix tgamma(-0.0) on mingw.
|
|
|
|
[ruby-core:74817] [Bug #12249]
|
|
|
|
|
2016-04-05 01:54:03 -04:00
|
|
|
Tue Apr 5 14:50:28 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/nkf/nkf-utf8/nkf.c (mime_putc): fix typo.
|
|
|
|
[Bug #12202] [ruby-core:74802]
|
|
|
|
|
2016-04-04 11:06:46 -04:00
|
|
|
Tue Apr 5 00:06:44 2016 Aeris <aeris@imirhil.fr>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_ssl_tmp_key): Access to ephemeral
|
|
|
|
TLS session key in case of forward secrecy cipher. Only
|
|
|
|
available since OpenSSL 1.0.2. [Fix GH-1318]
|
|
|
|
|
|
|
|
* ext/openssl/extconf.rb: Check for SSL_get_server_tmp_key.
|
|
|
|
|
2016-04-04 10:37:07 -04:00
|
|
|
Mon Apr 4 23:37:05 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_core.h (rb_vm_struct): make at_exit a single linked list but
|
|
|
|
not RArray, not to mark the registered functions by the write
|
|
|
|
barrier. based on the patches by Evan Phoenix.
|
|
|
|
[ruby-core:73908] [Bug #12095]
|
|
|
|
|
2016-04-04 04:49:17 -04:00
|
|
|
Mon Apr 4 17:43:45 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
2016-04-04 12:12:03 -04:00
|
|
|
* gc.c: change default value of
|
2016-04-04 04:49:17 -04:00
|
|
|
RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO 0.3 -> 0.2
|
|
|
|
RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO 0.8 -> 0.65
|
|
|
|
|
|
|
|
These values are same as Ruby 2.0.0.
|
|
|
|
|
|
|
|
This change cause GC counts.
|
|
|
|
However, generational GC reduced each (minor) GC time and
|
|
|
|
increase memory locality. So that not so big impact on my
|
|
|
|
benchmarking results.
|
2016-04-04 12:12:03 -04:00
|
|
|
(surprisingly, this fix speed up programs on some cases)
|
2016-04-04 04:49:17 -04:00
|
|
|
|
|
|
|
You can change these values by environment variables
|
|
|
|
if you feel wrong.
|
|
|
|
|
2016-04-04 04:41:55 -04:00
|
|
|
Mon Apr 4 17:36:52 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c (get_envparam_double): take an upper_bound.
|
|
|
|
|
|
|
|
And also take an accept_zero flag which allow to accept zero
|
|
|
|
even if lower_bound is set.
|
|
|
|
|
|
|
|
* gc.c (ruby_gc_set_params): fix parameters.
|
|
|
|
|
|
|
|
RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO set 0.9 as *lower_bound*, so that
|
|
|
|
it should be upper_bound.
|
|
|
|
Set RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO as lower bound.
|
|
|
|
|
|
|
|
Also set lower/upper bound of RUBY_GC_HEAP_FREE_SLOTS_GOAL_RATIO to
|
|
|
|
RUBY_GC_HEAP_FREE_SLOTS_MIN/MAX_RATIO.
|
|
|
|
|
2016-04-04 03:42:51 -04:00
|
|
|
Mon Apr 4 16:41:32 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* vm.c (Init_VM): should pass tokens.
|
|
|
|
|
2016-04-02 20:34:31 -04:00
|
|
|
Sun Apr 3 09:34:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (flodivmod): round division if it is a finite number
|
|
|
|
and module is required.
|
|
|
|
|
|
|
|
* numeric.c (dbl2ival): do not round here.
|
|
|
|
|
|
|
|
* numeric.c (flo_ceil): use dbl2ival.
|
|
|
|
|
|
|
|
* numeric.c (flo_round): round explicitly.
|
|
|
|
|
2016-04-02 02:24:19 -04:00
|
|
|
Sat Apr 2 15:24:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/intern.h (rb_check_arity): returns argc.
|
|
|
|
|
2016-04-01 07:58:47 -04:00
|
|
|
Fri Apr 1 20:58:33 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Data generation to implement
|
|
|
|
swapcase functionality for titlecase characters. Swapcase isn't defined
|
|
|
|
by Unicode, because the purpose/usage of swapcase is unclear anyway.
|
2016-04-07 12:43:36 -04:00
|
|
|
The implementation follows a proposal from Nobu, swapping the case of
|
2016-04-01 07:58:47 -04:00
|
|
|
each component of a titlecase character individually.
|
|
|
|
This means that the titlecase characters have to be decomposed.
|
|
|
|
|
|
|
|
* enc/unicode.c: Code using the above data.
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Tests for the above.
|
|
|
|
|
2016-04-01 01:55:30 -04:00
|
|
|
Fri Apr 1 14:55:28 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing
|
|
|
|
the real git_dir, such as when the git working tree is a "linked
|
|
|
|
working tree" (a working tree created by git-worktree). So use
|
|
|
|
git-rev-parse --git-dir to check if $srcdir is the top-level of a git
|
|
|
|
repository, not just checking if the $srcdir/.git directory does exist
|
|
|
|
or not. [ruby-core:74759] [Bug #12239]
|
|
|
|
|
|
|
|
* tool/change_maker.rb: use tool/vcs.rb to detect VCS. This used to have
|
|
|
|
its own VCS detection code, while we have tool/vcs.rb.
|
|
|
|
|
|
|
|
* tool/vcs.rb (detect): remove code duplication
|
|
|
|
|
2016-03-31 16:33:55 -04:00
|
|
|
Fri Apr 1 04:50:44 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc):
|
|
|
|
enable SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER by default
|
|
|
|
[Bug #12126]
|
|
|
|
|
2016-03-31 12:14:52 -04:00
|
|
|
Fri Apr 1 01:13:55 2016 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* thread.c (update_coverage): Do not track coverage in loaded files
|
|
|
|
after Coverage.result. Avoids out-of-bounds access. [Bug #12237]
|
|
|
|
|
|
|
|
* ext/coverage/coverage.c (coverage_clear_result_i): document.
|
|
|
|
|
2016-03-31 06:16:48 -04:00
|
|
|
Thu Mar 31 19:16:16 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: need to set initial value of GC_HEAP_FREE_SLOTS_GOAL_RATIO.
|
|
|
|
|
2016-03-31 05:16:48 -04:00
|
|
|
Thu Mar 31 17:50:27 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: change additional allocation policy.
|
|
|
|
|
2016-04-01 09:00:20 -04:00
|
|
|
Introduce new environment variable
|
|
|
|
RUBY_GC_HEAP_FREE_SLOTS_GOAL_RATIO (goal_ratio) to calculate the
|
|
|
|
ratio of additional memory.
|
2016-03-31 05:16:48 -04:00
|
|
|
|
|
|
|
Before this change, we add pages with the following formula
|
|
|
|
(when free_slots < total_pages * RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO):
|
|
|
|
next_pages = total_pages * RUBY_GC_HEAP_GROWTH_FACTOR
|
|
|
|
|
|
|
|
This addition can allocate too much.
|
|
|
|
|
|
|
|
With this change, we increase pages to satisfy the following formula:
|
|
|
|
next_free_slots = next_total_slots * goal_ratio
|
|
|
|
where
|
|
|
|
next_free_slots = free_slots + adding_slots
|
|
|
|
next_total_slots = total_slots + adding_slots.
|
|
|
|
|
|
|
|
If you want to prepare many free slots, increase this ratio.
|
|
|
|
|
|
|
|
If this variable is 0, then simply multiply
|
|
|
|
RUBY_GC_HEAP_GROWTH_FACTOR.
|
|
|
|
|
|
|
|
* gc.c (get_envparam_double): enable to accept 0.
|
|
|
|
|
2016-03-31 04:49:09 -04:00
|
|
|
Thu Mar 31 17:48:25 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c (gc_marks_finish): fix syntax error.
|
|
|
|
|
2016-03-31 04:21:35 -04:00
|
|
|
Thu Mar 31 16:49:36 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: simplify allocate/free detecting logic at the end of marking.
|
|
|
|
|
|
|
|
Before this change, heap_pages_min_slots are calculated at the
|
2016-04-11 08:39:31 -04:00
|
|
|
beginning sweeping phase. And this value is used at the end of
|
2016-03-31 04:21:35 -04:00
|
|
|
*next* marking phase.
|
|
|
|
|
|
|
|
To simplify it, we use this value at the end of this marking phase.
|
|
|
|
It means that we don't need to store this value as global state.
|
|
|
|
|
|
|
|
Also heap_pages_max_slots is calculated at the begging of sweeping
|
|
|
|
phase and used at the end of sweeping phase.
|
|
|
|
To simplify this logic, we introduced new global value
|
|
|
|
heap_pages_freeable_pages it means extra pages count we can free.
|
|
|
|
gc_sweep_step() checks this value and moves empty pages to tomb_heap
|
|
|
|
not more than this value.
|
|
|
|
|
|
|
|
Because of this fix, heap_pages_swept_slots is no longer needed.
|
|
|
|
|
|
|
|
* gc.c (rb_objspace_t::heap_pages): restruct the objspace global
|
|
|
|
status.
|
|
|
|
|
2016-04-01 09:00:20 -04:00
|
|
|
remove the following fields
|
2016-03-31 04:21:35 -04:00
|
|
|
* swept_slots (and heap_pages_swept_slots)
|
|
|
|
* min_free_slots (and heap_pages_min_free_slots)
|
|
|
|
* max_free_slots (and heap_pages_max_free_slots)
|
|
|
|
And add the following filed.
|
|
|
|
* freeable_pages (and heap_pages_freeable_pages)
|
|
|
|
|
|
|
|
* gc.c (heap_pages_free_unused_pages): unlink tomb heap pages
|
|
|
|
because tomb heap should have only freeable pages.
|
|
|
|
|
|
|
|
* gc.c (heap_extend_pages): add parameters for future extension.
|
|
|
|
|
2016-03-31 03:45:13 -04:00
|
|
|
Thu Mar 31 16:43:02 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: add GC parameters to configure the following values:
|
|
|
|
* RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO:
|
|
|
|
allocate additional pages when free slots is lower than
|
|
|
|
the value (total_slots * (this ratio)).
|
|
|
|
* RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO:
|
2016-04-01 09:00:20 -04:00
|
|
|
allow to free pages when free slots is greater than
|
2016-03-31 03:45:13 -04:00
|
|
|
the value (total_slots * (this ratio)).
|
|
|
|
|
|
|
|
Before this change, these values are hard coded.
|
|
|
|
|
|
|
|
* gc.c (ruby_gc_params_t): ditto.
|
|
|
|
|
|
|
|
* gc.c (ruby_gc_set_params): ditto.
|
|
|
|
|
2016-03-31 03:02:40 -04:00
|
|
|
Thu Mar 31 15:59:17 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c (gc_verify_heap_page): check the number of zombies.
|
|
|
|
|
|
|
|
* gc.c (gc_verify_heap_pages): check also tomb heap.
|
|
|
|
|
2016-03-31 02:51:27 -04:00
|
|
|
Thu Mar 31 15:48:18 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c (gc_page_sweep): return free slots count.
|
|
|
|
|
|
|
|
* gc.c (gc_sweep_step): use returned free slots count.
|
|
|
|
|
|
|
|
* gc.c (gc_sweep_step): change variable name `next'
|
|
|
|
to `next_sweep_page'.
|
|
|
|
|
2016-03-30 22:33:51 -04:00
|
|
|
Thu Mar 31 11:33:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (d_lite_strftime, dt_lite_strftime): [DOC]
|
|
|
|
fix indent not to be a big sole verbatim.
|
|
|
|
|
2016-03-30 22:18:21 -04:00
|
|
|
Thu Mar 31 11:18:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (Init_date_core): [DOC] fix misplaced doc
|
|
|
|
of DateTime. [ruby-core:74729] [Bug #12233]
|
|
|
|
|
2016-03-30 14:41:46 -04:00
|
|
|
Thu Mar 31 03:41:02 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/nkf/nkf-utf8/nkf.c: Merge upstream 69f7e74dde.
|
|
|
|
fix indent.
|
|
|
|
|
2016-03-30 03:33:21 -04:00
|
|
|
Wed Mar 30 16:33:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* extension.rdoc, extension.ja.rdoc: [DOC] Fix some errors.
|
|
|
|
Renamed files, wrong method names or argument types; the example
|
|
|
|
GetDBM macro is now updated to the current version of the actual
|
|
|
|
code. patch by Marcus Stollsteimer in [ruby-core:74690].
|
|
|
|
[Bug #12228]
|
|
|
|
|
2016-03-29 20:46:05 -04:00
|
|
|
Wed Mar 30 09:46:01 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/open-uri.rb: Use `userinfo` for authenticated proxy.
|
|
|
|
[fix GH-1148] Patch by @SokichiFujita
|
|
|
|
* test/open-uri/test_open-uri.rb: ditto.
|
|
|
|
[fix GH-1309] Patch by @jdamick
|
|
|
|
|
2016-03-29 12:57:33 -04:00
|
|
|
Wed Mar 30 01:56:06 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/nkf/nkf-utf8/nkf.c: Merge upstream 4f3edf80a0.
|
|
|
|
patched by Anton Sivakov [Bug #12201] [Bug #12202]
|
|
|
|
|
2016-03-29 12:55:55 -04:00
|
|
|
Wed Mar 30 01:54:30 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-04-01 09:00:20 -04:00
|
|
|
* tool/redmine-backporter.rb: add given revision to current changesets
|
2016-03-29 12:55:55 -04:00
|
|
|
on associating the revision to the related ticket.
|
|
|
|
|
|
|
|
Wed Mar 30 01:53:17 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/merger.rb: update revision.h before merge.
|
|
|
|
|
2016-03-29 06:34:54 -04:00
|
|
|
Tue Mar 29 19:33:54 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* addr2line.c: define toupper for its use. fix r54391.
|
|
|
|
|
* include/ruby/ruby.h (rb_isupper, rb_islower, rb_isalpha, rb_isdigit,
rb_isalnum, rb_isxdigit, rb_isblank, rb_isspace, rb_isblank,
rb_iscntrl, rb_isprint, rb_ispunct, rb_isgraph,
rb_tolower, rb_toupper): use inline function to avoid function call.
* include/ruby/ruby.h (rb_isascii): use inline function to clarify
the logic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-29 06:24:05 -04:00
|
|
|
Tue Mar 29 19:23:46 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_isupper, rb_islower, rb_isalpha, rb_isdigit,
|
|
|
|
rb_isalnum, rb_isxdigit, rb_isblank, rb_isspace, rb_isblank,
|
|
|
|
rb_iscntrl, rb_isprint, rb_ispunct, rb_isgraph,
|
|
|
|
rb_tolower, rb_toupper): use inline function to avoid function call.
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (rb_isascii): use inline function to clarify
|
|
|
|
the logic.
|
|
|
|
|
2016-03-29 05:59:27 -04:00
|
|
|
Tue Mar 29 18:56:55 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb (backport): show merger.rb's path.
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb (show): show current issue again if no
|
|
|
|
ticket number is given.
|
|
|
|
|
|
|
|
* tool/redmine-backporter.rb (rel): show error message if current
|
|
|
|
bugs.ruby-lang.org doesn't support the API.
|
|
|
|
|
|
|
|
Tue Mar 29 18:54:34 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/merger.rb: support to backport header as backport identifier.
|
|
|
|
Now you can specify by 'merge revision(s) 49254: [Backport #10738]'.
|
|
|
|
|
2016-03-29 03:53:43 -04:00
|
|
|
Tue Mar 29 16:53:44 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Tweaked handling of 6
|
|
|
|
special cases in CaseUnfold_11_Table.
|
|
|
|
|
|
|
|
* enc/unicode.c: Adjustments for above.
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Tests for the above: Some tests in
|
|
|
|
test_titlecase activated; test_greek added. A test in test_cherokee fixed.
|
|
|
|
|
2016-03-29 00:30:58 -04:00
|
|
|
Tue Mar 29 13:31:00 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Cleaned up some comments.
|
|
|
|
|
2016-03-29 00:24:55 -04:00
|
|
|
Tue Mar 29 13:24:56 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Removing data for idempotent
|
|
|
|
titlecasing.
|
|
|
|
|
|
|
|
* enc/unicode.c: Adjust code to data removal.
|
|
|
|
|
2016-03-28 23:45:32 -04:00
|
|
|
Tue Mar 29 12:45:18 2016 Laurent Arnoud <laurent@spkdev.net>
|
|
|
|
|
|
|
|
* lib/webrick/httpresponse.rb: Move error_body to method. It allow to
|
|
|
|
override the body more easily. [fix GH-1307]
|
|
|
|
* test/webrick/test_httpresponse.rb: ditto.
|
|
|
|
|
2016-03-28 17:40:55 -04:00
|
|
|
Tue Mar 29 06:40:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (rb_compile_err_append): rb_thread_t::base_block is no
|
|
|
|
longer used.
|
|
|
|
|
|
|
|
* iseq.c (rb_iseq_compile_with_option): ditto, no protection is
|
|
|
|
needed.
|
|
|
|
|
2016-03-28 17:39:24 -04:00
|
|
|
Tue Mar 29 06:39:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (struct parser_params): move parse_in_eval flag from
|
|
|
|
rb_thread_t.
|
|
|
|
|
|
|
|
* parse.y (rb_parser_set_context): set parsing context, not only
|
|
|
|
mild error flag.
|
|
|
|
|
|
|
|
* iseq.c (rb_iseq_compile_with_option): the parser now refers no
|
|
|
|
thread local states to be restored.
|
|
|
|
|
|
|
|
* vm_eval.c (eval_string_with_cref): ditto.
|
|
|
|
|
2016-03-28 08:25:41 -04:00
|
|
|
Mon Mar 28 21:24:02 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
|
|
|
* numeric.c (int_pos_p): fix typos.
|
|
|
|
|
2016-03-28 01:54:47 -04:00
|
|
|
Mon Mar 28 14:54:49 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Refactoring in preparation for data reduction for
|
|
|
|
titlecase.
|
|
|
|
|
2016-03-28 01:36:35 -04:00
|
|
|
Mon Mar 28 14:36:36 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Minor refactoring for I WITH DOT ABOVE.
|
|
|
|
|
2016-03-28 01:26:23 -04:00
|
|
|
Mon Mar 28 14:26:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Removed code now covered by data from table.
|
|
|
|
|
2016-03-27 22:49:20 -04:00
|
|
|
Mon Mar 28 11:49:21 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Adding comments. [ci skip]
|
|
|
|
|
2016-03-27 22:30:28 -04:00
|
|
|
Mon Mar 28 11:30:23 2016 Shinichi Maeshima <netwillnet@gmail.com>
|
|
|
|
|
|
|
|
* lib/rubygems.rb: Fix `Gem.find_spec_for_exe` picks oldest gem.
|
|
|
|
https://github.com/travis-ci/travis-ci/issues/5798
|
|
|
|
https://github.com/rubygems/rubygems/pull/1566
|
|
|
|
* test/rubygems/test_gem.rb: ditto.
|
|
|
|
|
2016-03-27 22:26:39 -04:00
|
|
|
Mon Mar 28 11:26:31 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.2.
|
|
|
|
Please see entries of 2.6.2 on
|
|
|
|
https://github.com/rubygems/rubygems/blob/master/History.txt
|
|
|
|
|
2016-03-27 22:02:37 -04:00
|
|
|
Mon Mar 28 11:02:31 2016 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
|
|
|
|
|
|
|
* lib/rubygems/test_case.rb: Fix test on Windows for inconsistent temp path.
|
|
|
|
https://github.com/rubygems/rubygems/pull/1554
|
|
|
|
[Bug #12193][ruby-core:74431]
|
|
|
|
|
2016-03-27 19:19:50 -04:00
|
|
|
Mon Mar 28 08:19:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* sprintf.c (rb_str_format): refactor floating point format of
|
2016-04-11 08:39:31 -04:00
|
|
|
Rational by using generic Integer functions.
|
2016-03-27 19:18:52 -04:00
|
|
|
|
|
|
|
* sprintf.c (rb_str_format): fix buffer overflow, length must be
|
|
|
|
greater than precision. reported by William Bowling <will AT
|
|
|
|
wbowling.info>.
|
|
|
|
|
2016-03-26 23:13:39 -04:00
|
|
|
Sun Mar 27 12:13:37 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* sprintf.c (rb_str_format): convert Rational to floating point
|
2016-04-11 08:39:31 -04:00
|
|
|
format by using generic Integer functions, not by methods which
|
2016-03-26 23:13:39 -04:00
|
|
|
can be overwritten.
|
|
|
|
|
2016-03-25 21:55:14 -04:00
|
|
|
Sat Mar 26 10:55:12 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_int2str): conversion function to String for
|
|
|
|
generic Integer.
|
2016-03-25 21:54:50 -04:00
|
|
|
|
|
|
|
* numeric.c (rb_int_round): rounding function for generic
|
|
|
|
Integers.
|
2016-03-25 21:54:16 -04:00
|
|
|
|
|
|
|
* numeric.c (rb_int_{uminus,plus,minus,mul,idiv,modulo}): basic
|
|
|
|
arithmetic functions for generic Integers.
|
2016-03-25 21:52:00 -04:00
|
|
|
|
|
|
|
* numeric.c (FIXNUM_{POSITIVE,NEGATIVE,ZERO}_P): predict macros
|
|
|
|
only for Fixnum.
|
|
|
|
|
2016-03-25 17:35:39 -04:00
|
|
|
Sat Mar 26 06:34:24 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
2016-03-25 17:44:26 -04:00
|
|
|
* localeinit.c (rb_locale_charmap_index): fix prototype.
|
|
|
|
patched by Andreas Schwab [Bug #12218]
|
2016-03-25 17:35:39 -04:00
|
|
|
|
2016-03-25 03:40:49 -04:00
|
|
|
Fri Mar 25 16:40:48 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Additional tests title case;
|
|
|
|
some not yet activated.
|
|
|
|
|
2016-03-25 00:38:13 -04:00
|
|
|
Fri Mar 25 13:38:11 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* ext/openssl/extconf.rb: check SSL_CTX_set_next_proto_select_cb
|
|
|
|
function rather than OPENSSL_NPN_NEGOTIATED macro. it exists
|
|
|
|
even if it is disabled by OpenSSL configuration.
|
|
|
|
[ruby-core:74384] [Bug #12182]
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c: update #ifdef(s) as above.
|
|
|
|
|
|
|
|
* test/openssl/test_ssl.rb: skip NPN tests if NPN is disabled.
|
|
|
|
|
2016-03-24 22:08:39 -04:00
|
|
|
Fri Mar 25 11:08:37 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/uri/http.rb (URI::HTTP#initialize): [DOC] fix example,
|
|
|
|
missing mandatory arguments. [ruby-core:74540] [Bug #12215]
|
|
|
|
|
2016-03-24 12:51:30 -04:00
|
|
|
Fri Mar 25 01:50:58 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread_pthread.c (reserve_stack): fix reserving position where
|
|
|
|
the stack growing bottom to top. [Bug #12118]
|
|
|
|
|
2016-03-24 12:10:43 -04:00
|
|
|
Fri Mar 25 01:10:42 2016 Sebastian Schuberth <sschuberth@gmail.com>
|
|
|
|
|
|
|
|
* lib/mkmf.rb (find_executable0): On Windows, it is actually valid
|
|
|
|
to surround individual PATH directory entries with double
|
|
|
|
quotes. Remove these before joining the path as otherwise the
|
|
|
|
literal quotes would become part of the path, resulting in the
|
|
|
|
executable not to be found. [Fix GH-1305]
|
|
|
|
|
2016-03-24 09:38:20 -04:00
|
|
|
Thu Mar 24 22:38:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* strftime.c (FMT, FMTV): remove recursive-assignments to get rid
|
|
|
|
of undefined behavior. [ruby-core:74532] [Bug #12213]
|
|
|
|
|
2016-03-24 04:44:03 -04:00
|
|
|
Thu Mar 24 17:44:02 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* strftime.c (FMT_PADDING): extract format for padding.
|
|
|
|
|
|
|
|
* strftime.c (FMT_PRECISION): extract precision formula.
|
|
|
|
|
|
|
|
* strftime.c (FMTV): append formatted string to expand the result.
|
|
|
|
|
2016-03-24 01:20:22 -04:00
|
|
|
Thu Mar 24 14:20:21 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* strftime.c (STRFTIME): deal with case conversion flags for
|
|
|
|
recursive formats.
|
|
|
|
|
2016-03-23 23:43:28 -04:00
|
|
|
Thu Mar 24 12:43:26 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (dt_lite_iso8601): strftimev() always
|
|
|
|
returns a String, so append them directly.
|
2016-03-23 23:43:06 -04:00
|
|
|
|
|
|
|
* ext/date/date_core.c (d_lite_jisx0301, iso8601_timediv),
|
|
|
|
(dt_lite_jisx0301): format by the format string in local buffer
|
|
|
|
to prevent intermediate strings from GC.
|
2016-03-23 23:42:37 -04:00
|
|
|
|
|
|
|
* ext/date/date_core.c (mk_inspect_raw, mk_inspect): inspect by
|
|
|
|
"%+"PRIsVALUE, to prevent intermediate strings from GC.
|
|
|
|
|
2016-03-23 22:43:34 -04:00
|
|
|
Thu Mar 24 11:43:32 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* strftime.c (rb_strftime_with_timespec): remove unnecessary
|
|
|
|
check, as `s` equals to `endp` when recursed STRFTIME resized
|
|
|
|
the capacity same as the size.
|
|
|
|
|
2016-03-23 08:50:24 -04:00
|
|
|
Wed Mar 23 21:48:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (ary_inject_op): put subtract operation out of if-clause.
|
|
|
|
|
2016-03-23 08:41:00 -04:00
|
|
|
Wed Mar 23 21:38:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* enum.c (ary_inject_op): Use Kahan's compensated summation algorithm
|
|
|
|
for summing up float values.
|
|
|
|
|
2016-03-23 07:57:01 -04:00
|
|
|
Wed Mar 23 20:56:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* strftime.c (rb_strftime_with_timespec): append formatted results
|
|
|
|
to the given string with expanding, and also deal with NUL chars.
|
|
|
|
|
|
|
|
* strftime.c (rb_strftime, rb_strftime_timespec): return formatted
|
|
|
|
string, not the length put in the given buffer.
|
|
|
|
|
|
|
|
* time.c (rb_strftime_alloc): no longer needs to retry with
|
|
|
|
reallocating buffers.
|
|
|
|
|
|
|
|
* time.c (time_strftime): no longer needs to split by NUL chars.
|
|
|
|
|
2016-03-23 01:25:29 -04:00
|
|
|
Wed Mar 23 14:23:54 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rdoc/ri/driver.rb (interactive): rescue NotFoundError raised in
|
|
|
|
expand_name. (display_name rescues NotFoundError by itself,
|
|
|
|
the original logic looks buggy...)
|
|
|
|
|
2016-03-22 22:44:54 -04:00
|
|
|
Wed Mar 23 11:44:53 2016 cremno <cremno@mail.ru>
|
|
|
|
|
|
|
|
* marshal.c (r_long): cast to `signed char`, which is used
|
|
|
|
already, instead of SIGN_EXTEND_CHAR.
|
|
|
|
|
|
|
|
* parse.y: SIGN_EXTEND_CHAR is no longer used. [Fix GH-1302]
|
|
|
|
|
2016-03-22 22:38:49 -04:00
|
|
|
Wed Mar 23 11:38:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL_PARAM):
|
|
|
|
* add missing parentheses and remove double quotes.
|
|
|
|
* rename to get rid of recursive references.
|
|
|
|
* as --excludes-dir option is for a path name, its argument
|
|
|
|
should be converted.
|
|
|
|
[ruby-dev:49526] [Bug #12199]
|
|
|
|
|
2016-03-22 21:39:41 -04:00
|
|
|
Wed Mar 23 10:39:38 2016 Koichi ITO <koic.ito@gmail.com>
|
|
|
|
|
|
|
|
* variable.c: Added documentation about order of `Module#constants`
|
|
|
|
[ci skip][Bug #12121][ruby-dev:49505][fix GH-1301]
|
|
|
|
|
2016-03-22 08:08:30 -04:00
|
|
|
Tue Mar 22 21:08:30 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h: Additional flag for characters that are titlecase.
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Using above flag in data.
|
|
|
|
|
|
|
|
* enc/unicode.c: Marking capitalized character as unmodified if it is
|
|
|
|
already titlecase.
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Tests for above functionality.
|
|
|
|
|
2016-03-22 01:19:01 -04:00
|
|
|
Tue Mar 22 14:18:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (lambda_body, parser_yylex): warn mismatched indentation
|
|
|
|
of lambda block.
|
|
|
|
|
2016-03-21 22:41:24 -04:00
|
|
|
Tue Mar 22 11:36:49 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (wmul): wrong condition.
|
|
|
|
fixed many test failures on 32bit and LLP64 platforms.
|
|
|
|
|
2016-03-21 21:37:01 -04:00
|
|
|
Tue Mar 22 10:31:34 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (wdiv, wmod): wdivmod0() assumes the 3rd and the 4th arguments
|
|
|
|
are valid pointers.
|
|
|
|
maybe checking them in wdivmod0() is better manner, but I guess that
|
|
|
|
passing real dummy pointers may be faster than checking and branching
|
|
|
|
in wdivmod0().
|
|
|
|
this commit fixes SEGV on 32bit and LLP64 platforms.
|
|
|
|
|
2016-03-21 21:24:55 -04:00
|
|
|
Tue Mar 22 10:24:04 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (divmodv): void function never returns any value.
|
|
|
|
|
2016-03-21 21:11:03 -04:00
|
|
|
Tue Mar 22 10:11:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print
|
|
|
|
failed messages only if replacing mode, otherwise defer them
|
|
|
|
until the end, to get rid of interleaving failures with progress
|
|
|
|
messages. refix r54195.
|
|
|
|
|
2016-03-21 14:57:30 -04:00
|
|
|
Tue Mar 22 03:45:03 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.
|
|
|
|
|
|
|
|
* time.c (wmul): use MUL_OVERFLOW_FIXWV_P and only switch.
|
|
|
|
|
|
|
|
* time.c (wmul): use mul which has Fixnum optimization.
|
|
|
|
|
|
|
|
* time.c (rb_time_magnify): If WIDEVALUE_IS_WIDER, wmul() has the same
|
|
|
|
optimized logic, else mul() has also the similar logic for Fixnum.
|
|
|
|
|
|
|
|
* time.c (rb_time_unmagnify): almost ditto.
|
|
|
|
|
2016-03-21 14:19:15 -04:00
|
|
|
Tue Mar 22 03:10:09 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (divmodv): add the case both arguments are Fixnum.
|
|
|
|
|
|
|
|
* time.c (wquo): use quo which has Fixnum optimization.
|
|
|
|
|
|
|
|
* time.c (wdivmod0): added for WIDEVALUE_IS_WIDER.
|
|
|
|
|
|
|
|
* time.c (wdivmod): use wdivmod0 and divmodv.
|
|
|
|
divmodv has Fixnum optimization.
|
|
|
|
|
|
|
|
* time.c (wdiv): use wdivmod0 and div to avoid the use of divmodv which
|
|
|
|
calls id_quo whose return value is array.
|
|
|
|
|
|
|
|
* time.c (wmod): use wdivmod0 and mod to avoid the use of divmodv which
|
|
|
|
calls id_quo whose return value is array.
|
|
|
|
|
2016-03-21 09:36:03 -04:00
|
|
|
Mon Mar 21 22:32:50 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (rb_fix_divmod_fix): like r54213, use FIX2NUM only if
|
|
|
|
x == FIXNUM_MIN && y == -1. This must be a rare case and it is
|
|
|
|
expected compiler to handle well.
|
|
|
|
|
2016-03-21 09:17:45 -04:00
|
|
|
Mon Mar 21 22:15:11 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (mod): Add Fixnum case.
|
|
|
|
|
|
|
|
* time.c (quo): c can be Fixnum except a == FIXNUM_MIN && b == -1.
|
|
|
|
Such case can be optimized out because quo()'s argument is constant.
|
|
|
|
|
2016-03-21 09:09:26 -04:00
|
|
|
Mon Mar 21 22:09:24 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (rb_fix_mul_fix): multiply converted values, not
|
|
|
|
object VALUEs.
|
|
|
|
|
2016-03-21 07:18:31 -04:00
|
|
|
Mon Mar 21 20:18:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* common.mk (TEST_EXCLUDES, EXCLUDE_TESTFRAMEWORK): use full spell
|
|
|
|
long option.
|
|
|
|
|
|
|
|
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL): suppress path name
|
|
|
|
conversions by msys2. [ruby-dev:49525] [Bug #12199]
|
|
|
|
|
2016-03-21 06:09:33 -04:00
|
|
|
Mon Mar 21 19:09:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (enc_succ_alnum_char): try to skip an invalid character
|
|
|
|
gap between GREEK CAPITAL RHO and SIGMA.
|
|
|
|
[ruby-core:74478] [Bug #12204]
|
|
|
|
|
2016-03-21 05:55:50 -04:00
|
|
|
Mon Mar 21 18:55:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* node.c (rb_gc_mark_node): NODE_MATCH2 can have nd_args, u3,
|
|
|
|
since r54100.
|
|
|
|
|
2016-03-20 08:18:28 -04:00
|
|
|
Sun Mar 20 21:17:13 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (rb_int128t2big): declare only when HAVE_INT128_T.
|
|
|
|
fixed a compile error with VC++ introduced at r54203.
|
|
|
|
|
2016-03-20 07:10:43 -04:00
|
|
|
Sun Mar 20 20:10:14 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (DLONG): defined if long is 32bit (and LONG_LONG is 64bit;
|
|
|
|
but LONG_LONG is always defined as 64bit), or there's int128_t.
|
|
|
|
|
|
|
|
* internal.h (DL2NUM): defined if DLONG is defined.
|
|
|
|
|
|
|
|
* internal.h (rb_fix_mul_fix): defined for `Fixnum * Fixnum`.
|
|
|
|
|
|
|
|
* insns.def (opt_mul): use rb_fix_mul_fix().
|
|
|
|
|
|
|
|
* numeric.c (fix_mul): ditto.
|
|
|
|
|
|
|
|
* time.c (mul): ditto.
|
|
|
|
|
2016-03-20 05:53:50 -04:00
|
|
|
Sun Mar 20 18:53:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (fix_gt, fix_ge, fix_lt, fix_le): optimize comparisons
|
|
|
|
Fixnum against Bignum by rb_big_cmp in inversed order without
|
|
|
|
new Bignum instance.
|
|
|
|
|
2016-03-20 05:47:20 -04:00
|
|
|
Sun Mar 20 18:44:52 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (add): remove FIXABLE() which is in LONG2NUM().
|
|
|
|
|
|
|
|
* time.c (sub): ditto.
|
|
|
|
|
|
|
|
* time.c (mul): ditto.
|
|
|
|
|
2016-03-19 15:48:26 -04:00
|
|
|
Sun Mar 20 04:46:02 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_cmp): reduce the code.
|
|
|
|
|
|
|
|
* bignum.c (rb_big_eq): If normalized bignum is still bignum,
|
|
|
|
it must be larger than fixnum.
|
|
|
|
|
2016-03-19 12:08:52 -04:00
|
|
|
Sat Mar 20 00:58:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* include/ruby/intern.h (rb_big_odd_p, rb_big_even_p): move to
|
|
|
|
internal.h so that they are exported only for ruby itself.
|
|
|
|
|
|
|
|
* internal.h (rb_big_odd_p, rb_big_even_p): ditto.
|
|
|
|
|
2016-03-19 08:56:25 -04:00
|
|
|
Sat Mar 19 21:56:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
|
|
|
|
failed messages until the end in verbose mode, to get rid of
|
|
|
|
interleaving failures with progress messages.
|
|
|
|
|
2016-03-19 08:53:36 -04:00
|
|
|
Sat Mar 19 21:53:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
2016-03-19 12:51:27 -04:00
|
|
|
* numeric.c (fix_cmp): invert the result as the comparison is
|
2016-03-19 08:53:36 -04:00
|
|
|
inverted.
|
|
|
|
|
2016-03-19 05:43:35 -04:00
|
|
|
Sat Mar 19 18:32:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* numeric.c (int_to_f): raise NotImplementedError when a receiver
|
|
|
|
class is unknown.
|
|
|
|
|
|
|
|
* test/-ext-/integer/test_my_integer.rb (test_my_integer_to_f): modify
|
|
|
|
a test for the above change.
|
|
|
|
|
2016-03-19 05:28:12 -04:00
|
|
|
Sat Mar 19 18:21:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (Bignum#<=>): remove it because they are unified with
|
|
|
|
Integer#<=>.
|
|
|
|
|
|
|
|
* numeric.c (Integer#<=>, Fixnum#<=>): move <=> method from Fixnum to
|
|
|
|
Integer.
|
|
|
|
|
|
|
|
* numeric.c (int_cmp): add this method for Integer#<=>.
|
|
|
|
|
|
|
|
* test/-ext-/integer/test_my_integer.rb (test_my_integer_cmp): add a
|
|
|
|
test to examine Integer#<=> for unknown subclasses.
|
|
|
|
|
2016-03-19 01:46:20 -04:00
|
|
|
Sat Mar 19 14:46:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* iseq.c (rb_iseq_compile_with_option): make the parser in mild
|
|
|
|
error.
|
|
|
|
|
|
|
|
* load.c (rb_load_internal0): ditto.
|
|
|
|
|
|
|
|
* parse.y (yycompile0): return the error message within the error
|
|
|
|
to be raised. [Feature #11951]
|
|
|
|
|
|
|
|
* parse.y (parser_compile_error): accumulate error messages in the
|
|
|
|
error_buffer.
|
|
|
|
|
2016-03-18 15:06:33 -04:00
|
|
|
Sat Mar 19 03:57:13 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* time.c (LOCALTIME): organize #ifdefs.
|
|
|
|
|
|
|
|
* time.c (GMTIME): define only ifndef HAVE_STRUCT_TM_TM_GMTOFF.
|
|
|
|
|
2016-03-18 15:06:32 -04:00
|
|
|
Sat Mar 19 03:53:31 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (rb_cv_member_struct_tm_tm_gmtoff): For Linux (glibc)
|
|
|
|
define _BSD_SOURCE for time.h to define struct tm.tm_gmtoff.
|
|
|
|
|
|
|
|
* time.c: define _BSD_SOURCE at the top.
|
|
|
|
|
2016-03-18 14:05:47 -04:00
|
|
|
Sat Mar 19 03:00:50 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/-ext-/time/test_new.rb (test_timespec_new): change a gmtoff
|
|
|
|
test to a better one that does not depend on whether the current
|
|
|
|
time is in summer time or not.
|
|
|
|
|
2016-03-18 11:02:45 -04:00
|
|
|
Fri Mar 19 00:00:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_to_f, Bignum#to_f): removed them because they are
|
|
|
|
unified with int_to_f and Integer#to_f.
|
|
|
|
|
|
|
|
* numeric.c (int_to_f): treat Bignum values directly.
|
|
|
|
|
2016-03-18 10:52:46 -04:00
|
|
|
Fri Mar 18 23:41:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* numeric.c (int_to_f, fix_to_f): rename fix_to_f to int_to_f, and add
|
|
|
|
treatment for subclasses which don't have definitions of to_f method.
|
|
|
|
|
|
|
|
* numeric.c (Integer#to_f, Fixnum#to_f): move to_f method from Fixnum
|
|
|
|
to Integer.
|
|
|
|
|
2016-03-19 05:29:29 -04:00
|
|
|
* ext/-test-/integer/my_integer.c: define helper class for testing
|
2016-03-18 10:52:46 -04:00
|
|
|
to_f method for a subclass of Integer.
|
|
|
|
|
|
|
|
* ext/-test-/integer/extconf.rb: ditto.
|
|
|
|
|
|
|
|
* ext/-test-/integer/init.c: ditto.
|
|
|
|
|
|
|
|
* test/-ext-/integer/test_my_integer.rb: examine to_f method for a
|
|
|
|
subclass of Integer.
|
|
|
|
|
2016-03-18 09:33:42 -04:00
|
|
|
Fri Mar 18 22:32:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* include/ruby/intern.h (rb_big_hash): Move to internal.h.
|
|
|
|
|
|
|
|
* internal.h: ditto.
|
|
|
|
|
2016-03-18 09:11:09 -04:00
|
|
|
Fri Mar 18 22:10:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (Bignum#eql?): remove its definition because it is unified
|
|
|
|
with Numeric#eql?.
|
|
|
|
|
|
|
|
* numeric.c (num_eql): treat Bignum values directly.
|
|
|
|
|
2016-03-18 08:57:40 -04:00
|
|
|
Fri Mar 18 21:57:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_to_s, Bignum#to_s): remove its definition because
|
|
|
|
it is unified with Integer#to_s.
|
|
|
|
|
|
|
|
* numeric.c (int_to_s): treat Bignum values directly.
|
|
|
|
|
2016-03-18 08:33:28 -04:00
|
|
|
Fri Mar 18 21:30:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
2016-03-18 11:38:10 -04:00
|
|
|
* numeric.c (int_to_s): Move from fix_to_s.
|
2016-03-18 08:33:28 -04:00
|
|
|
|
|
|
|
* numeric.c (Integer#to_s): Move from Fixnum#to_s.
|
|
|
|
|
2016-03-18 03:22:26 -04:00
|
|
|
Fri Mar 18 16:22:24 2016 Victor Nawothnig <Victor.Nawothnig@gmail.com>
|
|
|
|
|
|
|
|
* parse.y (parse_numvar): NTH_REF must be less than a half of
|
|
|
|
INT_MAX, as it is left-shifted to be ORed with back-ref flag.
|
|
|
|
[ruby-core:74444] [Bug#12192] [Fix GH-1296]
|
|
|
|
|
2016-03-17 23:25:32 -04:00
|
|
|
Fri Mar 18 12:25:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* gc.c (tick): fix missing close parenthesis. [Fix GH-1291]
|
|
|
|
|
2016-03-17 21:26:12 -04:00
|
|
|
Fri Mar 18 10:24:12 2016 Naotoshi Seo <sonots@gmail.com>
|
|
|
|
|
|
|
|
* ext/date/date_core.c (datetime_to_time): preserve timezone info
|
|
|
|
[Bug #12189] [Fix GH-1295]
|
|
|
|
|
2016-03-17 21:22:38 -04:00
|
|
|
Fri Mar 18 10:17:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_hash): make it public function to be available in
|
|
|
|
other source files, and remove documentation comment for Bignum#hash.
|
|
|
|
|
|
|
|
* bignum.c (Bignum#hash): remove its definition because it is unified
|
|
|
|
with Object#hash.
|
|
|
|
|
|
|
|
* include/ruby/intern.h (rb_big_hash): add a prototype declaration.
|
|
|
|
|
|
|
|
* hash.c (any_hash): treat Bignum values directly.
|
|
|
|
|
2016-03-17 13:46:22 -04:00
|
|
|
Fri Mar 18 02:35:12 2016 Naotoshi Seo <sonots@gmail.com>
|
|
|
|
|
|
|
|
* lib/time.rb (parse, strptime): Fix Time.parse/strptime does not
|
|
|
|
have compatibility with DateTime.parse/strptime in terms of parsing
|
|
|
|
timezone [Bug #12190] [Fix GH-1297]
|
|
|
|
|
2016-03-17 13:17:08 -04:00
|
|
|
Fri Mar 18 02:17:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* numeric.c (fix_zero_p, fix_even_p, fix_odd_p): remove needless
|
|
|
|
functions.
|
|
|
|
|
2016-03-17 13:15:33 -04:00
|
|
|
Fri Mar 18 02:15:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* numeric.c (int_even_p): treat Fixnum and Bignum values directly.
|
|
|
|
|
2016-03-17 13:11:42 -04:00
|
|
|
Fri Mar 18 02:07:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (Bignum#even?, Bignum#odd?): remove definitions
|
|
|
|
because they are unified with Integer#even? and Integer#odd?.
|
|
|
|
|
|
|
|
* numeric.c (Fixnum#zero?, Fixnum#even?, Fixnum#odd?): remove
|
|
|
|
definitions because they are unified with Numeric#zero?,
|
|
|
|
Integer#even?, and Integer#odd?.
|
|
|
|
|
2016-03-17 13:15:33 -04:00
|
|
|
* numeric.c (num_zero_p, int_odd_p): treat Fixnum and
|
2016-03-17 13:11:42 -04:00
|
|
|
Bignum values directly.
|
|
|
|
|
|
|
|
* test/ruby/test_integer.rb (test_odd_p_even_p): remove meaningless
|
|
|
|
test case.
|
|
|
|
|
2016-03-17 13:07:29 -04:00
|
|
|
Fri Mar 18 01:51:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* bignum.c (rb_big_even_p, rb_big_odd_p): make them public functions
|
|
|
|
to be available in other source files.
|
|
|
|
|
|
|
|
* include/ruby/intern.h (rb_big_even_p, rb_big_odd_p): add prototype
|
|
|
|
declarations.
|
|
|
|
|
2016-03-17 11:27:05 -04:00
|
|
|
Fri Mar 18 00:25:56 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* enum.c (ary_inject_op): Implement the specialized code for sum of
|
|
|
|
float numbers.
|
|
|
|
|
2016-03-17 11:18:59 -04:00
|
|
|
Fri Mar 18 00:15:05 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (num_step): use rb_equal for zero check. rb_num_coerce_cmp
|
2016-03-17 11:18:59 -04:00
|
|
|
created an object which caused extra overhead.
|
2016-03-17 11:18:59 -04:00
|
|
|
|
2016-03-17 09:21:36 -04:00
|
|
|
Thu Mar 17 22:21:34 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/ruby.h (RB_GC_GUARD_PTR): remove intermediate
|
|
|
|
macro, and expand for each RB_GC_GUARD. [Fix GH-1293]
|
|
|
|
|
2016-03-17 09:08:35 -04:00
|
|
|
Thu Mar 17 22:08:33 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (iseq_specialized_instruction): move specialization
|
|
|
|
for opt_newarray_max/min from translation phase.
|
|
|
|
|
2016-03-17 08:52:47 -04:00
|
|
|
Thu Mar 17 21:52:09 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c, enum.c: make rdoc format consistent.
|
|
|
|
|
2016-03-17 08:49:19 -04:00
|
|
|
Thu Mar 17 21:47:57 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* NEWS: add Array#max, #min, and the optimization. [Feature #12172]
|
|
|
|
|
2016-03-17 08:47:31 -04:00
|
|
|
Thu Mar 17 21:45:02 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (NODE_CALL): add optimization shortcut for Array#max/min.
|
|
|
|
Now `[x, y].max` is optimized so that a temporal array object is not
|
2016-03-17 08:49:19 -04:00
|
|
|
created in some condition. [Feature #12172]
|
2016-03-17 08:47:31 -04:00
|
|
|
|
|
|
|
* insns.def (opt_newarray_max, opt_newarray_min): added.
|
|
|
|
|
2016-03-17 08:37:20 -04:00
|
|
|
Thu Mar 17 21:35:52 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_max, rb_ary_min): implement Array#max and min with
|
|
|
|
arguments. replace super call with rb_nmin_run.
|
|
|
|
|
|
|
|
* enum.c (nmin_run): exported (as rb_nmin_run).
|
|
|
|
|
|
|
|
* internal.h: added a prototype for rb_nmin_run.
|
|
|
|
|
2016-03-17 08:25:40 -04:00
|
|
|
Thu Mar 17 21:24:52 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_max, rb_ary_min): implement a block by itself instead
|
|
|
|
of delegating Enumerable#max/min.
|
|
|
|
|
2016-03-17 08:14:21 -04:00
|
|
|
Thu Mar 17 21:09:34 2016 Yusuke Endoh <mame@ruby-lang.org>
|
|
|
|
|
|
|
|
* array.c (rb_ary_max, rb_ary_min): Array#max and Array#min added.
|
|
|
|
[Feature #12172]
|
|
|
|
|
|
|
|
* internal.h (OPTIMIZED_CMP): moved from enum.c so that array.c can
|
|
|
|
use it.
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_max, test_min): tests for Array#max
|
|
|
|
and Array#min.
|
|
|
|
|
|
|
|
* test/ruby/test_enum.rb (test_max, test_min): revised a bit to test
|
|
|
|
Enumerable#max and #min explicitly.
|
|
|
|
|
|
|
|
Thu Mar 17 21:02:42 2016 Yusuke Endoh <mame@ruby-lang.org>
|
2016-03-17 08:03:48 -04:00
|
|
|
|
|
|
|
* internal.c: struct cmp_opt_data added for refactoring out a data
|
|
|
|
structure for CMP_OPTIMIZABLE
|
|
|
|
|
|
|
|
* array.c (struct ary_sort_data): use struct cmp_opt_data.
|
|
|
|
|
|
|
|
* enum.c (struct min_t, max_t, min_max_t): use struct cmp_opt_data.
|
|
|
|
|
2016-03-17 07:55:58 -04:00
|
|
|
Thu Mar 17 20:55:21 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* enum.c (ary_inject_op): Extracted from enum_inject.
|
|
|
|
|
2016-03-17 05:50:19 -04:00
|
|
|
Thu Mar 17 18:39:04 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* enum.c (enum_inject): Implement the specialized code for sum of
|
|
|
|
integers including Bignums.
|
|
|
|
|
|
|
|
* internal.h (rb_fix_plus): Declared to be usable from enum_inject.
|
|
|
|
|
|
|
|
* numeric.c (rb_fix_plus): Defined.
|
|
|
|
|
2016-03-17 04:20:29 -04:00
|
|
|
Thu Mar 17 17:20:28 2016 Anton Davydov <antondavydov.o@gmail.com>
|
|
|
|
|
|
|
|
* thread_sync.c: [DOC] Update documentation for Queue class
|
|
|
|
description. [Fix GH-1292]
|
|
|
|
|
2016-03-17 04:14:53 -04:00
|
|
|
Thu Mar 17 17:14:51 2016 Dinar Valeev <dvaleev@suse.com>
|
|
|
|
|
|
|
|
* gc.c (tick): Use __builtin_ppc_get_timebase for POWER arch.
|
|
|
|
[Fix GH-1291]
|
|
|
|
|
2016-03-17 02:01:11 -04:00
|
|
|
Thu Mar 17 11:51:48 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/securerandom.rb (gen_random): to avoid blocking on Windows.
|
|
|
|
On Windows OpenSSL RAND_bytes (underlying implementation is
|
|
|
|
RAND_poll in crypto/rand/rand_win.c) may be blocked at
|
|
|
|
NetStatisticsGet.
|
|
|
|
https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues
|
2016-04-22 05:45:24 -04:00
|
|
|
Instead of this, use Random.raw_seed directly (whose implementation
|
2016-03-17 02:01:11 -04:00
|
|
|
CryptGenRandom is one of the source of
|
|
|
|
entropy of RAND_poll on Windows).
|
|
|
|
https://wiki.openssl.org/index.php/Random_Numbers
|
|
|
|
Note: CryptGenRandom function is PRNG and doesn't check its entropy,
|
|
|
|
so it won't block. [Bug #12139]
|
|
|
|
https://msdn.microsoft.com/ja-jp/library/windows/desktop/aa379942.aspx
|
|
|
|
https://tools.ietf.org/html/rfc4086#section-7.1.3
|
|
|
|
https://eprint.iacr.org/2007/419.pdf
|
|
|
|
http://www.cs.huji.ac.il/~dolev/pubs/thesis/msc-thesis-leo.pdf
|
|
|
|
|
2016-03-16 23:09:00 -04:00
|
|
|
Thu Mar 17 12:09:00 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Fixed two macro definitions.
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Test cases that detected
|
|
|
|
the above bugs.
|
|
|
|
|
2016-03-16 22:36:28 -04:00
|
|
|
Thu Mar 17 11:36:27 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/socket/option.c (inspect_tcpi_msec): more accurate condition
|
|
|
|
for TCPI msec member inspection function.
|
|
|
|
[ruby-core:74388] [Bug #12185]
|
|
|
|
|
2016-03-16 19:20:14 -04:00
|
|
|
Thu Mar 17 08:13:43 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/-ext-/time/test_new.rb (test_timespec_new): Time#gmtoff values
|
|
|
|
are the same only when both or neither of the Time objects are in
|
|
|
|
summer time (daylight-saving time).
|
|
|
|
|
2016-03-16 18:18:12 -04:00
|
|
|
Thu Mar 17 07:17:36 2016 Eric Hodel <drbrain@segment7.net>
|
|
|
|
|
|
|
|
* marshal.c (r_object0): raise ArgumentError when linking to undefined
|
|
|
|
object.
|
|
|
|
|
2016-03-16 11:53:08 -04:00
|
|
|
Thu Mar 17 00:45:00 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* test/ruby/test_bignum.rb: Make sure to use Bignum values in the tests.
|
|
|
|
|
2016-03-16 10:10:27 -04:00
|
|
|
Wed Mar 16 23:10:25 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* defs/keywords (alias, undef): symbol literals are allowed.
|
|
|
|
|
|
|
|
* parse.y (parse_percent): should parse symbol literals for alias
|
|
|
|
and undef. [ruby-dev:47681] [Bug #8851]
|
|
|
|
|
2016-03-16 08:42:15 -04:00
|
|
|
Wed Mar 16 21:39:39 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* enc/trans/JIS: update Unicode's notice. [Bug #11844]
|
|
|
|
|
2016-03-16 07:03:38 -04:00
|
|
|
Wed Mar 16 20:03:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* proc.c (proc_binding): proc from symbol can not make a binding.
|
|
|
|
[ruby-core:74100] [Bug #12137]
|
|
|
|
|
2016-03-16 05:42:45 -04:00
|
|
|
Wed Mar 16 18:42:45 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Fixed and activated a test for Cherokee.
|
|
|
|
|
2016-03-16 04:58:56 -04:00
|
|
|
Wed Mar 16 17:58:56 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Fixed a logical error.
|
|
|
|
|
2016-03-16 04:57:34 -04:00
|
|
|
Wed Mar 16 17:57:34 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Adding tests for Cherokee.
|
|
|
|
One test not yet working.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-16 02:44:05 -04:00
|
|
|
Wed Mar 16 15:44:05 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Adding tests for actual Unicode
|
|
|
|
case mapping. Fixing some aliasing issues.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-15 08:53:06 -04:00
|
|
|
Tue Mar 15 21:38:28 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* enum.c (enum_inject): Consider redefinition of Fixnum#+.
|
|
|
|
[ruby-dev:49510] [Bug#12178] Reported by usa.
|
|
|
|
|
2016-03-15 07:42:23 -04:00
|
|
|
Tue Mar 15 20:32:57 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
2016-03-15 08:47:18 -04:00
|
|
|
* enum.c (enum_inject): Implement the specialized code for :+ operator
|
2016-03-15 07:42:23 -04:00
|
|
|
for Fixnums.
|
|
|
|
|
2016-03-15 07:27:34 -04:00
|
|
|
Tue Mar 15 20:21:01 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* enum.c (enum_inject): Implement the specialized code for self is an
|
|
|
|
array and a symbol operator is given.
|
|
|
|
|
2016-03-15 03:29:51 -04:00
|
|
|
Tue Mar 15 16:29:51 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Eliminating common code.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-15 03:17:09 -04:00
|
|
|
Tue Mar 15 16:17:09 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Expansion of some code repetition in preparation for
|
|
|
|
elimination of common code pieces.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-15 00:49:24 -04:00
|
|
|
Tue Mar 15 13:49:23 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Additional macros and code to use mapping data in
|
|
|
|
CaseMappingSpecials array.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-15 00:41:24 -04:00
|
|
|
Tue Mar 15 13:41:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h (rb_gc_mark_global_tbl): should be private,
|
|
|
|
but was accidentally exported.
|
|
|
|
|
2016-03-14 23:51:19 -04:00
|
|
|
Tue Mar 15 12:51:06 2016 Marcus Stollsteimer <sto.mar@web.de>
|
|
|
|
|
|
|
|
* doc/extension.ja.rdoc: Fix RDoc markup in doc/extension*.rdoc.
|
|
|
|
[ci skip][Bug #12143][ruby-core:74143]
|
|
|
|
* doc/extension.rdoc: ditto.
|
|
|
|
|
2016-03-14 20:56:45 -04:00
|
|
|
Tue Mar 15 09:56:41 2016 Ian Lunderskov <ian.lunderskov@gmail.com>
|
|
|
|
|
|
|
|
* time.c: Minor typo in Time#dst? documentation.
|
|
|
|
[ci skip][fix GH-1290]
|
|
|
|
|
2016-03-14 15:39:24 -04:00
|
|
|
Tue Mar 15 04:36:41 2016 Charles Oliver Nutter <headius@headius.com>
|
|
|
|
|
|
|
|
* test/ruby/test_rubyoptions.rb (test_disable): add tests for
|
|
|
|
--disable-gems and --disable-did_you_mean.
|
|
|
|
|
2016-03-14 14:36:14 -04:00
|
|
|
Tue Mar 15 03:35:04 2016 Eric Hodel <drbrain@segment7.net>
|
|
|
|
|
|
|
|
* marshal.c (r_object0): Fix Marshal crash for corrupt extended object.
|
|
|
|
|
2016-03-14 12:24:04 -04:00
|
|
|
Tue Mar 15 01:22:27 2016 Charles Oliver Nutter <headius@headius.com>
|
|
|
|
|
|
|
|
* test/ruby/test_rubyoptions.rb: make version matching support
|
|
|
|
JRuby's version output.
|
|
|
|
|
* bignum.c (big2str_2bdigits): reduce div instruction.
Fix the code so that C compiler unify div instructions of `%` and `/`.
Before:
4291b0: 48 89 f0 mov %rsi,%rax
4291b3: 31 d2 xor %edx,%edx
4291b5: 48 83 ef 01 sub $0x1,%rdi
4291b9: 48 f7 f1 div %rcx # <---- !
4291bc: 41 0f b6 04 11 movzbl (%r9,%rdx,1),%eax
4291c1: 31 d2 xor %edx,%edx
4291c3: 41 88 04 38 mov %al,(%r8,%rdi,1)
4291c7: 48 63 4b 04 movslq 0x4(%rbx),%rcx
4291cb: 48 89 f0 mov %rsi,%rax
4291ce: 48 f7 f1 div %rcx # <---- !
4291d1: 48 89 c6 mov %rax,%rsi
4291d4: 48 85 ff test %rdi,%rdi
4291d7: 75 d7 jne 4291b0 <big2str_2bdigits+0x50>
4291d9: 48 63 6b 10 movslq 0x10(%rbx),%rbp
4291dd: 48 01 6b 20 add %rbp,0x20(%rbx)
4291e1: 48 8b 44 24 48 mov 0x48(%rsp),%rax
4291e6: 64 48 33 04 25 28 00 xor %fs:0x28,%rax
After:
4291b0: 48 63 73 04 movslq 0x4(%rbx),%rsi
4291b4: 31 d2 xor %edx,%edx
4291b6: 48 83 e9 01 sub $0x1,%rcx
4291ba: 48 f7 f6 div %rsi # <---- !
4291bd: 41 0f b6 14 10 movzbl (%r8,%rdx,1),%edx
4291c2: 88 14 0f mov %dl,(%rdi,%rcx,1)
4291c5: 48 85 c9 test %rcx,%rcx
4291c8: 75 e6 jne 4291b0 <big2str_2bdigits+0x50>
4291ca: 48 63 6b 10 movslq 0x10(%rbx),%rbp
4291ce: 48 01 6b 20 add %rbp,0x20(%rbx)
4291d2: 48 8b 44 24 48 mov 0x48(%rsp),%rax
4291d7: 64 48 33 04 25 28 00 xor %fs:0x28,%rax
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-03-14 06:14:48 -04:00
|
|
|
Mon Mar 14 19:05:39 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* bignum.c (big2str_2bdigits): reduce div instruction.
|
|
|
|
|
2016-03-14 05:39:54 -04:00
|
|
|
Mon Mar 14 18:39:53 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h, enc/unicode.c: Adjusting flag assignments
|
|
|
|
and macros to work with unified CaseMappingSpecials array.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-14 03:53:39 -04:00
|
|
|
Mon Mar 14 16:53:37 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (compile_named_capture_assign): optimize named capture
|
|
|
|
assignments, by replacing repeating global variable accesses
|
|
|
|
with `dup`, and by returning the matched result instead of
|
|
|
|
re-getting it from the MatchData.
|
|
|
|
|
|
|
|
* parse.y (reg_named_capture_assign_gen): build just assignment
|
|
|
|
nodes for the optimization.
|
|
|
|
|
2016-03-14 03:03:01 -04:00
|
|
|
Mon Mar 14 16:02:59 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* file.c (ruby_is_fd_loadable): now return -1 if loadable but
|
|
|
|
may block.
|
|
|
|
|
|
|
|
* ruby.c (open_load_file): wait to read by the result of
|
|
|
|
ruby_is_fd_loadable, without fstat.
|
|
|
|
|
2016-03-14 00:41:16 -04:00
|
|
|
Mon Mar 14 13:38:38 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (fix2str): improve r54092 like rb_int2big().
|
|
|
|
|
2016-03-13 21:20:14 -04:00
|
|
|
Mon Mar 14 10:02:23 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_ssl.c (ossl_sslctx_setup): document as MT-unsafe
|
|
|
|
[ruby-core:73803] [Bug #12069]
|
|
|
|
|
2016-03-12 19:43:25 -05:00
|
|
|
Sun Mar 13 09:43:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/win32.h (O_SHARE_DELETE): change to fit Fixnum
|
|
|
|
limit. [ruby-core:74285] [Bug #12171]
|
|
|
|
|
2016-03-12 19:15:48 -05:00
|
|
|
Sun Mar 13 09:15:45 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (rb_fix2str): fix edge case, accidentally generated
|
|
|
|
wrong Fixnum from LONG_MIN.
|
|
|
|
|
2016-03-11 19:50:29 -05:00
|
|
|
Sat Mar 12 09:50:27 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_eval.c (rb_f_catch): [DOC] fix malformed RDoc syntax, "+...+"
|
|
|
|
cannot enclose non-identifier characters.
|
|
|
|
a patch by Sebastian S in [ruby-core:74278]. [Bug#12170]
|
|
|
|
|
2016-03-11 12:58:49 -05:00
|
|
|
Sat Mar 12 02:44:48 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit.rb: describe !/REGEXP/ in the help message.
|
|
|
|
|
2016-03-11 03:03:11 -05:00
|
|
|
Fri Mar 11 17:03:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/lib/test/unit.rb (Options#non_options): make regexp name
|
|
|
|
options prefixed with "!" negative filters.
|
|
|
|
|
|
|
|
* common.mk (TEST_EXCLUDES): use negative filter to exclude memory
|
|
|
|
leak tests. -x option excludes test files, not test methods.
|
|
|
|
|
2016-03-11 02:11:27 -05:00
|
|
|
Fri Mar 11 16:11:27 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Streamlining approach to
|
|
|
|
case mapping data not available from case folding by unifying all
|
|
|
|
three cases (special title, special upper, special lower).
|
|
|
|
* enc/unicode.c: Adjust macro names for above (macros are currently inactive).
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-03-10 03:34:18 -05:00
|
|
|
Thu Mar 10 17:34:16 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* iseq.c (prepare_iseq_build): enable coverage by coverage_enabled
|
|
|
|
option, not by parse_in_eval flag in the thread context.
|
|
|
|
|
|
|
|
* iseq.h (rb_compile_option_struct): add coverage_enabled flag.
|
|
|
|
|
|
|
|
* parse.y (yycompile0): set coverage_enabled flag if coverage
|
|
|
|
array is made.
|
|
|
|
|
2016-03-10 01:19:55 -05:00
|
|
|
Thu Mar 10 15:19:54 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* node.c (dump_option): nd_compile_option is a hidden hash object,
|
|
|
|
cannot call inspect on it.
|
|
|
|
|
2016-03-09 19:55:37 -05:00
|
|
|
Thu Mar 10 09:49:54 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/socket/test_socket.rb (test_udp_recvmsg_truncation):
|
|
|
|
AIX does not set the MSG_TRUNC flag for a message partially read
|
|
|
|
by recvmsg(2) with the MSG_PEEK flag set.
|
|
|
|
|
2016-03-09 02:49:06 -05:00
|
|
|
Wed Mar 9 16:48:45 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* benchmark/driver.rb: fix my last commit (syntax error).
|
|
|
|
|
2016-03-09 02:42:32 -05:00
|
|
|
Wed Mar 9 16:41:44 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* benchmark/driver.rb: fix output messages.
|
|
|
|
|
|
|
|
* benchmark/memory_wrapper.rb: use respond_to? because
|
|
|
|
member? does not work well.
|
|
|
|
|
2016-03-09 02:22:27 -05:00
|
|
|
Wed Mar 9 16:20:25 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* benchmark/driver.rb: support memory usage benchmark.
|
|
|
|
use `--measure-target=[target]'.
|
|
|
|
Now, we can use the following targets:
|
|
|
|
* real (default): real time which returns process time in sec.
|
|
|
|
* peak: peak memory usage (physical memory) in bytes.
|
|
|
|
* size: last memory usage (physical memory) in bytes.
|
|
|
|
|
|
|
|
* benchmark/memory_wrapper.rb: ditto.
|
|
|
|
|
2016-03-09 01:05:53 -05:00
|
|
|
Wed Mar 9 15:04:22 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* benchmark/bm_vm3_gc_old_full.rb: add GC.start benchmark.
|
|
|
|
|
|
|
|
* benchmark/bm_vm3_gc_old_immediate.rb: ditto.
|
|
|
|
|
|
|
|
* benchmark/bm_vm3_gc_old_lazy.rb: ditto.
|
|
|
|
|
2016-03-09 01:02:18 -05:00
|
|
|
Wed Mar 9 14:59:11 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* benchmark/driver.rb: exit benchmarking if a benchmark process
|
|
|
|
receives signals.
|
|
|
|
|
2016-03-08 23:22:50 -05:00
|
|
|
Wed Mar 9 13:22:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/lib/memory_status.rb: make Memory::Status independent of
|
|
|
|
MiniTest::Skip.
|
|
|
|
|
|
|
|
* test/lib/test/unit/assertions.rb (assert_no_memory_leak): skip
|
|
|
|
if Memory::Status is not available.
|
|
|
|
|
2016-03-08 19:28:41 -05:00
|
|
|
Wed Mar 9 09:19:55 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/io/wait/test_io_wait.rb (test_wait_readwrite_timeout):
|
|
|
|
select(2) in AIX returns "readable" for the write-side fd
|
|
|
|
of a pipe, so it is not possible to use a pipe to test
|
|
|
|
the read-write timeout of IO#wait on AIX.
|
|
|
|
|
2016-03-08 13:38:28 -05:00
|
|
|
Wed Mar 9 03:35:22 2016 Charles Oliver Nutter <headius@headius.com>
|
|
|
|
|
|
|
|
* test/ruby/test_require.rb (test_require_with_loaded_features_pop):
|
|
|
|
Only remove PATH so threads don't accidentally double-pop.
|
|
|
|
|
2016-03-08 10:29:48 -05:00
|
|
|
Wed Mar 9 00:29:46 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_method.c (rb_alias): the original name should be properly
|
|
|
|
available method_added method, set the name before calling the
|
|
|
|
hook.
|
|
|
|
|
2016-03-08 10:07:05 -05:00
|
|
|
Wed Mar 9 00:07:03 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/logger.rb (Logger::LogDevice#initialize): define using
|
|
|
|
keyword arguments.
|
|
|
|
|
2016-03-08 09:38:22 -05:00
|
|
|
Tue Mar 8 23:37:07 2016 Charles Oliver Nutter <headius@headius.com>
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb: split out the test for no stack error
|
|
|
|
on large input for test_permutation, test_repeated_permutation,
|
|
|
|
and test_repeated_combination, and make them all timeout:30.
|
|
|
|
|
2016-03-08 04:15:18 -05:00
|
|
|
Tue Mar 8 17:20:21 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* intern.h (rb_divmod): assume compilers `/` and `%` comply C99
|
|
|
|
and reduce branching. If a compiler doesn't comply, add #ifdefs.
|
|
|
|
|
|
|
|
* intern.h (rb_div): added for Ruby's behavior.
|
|
|
|
|
|
|
|
* intern.h (rb_mod): added for Ruby's behavior.
|
|
|
|
|
|
|
|
* insns.def (opt_div): use rb_div.
|
|
|
|
|
|
|
|
* insns.def (opt_mod): use rb_mod.
|
|
|
|
|
|
|
|
* numeric.c (fixdivmod): removed.
|
|
|
|
|
|
|
|
* numeric.c (fix_divide): use rb_div.
|
|
|
|
|
|
|
|
* numeric.c (fix_mod): use rb_mod.
|
|
|
|
|
|
|
|
* numeric.c (fix_divmod): use rb_divmod.
|
|
|
|
|
2016-03-08 03:54:38 -05:00
|
|
|
Tue Mar 8 17:53:09 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* insns.def (opt_mod): show its method name on ZeroDivisionError.
|
|
|
|
[Bug #12158]
|
|
|
|
|
2016-03-08 03:34:35 -05:00
|
|
|
Tue Mar 8 17:33:38 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/win32.c (rb_w32_write_console): now no need to check
|
|
|
|
ERROR_CALL_NOT_IMPLEMENTED because it is for old Win9X.
|
|
|
|
|
2016-03-08 02:55:48 -05:00
|
|
|
Tue Mar 8 16:54:29 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/win32.c (rb_w32_write_console): stop the VT100 emulation if the
|
|
|
|
console supports it natively.
|
|
|
|
|
2016-03-07 18:22:49 -05:00
|
|
|
Tue Mar 8 08:13:01 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/net/imap/test_imap.rb (test_idle_timeout): Because of the
|
2016-03-09 08:30:13 -05:00
|
|
|
timeout specified in "imap.idle(0.2)", there is no guarantee that
|
2016-03-07 18:22:49 -05:00
|
|
|
the server thread has done all the work before the client thread
|
|
|
|
performs the assertions. It depends on the thread scheduling.
|
|
|
|
Add checks to avoid false positives (on AIX, particularly).
|
|
|
|
|
2016-03-07 10:44:34 -05:00
|
|
|
Tue Mar 8 00:42:22 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* ruby.c (warn_cr_in_shebang): meaningless check on DOSISH platforms.
|
|
|
|
fixed a test failure introduced at r53998.
|
|
|
|
|
2016-03-07 10:28:57 -05:00
|
|
|
Tue Mar 8 00:27:53 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb: fix method name typo.
|
|
|
|
[ruby-core:72513] [Bug #11893] The patch provided by Akira Matsuda.
|
|
|
|
|
|
|
|
|
2016-03-07 10:26:38 -05:00
|
|
|
Tue Mar 8 00:25:08 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/lib/tkextlib/tcllib/toolbar.rb: fix method name typo.
|
|
|
|
[ruby-core:72511] [Bug #11891] The patch provided by Akira Matsuda.
|
|
|
|
|
|
|
|
|
2016-03-07 10:23:25 -05:00
|
|
|
Tue Mar 8 00:21:58 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/lib/tkextlib/blt/tree.rb: fix method name typo.
|
2016-03-07 10:26:38 -05:00
|
|
|
[ruby-core:72510] [Bug #11890] The patch provided by Akira Matsuda.
|
2016-03-07 10:23:25 -05:00
|
|
|
|
|
|
|
|
2016-03-07 10:15:59 -05:00
|
|
|
Tue Mar 8 00:11:47 2016 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/tk/lib/tk/menubar.rb: fix a typo in font name. [ruby-core:72505]
|
|
|
|
[Bug #11886] The patch provided by Akira Matsuda.
|
|
|
|
|
|
|
|
* ext/tk/sample/*.rb: ditto.
|
|
|
|
|
2016-03-06 23:33:00 -05:00
|
|
|
Mon Mar 7 13:32:58 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* class.c (rb_define_class, rb_define_class_id_under): raise
|
|
|
|
ArgumentError if super is 0, deprecated behavior which has been
|
|
|
|
warned long time.
|
|
|
|
|
2016-03-06 23:28:32 -05:00
|
|
|
Mon Mar 7 13:28:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* internal.h: move function declarations for class internals from
|
|
|
|
include/ruby/intern.h.
|
|
|
|
|
2016-03-06 20:58:09 -05:00
|
|
|
Mon Mar 7 10:58:07 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/win32ole/win32ole_event.c (rescue_callback): use
|
|
|
|
rb_write_error_str instead of rb_write_error, to respect
|
|
|
|
the encoding and prevent the message from GC.
|
|
|
|
|
|
|
|
* internal.h (rb_write_error_str): export.
|
|
|
|
|
2016-03-06 11:43:50 -05:00
|
|
|
Mon Mar 7 01:38:41 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_process.rb (test_execopts_gid): Skip a test
|
|
|
|
that is known to fail on AIX. AIX allows setgid to
|
|
|
|
a supplementary group, but Ruby does not allow the "-e"
|
|
|
|
option when setgid'ed, so the test does not work as intended.
|
|
|
|
|
2016-03-06 08:43:42 -05:00
|
|
|
Sun Mar 6 22:43:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* io.c (rb_obj_display): [DOC] fix output of Array, as Array#to_s
|
|
|
|
is same as Array#inspect since 1.9.
|
|
|
|
|
2016-03-04 19:54:17 -05:00
|
|
|
Sat Mar 5 09:50:58 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/socket/test_addrinfo.rb (test_ipv6_address_predicates):
|
|
|
|
IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED are broken
|
|
|
|
on AIX, so skip related tests.
|
|
|
|
|
2016-03-04 19:29:39 -05:00
|
|
|
Sat Mar 5 09:17:54 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/rinda/test_rinda.rb (test_make_socket_ipv4_multicast):
|
|
|
|
The fifth argument to getsockopt(2) should be modified to
|
|
|
|
indicate the actual size of the value on return,
|
|
|
|
but not in AIX. This is a know bug. Skip related tests.
|
|
|
|
* test/rinda/test_rinda.rb (test_ring_server_ipv4_multicast):
|
|
|
|
ditto.
|
|
|
|
* test/rinda/test_rinda.rb (test_make_socket_unicast): ditto.
|
|
|
|
* test/socket/test_basicsocket.rb (test_getsockopt): ditto.
|
|
|
|
* test/socket/test_sockopt.rb (test_bool): ditto.
|
|
|
|
|
2016-03-04 17:43:31 -05:00
|
|
|
Sat Mar 5 07:36:27 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/-ext-/float/test_nextafter.rb: In AIX,
|
|
|
|
nextafter(+0.0,-0.0)=+0.0, and nextafter(-0.0,+0.0)=-0.0,
|
|
|
|
but they should return -0.0 and +0.0, respectively. This is
|
|
|
|
a known bug in nextafter(3) on AIX, so skip related tests.
|
|
|
|
|
2016-03-04 17:20:56 -05:00
|
|
|
Sat Mar 5 07:14:10 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine):
|
|
|
|
Skip two tests on AIX because zconf.h in zlib does not correctly
|
|
|
|
recognize _LARGE_FILES in AIX. The problem was already reported
|
|
|
|
to zlib, and skip these tests until it is fixed.
|
|
|
|
|
2016-03-04 13:14:18 -05:00
|
|
|
Sat Mar 5 03:07:40 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
|
|
|
|
|
|
|
* thread_pthread.c (getstack): __pi_stacksize returned by
|
|
|
|
pthread_getthrds_np() is wrong on AIX. Use
|
|
|
|
__pi_stackend - __pi_stackaddr instead.
|
|
|
|
|
2016-03-04 05:37:35 -05:00
|
|
|
Fri Mar 4 19:19:42 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: use 2 bits with unsigned int for rb_objspace::flags::mode
|
|
|
|
because it always returns 0 to 2 (non-negative value).
|
|
|
|
|
2016-03-04 04:53:03 -05:00
|
|
|
Fri Mar 4 18:42:08 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: rename "enum gc_stat" to "enum gc_mode"
|
|
|
|
because there is a same name (no related) function gc_stat().
|
|
|
|
|
|
|
|
Also gc_stat_* are renamed to gc_mode_*,
|
|
|
|
gc_stat_transition() to gc_mode_transition(),
|
|
|
|
rb_objspace::flags::stat is renamed to rb_objspace::flags::mode.
|
|
|
|
|
|
|
|
Change rb_objspace::flags::mode from 2 bits to 3 bits because VC++
|
|
|
|
returns negative enum value with 2 bits.
|
|
|
|
|
|
|
|
* gc.c (gc_mode): add a macro to access rb_objspace::flags::mode
|
|
|
|
with verification code (verification is enabled only on
|
|
|
|
RGENGC_CHECK_MODE > 0).
|
|
|
|
|
|
|
|
* gc.c (gc_mode_set): same macro for setter.
|
|
|
|
|
2016-03-03 19:29:40 -05:00
|
|
|
Fri Mar 4 09:28:18 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1.
|
|
|
|
Please see entries of 2.6.0 and 2.6.1 on
|
|
|
|
https://github.com/rubygems/rubygems/blob/master/History.txt
|
|
|
|
[fix GH-1270] Patch by @segiddins
|
|
|
|
|
2016-03-03 00:09:02 -05:00
|
|
|
Thu Mar 3 14:09:00 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/ostruct.rb (modifiable?, new_ostruct_member!, table!):
|
|
|
|
rename methods for internal use with suffixes and make private,
|
|
|
|
[ruby-core:71069] [Bug #11587]
|
|
|
|
|
2016-03-02 02:28:50 -05:00
|
|
|
Wed Mar 2 16:28:48 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_eval.c (method_missing): call by found method entry and get
|
|
|
|
rid of searching the same method entry twice.
|
2016-03-02 02:18:31 -05:00
|
|
|
|
|
|
|
* vm_eval.c (vm_call0_body): calling method_missing method is
|
|
|
|
method_missing().
|
|
|
|
|
2016-03-02 01:19:18 -05:00
|
|
|
Wed Mar 2 15:13:33 2016 herwinw <herwin@quarantainenet.nl>
|
|
|
|
|
|
|
|
* lib/xmlrpc.rb: Removed broken parser named XMLScanStreamParser.
|
|
|
|
It's not works with current Ruby version.
|
|
|
|
[fix GH-1271][ruby-core:59588][Bug #9369]
|
|
|
|
* lib/xmlrpc/config.rb: ditto.
|
|
|
|
* lib/xmlrpc/parser.rb: ditto.
|
|
|
|
|
2016-03-02 01:12:51 -05:00
|
|
|
Wed Mar 2 15:08:33 2016 herwinw <herwin@quarantainenet.nl>
|
|
|
|
|
|
|
|
* lib/xmlrpc.rb: Removed broken parser named XMLTreeParser.
|
|
|
|
Required gem of its parser didn't compile on newer Ruby versions.
|
|
|
|
[fix GH-1271][ruby-core:59590][Bug #9370]
|
|
|
|
* lib/xmlrpc/config.rb: ditto.
|
|
|
|
* lib/xmlrpc/parser.rb: ditto.
|
|
|
|
|
2016-02-29 21:26:44 -05:00
|
|
|
Tue Mar 1 11:25:48 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/fileutils.rb: use keyword arguments instead of option
|
|
|
|
hashes.
|
|
|
|
|
2016-02-29 02:51:15 -05:00
|
|
|
Mon Feb 29 16:50:20 2016 hanachin <hanachin@gmail.com>
|
|
|
|
|
|
|
|
* array.c (rb_ary_push_m): [DOC] Remove trailing comma from
|
|
|
|
Array#push example, as other Array examples doesn't put trailing
|
|
|
|
comma. [Fix GH-1279]
|
|
|
|
|
2016-02-29 02:31:56 -05:00
|
|
|
Mon Feb 29 16:31:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* common.mk, tool/mkconfig.rb: set cross_compiling option from
|
|
|
|
Makefile, but not from rbconfig.rb, which is just going to be
|
|
|
|
created by this command.
|
|
|
|
|
2016-02-28 09:14:42 -05:00
|
|
|
Sun Feb 28 23:13:49 2016 C.J. Collier <cjcollier@linuxfoundation.org>
|
|
|
|
|
|
|
|
* configure.in: Add summary to end of configure output.
|
2016-03-01 10:00:55 -05:00
|
|
|
[Fix GH-1275]
|
2016-02-28 09:14:42 -05:00
|
|
|
|
2016-02-28 06:28:58 -05:00
|
|
|
Sun Feb 28 20:23:36 2016 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|
|
|
|
|
|
|
* lib/drb/drb.rb (error_print): Add verbose failure messages and
|
|
|
|
avoid infamous DRb::DRbConnError. [Feature #12101]
|
|
|
|
|
2016-02-27 23:41:38 -05:00
|
|
|
Sun Feb 28 13:40:46 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (nometh_err_initialize): add private_call? parameter.
|
|
|
|
|
|
|
|
* error.c (nometh_err_private_call_p): add private_call? method,
|
|
|
|
to tell if the exception raised in private form FCALL or VCALL.
|
|
|
|
[Feature #12043]
|
|
|
|
|
|
|
|
* vm_eval.c (make_no_method_exception): append private_call?
|
|
|
|
argument.
|
|
|
|
|
|
|
|
* vm_insnhelper.c (ci_missing_reason): copy FCALL flag.
|
|
|
|
|
2016-02-27 20:20:39 -05:00
|
|
|
Sun Feb 28 10:19:47 2016 Ryan T. Hosford <tad.hosford@gmail.com>
|
|
|
|
|
|
|
|
* array.c (rb_ary_and): clarify that set intersection returns the
|
|
|
|
unique elements common to both arrays.
|
|
|
|
|
|
|
|
* array.c (rb_ary_or): clarify that union preserves the order from
|
|
|
|
the given arrays.
|
|
|
|
|
2016-02-27 03:06:17 -05:00
|
|
|
Sat Feb 27 17:05:29 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Reducing size of TitleCase
|
|
|
|
table by eliminating duplicates.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-26 00:41:37 -05:00
|
|
|
Fri Feb 26 14:40:48 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (num_step_scan_args): comparison String with Numeric
|
|
|
|
should raise TypeError. it is an invalid type, but not a
|
|
|
|
mismatch the number of arguments. [ruby-core:62430] [Bug #9810]
|
|
|
|
|
2016-02-26 00:40:28 -05:00
|
|
|
Fri Feb 26 14:39:39 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/extension.rdoc, doc/extension.ja.rdoc: add editor local
|
|
|
|
variables, with commenting out by :enddoc: directives which are
|
|
|
|
just ignored unless code object mode. [Bug #12111]
|
|
|
|
|
2016-02-25 22:26:55 -05:00
|
|
|
Fri Feb 26 12:25:56 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/extension.ja.rdoc: removed rendering error caused by editor specific
|
|
|
|
configuration on http://docs.ruby-lang.org/en/trunk/extension_rdoc.html .
|
|
|
|
[Bug #12111][ruby-core:73990]
|
|
|
|
|
2016-02-25 21:25:40 -05:00
|
|
|
Fri Feb 26 11:21:41 2016 herwinw <herwin@quarantainenet.nl>
|
|
|
|
|
|
|
|
* lib/xmlrpc.rb: Removed references to NQXML. It's obsoleted parser.
|
|
|
|
[fix GH-1245][ruby-core:59593][Feature #9371]
|
|
|
|
* lib/xmlrpc/config.rb: ditto.
|
|
|
|
* lib/xmlrpc/parser.rb: ditto.
|
|
|
|
|
2016-02-25 21:11:14 -05:00
|
|
|
Fri Feb 26 11:10:19 2016 Rick Salevsky <rsalevsky@suse.com>
|
|
|
|
|
|
|
|
* lib/tmpdir.rb: Unify to coding-style for method definition.
|
|
|
|
[fix GH-1252]
|
|
|
|
|
2016-02-25 21:03:03 -05:00
|
|
|
Fri Feb 26 11:02:04 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* README.md: update markdown syntax for anchor tag.
|
|
|
|
[fix GH-1265] Patch by @lukBarros
|
|
|
|
|
2016-02-25 20:57:58 -05:00
|
|
|
Fri Feb 26 10:52:29 2016 Alex Boyd <alex@opengroove.org>
|
|
|
|
|
|
|
|
* lib/irb.rb: avoid to needless truncation when using back_trace_limit option.
|
|
|
|
[fix GH-1205][ruby-core:72773][Bug #11969]
|
|
|
|
|
Reduce system calls by activating the `did_you_mean` gem.
Activating the gem puts the gem on the load path, where simply requiring
the file will search every gem that's installed until it can find a gem
that contains the `did_you_mean` file.
Calling RubyGems' `require` will search each installed gem until it can
find one that contains the file it should require. This means that the
more gems you have installed, the longer it can take to require that
gem.
To see this in action, lets compare the number of `stat` calls for a
"bare require" vs the number of `stat` calls for a require that follows
a gem activation by using these two programs:
```
[aaron@TC rubygems (master)]$ cat req_dym.rb
begin
require 'did_you_mean'
rescue LoadError
end
[aaron@TC rubygems (master)]$ cat gem_dym.rb
begin
gem 'did_you_mean'
require 'did_you_mean'
rescue Gem::LoadError, LoadError
end
```
The first program just requires the `did_you_mean` gem, where the second
one activates the gem, then requires it. We can count the number of
`stat` calls using `dtrace`:
```
[aaron@TC rubygems (master)]$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
[aaron@TC rubygems (master)]$ sudo dtrace -q -n 'syscall::stat*:entry { printf("%s\n", copyinstr(arg0)); }' -c`rbenv which ruby`" --disable-did_you_mean req_dym.rb" | wc -l
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
283
[aaron@TC rubygems (master)]$ sudo dtrace -q -n 'syscall::stat*:entry { printf("%s\n", copyinstr(arg0)); }' -c`rbenv which ruby`" --disable-did_you_mean gem_dym.rb" | wc -l
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
13
```
The "bare require" version does over 10x the number of stat calls
compared to the "gem, then require" version. Of course the number for
the first one depends on the number of gems you have installed that sort
before the `did_you_mean` gem.
Lets also look at trunk Ruby:
```
[aaron@TC rubygems (master)]$ ruby -v
ruby 2.4.0dev (2016-02-25 trunk 53940) [x86_64-darwin15]
[aaron@TC rubygems (master)]$ sudo dtrace -q -n 'syscall::stat*:entry { printf("%s\n", copyinstr(arg0)); }' -c`rbenv which ruby`" --disable-did_you_mean req_dym.rb" | wc -l
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
2325
[aaron@TC rubygems (master)]$ sudo dtrace -q -n 'syscall::stat*:entry { printf("%s\n", copyinstr(arg0)); }' -c`rbenv which ruby`" --disable-did_you_mean gem_dym.rb" | wc -l
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
dtrace: error on enabled probe ID 3 (ID 826: syscall::stat64:entry): invalid user access in action #1 at DIF offset 24
685
```
This change will reduce the number of `stat` calls on trunk Ruby too,
but since this installation doesn't have the `did_you_mean` gem,
RubyGems is still reading every gem spec file so that it can raise a
`Gem::LoadError` exception with a nice error message. If we can modify
RubyGems a little, it may be possible to drop the number of stat calls
even on a Ruby installation that doesn't have the `did_you_mean` gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-02-25 18:23:30 -05:00
|
|
|
Fri Feb 26 08:11:58 2016 Aaron Patterson <tenderlove@ruby-lang.org>
|
|
|
|
|
|
|
|
* gem_prelude.rb: Reduce system calls by activating the `did_you_mean`
|
|
|
|
gem before requiring the gem. Activating the gem puts the gem on
|
|
|
|
the load path, where simply requiring the file will search every gem
|
|
|
|
that's installed until it can find a gem that contains the
|
|
|
|
`did_you_mean` file.
|
|
|
|
|
2016-02-25 05:04:59 -05:00
|
|
|
Thu Feb 25 19:04:13 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Adding possibility for debugging output
|
|
|
|
for TitleCase table in casefold.h.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-24 08:32:01 -05:00
|
|
|
Wed Feb 24 22:31:13 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h: Rearranging flag assignments and making
|
|
|
|
space for titlecase indices; adding additional macros to add or
|
|
|
|
extract titlecase index; adding comments for better documentation.
|
|
|
|
* enc/unicode.c: Moving some macros to include/ruby/oniguruma.h;
|
|
|
|
activating use of titlecase indices.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-24 07:30:20 -05:00
|
|
|
Wed Feb 24 21:03:04 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
2016-02-24 08:32:01 -05:00
|
|
|
* random.c (limited_rand): Add a specialized path for when the limit fits
|
2016-02-24 07:30:20 -05:00
|
|
|
in 32 bit.
|
|
|
|
|
2016-02-23 07:53:10 -05:00
|
|
|
Tue Feb 23 21:52:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Outputting actual titlecase
|
|
|
|
data (new table, with indices from other tables).
|
|
|
|
* enc/unicode.c: Ignoring titlecase data indices for the moment.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-23 01:21:55 -05:00
|
|
|
Tue Feb 23 15:21:14 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Reading casing data from
|
|
|
|
SpecialCasing.txt.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-22 04:34:34 -05:00
|
|
|
Mon Feb 22 18:33:55 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Adding flag for title-case,
|
|
|
|
not yet operational.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-22 04:17:43 -05:00
|
|
|
Mon Feb 22 18:17:03 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Fixed bug that avoided inclusion
|
2016-02-22 06:00:38 -05:00
|
|
|
of compatibility characters in upper-/lower-case mappings.
|
2016-02-22 04:17:43 -05:00
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-20 23:57:57 -05:00
|
|
|
Sun Feb 21 13:57:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* cgi/escape/escape.c: Optimize CGI.unescape performance by C ext
|
|
|
|
for ASCII-compatible encodings. [Fix GH-1250]
|
|
|
|
|
2016-02-20 23:57:35 -05:00
|
|
|
Sun Feb 21 13:56:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* cgi/escape/escape.c: Optimize CGI.unescapeHTML performance by C
|
|
|
|
ext for ASCII-compatible encodings. [Fix GH-1242]
|
|
|
|
|
2016-02-20 01:39:14 -05:00
|
|
|
Sat Feb 20 15:38:16 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* doc/extension.rdoc: update paths for defs/ directory
|
|
|
|
|
2016-02-20 00:44:52 -05:00
|
|
|
Sat Feb 20 14:44:15 2016 Lucas Buchala <lucasbuchala@gmail.com>
|
|
|
|
|
|
|
|
* vm_eval.c (rb_mod_module_eval): [DOC] Fix documentation
|
|
|
|
signature for Module#module_eval. [Fix GH-1258]
|
|
|
|
|
2016-02-20 00:41:20 -05:00
|
|
|
Sat Feb 20 14:40:44 2016 Adam O'Connor <northband@gmail.com>
|
|
|
|
|
|
|
|
* README.md: a few grammatical changes to the main Ruby README.md.
|
|
|
|
[Fix GH-1259]
|
|
|
|
|
2016-02-19 23:04:59 -05:00
|
|
|
Sat Feb 20 13:04:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* dir.c (push_pattern, push_glob): deal with read paths as UTF-8
|
|
|
|
to stat later, on Windows as well as OS X.
|
|
|
|
[ruby-core:73868] [Bug #12081]
|
|
|
|
|
2016-02-19 11:54:08 -05:00
|
|
|
Sat Feb 20 01:53:33 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* object.c (rb_mod_const_get): make error message at uninterned
|
|
|
|
string consistent with symbols. [ruby-dev:49498] [Bug #12089]
|
|
|
|
|
2016-02-19 09:38:28 -05:00
|
|
|
Fri Feb 19 23:37:52 2016 Masahiro Tomita <tommy@tmtm.org>
|
|
|
|
|
|
|
|
* lib/find.rb (Find#find): raise with the given path name if it
|
|
|
|
does not exist. [ruby-dev:49497] [Bug #12087]
|
|
|
|
|
2016-02-18 22:45:32 -05:00
|
|
|
Fri Feb 19 12:44:57 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Activated use of case mapping data in CaseUnfold_11 array.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-18 21:09:06 -05:00
|
|
|
Fri Feb 19 11:08:32 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/extmk.rb: add cygwin case, nothing excluded.
|
|
|
|
[ruby-core:73806] [Bug#12071]
|
|
|
|
|
2016-02-18 07:33:48 -05:00
|
|
|
Thu Feb 18 21:32:15 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
|
|
|
* man/irb.1: fix output in EXAMPLES.
|
|
|
|
|
2016-02-18 07:06:20 -05:00
|
|
|
Thu Feb 18 21:05:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (sym_match_m): delegate to String#match but not
|
|
|
|
String#=~. [ruby-core:72864] [Bug #11991]
|
|
|
|
|
2016-02-18 00:29:18 -05:00
|
|
|
Thu Feb 18 14:15:38 2016 Shota Fukumori <her@sorah.jp>
|
|
|
|
|
|
|
|
* re.c: Add MatchData#named_captures
|
|
|
|
[Feature #11999] [ruby-core:72897]
|
2016-02-18 00:29:19 -05:00
|
|
|
|
2016-02-18 00:29:18 -05:00
|
|
|
* test/ruby/test_regexp.rb(test_match_data_named_captures): Test for above.
|
|
|
|
|
|
|
|
* NEWS: News about MatchData#named_captures.
|
|
|
|
|
2016-02-17 07:42:00 -05:00
|
|
|
Wed Feb 17 21:41:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
2016-02-17 09:33:31 -05:00
|
|
|
* defs/id.def (predefined): add idLASTLINE and idBACKREF for $_
|
|
|
|
and $~ respectively.
|
2016-02-17 07:42:00 -05:00
|
|
|
|
|
|
|
* parse.y: use idLASTLINE and idBACKREF instead of rb_intern.
|
|
|
|
|
2016-02-17 06:24:09 -05:00
|
|
|
Wed Feb 17 20:23:38 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (rb_str_init): fix segfault and memory leak, consider
|
|
|
|
wide char encoding terminator.
|
|
|
|
|
2016-02-16 22:21:35 -05:00
|
|
|
Wed Feb 17 12:14:59 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (rb_str_init): introduce String.new(capacity: size)
|
|
|
|
[Feature #12024]
|
|
|
|
|
2016-02-16 05:10:37 -05:00
|
|
|
Tue Feb 16 19:10:08 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, casefold.h: Used only first element
|
|
|
|
(rather than all) of target in CaseUnfold_11 array.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-16 04:25:08 -05:00
|
|
|
Tue Feb 16 18:24:38 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* numeric.c (compare_with_zero): fix variable name, rb_cmperr
|
|
|
|
requires VALUEs but not an ID.
|
|
|
|
|
2016-02-16 03:34:47 -05:00
|
|
|
Tue Feb 16 17:34:18 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the
|
|
|
|
argument is the name of an empty directory. [Feature #10121]
|
|
|
|
|
2016-02-15 19:51:48 -05:00
|
|
|
Tue Feb 16 09:51:20 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/rbinstall.rb (without_destdir): just strip a drive letter
|
|
|
|
which is prepended by with_destdir.
|
|
|
|
pointed out by @DavidEGrayson.
|
|
|
|
https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763
|
|
|
|
|
2016-02-15 14:42:59 -05:00
|
|
|
Tue Feb 16 04:42:13 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* insns.def (opt_plus): simply use LONG2NUM() instead of wrongly
|
2016-02-16 07:25:53 -05:00
|
|
|
complex overflow case.
|
2016-02-15 14:42:59 -05:00
|
|
|
|
|
|
|
* insns.def (opt_sub): ditto.
|
|
|
|
|
2016-02-15 12:50:08 -05:00
|
|
|
Tue Feb 16 02:49:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/rbinstall.rb (without_destdir): compare with the destdir
|
|
|
|
after stripping a drive letter, on dosish platforms.
|
|
|
|
pointed out by @DavidEGrayson.
|
|
|
|
https://github.com/ruby/ruby/commit/d0cf23b#commitcomment-16100407
|
|
|
|
|
2016-02-15 01:44:36 -05:00
|
|
|
Mon Feb 15 15:44:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (parse_ident): allow keyword arguments just after a
|
|
|
|
method where the same name local variable is defined.
|
|
|
|
[ruby-core:73816] [Bug#12073]
|
|
|
|
|
2016-02-15 00:43:55 -05:00
|
|
|
Mon Feb 15 14:43:28 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Added debugging option
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-14 03:32:15 -05:00
|
|
|
Sun Feb 14 17:31:50 2016 Lars Kanis <lars@greiz-reinsdorf.de>
|
|
|
|
|
|
|
|
* lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to
|
|
|
|
be modified, in append_{cpp,c,ld}flags respectively.
|
|
|
|
[Fix GH-1246]
|
|
|
|
|
2016-02-14 02:19:23 -05:00
|
|
|
Sun Feb 14 16:18:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* eval.c (setup_exception): set the cause only if it is explicitly
|
|
|
|
given or not set yet. [Bug #12068]
|
|
|
|
|
2016-02-13 07:45:59 -05:00
|
|
|
Sat Feb 13 21:44:58 2016 Tanaka Akira <akr@fsij.org>
|
|
|
|
|
|
|
|
* hash.c (rb_hash_invert): [DOC] more examples.
|
|
|
|
|
2016-02-13 03:31:12 -05:00
|
|
|
Sat Feb 13 17:30:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/uri/generic.rb (URI::Generic#find_proxy): support CIDR in
|
|
|
|
no_proxy. [ruby-core:73769] [Feature#12062]
|
|
|
|
|
2016-02-13 03:12:21 -05:00
|
|
|
Sat Feb 13 17:11:58 2016 Fabian Wiesel <fabian.wiesel@sap.com>
|
|
|
|
|
|
|
|
* lib/uri/generic.rb (find_proxy): exclude white-spaces and allow
|
|
|
|
for a leading dot in the domain name in no_proxy.
|
|
|
|
[ruby-core:54542] [Feature #8317]
|
|
|
|
|
2016-02-11 22:21:17 -05:00
|
|
|
Fri Feb 12 12:20:56 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* error.c (name_err_initialize, nometh_err_initialize): [DOC] fix
|
|
|
|
argument positions. optional parameters except for the message
|
|
|
|
are placed at the last.
|
|
|
|
|
2016-02-11 21:50:09 -05:00
|
|
|
Fri Feb 12 11:49:49 2016 Anthony Dmitriyev <antstorm@gmail.com>
|
|
|
|
|
|
|
|
* net/ftp.rb: add NullSocket#closed? to fix closing not opened
|
|
|
|
connection. [Fix GH-1232]
|
|
|
|
|
2016-02-11 21:17:58 -05:00
|
|
|
Fri Feb 12 11:17:38 2016 Bogdan <bogdanvlviv@gmail.com>
|
|
|
|
|
|
|
|
* re.c (rb_reg_initialize_m): [DOC] fix missing right bracket.
|
|
|
|
[Fix GH-1243]
|
|
|
|
|
2016-02-11 00:58:16 -05:00
|
|
|
Thu Feb 11 14:57:58 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (RUBY_CHECK_SIZEOF, RUBY_DEFINT): fix for types
|
|
|
|
which are conditionally available depending on architectures
|
|
|
|
when universal binary, e.g., __int128.
|
|
|
|
|
2016-02-10 16:29:50 -05:00
|
|
|
Thu Feb 11 06:26:18 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (RUBY_DEFINT): use Parameter Expansion.
|
|
|
|
|
2016-02-10 15:57:49 -05:00
|
|
|
Thu Feb 11 05:33:24 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (int128_t): don't check HAVE_XXX (for example
|
|
|
|
HAVE___INT128) because RUBY_CHECK_SIZEOF() don't define it for
|
|
|
|
config.h and use of $ac_cv_sizeof___int128 alternates the check.
|
|
|
|
(and don't need to define because users shouldn't know that)
|
|
|
|
|
2016-02-09 22:03:57 -05:00
|
|
|
Wed Feb 10 12:03:41 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in (ARFLAGS): check if deterministic mode flag is
|
|
|
|
effective, which is on by default on Ubuntu.
|
|
|
|
|
2016-02-09 02:41:51 -05:00
|
|
|
Tue Feb 9 16:36:23 2016 Naotoshi Seo <sonots@gmail.com>
|
|
|
|
|
|
|
|
* lib/logger.rb: Remove block from Logger.add as it's not needed
|
2016-02-16 07:25:51 -05:00
|
|
|
patch provided by Daniel Lobato Garcia [fix GH-1240] [Bug #12054]
|
2016-02-09 02:41:51 -05:00
|
|
|
|
2016-02-09 00:33:35 -05:00
|
|
|
Tue Feb 9 14:32:23 2016 Zachary Scott <zzak@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/zlib/zlib.c: Document mtime header behavior with patch by @schneems
|
|
|
|
Fixes [GH-1129]: https://github.com/ruby/ruby/pull/1129
|
|
|
|
|
2016-02-08 23:54:39 -05:00
|
|
|
Tue Feb 9 13:52:49 2016 Zachary Scott <zzak@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c: Remove deprecated kcode argument from Regexp.new and compile
|
|
|
|
patch provided by Dylan Pulliam [Bug #11495]
|
|
|
|
|
2016-02-08 07:26:35 -05:00
|
|
|
Mon Feb 8 21:26:19 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb, enc/unicode/casefold.h: Flags for
|
|
|
|
upper/lower conversion added (titlecase and SpecialCasing still missing)
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-08 06:44:12 -05:00
|
|
|
Mon Feb 8 20:43:57 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c, enc/unicode.c: Disassociating ONIGENC_CASE_FOLD flag from
|
|
|
|
ONIGENC_CASE_DOWNCASE.
|
2016-02-15 00:43:55 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-08 06:44:12 -05:00
|
|
|
|
2016-02-07 23:00:31 -05:00
|
|
|
Mon Feb 8 13:00:17 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Shortened macros for enc/unicode/casefold.h to
|
|
|
|
single-letter; use flags in casefold.h for logic.
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Added flag for case folding.
|
|
|
|
Changed parameter passing.
|
|
|
|
|
|
|
|
* enc/unicode/casefold.h: New flags added.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-07 23:00:31 -05:00
|
|
|
|
2016-02-07 20:30:22 -05:00
|
|
|
Mon Feb 8 10:30:10 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ruby.c (feature_option): raise a runtime error if ambiguous
|
|
|
|
feature name is given, in the future. [Bug #12050]
|
|
|
|
|
2016-02-07 19:44:10 -05:00
|
|
|
Mon Feb 8 09:43:57 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Removed enc/unicode/casefold.h from automatic build because
|
|
|
|
some CI systems don't have gperf. Creation of enc/unicode/casefold.h
|
|
|
|
is now possible with make unicode-up. This is intended as a temporary measure.
|
|
|
|
|
2016-02-07 08:10:20 -05:00
|
|
|
Sun Feb 7 22:10:08 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Added two more precondition files for enc/unicode/casefold.h
|
|
|
|
|
|
|
|
* enc/unicode.c: Added shortening macros for enc/unicode/casefold.h
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Fixed file encoding for CaseFolding.txt
|
|
|
|
to ASCII-8BIT (should fix some ci errors). Clarified usage. Created
|
|
|
|
class MapItem. Partially implemented class CaseMapping.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-07 08:10:20 -05:00
|
|
|
|
2016-02-07 00:12:44 -05:00
|
|
|
Sun Feb 7 14:12:32 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Fixing parameter passing.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-07 00:12:44 -05:00
|
|
|
|
2016-02-06 21:44:14 -05:00
|
|
|
Sun Feb 7 11:44:03 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
2016-02-06 21:16:12 -05:00
|
|
|
|
2016-02-06 21:44:14 -05:00
|
|
|
* enc/unicode/case-folding.rb: New classes CaseMapping/CaseMappingDummy
|
|
|
|
to pass as parameters; not yet implemented or used.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-06 21:16:12 -05:00
|
|
|
|
2016-02-07 14:40:05 -05:00
|
|
|
Sun Feb 7 11:16:00 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: using new option in recipe for enc/unicode/casefold.h
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Correctly specify argument to new option.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-07 14:40:05 -05:00
|
|
|
|
2016-02-06 20:43:39 -05:00
|
|
|
Sun Feb 7 10:43:27 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
(this commit message applies to the previous commit)
|
|
|
|
* common.mk: explicit recipe for enc/unicode/casefold.h
|
|
|
|
|
|
|
|
* enc/unicode/case-folding.rb: Adding -m option to prepare for using
|
|
|
|
multiple data files.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-06 20:43:39 -05:00
|
|
|
|
2016-02-06 08:31:07 -05:00
|
|
|
Sat Feb 6 22:30:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/cgi/util.rb (escapeHTML, unescapeHTML): consider
|
|
|
|
ASCII-incompatible encodings. [Fix GH-1239]
|
|
|
|
|
2016-02-06 01:18:38 -05:00
|
|
|
Sat Feb 6 15:18:28 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_regex_casefold.rb: Added data-based testing for
|
|
|
|
String#downcase :fold.
|
|
|
|
|
|
|
|
* enc/unicode.c: Fixed a range error (lowest non-ASCII character affected
|
|
|
|
by case operations is U+00B5, MICRO SIGN)
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Explicit test for case folding of
|
|
|
|
MICRO SIGN to Greek mu.
|
2016-02-16 07:25:53 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-02-06 01:18:38 -05:00
|
|
|
|
2016-02-06 00:51:33 -05:00
|
|
|
Sat Feb 6 14:51:23 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_regex_casefold.rb: Tests for three case folding
|
|
|
|
primitives (mbc_case_fold, get_case_fold_codes_by_str,
|
|
|
|
apply_all_case_fold) in the various encodings. Currently only known
|
|
|
|
good encodings are tested to avoid test failures. For bug hunting,
|
|
|
|
start by adding more encodings with
|
2016-02-16 07:25:53 -05:00
|
|
|
generate_test_casefold encoding
|
2016-02-06 00:51:33 -05:00
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-06 00:37:29 -05:00
|
|
|
Sat Feb 6 14:37:16 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c, test/ruby/enc/test_case_mapping.rb: Implemented :fold
|
|
|
|
option for String#downcase by using case folding data from
|
|
|
|
regular expression engine, and added a few simple tests.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-05 06:09:07 -05:00
|
|
|
Fri Feb 5 20:08:59 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: added tests for :ascii option.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-04 23:31:27 -05:00
|
|
|
Fri Feb 5 12:22:20 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* insns.def (opt_mult): Use int128_t for overflow detection.
|
|
|
|
|
|
|
|
* bignum.c (rb_uint128t2big): added for opt_mult.
|
|
|
|
|
|
|
|
* bignum.c (rb_uint128t2big): added for rb_uint128t2big..
|
|
|
|
|
|
|
|
* configure.in: define int128_t, uint128_t and related MACROs.
|
|
|
|
Initially introduced by r41379 but reverted by r50749.
|
|
|
|
|
2016-02-04 07:05:23 -05:00
|
|
|
Thu Feb 4 21:05:17 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Activated :ascii flag for ASCII-only case conversion
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-02-04 03:38:06 -05:00
|
|
|
Thu Feb 4 17:38:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (reg_set_source): make source string frozen without
|
|
|
|
copying.
|
|
|
|
|
|
|
|
* re.c (rb_reg_initialize_m): refactor initialization with
|
|
|
|
encoding.
|
|
|
|
|
2016-02-04 01:35:34 -05:00
|
|
|
Thu Feb 4 15:35:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (rb_fstring_enc_new, rb_fstring_enc_cstr): functions to
|
|
|
|
make fstring with encoding.
|
|
|
|
|
2016-02-04 00:42:35 -05:00
|
|
|
Thu Feb 4 14:42:29 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Added Unicode data file SpecialCasing.txt to be additionally
|
|
|
|
downloaded (with Kimihito Matsui)
|
|
|
|
|
2016-02-03 22:39:12 -05:00
|
|
|
Thu Feb 4 12:39:08 2016 joker1007 <kakyoin.hierophant@gmail.com>
|
|
|
|
|
|
|
|
* cgi/escape/escape.c: Optimize CGI.escape performance by C ext
|
|
|
|
for ASCII-compatible encodings. [Fix GH-1238]
|
|
|
|
|
2016-02-03 21:54:02 -05:00
|
|
|
Thu Feb 4 11:53:56 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Introduce two variables (UNICODE_DATA_DIR and
|
|
|
|
UNICODE_SRC_DATA_DIR) to eliminate repetitions.
|
|
|
|
|
2016-02-02 23:52:13 -05:00
|
|
|
Wed Feb 3 12:13:20 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c (str_new_frozen): if the given string is embeddedable
|
|
|
|
but not embedded, embed a new copied string. [Bug #11946]
|
|
|
|
|
2016-02-02 18:25:40 -05:00
|
|
|
Wed Feb 3 08:25:38 2016 boshan <boshan@subsplash.com>
|
|
|
|
|
|
|
|
* ext/openssl/ossl_pkey.c (Init_ossl_pkey): [DOC] Fix typo
|
|
|
|
"encrypted" to "decrypted". [Fix GH-1235]
|
|
|
|
|
2016-02-02 18:21:34 -05:00
|
|
|
Wed Feb 3 08:21:32 2016 Seiei Miyagi <hanachin@gmail.com>
|
|
|
|
|
|
|
|
* ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): Fix
|
|
|
|
Ripper.lex error in dedenting squiggly heredoc. heredoc tree is
|
|
|
|
also an array of Elem in the outer tree. [Fix GH-1234]
|
|
|
|
|
2016-02-02 12:38:00 -05:00
|
|
|
Wed Feb 3 02:33:39 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c (rb_reg_prepare_enc): use already compiled US-ASCII regexp
|
|
|
|
if given string is ASCII only.
|
|
|
|
121.2s to 113.9s on my x86_64-freebsd10.2 Intel Core i5 661
|
|
|
|
|
2016-02-01 23:39:44 -05:00
|
|
|
Tue Feb 2 13:02:03 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* re.c: Introduce RREGEXP_PTR.
|
|
|
|
patch by dbussink.
|
|
|
|
partially merge https://github.com/ruby/ruby/pull/497
|
|
|
|
|
|
|
|
* include/ruby/ruby.h: ditto.
|
|
|
|
|
|
|
|
* gc.c: ditto.
|
|
|
|
|
|
|
|
* ext/strscan/strscan.c: ditto.
|
|
|
|
|
|
|
|
* parse.y: ditto.
|
|
|
|
|
|
|
|
* string.c: ditto.
|
|
|
|
|
2016-02-01 19:11:34 -05:00
|
|
|
Tue Feb 2 09:08:27 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
2016-02-01 22:53:01 -05:00
|
|
|
* lib/rubygems/specification.rb: `coding` is effective only first
|
|
|
|
line except shebang.
|
|
|
|
|
2016-02-01 19:11:34 -05:00
|
|
|
* lib/rubygems/package.rb, lib/rubygems/package/*: ditto.
|
|
|
|
|
2016-02-01 07:43:26 -05:00
|
|
|
Mon Feb 1 21:41:58 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2.
|
|
|
|
It supports to enable frozen string literal and add `--norc` option for
|
|
|
|
disable to `.gemrc` configuration.
|
|
|
|
See 2.5.2 release notes for other fixes and enhancements.
|
|
|
|
https://github.com/rubygems/rubygems/blob/a8aa3bac723f045c52471c7b9328310a048561e0/History.txt#L3
|
|
|
|
|
2016-01-30 22:34:21 -05:00
|
|
|
Sun Jan 31 12:33:13 2016 Dan Kreiger <dan@dankreiger.com>
|
|
|
|
|
|
|
|
* test/drb/ut_large.rb (multiply, avg, median): add additional
|
|
|
|
math operations to DRbLarge. [Fix GH-1086]
|
|
|
|
|
2016-01-30 22:20:22 -05:00
|
|
|
Sun Jan 31 12:19:15 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_file_exhaustive.rb (test_lstat): Add lacking test
|
|
|
|
for File#lstat. [Fix GH-1231]
|
|
|
|
|
2016-01-30 22:16:40 -05:00
|
|
|
Sun Jan 31 12:15:33 2016 Prayag Verma <prayag.verma@gmail.com>
|
|
|
|
|
|
|
|
* doc/standard_library.rdoc: fix typo [Fix GH-1230]
|
|
|
|
Spelling mistakes -
|
|
|
|
outputing > outputting
|
|
|
|
publich > publish
|
|
|
|
|
2016-01-30 01:19:13 -05:00
|
|
|
Sat Jan 30 15:18:07 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_eval.c (rb_check_funcall_with_hook): also should call the
|
|
|
|
given hook before returning Qundef when overridden respond_to?
|
|
|
|
method returned false. [ruby-core:73556] [Bug #12030]
|
|
|
|
|
2016-01-29 03:41:10 -05:00
|
|
|
Fri Jan 29 17:40:07 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/file.c (rb_readlink): drop garbage after the substitute
|
|
|
|
name, as rb_w32_read_reparse_point returns the expected buffer
|
|
|
|
size but "\??\" prefix is dropped from the result.
|
|
|
|
|
|
|
|
* win32/win32.c (w32_readlink): ditto, including NUL-terminator.
|
|
|
|
|
2016-01-29 03:13:42 -05:00
|
|
|
Fri Jan 29 17:07:27 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* win32/win32.c (fileattr_to_unixmode, rb_w32_reparse_symlink_p): volume
|
|
|
|
mount point should be treated as directory, not symlink.
|
|
|
|
[ruby-core:72483] [Bug #11874]
|
|
|
|
|
|
|
|
* win32/win32.c (rb_w32_read_reparse_point): check the reparse point is
|
|
|
|
a volume mount point or not.
|
|
|
|
|
|
|
|
* win32/file.c (rb_readlink): follow above change (but this pass won't
|
|
|
|
be used).
|
|
|
|
|
2016-01-29 02:18:10 -05:00
|
|
|
Fri Jan 29 16:17:07 2016 Lucas Buchala <lucasbuchala@gmail.com>
|
|
|
|
|
|
|
|
* enum.c (enum_take_while, enum_drop_while): rename block
|
|
|
|
parameter to obj, since they are generic objects. [Fix GH-1226]
|
|
|
|
|
2016-01-29 00:16:29 -05:00
|
|
|
Fri Jan 29 14:15:26 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/erb.rb (ERB::Compiler#detect_magic_comment): allow
|
2016-01-29 03:01:01 -05:00
|
|
|
frozen-string-literal in comment as well as encoding.
|
2016-01-29 00:14:31 -05:00
|
|
|
|
|
|
|
* lib/erb.rb (ERB#def_method): insert def line just before the
|
|
|
|
first non-comment and non-empty line, not to leave duplicated
|
|
|
|
and stale magic comments.
|
|
|
|
|
2016-01-28 21:14:36 -05:00
|
|
|
Fri Jan 29 11:13:33 2016 Jeremy Evans <code@jeremyevans.net>
|
|
|
|
|
|
|
|
* lib/erb.rb (ERB#set_eoutvar): explicitly make mutable string as
|
|
|
|
a buffer to make ERB work with --enable-frozen-string-literal.
|
|
|
|
[ruby-core:73561] [Bug #12031]
|
|
|
|
|
2016-01-28 20:46:02 -05:00
|
|
|
Fri Jan 29 10:44:56 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/net/http/header.rb: Warn nil variable on HTTP Header.
|
|
|
|
It caused to NoMethodError. [fix GH-952][fix GH-641] Patch by @teosz
|
|
|
|
* test/net/http/test_httpheader.rb: Added test for nil HTTP Header.
|
|
|
|
|
2016-01-28 03:32:44 -05:00
|
|
|
Thu Jan 28 17:31:43 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/socket/socket.c (sock_gethostname): support unlimited size
|
|
|
|
hostname.
|
|
|
|
|
2016-01-27 07:04:47 -05:00
|
|
|
Wed Jan 27 21:03:45 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
2016-01-27 07:04:48 -05:00
|
|
|
* test/-ext-/string/test_capacity.rb: Added missing library.
|
2016-01-27 07:04:47 -05:00
|
|
|
|
2016-01-27 04:54:38 -05:00
|
|
|
Wed Jan 27 18:53:40 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Fixed bit mask in macro OnigCodePointCount
|
|
|
|
|
2016-01-27 03:55:40 -05:00
|
|
|
Wed Jan 27 17:54:42 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Protect code point count by macro, in order to
|
|
|
|
be able to use the remaining bits for flags.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-01-27 02:35:34 -05:00
|
|
|
Wed Jan 27 16:34:35 2016 boshan <boshan@subsplash.com>
|
|
|
|
|
|
|
|
* lib/tempfile.rb (Tempfile#initialize): [DOC] the first parameter
|
|
|
|
`basename` is optional and defaulted to an empty string since
|
|
|
|
[GH-523]. [Fix GH-1225]
|
|
|
|
|
2016-01-27 02:26:53 -05:00
|
|
|
Wed Jan 27 16:25:54 2016 Koichi ITO <koic.ito@gmail.com>
|
|
|
|
|
|
|
|
* array.c (rb_ary_dig): [DOC] fix the exception class to be raised
|
|
|
|
when intermediate object does not have dig method. TypeError
|
|
|
|
will be raised now. [Fix GH-1224]
|
|
|
|
|
2016-01-26 05:37:12 -05:00
|
|
|
Tue Jan 26 19:36:15 2016 Aggelos Avgerinos <evaggelos.avgerinos@gmail.com>
|
|
|
|
|
|
|
|
* array.c (permute0, rpermute0): [DOC] Substitute indexes ->
|
|
|
|
indices in documentation for consistency. [Fix GH-1222]
|
|
|
|
|
2016-01-26 01:23:47 -05:00
|
|
|
Tue Jan 26 15:21:37 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* compile.c (caller_location): use rb_fstring_cstr for "<compiled>"
|
|
|
|
(it is converted to fstring anyways inside rb_iseq_new_with_opt)
|
|
|
|
* iseq.c (iseqw_s_compile): ditto
|
|
|
|
* iseq.c (rb_iseq_new_main): use rb_fstring_cstr for "<main>"
|
|
|
|
* vm.c (Init_VM): ditto, share with with above
|
|
|
|
* iseq.c (iseqw_s_compile_file): rb_fstring before rb_io_t->pathv
|
|
|
|
share "<main>" with above
|
|
|
|
* vm.c (rb_binding_add_dynavars): fstring "<temp>" immediately
|
|
|
|
|
2016-01-26 01:14:59 -05:00
|
|
|
Tue Jan 26 15:14:01 2016 Kazuki Yamaguchi <k@rhe.jp>
|
|
|
|
|
|
|
|
* compile.c (iseq_peephole_optimize): don't apply tailcall
|
|
|
|
optimization to send/invokesuper instructions with blockiseq.
|
|
|
|
This is a follow-up to the changes in r51903; blockiseq is now
|
|
|
|
the third operand of send/invokesuper instructions.
|
|
|
|
[ruby-core:73413] [Bug #12018]
|
|
|
|
|
2016-01-26 00:33:28 -05:00
|
|
|
Tue Jan 26 14:26:46 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* signal.c (sig_list): use fstring for hash key
|
|
|
|
* test/ruby/test_signal.rb (test_signal_list_dedupe_keys): added
|
|
|
|
|
2016-01-25 23:09:31 -05:00
|
|
|
Tue Jan 26 13:08:34 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* signal.c (rb_f_kill): should immediately deliver reserved
|
2016-01-26 05:39:50 -05:00
|
|
|
signals SIGILL and SIGFPE, not only SIGSEGV and SIGBUS.
|
2016-01-25 23:09:31 -05:00
|
|
|
|
2016-01-25 17:58:25 -05:00
|
|
|
Tue Jan 26 07:57:28 2016 Joseph Tibbertsma <josephtibbertsma@gmail.com>
|
|
|
|
|
|
|
|
* gc.c (RVALUE_PAGE_WB_UNPROTECTED): fix a typo of argument name.
|
|
|
|
[Fix GH-1221]
|
|
|
|
|
2016-01-25 03:34:00 -05:00
|
|
|
Mon Jan 25 17:26:54 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* ruby_assert.h (RUBY_ASSERT_WHEN): fix reference to macro name
|
|
|
|
* vm_core.h: include ruby_assert.h before using
|
|
|
|
[ruby-core:73371]
|
|
|
|
|
2016-01-25 01:56:26 -05:00
|
|
|
Mon Jan 25 15:55:30 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* symbol.c (sym_check_asciionly): more informative error message
|
|
|
|
with the encoding name and the inspected content.
|
|
|
|
[ruby-core:73398] [Feature #12016]
|
|
|
|
|
2016-01-24 19:39:26 -05:00
|
|
|
Mon Jan 25 09:38:26 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb: added testcase for next!, succ and succ!
|
|
|
|
[fix GH-1213] Patch by @K0mAtoru
|
|
|
|
|
2016-01-24 19:33:17 -05:00
|
|
|
Mon Jan 25 09:32:25 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/webrick/httpservlet/filehandler.rb: fix documentation for namespace.
|
|
|
|
[fix GH-1219][ci skip] Patch by @leafac
|
|
|
|
|
2016-01-24 05:36:16 -05:00
|
|
|
Sun Jan 24 19:34:23 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* vm_insnhelper.c (vm_check_if_namespace): tiny size reduction
|
|
|
|
|
2016-01-24 04:13:30 -05:00
|
|
|
Sun Jan 24 18:12:36 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Simplifying Unicode data file download logic to make
|
|
|
|
it more reliable (including additional fix not in r53633) [Bug #12007]
|
|
|
|
|
2016-01-24 02:55:05 -05:00
|
|
|
Sun Jan 24 16:54:11 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/io/wait/wait.c (io_wait_readwrite): [EXPERIMENTAL] allow to
|
|
|
|
wait for multiple modes, readable and writable, at once. the
|
|
|
|
arguments may change in the future. [Feature #12013]
|
|
|
|
|
2016-01-23 08:31:51 -05:00
|
|
|
Sat Jan 23 22:30:59 2016 K0mA <mctj1218@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_array.rb (test_keep_if): Add test for
|
|
|
|
Array#keep_if separate from Array#select! [Fix GH-1218]
|
|
|
|
|
2016-01-23 06:55:32 -05:00
|
|
|
Sat Jan 23 20:54:26 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* common.mk: revert r53633. It broke rubyci and travis.
|
|
|
|
https://travis-ci.org/ruby/ruby/builds/104259623
|
|
|
|
|
2016-01-23 06:16:09 -05:00
|
|
|
Sat Jan 23 20:10:29 2016 Shugo Maeda <shugo@ruby-lang.org>
|
|
|
|
|
2016-01-23 06:19:22 -05:00
|
|
|
* range.c (range_eqq): revert r51585 because rb_call_super() is
|
|
|
|
called in range_include() and thus r51585 doesn't work when the
|
2016-01-23 06:16:09 -05:00
|
|
|
receiver Range object consists of non linear objects such as Date
|
|
|
|
objects.
|
|
|
|
[ruby-core:72908] [Bug #12003]
|
|
|
|
|
2016-01-23 04:38:50 -05:00
|
|
|
Sat Jan 23 18:37:37 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* ChangeLog: Fixing wrong time on previous commit, and adding
|
|
|
|
previous commit message to svn [ci skip]
|
|
|
|
|
|
|
|
Sat Jan 23 18:30:30 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
2016-01-23 04:32:44 -05:00
|
|
|
|
|
|
|
* common.mk: Simplifying Unicode data file download logic to make
|
2016-01-23 04:38:50 -05:00
|
|
|
it more reliable [Bug #12007]
|
2016-01-23 04:32:44 -05:00
|
|
|
|
2016-01-23 02:30:32 -05:00
|
|
|
Sat Jan 23 16:29:42 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* tool/downloader.rb: Fixed a logical error, improved documentation
|
|
|
|
|
2016-01-22 21:43:34 -05:00
|
|
|
Sat Jan 23 11:42:43 2016 Peter Suschlik <ps@neopoly.de>
|
|
|
|
|
|
|
|
* README.md: Use SVG Travis badge over PNG for better quality and
|
2016-01-23 00:19:42 -05:00
|
|
|
device support. [Fix GH-1214] [Fix GH-1216]
|
2016-01-22 21:43:34 -05:00
|
|
|
|
2016-01-22 21:30:07 -05:00
|
|
|
Sat Jan 23 11:29:16 2016 Pascal Betz <pascal.betz@simplificator.com>
|
|
|
|
|
|
|
|
* lib/csv.rb: Update documentation of CSV header converter for
|
|
|
|
r45498, [GH-575]. [Fix GH-1215]
|
|
|
|
|
2016-01-22 03:37:36 -05:00
|
|
|
Fri Jan 22 17:36:46 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* vm_core.h (VM_ASSERT): use RUBY_ASSERT instead of rb_bug.
|
2016-01-22 03:33:55 -05:00
|
|
|
|
|
|
|
* error.c (rb_assert_failure): assertion with stack dump.
|
|
|
|
|
|
|
|
* ruby_assert.h (RUBY_ASSERT): new header for the assertion.
|
|
|
|
|
2016-01-21 11:09:09 -05:00
|
|
|
Fri Jan 22 00:25:57 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* regparse.c (fetch_name_with_level): allow non word characters
|
|
|
|
at the first character. [Feature #11949]
|
|
|
|
|
|
|
|
* regparse.c (fetch_name): ditto.
|
|
|
|
|
2016-01-21 03:36:01 -05:00
|
|
|
Thu Jan 21 17:34:01 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* marshal.c (r_object0): honor Marshal.load post proc
|
|
|
|
value for TYPE_LINK. by Hiroshi Nakamura <nahi@ruby-lang.org>
|
|
|
|
https://github.com/ruby/ruby/pull/1204 fix GH-1204
|
|
|
|
|
2016-01-21 02:40:17 -05:00
|
|
|
Thu Jan 21 16:37:50 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* Makefile.in (update-rubyspec): fix r53208 like r53451.
|
|
|
|
|
2016-01-20 07:00:14 -05:00
|
|
|
Wed Jan 20 20:58:25 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
2016-01-20 07:09:39 -05:00
|
|
|
* common.mk, Makefile.in: update-config_files is only for Unix
|
2016-01-20 07:00:14 -05:00
|
|
|
platforms.
|
|
|
|
|
2016-01-20 03:14:24 -05:00
|
|
|
Wed Jan 20 17:13:39 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
2016-01-20 03:16:39 -05:00
|
|
|
* tool/extlibs.rb: add --cache option to change cache directory.
|
2016-01-20 03:14:24 -05:00
|
|
|
|
2016-01-19 03:04:21 -05:00
|
|
|
Tue Jan 19 17:03:40 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* common.mk: Added Unicode data file CaseFolding.txt to be additionally
|
|
|
|
downloaded (with Kimihito Matsui)
|
|
|
|
|
2016-01-18 21:03:50 -05:00
|
|
|
Tue Jan 19 10:09:58 2016 Sho Hashimoto <sho-h@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/shell.rb (Shell.debug_output_exclusive_unlock): remove
|
|
|
|
because Mutex#exclusive_unlock was already deleted. [fix GH-1185]
|
|
|
|
|
2016-01-18 19:39:12 -05:00
|
|
|
Tue Jan 19 09:38:27 2016 Nick Cox <nick@nickcox.me>
|
|
|
|
|
|
|
|
* vm_method.c: fix grammar in respond_to? warning.
|
|
|
|
[fix GH-1047]
|
|
|
|
|
2016-01-18 00:37:48 -05:00
|
|
|
Mon Jan 18 14:37:07 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (parser_here_document): an escaped newline is not an
|
|
|
|
actual newline, and the rest part should not be dedented.
|
|
|
|
[ruby-core:72855] [Bug #11989]
|
|
|
|
|
2016-01-17 22:05:20 -05:00
|
|
|
Mon Jan 18 12:04:34 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb: Added extra testcase for test_rstrip_bang
|
|
|
|
and test_lstrip_bang. [fix GH-1178] Patch by @Matrixbirds
|
|
|
|
|
2016-01-17 21:48:24 -05:00
|
|
|
Mon Jan 18 11:47:27 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* string.c: fix a typo. [fix GH-1202][ci skip] Patch by @sunboshan
|
|
|
|
|
2016-01-17 07:20:15 -05:00
|
|
|
Sun Jan 17 21:15:30 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: improve ICC (Intel C Compiler) support.
|
|
|
|
|
|
|
|
* configure.in (CXX): The name of icc's c++ compiler is `icpc`.
|
|
|
|
|
|
|
|
* configure.in (warnings): Add `-diag-disable=2259` to suppress
|
|
|
|
noisy warnings: "non-pointer conversion from "..." to "..." may
|
|
|
|
lose significant bits".
|
|
|
|
|
|
|
|
* configure.in (optflags): Add `-fp-model precise` like -fno-fast-math.
|
|
|
|
|
|
|
|
* lib/mkmf.rb: icc supports -Werror=division-by-zero
|
|
|
|
and -Werror=deprecated-declarations, but doesn't support
|
|
|
|
-Wdivision-by-zero and -Wdeprecated-declarations.
|
|
|
|
|
2016-01-17 06:40:46 -05:00
|
|
|
Sun Jan 17 20:40:10 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c: Any kind of option is now taking the new code path for
|
|
|
|
upcase/downcase/capitalize/swapcase. :lithuanian can be used for
|
|
|
|
testing if no specific option is desired.
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Adjusted to above.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-01-17 06:10:45 -05:00
|
|
|
Sun Jan 17 20:10:10 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Fixed a logical error and some comments.
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Made tests more general.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-01-17 03:42:16 -05:00
|
|
|
Sun Jan 17 17:41:41 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Removed artificial expansion for Turkic,
|
|
|
|
added hand-coded support for Turkic, fixed logic for swapcase.
|
|
|
|
* string.c: Made use of new case mapping code possible from upcase,
|
|
|
|
capitalize, and swapcase (with :lithuanian as a guard).
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Adjusted for above.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-01-17 01:31:36 -05:00
|
|
|
Sun Jan 17 15:30:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/socket/option.c (sockopt_bool): relax boolean size to be one
|
|
|
|
too not only sizeof(int). Winsock getsockopt() returns a single
|
|
|
|
byte as a boolean socket option. [ruby-core:72730] [Bug #11958]
|
|
|
|
|
2016-01-17 00:43:40 -05:00
|
|
|
Sun Jan 17 14:43:01 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_env.rb: [Fix GH-1201]
|
|
|
|
* Extract test code for ENV#keep_if from ENV#select_bang
|
|
|
|
* Add a test case for ENV#select_bang,keep_if
|
|
|
|
|
2016-01-17 00:43:04 -05:00
|
|
|
Sun Jan 17 14:42:25 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_env.rb: [Fix GH-1201]
|
|
|
|
* Extract test code for ENV#delete_if from ENV#reject_bang
|
|
|
|
* Add a test case for ENV#reject_bang,delete_if
|
|
|
|
|
2016-01-17 00:41:01 -05:00
|
|
|
Sun Jan 17 14:40:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/socket/option.c (check_size): extract a macro to check
|
|
|
|
binary data size, with a consistent message.
|
|
|
|
|
|
|
|
* ext/socket/option.c (sockopt_byte): fix error message,
|
|
|
|
sizeof(int) differs from sizeof(unsigned char) in general.
|
|
|
|
|
2016-01-16 07:16:59 -05:00
|
|
|
Sat Jan 16 21:16:21 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (xstring): reset heredoc indent after dedenting,
|
|
|
|
so that following string literal would not be dedented.
|
|
|
|
[ruby-core:72857] [Bug #11990]
|
|
|
|
|
2016-01-16 03:24:58 -05:00
|
|
|
Sat Jan 16 17:24:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* enc/unicode.c: Artificial mapping to test buffer expansion code.
|
|
|
|
* string.c: Fixed buffer expansion logic.
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Tests for above.
|
|
|
|
(with Kimihito Matsui)
|
|
|
|
|
2016-01-16 02:51:24 -05:00
|
|
|
Sat Jan 16 16:47:14 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* ext/openssl/lib/openssl/pkey.rb: Added 2048 bit DH parameter.
|
|
|
|
* test/openssl/test_pkey_dh.rb: ditto.
|
|
|
|
|
2016-01-15 20:51:58 -05:00
|
|
|
Sat Jan 16 10:51:19 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* enc/unicode.c: fix implicit conversion error with clang. fixup r53548.
|
|
|
|
* string.c: ditto.
|
|
|
|
|
2016-01-15 20:37:47 -05:00
|
|
|
Sat Jan 16 10:31:00 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* common.mk: test-sample was changed to test-basic.
|
|
|
|
[Feature #11982][ruby-core:72823]
|
|
|
|
* basictest/runner.rb: ditto. rename from tool/rubytest.rb.
|
|
|
|
* basictest/test.rb: ditto. rename from sample/test.rb.
|
|
|
|
* defs/gmake.mk: picked from r53540
|
2016-01-16 09:53:06 -05:00
|
|
|
* sample/test.rb: backward compatibility for chkbuild.
|
2016-01-15 20:37:47 -05:00
|
|
|
|
2016-01-15 20:24:03 -05:00
|
|
|
Sat Jan 16 10:23:23 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c, enc/unicode.c: New code path as a preparation for Unicode-wide
|
|
|
|
case mapping. The code path is currently guarded by the :lithuanian
|
|
|
|
option to avoid accidental problems in daily use.
|
|
|
|
* test/ruby/enc/test_case_mapping.rb: Test for above.
|
|
|
|
* string.c: function 'check_case_options': fixed logical errors
|
2016-01-16 03:24:58 -05:00
|
|
|
(with Kimihito Matsui)
|
2016-01-15 20:24:03 -05:00
|
|
|
|
2016-01-15 06:25:29 -05:00
|
|
|
Fri Jan 15 20:20:20 2016 Naohisa Goto <ngotogenome@gmail.com>
|
|
|
|
|
|
|
|
* regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): The value of
|
|
|
|
UNALIGNED_WORD_ACCESS should be used to determine whether
|
|
|
|
unaligned word access is allowed or not. After this commit,
|
|
|
|
./configure CPPFLAGS="-DUNALIGNED_WORD_ACCESS=0" disables
|
|
|
|
unaligned word access even on platforms that support the feature.
|
|
|
|
|
2016-01-15 02:12:46 -05:00
|
|
|
Fri Jan 15 16:12:10 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
2016-01-15 20:24:03 -05:00
|
|
|
* parse.y (string1): reset heredoc indent for each string literal
|
2016-01-15 02:12:46 -05:00
|
|
|
so that concatenated string would not be dedented.
|
|
|
|
[ruby-core:72857] [Bug #11990]
|
|
|
|
|
2016-01-14 06:20:24 -05:00
|
|
|
Thu Jan 14 20:01:00 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/uri/generic.rb (URI::Generic#to_s): change encoding to
|
|
|
|
UTF-8 as Ruby 2.2/ by Koichi ITO <koic.ito@gmail.com>
|
|
|
|
https://github.com/ruby/ruby/pull/1188 fix GH-1188
|
|
|
|
|
2016-01-14 03:36:49 -05:00
|
|
|
Thu Jan 14 17:36:16 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* variable.c (rb_f_global_variables): add matched back references
|
2016-01-16 09:53:06 -05:00
|
|
|
only, as well as defined? operator.
|
2016-01-14 03:36:49 -05:00
|
|
|
|
2016-01-14 02:12:42 -05:00
|
|
|
Thu Jan 14 16:12:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* sprintf.c (rb_str_format): format exact number more exactly.
|
|
|
|
|
2016-01-14 01:09:19 -05:00
|
|
|
Thu Jan 14 15:08:43 2016 Tony Arcieri <bascule@gmail.com>
|
|
|
|
|
|
|
|
* Remove 512-bit DH group. It's affected by LogJam Attack.
|
|
|
|
https://weakdh.org/
|
|
|
|
[fix GH-1196][Bug #11968][ruby-core:72766]
|
|
|
|
|
2016-01-13 21:45:03 -05:00
|
|
|
Thu Jan 14 11:44:29 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* variable.c (rb_f_global_variables): add $1..$9 only if $~ is
|
|
|
|
set. fix the condition removed at r14014.
|
|
|
|
|
2016-01-13 03:22:18 -05:00
|
|
|
Wed Jan 13 17:21:45 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* .travis.yml: removed commented-out code.
|
|
|
|
|
2016-01-13 03:15:39 -05:00
|
|
|
Wed Jan 13 17:14:54 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* .travis.yml: removed osx code. follow up with r53517
|
|
|
|
|
2016-01-13 02:56:51 -05:00
|
|
|
Wed Jan 13 16:56:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* iseq.c (rb_iseq_mark): mark parent iseq to prevent dynamically
|
|
|
|
generated iseq by eval from GC. [ruby-core:72620] [Bug #11928]
|
|
|
|
|
resolve class name earlier and more consistently
This further avoids class name resolution issues which came
about due to relying on hash table ordering before r53376.
Pre-caching the class name when it is never used raises memory
use, but the overall gain from moving away from st still gives
us a small gain. Reverting r53376 and this patch and testing with
"valgrind -v ./ruby -rrdoc -eexit" on x86 (32-bit) shows:
before:
in use at exit: 1,662,239 bytes in 25,286 blocks
total heap usage: 49,514 allocs, 24,228 frees, 6,005,561 bytes allocated
after, with this change:
in use at exit: 1,646,529 bytes in 24,572 blocks
total heap usage: 48,891 allocs, 24,319 frees, 6,003,921 bytes allocated
* class.c (Init_class_hierarchy): resolve name for rb_cObject ASAP
* object.c (rb_mod_const_set): move name resolution to rb_const_set
* variable.c (rb_const_set): do class resolution here
[ruby-core:72807] [Bug #11977]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-01-12 14:26:07 -05:00
|
|
|
Wed Jan 13 03:42:58 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* class.c (Init_class_hierarchy): resolve name for rb_cObject ASAP
|
|
|
|
* object.c (rb_mod_const_set): move name resolution to rb_const_set
|
|
|
|
* variable.c (rb_const_set): do class resolution here
|
|
|
|
[ruby-core:72807] [Bug #11977]
|
|
|
|
|
2016-01-12 10:37:42 -05:00
|
|
|
Wed Jan 13 00:37:12 2016 Satoshi Ohmori <sachin21dev@gmail.com>
|
|
|
|
|
|
|
|
* man/ruby.1: fix double word typo. [Fix GH-1194]
|
|
|
|
|
2016-01-12 07:05:41 -05:00
|
|
|
Tue Jan 12 21:01:09 2016 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* common.mk: update URL and name for the Ruby spec suite.
|
|
|
|
|
2016-01-12 06:19:25 -05:00
|
|
|
Tue Jan 12 19:52:19 2016 sorah (Shota Fukumori) <her@sorah.jp>
|
|
|
|
|
|
|
|
* lib/forwardable.rb: Convert given accessors to String.
|
|
|
|
|
|
|
|
r53381 changed to accept only Symbol or String for accessors, but
|
|
|
|
there are several rubygems that pass classes (e.g. Array,
|
|
|
|
Hash, ...) as accessors. Prior r53381, it was accepted because Class#to_s
|
|
|
|
returns its class name. After r53381 given accessors are checked
|
|
|
|
with define_method, but it accepts only Symbol or String, otherwise
|
|
|
|
raises TypeError.
|
|
|
|
|
|
|
|
def_delegator Foo, :some_method
|
|
|
|
|
2016-01-12 06:23:05 -05:00
|
|
|
This change is to revert unexpected incompatibility. But this behavior
|
2016-01-12 06:19:25 -05:00
|
|
|
may change in the future.
|
|
|
|
|
2016-01-12 04:42:07 -05:00
|
|
|
Mon Jan 12 18:41:41 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c: made a variable name more grammatically correct
|
|
|
|
|
2016-01-12 04:35:00 -05:00
|
|
|
Mon Jan 12 18:34:34 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c: minor grammar fix [ci skip]
|
|
|
|
|
2016-01-12 02:09:35 -05:00
|
|
|
Mon Jan 12 16:09:09 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* test/ruby/enc/test_casing_options.rb: Tests for option
|
|
|
|
parsing/checking for upcase/downcase/capitalize/swapcase
|
|
|
|
(see r53503; with Kimihito Matsui)
|
|
|
|
|
2016-01-12 02:03:31 -05:00
|
|
|
Mon Jan 12 16:03:03 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* string.c: Added option parsing/checking for upcase/downcase/
|
|
|
|
capitalize/swapcase (with Kimihito Matsui)
|
|
|
|
|
2016-01-11 07:28:55 -05:00
|
|
|
Mon Jan 11 21:28:28 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
|
|
|
* include/ruby/oniguruma.h: Added flags needed for upcase/downcase
|
|
|
|
Unicode addition (with Kimihito Matsui)
|
|
|
|
|
2016-01-10 19:50:51 -05:00
|
|
|
Mon Jan 11 09:50:24 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: check if the API version number is consistent with
|
|
|
|
the program version number.
|
|
|
|
|
2016-01-10 06:57:51 -05:00
|
|
|
Sun Jan 10 20:57:25 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (compile_massign_lhs): when index ends with splat,
|
|
|
|
append rhs value to it like POSTARG, since VM_CALL_ARGS_SPLAT
|
|
|
|
splats the last argument only. [ruby-core:72777] [Bug #11970]
|
|
|
|
|
2016-01-10 01:45:36 -05:00
|
|
|
Sun Jan 10 15:45:10 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/missing.h (explicit_bzero_by_memset_s): remove
|
|
|
|
inline implementation by memset_s, which needs a macro before
|
|
|
|
including headers and can cause problems in extension libraries
|
|
|
|
by the order of the macro and headers.
|
|
|
|
|
2016-01-09 23:44:08 -05:00
|
|
|
Sun Jan 10 13:41:36 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* io.c (rb_deferr): remove long obsolete global
|
|
|
|
|
2016-01-09 19:35:43 -05:00
|
|
|
Sun Jan 10 09:14:42 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
2016-01-09 23:43:41 -05:00
|
|
|
* ext/psych/lib/psych/visitors/yaml_tree.rb (visit_String):
|
|
|
|
eliminate chomp
|
|
|
|
* lib/net/http.rb (connect): eliminate delete
|
|
|
|
* lib/net/http/header.rb (basic_encode): ditto
|
|
|
|
* lib/net/imap.rb (authenticate): eliminate gsub
|
|
|
|
(self.encode_utf7): shorten delete arg
|
|
|
|
* lib/net/smtp.rb (base64_encode): eliminate gsub
|
|
|
|
* lib/open-uri.rb (OpenURI.open_http): eliminate delete
|
|
|
|
* lib/rss/rss.rb: ditto
|
|
|
|
* lib/securerandom.rb (base64): ditto
|
|
|
|
(urlsafe_base64): eliminate delete!
|
|
|
|
* lib/webrick/httpauth/digestauth.rb (split_param_value):
|
|
|
|
eliminate chop
|
|
|
|
* lib/webrick/httpproxy.rb (do_CONNECT): eliminate delete
|
|
|
|
(setup_upstream_proxy_authentication): ditto
|
|
|
|
[ruby-core:72666] [Feature #11938]
|
2016-01-09 19:35:43 -05:00
|
|
|
|
2016-01-09 09:19:38 -05:00
|
|
|
Sat Jan 9 23:19:14 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_hash.rb (test_try_convert): Add test for
|
|
|
|
Hash.try_convert. [Fix GH-1190]
|
|
|
|
|
2016-01-09 09:15:49 -05:00
|
|
|
Sat Jan 9 23:15:25 2016 Jon Moss <maclover7@users.noreply.github.com>
|
|
|
|
|
|
|
|
* ext/openssl/ossl.c: Add missing variables to documentation
|
|
|
|
examples. [Fix GH-1189]
|
|
|
|
|
2016-01-09 04:26:23 -05:00
|
|
|
Sat Jan 9 18:25:57 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* symbol.h (is_attrset_id): ASET is an attrset ID. fix
|
|
|
|
unexpected safe call instead of an ordinary ASET.
|
|
|
|
|
2016-01-08 20:44:56 -05:00
|
|
|
Sat Jan 9 10:44:33 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in, win32/setup.mak: extract RUBY_PROGRAM_VERSION from
|
|
|
|
RUBY_VERSION in version.h instead of RUBY_API_VERSION numbers in
|
|
|
|
include/ruby/version.h, and cut it into version numbers.
|
|
|
|
|
2016-01-08 17:15:40 -05:00
|
|
|
Sat Jan 9 07:13:33 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: rename PAGE_* to HEAP_PAGE_* because PAGE_SIZE is used
|
|
|
|
in Mac OS X.
|
|
|
|
|
|
|
|
* test/ruby/test_gc.rb: catch up this fix.
|
|
|
|
|
2016-01-08 15:46:36 -05:00
|
|
|
Sat Jan 9 05:45:40 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: PAGE_BITMAP_PLANES (the number of bitmap) is 4, not 3.
|
|
|
|
|
2016-01-08 15:45:02 -05:00
|
|
|
Sat Jan 9 05:42:57 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: rename constant names HEAP_* to PAGE_*.
|
|
|
|
|
|
|
|
Keys of GC::INTERNAL_CONSTANTS are also renamed.
|
|
|
|
|
|
|
|
* test/ruby/test_gc.rb: catch up this fix.
|
|
|
|
|
2016-01-08 08:34:52 -05:00
|
|
|
Fri Jan 8 22:30:06 2016 Akinori MUSHA <knu@iDaemons.org>
|
|
|
|
|
|
|
|
* doc/regexp.rdoc: [DOC] Elaborate on the \G anchor. [ci skip]
|
|
|
|
|
2016-01-08 05:56:27 -05:00
|
|
|
Fri Jan 8 19:49:27 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: remove heap_page::body. Instead of this field,
|
|
|
|
heap_page::start field works well.
|
|
|
|
|
2016-01-08 05:34:14 -05:00
|
|
|
Fri Jan 8 19:31:52 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: rename rb_heap_t::page_length to rb_heap_t::total_pages.
|
|
|
|
|
|
|
|
`page_length' is not clear (we may understand with length of
|
|
|
|
a page).
|
|
|
|
|
2016-01-08 03:23:58 -05:00
|
|
|
Fri Jan 8 17:07:14 2016 Koichi Sasada <ko1@atdot.net>
|
|
|
|
|
|
|
|
* gc.c: remove heap_page::heap. This field is only used to recognize
|
2016-01-08 03:23:59 -05:00
|
|
|
whether a page is in a tomb or not. Instead of this field,
|
2016-01-08 03:23:58 -05:00
|
|
|
heap_page::flags::in_tomb (1 bit field) is added.
|
|
|
|
|
|
|
|
Also type of heap_page::(total|free|final)_slots are changed from
|
|
|
|
int to short. 2B is enough for them.
|
|
|
|
|
2016-01-07 19:38:40 -05:00
|
|
|
Fri Jan 8 09:33:59 2016 Shugo Maeda <shugo@ruby-lang.org>
|
|
|
|
|
|
|
|
* iseq.c (rb_iseq_compile_with_option): move variable initialization
|
|
|
|
code to avoid maybe-uninitialized warnings by gcc 4.8.
|
|
|
|
|
2016-01-07 10:07:25 -05:00
|
|
|
Fri Jan 8 00:03:22 2016 Shugo Maeda <shugo@ruby-lang.org>
|
|
|
|
|
|
|
|
* enum.c (enum_min, enum_max): do the same optimization as r53454.
|
|
|
|
|
2016-01-07 08:35:32 -05:00
|
|
|
Thu Jan 7 22:32:21 2016 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* ruby.h: undef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
|
|
|
|
and HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P on C++.
|
|
|
|
[ruby-core:72736] [Bug #11962]
|
|
|
|
|
2016-01-07 08:06:23 -05:00
|
|
|
Thu Jan 7 22:02:21 2016 Shugo Maeda <shugo@ruby-lang.org>
|
|
|
|
|
|
|
|
* enum.c (enum_minmax): optimize object comparison in
|
|
|
|
Enumerable#minmax.
|
|
|
|
|
2016-01-07 00:49:31 -05:00
|
|
|
Thu Jan 7 14:49:12 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread.c (rb_thread_pending_interrupt_p): no pending interrupt
|
|
|
|
before initialization.
|
|
|
|
|
|
|
|
* thread.c (thread_raise_m, rb_thread_kill): uninitialized thread
|
|
|
|
cannot interrupt. [ruby-core:72732] [Bug #11959]
|
|
|
|
|
2016-01-06 21:34:33 -05:00
|
|
|
Thu Jan 7 11:34:14 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* include/ruby/backward.h (ruby_show_copyright_to_die): for source
|
|
|
|
code backward compatibility.
|
|
|
|
|
|
|
|
* ruby.c (process_options): return Qtrue to exit the process
|
|
|
|
successfully.
|
|
|
|
|
|
|
|
* version.c (ruby_show_copyright): no longer exit.
|
|
|
|
|
2016-01-06 03:23:10 -05:00
|
|
|
Wed Jan 6 17:22:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/optparse.rb (OptionParser#order!): add `into` optional
|
|
|
|
keyword argument to store the results. [Feature #11191]
|
|
|
|
|
2016-01-05 07:44:56 -05:00
|
|
|
Tue Jan 5 21:44:37 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* ChangeLog: fix wrong class name.
|
|
|
|
|
2016-01-05 07:44:55 -05:00
|
|
|
Tue Jan 5 21:43:50 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb(test_chr): added test for String#chr
|
|
|
|
[fix GH-1179]
|
|
|
|
|
2016-01-05 07:32:43 -05:00
|
|
|
Tue Jan 5 21:32:26 2016 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
2016-01-05 07:44:56 -05:00
|
|
|
* test/ruby/test_numeric.rb (test_nonzero_p): added test for Numeric#nonzero?
|
2016-01-05 07:32:43 -05:00
|
|
|
[fix GH-1187]
|
|
|
|
|
2016-01-04 21:47:38 -05:00
|
|
|
Tue Jan 5 11:47:23 2016 Damir Gaynetdinov <damir.gaynetdinov@gmail.com>
|
|
|
|
|
|
|
|
* doc/marshal.rdoc: Clarify object references example, that the
|
|
|
|
reference is same object. [Fix GH-1156]
|
|
|
|
|
2016-01-04 15:45:14 -05:00
|
|
|
Tue Jan 5 05:06:51 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* ext/stringio/stringio.c (strio_binmode): implement to set encoding
|
|
|
|
* test/stringio/test_stringio.rb (test_binmode): new test
|
|
|
|
[ruby-core:72699] [Bug #11945]
|
|
|
|
|
2016-01-04 02:08:05 -05:00
|
|
|
Mon Jan 4 15:44:37 2016 Sho Hashimoto <sho-h@ruby-lang.org>
|
|
|
|
|
|
|
|
* variable.c (rb_mod_deprecate_constant): [DOC] added
|
|
|
|
documentation for Module#deprecate_constant. [ci skip]
|
|
|
|
|
2016-01-04 01:38:26 -05:00
|
|
|
Mon Jan 4 15:36:38 2016 Sho Hashimoto <sho-h@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread_sync.c: [DOC] remove SizedQueue#close argument.
|
|
|
|
[ci skip]
|
|
|
|
|
2016-01-03 20:14:45 -05:00
|
|
|
Mon Jan 4 10:14:24 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/coverage/test_coverage.rb: ignored test when enabled to coverage.
|
|
|
|
It lead to crash with `make test-all`.
|
|
|
|
|
2016-01-03 18:14:43 -05:00
|
|
|
Mon Jan 4 08:10:44 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* insns.def (opt_case_dispatch): Move a comment to the
|
|
|
|
appropriate position.
|
|
|
|
[ci skip]
|
|
|
|
|
2016-01-03 09:55:25 -05:00
|
|
|
Sun Jan 3 23:55:13 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/rubygems/security.rb (DIGEST_ALGORITHM, KEY_ALGORITHM):
|
|
|
|
should check same name as the used constants.
|
|
|
|
[ruby-core:72674] [Bug #11940]
|
|
|
|
|
2016-01-03 05:22:12 -05:00
|
|
|
Sun Jan 3 19:22:01 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* aclocal.m4: add fallback file for non-aclocal environments.
|
|
|
|
[ruby-core:72683] [Bug #11942]
|
|
|
|
|
2016-01-02 23:59:54 -05:00
|
|
|
Sun Jan 3 13:56:49 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
|
|
|
|
|
|
|
* eval_error.c (rb_print_undef): Use `rb_method_visibility_t`
|
|
|
|
instead of `int`.
|
|
|
|
* eval_intern.h (rb_print_undef): ditto
|
|
|
|
* proc.c (mnew_internal): ditto
|
|
|
|
* vm_method.c (rb_export_method): ditto
|
|
|
|
[Misc #11649] [ruby-core:71311] [fix GH-1078]
|
|
|
|
|
2016-01-02 22:12:20 -05:00
|
|
|
Sun Jan 3 12:12:09 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* acinclude.m4: rename aclocal.m4, which should be generated by
|
|
|
|
aclocal. [ruby-core:72675] [Bug #11941]
|
|
|
|
|
2016-01-02 07:08:34 -05:00
|
|
|
Sat Jan 2 21:07:55 2016 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* thread_sync.c (queue_do_pop): avoid cast with Qfalse
|
|
|
|
(rb_szqueue_push): ditto, use queue_sleep wrapper
|
|
|
|
|
2016-01-02 02:19:58 -05:00
|
|
|
Sat Jan 2 16:16:14 2016 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
|
|
|
|
|
|
|
* lib/erb.rb: Allow ERB subclass to add token easily.
|
|
|
|
[Feature #11936]
|
|
|
|
|
|
|
|
* test/erb/test_erb.rb: ditto.
|
|
|
|
|
2016-01-02 00:44:41 -05:00
|
|
|
Sat Jan 2 14:44:31 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (regexp): set_yylval_num sets u1, should use nd_tag
|
|
|
|
instead of nd_state. [ruby-core:72638] [Bug #11932]
|
|
|
|
|
2016-01-01 12:27:38 -05:00
|
|
|
Sat Jan 2 02:27:22 2016 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
|
|
|
|
|
|
|
* lib/ostruct.rb: Fix case of frozen object with initializer.
|
|
|
|
Bug revealed by RubySpec [ruby-core:72639]
|
|
|
|
|
2016-01-01 08:02:56 -05:00
|
|
|
Fri Jan 1 22:01:52 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
|
|
|
|
2016-01-03 20:50:06 -05:00
|
|
|
* NEWS: mention CSV's liberal_parsing option.
|
2016-01-01 08:02:56 -05:00
|
|
|
|
2016-01-01 05:39:16 -05:00
|
|
|
Fri Jan 1 19:38:23 2016 okkez <okkez000@gmail.com>
|
|
|
|
|
|
|
|
* doc/NEWS-2.3.0: fix double words typo.
|
2016-01-01 07:39:29 -05:00
|
|
|
[ci skip][fix GH-1183]
|
2016-01-01 05:39:16 -05:00
|
|
|
|
2016-01-01 01:28:58 -05:00
|
|
|
Fri Jan 1 15:28:56 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (remove_unreachable_chunk): decrease count of
|
|
|
|
call_info in removed instructions. fix up r53402.
|
|
|
|
|
2015-12-31 22:05:55 -05:00
|
|
|
Fri Jan 1 12:05:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* compile.c (remove_unreachable_chunk): remove unreferred label
|
|
|
|
to optimize away unreachable chunk.
|
|
|
|
|
2015-12-31 21:44:48 -05:00
|
|
|
Fri Jan 1 11:42:57 2016 James Edward Gray II <james@graysoftinc.com>
|
|
|
|
|
|
|
|
* lib/csv.rb (CSV): Add a liberal_parsing option.
|
|
|
|
Patch by Braden Anderson. [#11839]
|
|
|
|
* test/csv/test_features.rb: test liberal_parsing
|
|
|
|
|
2015-12-31 20:27:30 -05:00
|
|
|
Fri Jan 1 10:27:28 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* tool/mkconfig.rb (RbConfig): prefix SDKROOT to oldincludedir
|
|
|
|
not includedir, the latter is outside the ruby installation.
|
|
|
|
[ruby-core:72496] [Bug #11881]
|
|
|
|
|
2015-12-31 18:53:04 -05:00
|
|
|
Fri Jan 1 08:53:02 2016 Yuki Kurihara <co000ri@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_lazy_enumerator.rb (test_take_bad_arg): Add test
|
|
|
|
code in case of Enumerator::Lazy#take called with negative number.
|
|
|
|
[ruby-dev:49467] [Bug #11933]
|
|
|
|
|
2015-12-31 15:06:22 -05:00
|
|
|
Fri Jan 1 05:06:20 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (parser_here_document): update indent for each line in
|
|
|
|
indented here document with single-quotes.
|
|
|
|
[ruby-core:72479] [Bug #11871]
|
|
|
|
|
2015-12-31 13:26:46 -05:00
|
|
|
Fri Jan 1 03:26:44 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/ostruct.rb (freeze): define deferred accessors before
|
|
|
|
freezing to get rid of an error when just reading frozen
|
|
|
|
OpenStruct.
|
|
|
|
|
2015-12-31 00:37:21 -05:00
|
|
|
Thu Dec 31 14:36:45 2015 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
|
|
|
|
|
|
|
* lib/ostruct.rb: Fix new_ostruct_member to correctly avoid
|
|
|
|
redefinition [#11901]
|
|
|
|
|
2015-12-30 12:47:43 -05:00
|
|
|
Thu Dec 31 02:45:12 2015 NARUSE, Yui <naruse@ruby-lang.org>
|
|
|
|
|
|
|
|
* test/ruby/test_module.rb (test_classpath): r53376 may change
|
|
|
|
the order of m.constants.
|
|
|
|
`make TESTS='-v ruby/test_class.rb ruby/test_module.rb' test-all`
|
|
|
|
may fail after that.
|
|
|
|
http://rubyci.s3.amazonaws.com/tk2-243-31075/ruby-trunk/log/20151230T164202Z.log.html.gz
|
|
|
|
|
2015-12-30 12:20:28 -05:00
|
|
|
Thu Dec 31 02:20:00 2015 Benoit Daloze <eregontp@gmail.com>
|
|
|
|
|
|
|
|
* common.mk (help): Fix typo.
|
|
|
|
|
2015-12-30 06:53:15 -05:00
|
|
|
Wed Dec 30 20:53:09 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/net/http/responses.rb: Added new response class for 451 status code.
|
|
|
|
* lib/net/http.rb: documentation for HTTPUnavailableForLegalReasons
|
|
|
|
|
2015-12-30 06:45:52 -05:00
|
|
|
Wed Dec 30 20:45:45 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/webrick/httpstatus.rb: Added HTTP 451 Status Code.
|
|
|
|
[fix GH-1167] Patch by @MuhammetDilmac
|
|
|
|
https://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00
|
|
|
|
|
2015-12-30 06:26:09 -05:00
|
|
|
Wed Dec 30 20:25:52 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/syntax/calling_methods.rdoc: fix old operator for safe navigation
|
|
|
|
operator. [ci skip][fix GH-1182] Patch by @dougo
|
|
|
|
|
2015-12-30 02:43:25 -05:00
|
|
|
Wed Dec 30 16:43:23 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb (test_ord): Add test for String#ord.
|
|
|
|
[Fix GH-1181]
|
|
|
|
|
2015-12-29 21:28:59 -05:00
|
|
|
Wed Dec 30 11:28:57 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/forwardable.rb (def_instance_delegator): adjust backtrace of
|
|
|
|
method body by tail call optimization. adjusting the delegated
|
|
|
|
target is still done by deleting backtrace.
|
|
|
|
|
|
|
|
* lib/forwardable.rb (def_single_delegator): ditto.
|
|
|
|
|
Forwardable: Fix delegating to 'args' and 'block'
* lib/forwardable.rb (def_instance_delegator) fix delegating to
'args' and 'block', clashing with local variables in generated
methods. [ruby-core:72579] [Bug #11916]
* lib/forwardable.rb (def_single_delegator): ditto.
If you have a class that uses Forwardable to delegate a method to
another object, and the method that returns the delegate object is
called `args` or `block`, then Forwardable will fail to work.
Here's a simple example:
class ModelCreator
extend Forwardable
attr_reader :args
def_delegator :args, :model_name
def initialize(args)
@args = args
end
end
ModelCreator.new.model_name
If you run the last line above, then you'll get:
NoMethodError: undefined method `model_name' for []:Array
This error occurs because `def_delegator` -- as it is written in Ruby --
uses metaprogramming to add methods to the class that will then delegate
to the delegate object. So it's as if we had written:
class ModelCreator
extend Forwardable
attr_reader :args
def model_name(*args, &block)
args.model_name(*args, &block)
end
def initialize(args)
@args = args
end
end
As you can see, `def_delegator` will not only forward the method call
onto the delegate object, it will also forward any arguments provided as
well. It is here that the bug arises: it splats all of the arguments
into a variable which is called `args`, and because of how variable
scope works in Ruby, it then attempts to call `model_name` on *this*
variable and *not* our delegate object method.
The fix is to call the delegate object method manually using `__send__`.
(This assumes, of course, that the given receiver is, in fact, the name
of a method and not the name of an instance variable, which is also a
possibility.) We use `__send__` because the delegate object method could
be private.
So, that looks like this:
def model_name(*args, &block)
__send__(:args).model_name(*args, &block)
end
Because `def_delegators` and `delegate` use `def_delegator` internally,
they also get this fix as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-29 21:18:44 -05:00
|
|
|
Wed Dec 30 11:18:42 2015 Elliot Winkler <elliot.winkler@gmail.com>
|
|
|
|
|
|
|
|
* lib/forwardable.rb (def_instance_delegator) fix delegating to
|
|
|
|
'args' and 'block', clashing with local variables in generated
|
|
|
|
methods. [ruby-core:72579] [Bug #11916]
|
|
|
|
|
|
|
|
* lib/forwardable.rb (def_single_delegator): ditto.
|
|
|
|
|
2015-12-29 19:58:58 -05:00
|
|
|
Wed Dec 30 09:58:56 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* object.c (rb_class_inherited_p): search the corresponding
|
|
|
|
ancestor to prepended module from prepending class itself.
|
|
|
|
[ruby-core:72493] [Bug #11878]
|
|
|
|
|
2015-12-29 19:20:03 -05:00
|
|
|
Wed Dec 30 09:20:00 2015 Yuki Kurihara <co000ri@gmail.com>
|
|
|
|
|
|
|
|
* test/stringio/test_io.rb (test_flag): add assertion for error when
|
|
|
|
text and binary mode are mixed.
|
|
|
|
[ruby-dev:49465] [Feature #11921]
|
|
|
|
|
2015-12-29 18:44:01 -05:00
|
|
|
Wed Dec 30 08:43:59 2015 Yuki Kurihara <co000ri@gmail.com>
|
|
|
|
|
|
|
|
* test/stringio/test_stringio.rb (test_initialize): add test for
|
|
|
|
StringIO#initialize. [ruby-core:72585] [Feature #11920]
|
|
|
|
|
2015-12-29 15:21:17 -05:00
|
|
|
Wed Dec 30 05:19:24 2015 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* class.c (struct clone_const_arg): adjust for id_table
|
|
|
|
(clone_const): ditto
|
|
|
|
(clone_const_i): ditto
|
|
|
|
(rb_mod_init_copy): ditto
|
|
|
|
(rb_singleton_class_clone_and_attach): ditto
|
|
|
|
(rb_include_class_new): ditto
|
|
|
|
(include_modules_at): ditto
|
|
|
|
* constant.h (rb_free_const_table): ditto
|
|
|
|
* gc.c (free_const_entry_i): ditto
|
|
|
|
(rb_free_const_table): ditto
|
|
|
|
(obj_memsize_of): ditto
|
|
|
|
(mark_const_entry_i): ditto
|
|
|
|
(mark_const_tbl): ditto
|
|
|
|
* internal.h (struct rb_classext_struct): ditto
|
|
|
|
* object.c (rb_mod_const_set): resolve class name on assignment
|
|
|
|
* variable.c (const_update): replace with const_tbl_update
|
|
|
|
(const_tbl_update): new function
|
|
|
|
(fc_i): adjust for id_table
|
|
|
|
(find_class_path): ditto
|
|
|
|
(autoload_const_set): st_update => const_tbl_update
|
|
|
|
(rb_const_remove): adjust for id_table
|
|
|
|
(sv_i): ditto
|
|
|
|
(rb_local_constants_i): ditto
|
|
|
|
(rb_local_constants): ditto
|
|
|
|
(rb_mod_const_at): ditto
|
|
|
|
(rb_mod_const_set): ditto
|
|
|
|
(rb_const_lookup): ditto
|
|
|
|
[ruby-core:72112] [Feature #11614]
|
|
|
|
|
2015-12-29 14:26:52 -05:00
|
|
|
Wed Dec 30 04:10:13 2015 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
|
|
|
|
|
|
|
* thread_pthread.c (rb_thread_create_timer_thread): destroy attr even
|
|
|
|
if pthread_create() failed.
|
|
|
|
|
2015-12-29 13:20:27 -05:00
|
|
|
Wed Dec 30 02:55:09 2015 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* thread_pthread.c (setup_communication_pipe): delay setting owner
|
|
|
|
(rb_thread_create_timer_thread): until thread creation succeeds
|
|
|
|
[ruby-core:72590] [Bug #11922]
|
|
|
|
|
2015-12-29 05:12:48 -05:00
|
|
|
Tue Dec 29 19:12:46 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* ruby.c (proc_options): -W command line option should be able to
|
|
|
|
override -w in RUBYOPT environment variable.
|
|
|
|
|
2015-12-29 03:54:18 -05:00
|
|
|
Tue Dec 29 17:54:16 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* eval.c (ignored_block): warn if a block is given to `using`,
|
|
|
|
which is probably for `Module.new`.
|
|
|
|
|
2015-12-28 22:48:36 -05:00
|
|
|
Tue Dec 29 12:48:34 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* lib/ostruct.rb (OpenStruct): make respond_to? working on
|
|
|
|
just-allocated objects for workaround of Psych.
|
|
|
|
[ruby-core:72501] [Bug #11884]
|
|
|
|
|
2015-12-28 20:37:20 -05:00
|
|
|
Tue Dec 29 10:35:00 2015 Kenta Murata <mrkn@mrkn.jp>
|
|
|
|
|
|
|
|
* test/mkmf/test_have_func.rb (test_have_func):
|
|
|
|
Add assertion to examine the existence of HAVE_RUBY_INIT.
|
|
|
|
|
|
|
|
* test/mkmf/test_have_func.rb (test_not_have_func):
|
|
|
|
Add assertion to examine the absence of HAVE_RUBY_INIT.
|
|
|
|
|
2015-12-28 16:52:15 -05:00
|
|
|
Tue Dec 29 06:50:42 2015 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* thread_sync.c: static classes
|
|
|
|
|
2015-12-28 15:31:10 -05:00
|
|
|
Tue Dec 29 05:30:30 2015 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* lib/resolv.rb (Resolv::IPv6.create): avoid modifying frozen
|
|
|
|
* test/resolv/test_dns.rb (test_ipv6_create): test for above
|
|
|
|
[Bug #11910] [ruby-core:72559]
|
|
|
|
|
2015-12-28 00:56:00 -05:00
|
|
|
Mon Dec 28 14:55:57 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb (TestString#test_rstrip_bang): Add test
|
|
|
|
for String#rstrip!. [Fix GH-1176]
|
|
|
|
|
2015-12-27 19:18:55 -05:00
|
|
|
Mon Dec 28 09:18:53 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb (TestString#test_lstrip_bang): Add test
|
|
|
|
for String#lstrip!. [Fix GH-1176]
|
|
|
|
|
2015-12-27 09:34:11 -05:00
|
|
|
Sun Dec 27 23:32:26 2015 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
|
|
|
|
|
|
|
* ext/win32ole/win32ole.c (ole_variant2val): refactoring.
|
|
|
|
|
2015-12-27 07:15:20 -05:00
|
|
|
Sun Dec 27 21:14:42 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* process.c (rb_execarg_parent_start1): need to convert the encoding to
|
|
|
|
ospath's one.
|
|
|
|
|
2015-12-27 06:54:59 -05:00
|
|
|
Sun Dec 27 20:54:22 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
|
|
|
|
|
|
|
* process.c: use rb_w32_uchdir() instead of plain chdir() on Windows.
|
|
|
|
reported by naruse via twitter.
|
|
|
|
|
2015-12-27 07:15:20 -05:00
|
|
|
* process.c (rb_execarg_addopt): need to convert the encoding to
|
|
|
|
ospath's one.
|
2015-12-27 07:03:45 -05:00
|
|
|
|
2015-12-27 06:00:36 -05:00
|
|
|
Sun Dec 27 20:00:31 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* enc/x_emoji.h: fix dead-link.
|
|
|
|
|
2015-12-27 05:55:59 -05:00
|
|
|
Sun Dec 27 19:55:55 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
|
|
|
|
|
|
|
* doc/NEWS-2.3.0: fix a typo.
|
|
|
|
|
2015-12-27 04:08:17 -05:00
|
|
|
Sun Dec 27 18:08:15 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* string.c (rb_str_lstrip_bang, rb_str_rstrip_bang): [DOC] Fix
|
|
|
|
ruby-doc comments for String#rstrip! and lstrip!. It looks like
|
|
|
|
dropped bang. [Fix GH-1175]
|
|
|
|
|
2015-12-27 01:15:06 -05:00
|
|
|
Sun Dec 27 15:14:20 2015 Eric Wong <e@80x24.org>
|
|
|
|
|
|
|
|
* io.c (io_getpartial): remove unused kwarg from template
|
|
|
|
* test/ruby/test_io.rb (test_readpartial_bad_args): new
|
|
|
|
[Bug #11885]
|
|
|
|
|
2015-12-26 21:50:56 -05:00
|
|
|
Sun Dec 27 11:50:53 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
|
|
|
* test/ruby/test_string.rb (test_rstrip, test_lstrip): Add tests
|
|
|
|
for String#lstrip and rstrip. The test cases are used from
|
|
|
|
string.c ruby-doc comments. [Fix GH-1174]
|
|
|
|
|
2015-12-26 21:47:49 -05:00
|
|
|
Sun Dec 27 11:47:46 2015 Kuniaki IGARASHI <igaiga@gmail.com>
|
|
|
|
|
2015-12-26 21:50:56 -05:00
|
|
|
* test/ruby/test_string.rb (test_insert): Add test for
|
2015-12-28 02:04:01 -05:00
|
|
|
String#insert. The test cases are written in string.c
|
2015-12-26 21:50:56 -05:00
|
|
|
comments as a reference. [Fix GH-1173]
|
2015-12-26 21:47:49 -05:00
|
|
|
|
2015-12-26 21:03:36 -05:00
|
|
|
Sun Dec 27 11:03:33 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* parse.y (show_bitstack): trace stack_type value if yydebug.
|
|
|
|
|
2015-12-26 20:03:16 -05:00
|
|
|
Sun Dec 27 10:03:14 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* enc/depend (enc, trans): fix version dependency, shared object
|
|
|
|
files depend on the RUBY_SO_NAME value for runtime link.
|
|
|
|
|
2015-12-26 19:48:20 -05:00
|
|
|
Sun Dec 27 09:47:20 2015 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
|
|
|
|
|
|
|
* ext/win32ole/win32ole.c (ole_vstr2wc, ole_variant2val): fix blank
|
2015-12-26 19:48:25 -05:00
|
|
|
string conversion.
|
2015-12-26 19:48:20 -05:00
|
|
|
[Bug #11880]
|
|
|
|
Thanks Akio Tajima for the patch!
|
|
|
|
|
2015-12-26 19:34:55 -05:00
|
|
|
Sun Dec 27 09:34:53 2015 craft4coder <yooobuntu@163.com>
|
|
|
|
|
|
|
|
* doc/extension.rdoc: [DOC] `nul` should be uppercase.
|
|
|
|
change 'nul' => 'NUL'. [Fix GH-1172]
|
|
|
|
|
2015-12-26 04:33:43 -05:00
|
|
|
Sat Dec 26 18:29:01 2015 Kouhei Sutou <kou@cozmixng.org>
|
|
|
|
|
|
|
|
* lib/xmlrpc/client.rb: Support SSL options in async methods of
|
|
|
|
XMLRPC::Client.
|
|
|
|
[Bug #11489]
|
|
|
|
Reported by Aleksandar Kostadinov. Thanks!!!
|
|
|
|
|
2015-12-25 21:26:40 -05:00
|
|
|
Sat Dec 26 11:26:38 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* miniinit.c (Init_enc): add some common aliases of built-in
|
|
|
|
encodings. [ruby-core:72481] [Bug #11872]
|
|
|
|
|
2015-12-25 08:43:29 -05:00
|
|
|
Fri Dec 25 22:43:26 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|
|
|
|
|
|
|
* configure.in: extract RUBY_RELEASE_DAY at generating Makefile.
|
|
|
|
|
|
|
|
* version.h (RUBY_RELEASE_DATE): construct from RUBY_RELEASE_YEAR,
|
|
|
|
RUBY_RELEASE_MONTH, and RUBY_RELEASE_DAY.
|
|
|
|
|
2015-12-25 07:40:38 -05:00
|
|
|
Fri Dec 25 21:33:06 2015 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|
|
|
|
|
|
|
* version.h (RUBY_VERSION): 2.4.0 development has started.
|
|
|
|
|
2015-12-25 00:12:16 -05:00
|
|
|
Fri Dec 25 14:12:12 2015 Martin Duerst <duerst@it.aoyama.ac.jp>
|
|
|
|
|
2015-12-25 02:49:16 -05:00
|
|
|
* doc/ChangeLog-2.3.0, ext/tk/lib/tkextlib/SUPPORT_STATUS,
|
2015-12-25 00:12:16 -05:00
|
|
|
include/ruby/version.h: minor grammar fixes [ci skip]
|
|
|
|
|
2016-03-25 11:12:25 -04:00
|
|
|
Fri Dec 25 08:23:22 2015 Tadashi Saito <tad.a.digger@gmail.com>
|
2015-12-24 18:23:46 -05:00
|
|
|
|
|
|
|
* compile.c, cont.c, doc, man: fix common misspelling.
|
|
|
|
[ruby-core:72466] [Bug #11870]
|
|
|
|
|
2015-12-24 12:25:26 -05:00
|
|
|
|
|
|
|
For the changes before 2.3.0, see doc/ChangeLog-2.3.0
|
|
|
|
For the changes before 2.2.0, see doc/ChangeLog-2.2.0
|
|
|
|
For the changes before 2.1.0, see doc/ChangeLog-2.1.0
|
|
|
|
For the changes before 2.0.0, see doc/ChangeLog-2.0.0
|
|
|
|
For the changes before 1.9.3, see doc/ChangeLog-1.9.3
|
|
|
|
For the changes before 1.8.0, see doc/ChangeLog-1.8.0
|
|
|
|
|
|
|
|
Local variables:
|
|
|
|
coding: us-ascii
|
|
|
|
add-log-time-format: (lambda ()
|
|
|
|
(let* ((time (current-time))
|
|
|
|
(system-time-locale "C")
|
|
|
|
(diff (+ (cadr time) 32400))
|
|
|
|
(lo (% diff 65536))
|
|
|
|
(hi (+ (car time) (/ diff 65536))))
|
|
|
|
(format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))
|
|
|
|
indent-tabs-mode: t
|
|
|
|
tab-width: 8
|
|
|
|
change-log-indent-text: 2
|
|
|
|
end:
|
|
|
|
vim: tabstop=8 shiftwidth=2
|