nobu
3380974143
* parse.y (assoc, parser_yylex): add syntax to splat keyword hash.
...
[ruby-core:44591][Feature #6353 ]
* compile.c (compile_array_): generate keyword splat insns.
* vm.c (m_core_hash_merge_kwd): merge keyword hash into intermediate
hash. leftward argument is prior currently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 21:12:05 +00:00
nobu
82fa2995b5
* ext/-test-/win32/dln/extconf.rb: remove test DLL.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-28 14:22:25 +00:00
usa
62d71852df
* ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
...
unsigned long long on Win64.
[ruby-core:44636][Bug #6364 ] reported by raylinn@gmail.com (ray linn)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-27 03:36:33 +00:00
akr
da12c793c4
* ext/socket/socket.c (sock_s_pack_sockaddr_un): support the longest
...
path in sockaddr_un, really.
reported by nagachika.
http://d.hatena.ne.jp/nagachika/20120426/ruby_trunk_changes_35474_35476
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 22:18:03 +00:00
akr
b82f8f7191
add a comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 13:24:52 +00:00
akr
4c87e9433a
suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 13:24:34 +00:00
akr
1413510ed2
* ext/socket/raddrinfo.c (init_unix_addrinfo): support the longest
...
path in sockaddr_un.
(inspect_sockaddr): ditto.
(addrinfo_mdump): ditto.
(addrinfo_mload): ditto.
(rsock_unixpath_str): new function.
(rsock_unixpath): removed.
(rsock_unixaddr): use rsock_unixpath_str.
* ext/socket/socket.c (sock_s_pack_sockaddr_un): support the longest
path in sockaddr_un.
(sock_s_unpack_sockaddr_un): ditto.
(sock_s_gethostbyaddr): unused variable removed.
* ext/socket/unixsocket.c (rsock_init_unixsock): support the longest
path in sockaddr_un.
* ext/socket/rubysocket.h (rsock_unixpath_str): declared.
(rsock_unixpath): removed.
* test/socket/test_unix.rb: comment out test_nul because abstract unix
sockets may contain NULs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-26 03:34:12 +00:00
akr
c1d27b8c8d
* ext/socket/raddrinfo.c (init_unix_addrinfo): refine error message
...
format.
(addrinfo_mload): show more information on "too long AF_UNIX path"
error.
(addrinfo_unix_path): ditto for "too short AF_UNIX address" and
"too long AF_UNIX address" error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-25 14:05:10 +00:00
akr
7c346a46d3
* ext/socket/raddrinfo.c (init_unix_addrinfo): show actual path length
...
when it is too long for Unix socket.
* ext/socket/unixsocket.c (rsock_init_unixsock): ditto.
* ext/socket/socket.c (sock_s_pack_sockaddr_un): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-24 12:59:32 +00:00
nobu
ce2dc60216
* ext/iconv: deprecated. [Feature #6322 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 13:56:11 +00:00
nobu
82801b9113
--with-broken-apple-openssl option
...
* ext/openssl/extconf.rb: add --with-broken-apple-openssl option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-23 13:48:47 +00:00
nobu
628d3807d2
* ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-22 12:43:53 +00:00
nobu
f2e9040aff
* ext/openssl/extconf.rb: ignore broken version by Apple.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-22 12:39:55 +00:00
nobu
ec646dccdd
* ext/openssl/extconf.rb: configure.in adds -Wall to warnflags, not
...
CPPFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-22 12:22:57 +00:00
akr
d6ba4bcaa5
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-20 10:51:25 +00:00
nobu
1ff181cf8c
* ext/-test-/win32/dln/extconf.rb: need import library for ordinal
...
entry even on mingw. [ruby-core:44441][Bug #6320 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-19 00:40:00 +00:00
drbrain
6878e597c4
* ext/curses/curses.c (window_nodelay): Fixed call-seq of nodelay to
...
include the '='.
Improved description window.nodelay=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-18 23:59:22 +00:00
drbrain
ab0eb272f9
* io.c (io_readpartial): Document the output buffer parameter is
...
overwritten with the read contents even when non-empty.
Patch by yu nobuoka. [ruby-trunk - Bug #6285 ]
* io.c (io_read_nonblock): ditto.
* io.c (io_read): ditto.
* io.c (rb_io_sysread): ditto.
* io.c (argf_read): ditto.
* io.c (argf_readpartial): ditto.
* ext/stringio/stringio.c (strio_read): ditto.
* test/ruby/test_argf.rb (class TestArgf): Add test for existing
behavior of read outbuf.
* test/ruby/test_io.rb (class TestIO): ditto.
* test/stringio/test_stringio.rb (class TestStringIO): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-18 23:48:27 +00:00
nobu
22263729af
* ext/-test-/win32/dln/extconf.rb: fix for mingw.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-17 14:21:18 +00:00
nobu
f5659a911c
* ext/-test-/win32/dln/extconf.rb: add to cleanfiles iff cleanobjs is set.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-17 05:12:53 +00:00
nobu
854a6e47a5
* ext/-test-/win32/dln/extconf.rb: add test dll files to cleanfiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-17 04:55:07 +00:00
nobu
68bf309945
* ext/-test-/win32/dln/extconf.rb: remove unnecessary local variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-17 04:17:05 +00:00
nobu
dad31f6e50
* dln.c (rb_w32_check_imported): skip ordinal entries. based on a
...
patch by phasis68 (Heesob Park) at [ruby-core:44381].
[ruby-core:44371][Bug #6303 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-17 04:11:17 +00:00
naruse
164ced04de
Add debug prints to inspect TC_JSONGenerate#test_gc's timeout issue.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-15 07:37:45 +00:00
nobu
57fb219905
* reduce UNREACHABLE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-15 00:06:13 +00:00
drbrain
e95f7ea80d
* variable.c (trace_ev): Removed "not reached" comment as this line is
...
reached.
* variable.c (rb_obj_remove_instance_variable): Replaced "not reached"
comment with the UNREACHABLE macro.
* variable.c (rb_mod_const_missing): ditto.
* variable.c (rb_mod_remove_cvar): ditto.
* enum.c (first_i): ditto.
* string.c (rb_str_aref): ditto.
* string.c (str_byte_aref): ditto.
* string.c (rb_to_id): ditto.
* io.c (rb_io_fmode_modestr): ditto.
* io.c (rb_io_oflags_modestr): ditto.
* pack.c (num2i32): ditto.
* vm_eval.c (rb_method_missing): ditto.
* vm_eval.c (rb_f_throw): ditto.
* dir.c (dir_read): ditto.
* win32/win32.c (child_result): ditto.
* struct.c (rb_struct_getmember): ditto.
* struct.c (rb_struct_set): ditto.
* struct.c (rb_struct_aref_id): ditto.
* eval.c (rb_f_raise): ditto.
* process.c (rb_f_exit_bang): ditto.
* process.c (rb_f_exit): ditto.
* process.c (rb_f_abort): ditto.
* ext/-test-/iter/break.c (iter_break_value): ditto.
* ext/pty/pty.c (pty_check): ditto.
* ext/openssl/ossl_pkey.c (ossl_pkey_new): ditto.
* ext/readline/readline.c (rb_remove_history): ditto.
* ext/stringio/stringio.c (strio_unimpl): ditto.
* numeric.c (num_sadded): ditto.
* numeric.c (num_init_copy): ditto.
* numeric.c (rb_num2ll): ditto.
* numeric.c (rb_num2ull): ditto.
* vm_insnhelper.c (call_cfunc): ditto.
* ruby.c (opt_W_getter): ditto.
* bignum.c (rb_big_coerce): ditto.
* file.c (rb_f_test): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-14 00:36:26 +00:00
drbrain
da39d32f60
* encoding.c (rb_enc_codepoint_len): Use UNREACHABLE to avoid "control
...
reaches end of non-void function" warnings. [ruby-trunk - Bug #6066 ]
* re.c (name_to_backref_number): ditto.
* object.c (rb_Float): ditto.
* io.c (io_readpartial): ditto.
* io.c (io_read_nonblock): ditto.
* pack.c (rb_uv_to_utf8): ditto.
* proc.c (rb_method_entry_arity): ditto.
* vm_method.c (rb_f_notimplement): ditto.
* struct.c (rb_struct_aset_id): ditto.
* class.c (rb_scan_args): ditto.
* process.c (rlimit_resource_type): ditto.
* process.c (rlimit_resource_value): ditto.
* process.c (p_uid_switch): ditto.
* process.c (p_gid_switch): ditto.
* ext/digest/digest.c (rb_digest_instance_update): ditto.
* ext/digest/digest.c (rb_digest_instance_finish): ditto.
* ext/digest/digest.c (rb_digest_instance_reset): ditto.
* ext/digest/digest.c (rb_digest_instance_block_length): ditto.
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): ditto.
* ext/dl/handle.c (rb_dlhandle_close): ditto.
* ext/tk/tcltklib.c (pending_exception_check0): ditto.
* ext/tk/tcltklib.c (pending_exception_check1): ditto.
* ext/tk/tcltklib.c (ip_cancel_eval_core): ditto.
* ext/tk/tcltklib.c (lib_get_reltype_name): ditto.
* ext/tk/tcltklib.c (create_dummy_encoding_for_tk_core): ditto.
* ext/tk/tkutil/tkutil.c (tk_hash_kv): ditto.
* ext/openssl/ossl_ssl.c (ossl_ssl_session_reused): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_key_dsa_verify_asn1): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_point_is_at_infinit): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_point_is_on_curve): ditto.
* ext/fiddle/conversions.c (generic_to_value): ditto.
* ext/socket/raddrinfo.c (rsock_io_socket_addrinfo): ditto.
* ext/socket/socket.c (sock_s_getnameinfo): ditto.
* ext/ripper/eventids2.c (ripper_token2eventid): ditto.
* cont.c (return_fiber): ditto.
* dmydln.c (dln_load): ditto.
* vm_insnhelper.c (vm_search_normal_superclass): ditto.
* bignum.c (big_fdiv): ditto.
* marshal.c (r_symlink): ditto.
* marshal.c (r_symbol): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-13 23:45:37 +00:00
tadf
3a71da5830
* ext/date/date_core.c: added some notes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-12 10:52:58 +00:00
drbrain
bab146b689
* ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
...
in documentation examples. Patch by naleski via
https://github.com/ruby/ruby/pull/115
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-10 22:41:04 +00:00
ayumin
cee4c0bfb1
* ext/ripper/lib/ripper/sexp.rb: fix spelling.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-10 18:06:26 +00:00
nobu
f45fc7daa0
* error.c (rb_enc_raise): new function to raise an exception with
...
the message in the given encoding. patched by now (Nikolai
Weibull) at [ruby-core:41160]. [Feature #5650 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-10 10:07:07 +00:00
drbrain
718ab93d4d
* ext/zlib/zlib.c (rb_deflate_s_deflate): Fixed ruby example replacing
...
NO_FLUSH with FINISH. [ruby-trunk - Bug #6273 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-10 00:48:49 +00:00
nobu
41c199130a
* parse.y (string_content, parser_yylex): count brace nesting to
...
dispatch embexpr_end. [ruby-core:43775][Bug #6211 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-09 06:16:07 +00:00
tadf
6cb7ac7e15
* ext/date/date_strftime.c: gets the value with range() consistetly.
...
* ext/date/date_strftime.c (range): now just replaces the given item.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-08 23:12:30 +00:00
naruse
e0ba59b708
Additional experimental fix for r35261.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-08 19:17:32 +00:00
naruse
fdc3882820
* ext/json/generator/generator.c (generate_json_bignum):
...
add RB_GC_GUARD.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20120407T210301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-08 13:46:53 +00:00
tenderlove
5638bbdab6
* ext/psych/lib/psych.rb: bumping up psych version to match release.
...
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-07 01:29:29 +00:00
tenderlove
85e4c89675
* ext/psych/parser.c: fall back to any encoding if the external
...
encoding is wrong. [ruby-core:44163]
* test/psych/test_encoding.rb: fix test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-06 17:09:03 +00:00
nobu
a3626110d9
* hash.c: remove unnecessary checks for Qundef in hash iterations.
...
since hash use st_foreach_check for iterations, such checks are
needless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-31 04:20:45 +00:00
emboss
d4f379ad93
* ext/openssl/ossl_x509cert.c: Fix doc typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-31 03:07:53 +00:00
nobu
28cc4f7543
* st.c (st_update): pass pointer to key to the callback function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-29 14:50:20 +00:00
nobu
30cea65767
* st.c (st_update): add existing parameter to the callback function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-29 07:36:12 +00:00
emboss
aad347f5ec
* ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
...
* test/openssl/test_pkcs7.rb: assert correct behavior for it.
Thanks to Matt Venables for reporting the issue.
[ruby-core:43250][Bug #6134 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-29 01:27:17 +00:00
emboss
5bef1c9223
* ext/openssl/ossl_asn1.c: raise TypeError when trying to encode nil
...
values for Primitive instances.
* test/openssl/test_asn1.rb: Assert consistent behavior when
encoding nil values: Primitives raise TypeError, Constructives
raise NoMethodError.
Fixes [ruby-core:43009][Bug #6102 ]
-This line, and those below, will be ignored--
M test/openssl/test_asn1.rb
M ext/openssl/ossl_asn1.c
M ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-28 22:53:18 +00:00
tenderlove
a2c56d53ea
* ext/psych/lib/psych.rb: updating version to match gem
...
* ext/psych/psych.gemspec: ditto
* ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-27 23:45:44 +00:00
naruse
ee3e7dcf68
Refix Bug #6094 : use unsigned long integer literal.
...
* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
[Bug #6094 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-23 02:33:05 +00:00
naruse
cca049e0d0
Revert "* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type."
...
This reverts commit r35102.
It breaks tests on FreeBSD.
6) Failure:
test_new_with_exponent(OpenSSL::TestPKeyRSA)
[/usr/home/chkbuild/build/ruby-trunk/20120323T010301Z/ruby/test/openssl/test_pkey_rsa.rb:59]:
<3> expected but was
<12884901891>.
7) Failure:
test_new_exponent_default(OpenSSL::TestPKeyRSA)
[/usr/home/chkbuild/build/ruby-trunk/20120323T010301Z/ruby/test/openssl/test_pkey_rsa.rb:52]:
<65537> expected but was
<281479271743489>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-23 02:02:54 +00:00
nobu
3911327572
* ext/openssl/ossl_pkey_rsa.c (rsa_generate): fix argument type.
...
[Bug #6094 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-22 04:43:38 +00:00
nobu
f4aff7feb1
num2ll and num2ull
...
* ext/-test-/num2int/num2int.c (print_num2ll, print_num2ull): define
only if long long is available, and use long long printf modifier
checked by configure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-18 15:21:04 +00:00
tadf
f24d9fcd75
* ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-13 22:56:03 +00:00
naruse
199d1fa924
Add missing files of r34971,
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-11 17:42:18 +00:00
naruse
4d8d3184d1
* ext/json: Merge 164a75c8bd2007d32c4d7665d53140d8fc126dcd.
...
[ruby-core:41917] [Bug #5846 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-11 13:36:06 +00:00
nobu
a73d958c33
* st.c: add st_foreach_check for fixing iteration over packed table
...
and st_delete_safe. patched by Sokolov Yura at
https://github.com/ruby/ruby/pull/84
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-10 14:52:19 +00:00
nobu
efae619458
* st.c: fix packed num_entries on delete_safe. patched by Sokolov
...
Yura at https://github.com/ruby/ruby/pull/84
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-10 14:52:06 +00:00
tenderlove
240c9acb5c
* ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
...
the first document has been parsed.
* test/psych/test_stream.rb: pertinent tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-08 21:31:05 +00:00
tenderlove
a2e3de1b3f
* ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
...
given, documents will be yielded to the block as they are parsed.
[ruby-core:42404] [Bug #5978 ]
* ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
yields documents as they are parsed
* test/psych/test_stream.rb: corresponding tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-08 21:21:52 +00:00
naruse
f35fa23852
Comment out unused lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 09:44:27 +00:00
nobu
dd9569ded8
* ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK
...
bits too.
* ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits.
[ruby-dev:45309] [Bug #6116 ]
* ext/io/console/console.c (console_raw): fix rdoc.
* ext/io/console/console.c (console_set_echo): mentioned about
platform dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 01:11:47 +00:00
tenderlove
62ffffbe25
* ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
...
in order to stop method pollution.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-05 17:32:53 +00:00
nobu
eb1eee03ca
* ext/syck/lib/syck/rubytypes.rb (Exception.yaml_new): fix bug
...
that causes YAML serialization problem for Exception.
Exception#initialize doesn't use visible instance variable for
the exception message, so call the method with the message.
patched by Jingwen Owen Ou <jingweno AT gmail.com>.
http://github.com/ruby/ruby/pull/41
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-05 08:11:48 +00:00
nobu
a2749dbbf1
* ext/socket/extconf.rb: fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-05 07:52:43 +00:00
naruse
697b53d8a9
* ext/bigdecimal/lib/bigdecimal/math.rb: remove description about
...
BigMath#log. patched by Sho Hashimoto [ruby-dev:45307] [Bug #6112 ]
* string.c (str_byteslice): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-05 02:53:36 +00:00
tadf
e3b989c768
* ext/date/date_strftime.c: reassigned some variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-03 03:21:53 +00:00
tadf
9a0cb80252
* ext/date/date_{parse,strptime}.c [ruby-dev:45303].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-03 03:14:27 +00:00
nobu
b854733d51
* ext/syck/rubyext.c (mktime_do): use ISDIGIT().
...
[ruby-core:43060] [Bug #6108 ]
* ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char.
[ruby-core:43060] [Bug #6108 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-02 23:03:32 +00:00
tadf
f400ba1082
* ext/date/date_core.c: reverted r34825.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 21:17:49 +00:00
tadf
3486a98a71
* ext/date/date_core.c: [ruby-core:42998]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 11:28:23 +00:00
tenderlove
0cb987bc51
* ext/psych/lib/psych.rb: default open YAML files with utf8 external
...
encoding. [ruby-core:42967]
* test/psych/test_tainted.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-28 01:30:15 +00:00
nobu
475422fac6
* ext/sdbm/_sdbm.c (fitpair): suppress shortening warnigns.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 08:40:37 +00:00
nobu
f5482e4c38
* ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods
...
can be overridden, so should not make an assumption on the type
of results. [ruby-core:42969][Bug #6093 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 08:03:24 +00:00
nobu
80429eed63
* io.c, process.c, time.c, ext: use rb_sys_fail_str instead of
...
rb_sys_fail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 01:50:27 +00:00
nobu
4c12eb747e
* ext/openssl/extconf.rb: suppress useless deprecation warnings
...
from OpenSSL added by Apple.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-27 01:48:52 +00:00
naruse
2646c69479
avoid rdoc's warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 20:37:12 +00:00
akr
a38958a521
* ext/dbm/extconf.rb (headers): try ambiguous headers at last.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 08:42:00 +00:00
akr
51438b1c15
ad comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 07:31:13 +00:00
akr
9056098516
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 07:26:22 +00:00
naruse
57657a0b9b
suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 07:08:47 +00:00
nobu
b4288080e7
* ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t
...
and intptr_t. [ruby-core:42460][Feature #5992 ]
* ext/fiddle/fiddle.c (Init_fiddle): ditto.
* ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 05:47:16 +00:00
akr
d9adb03dd9
* ext/curses/curses.c (Init_curses): use rb_define_const once for
...
Curses::VERSION.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 02:09:22 +00:00
akr
aa281e7517
* ext/curses/curses.c (Init_curses): make Curses::VERSION
...
understandable without context.
* ext/dbm/dbm.c (Init_dbm): ditto for DBM::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-25 01:36:33 +00:00
tenderlove
0d1c8fd9d6
* ext/psych/parser.c: prevent a memory leak by protecting calls to
...
handler callbacks.
* test/psych/test_parser.rb: test to demonstrate leak.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-24 04:55:33 +00:00
tenderlove
774cf315e8
* ext/psych/parser.c: set parser encoding based on the YAML input
...
rather than user configuration.
* test/psych/test_encoding.rb: corresponding tests.
* test/psych/test_parser.rb: ditto
* test/psych/test_tainted.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 23:12:57 +00:00
akr
427035c0bb
add comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 15:22:06 +00:00
akr
cd390b1ec5
* ext/dbm/extconf.rb: unused macro removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 14:02:01 +00:00
akr
a49fc9beb6
* ext/curses/rain.rb: trap SIGHUP, SIGINT, SIGQUIT and SIGTERM only.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 10:59:00 +00:00
akr
fd2e0e3dac
* ext/dbm/extconf.rb: use DBM_SUFFIX only to detect header of
...
Berkeley DB.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-23 03:23:40 +00:00
akr
01433e4d53
* ext/curses/curses.c: use defined() to suppress a warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:46:44 +00:00
akr
7c80d15165
* ext/curses/extconf.rb: refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 12:45:04 +00:00
akr
c01d52e8d9
* ext/curses/extconf.rb: try to distinguish curses_version is a
...
function or variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 11:44:26 +00:00
akr
fa65fc9aeb
* ext/curses/extconf.rb: show the chosen header and library.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:48:59 +00:00
akr
9fc31792ce
* ext/curses/extconf.rb: refactored.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-22 10:09:31 +00:00
akr
8963f50f26
* ext/dbm/extconf.rb: check DBM_SUFFIX for Mac OS X.
...
Its ndbm.h doesn't include db.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-21 21:13:52 +00:00
akr
eac1d9cfca
* ext/dbm/dbm.c (fdbm_initialize): disable Berkeley DB error messages.
...
* ext/dbm/extconf.rb: check DBC type for above.
[ruby-dev:45269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-21 21:04:04 +00:00
akr
25df75e119
* ext/curses/curses.c (Init_curses): use curses_version() for
...
Curses::VERSION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-21 10:40:20 +00:00
akr
a1292c72ef
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 15:00:35 +00:00
akr
b17bc95400
* ext/curses/extconf.rb: fold too long lines.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:41:23 +00:00
akr
83f742f86f
* ext/curses/curses.c (Init_curses): define Curses::VERSION.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:10:00 +00:00
akr
9f6f0788d2
* ext/curses/extconf.rb: restore $libs and $defs for each
...
header/library choice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 12:09:25 +00:00
akr
faf4c9db80
* ext/dbm/extconf.rb: weaken header/library consistency check if db is
...
"ndbm". It seems several (possibly historical) distributions
provide libndbm. However the content of libndbm vary: Berkeley DB,
GDBM or even 4.3BSD NDBM. (Mandriva, Tru64 UNIX, OpenSuSE,
SCO OpenServer, ...)
"ndbm" is not searched automatically now (dblib doesn't contain it)
but configure --with-dbm-type=ndbm choose libndbm and ndbm.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 11:05:31 +00:00
akr
f8015c23c4
* ext/dbm/extconf.rb: refine variable names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-20 10:16:25 +00:00
akr
d7bf156afd
* ext/dbm/extconf.rb: show header and library found.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:44:24 +00:00
akr
95f3f9829f
* ext/dbm/dbm.c (Init_dbm): refine DBM::VERSION definition.
...
* ext/dbm/extconf.rb: provide RUBYDBM_GDBM_HEADER macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-19 14:02:14 +00:00
akr
0187905af2
* ext/dbm/extconf.rb: detect GDBM's ndbm.h by testing dbm_clearerr is
...
an empty macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 16:06:52 +00:00
akr
fcd8f78ea3
* ext/dbm/extconf.rb: don't choose 'dbm' if _GDB_H_ is defined which
...
is available since GDBM 1.9 because 'gdbm_compat' is appropriate
choise since GDBM 1.8.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 15:31:09 +00:00
akr
fc0111cce1
* ext/dbm/extconf.rb (dblib): prefer recent GDBM over older GDBM.
...
(have_declared_libvar): new function to check a declared variable
exists in a library.
(have_undeclared_libvar): renamed from renamed from have_libvar.
(headers.db_check2): check that GDBM version variable if GDBM header
is choosen.
* ext/dbm/dbm.c (Init_dbm): use HAVE_DECLARED_LIBVAR_GDBM_VERSION and
HAVE_UNDECLARED_LIBVAR_GDBM_VERSION macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 09:47:07 +00:00
akr
e7a1d4a309
* ext/dbm/dbm.c (DBM::VERSION): define it by detecting _GDBM_H_ or
...
_DBM_IOERR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-18 03:51:52 +00:00
akr
92e7c2d3ea
* ext/dbm/extconf.rb: remove dbm.
...
forgotten in r34666.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:41:54 +00:00
akr
6d1f751207
* ext/dbm/extconf.rb: refine header/libraty mismatch detection.
...
check only for ndbm.h except libc. check _GDBM_H_ for gdbm.
check _DBM_IOERR for the original ndbm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:29:50 +00:00
akr
fbca1d0da1
* ext/dbm/extconf.rb: don't check libdbm. It is not a ndbm
...
implementation. (libdbm in Version 7 Unix is database library
for single database per process.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-17 12:10:32 +00:00
akr
2f92a267f4
* ext/dbm/extconf.rb: refactored to split too long conditions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 22:32:10 +00:00
akr
078b3cf95e
* ext/dbm/extconf.rb: check _DB_H_ macro unavailable except
...
Berkeley DB library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-16 15:05:46 +00:00
nobu
34be46a32e
* ext/fiddle/closure.c (callback): deal with unsinged integers.
...
[ruby-core:42458][Bug #5991 ][Bug #6022 ]
* ext/fiddle/conversions.c (value_to_generic, generic_to_value):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 10:57:05 +00:00
nobu
fa65df0d08
* ext/fiddle/closure.c (callback): same as r34506.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 10:52:31 +00:00
drbrain
b6c604d757
* ext/zlib/zlib.c (Init_zlib): Added Zlib::TEXT and note that
...
Zlib::ASCII is deprecated in zlib 1.2.3 and newer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 04:30:37 +00:00
drbrain
72282ab1e2
* ext/zlib/zlib.c: Move constant descriptions to constants. Remove
...
extra comment block at the top of Init_zlib().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 04:25:11 +00:00
drbrain
623169a5c6
* ext/zlib/zlib.c (Init_zlib): Added Zlib::FIXED and Zlib::RLE
...
strategies.
* NEWS: Add note about the new Zlib constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 01:28:05 +00:00
drbrain
b52693b5a8
* ext/zlib/zlib.c: Improve documentation. [ruby-trunk - Bug #5948 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-15 01:12:08 +00:00
akr
f119915f51
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-11 12:05:57 +00:00
drbrain
1516f8eb9f
* ext/zlib/zlib.c (rb_inflate_add_dictionary): Added
...
Zlib::Inflate#add_dictionary to allow users to pre-specify
for using during #inflate. [ruby-trunk - Feature #5937 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-11 00:37:44 +00:00
drbrain
403dc5357d
* ext/zlib/zlib.c (do_inflate): Inflate more data if buffered data
...
exists. Allows Zlib::Inflate#set_dictionary to work.
[ruby-trunk - Bug #5929 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-11 00:29:52 +00:00
tenderlove
59a1344808
* ext/psych/parser.c: removed external encoding setter, allow parser
...
to be reused.
* ext/psych/lib/psych/parser.rb: added external encoding setter.
* test/psych/test_parser.rb: test parser reuse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 18:44:27 +00:00
nobu
14c97cf9b6
* ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:41:08 +00:00
nobu
96ab37015e
* ext/dl/dl.h (ALIGN_OF): use offsetof().
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:30:43 +00:00
nobu
196151158f
* ext/dl/dl.h (DLALIGN): round up at once and get rid of overflow.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 16:29:08 +00:00
nobu
d77b2387cf
* ext/fiddle/fiddle.c (Init_fiddle): declare in modern style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 15:15:57 +00:00
nobu
f90f02ab20
* ext/dl/dl.c (Init_dl): fix mangled documnet.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:48:22 +00:00
usa
b2ba3242ea
* ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
...
currenly pack/unpack does not accept "q!" and "Q!".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:10:26 +00:00
usa
da098bd36e
* ext/fiddle/conversions.c (value_to_generic): src is not guranteed as
...
a Bignum if the type is LONG_LONG. it may be a Fixnum if the value
is small.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 07:03:07 +00:00
nobu
57b2175207
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 03:25:07 +00:00
usa
70b504badb
* ext/dl/lib/types.rb: Win64 support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-09 02:32:58 +00:00
nobu
83c7d9df2b
* string.c (rb_str_modify_expand): fix memory leak.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 13:30:04 +00:00
nahi
3ff2f9f3a3
* ext/openssl/ossl_ssl.c: Add SSL constants and allow to unset SSL
...
option to prevent BEAST attack. See [Bug #5353 ].
In OpenSSL, OP_DONT_INSERT_EMPTY_FRAGMENTS is used to prevent
TLS-CBC-IV vulunerability described at
http://www.openssl.org/~bodo/tls-cbc.txt
It's known issue of TLSv1/SSLv3 but it attracts lots of attention
these days as BEAST attack. (CVE-2011-3389)
Until now ossl sets OP_ALL at SSLContext allocation and call
SSL_CTX_set_options at connection. SSL_CTX_set_options updates the
value by using |= so bits set by OP_ALL cannot be unset afterwards.
This commit changes to call SSL_CTX_set_options only 1 time for each
SSLContext. It sets the specified value if SSLContext#options= are
called and sets OP_ALL if not.
To help users to unset bits in OP_ALL, this commit also adds several
constant to SSL such as
OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS. These constants were
not exposed in Ruby because there's no way to unset bits in OP_ALL
before.
Following is an example to enable 0/n split for BEAST prevention.
ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
* test/openssl/test_ssl.rb: Test above option exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 05:27:14 +00:00
emboss
45706e70c9
* ext/openssl/ossl_x509name.c: Use the numerical representation of
...
unrecognized OIDs instead of the sn "UNDEF".
* test/openssl/test_x509name.rb: Add tests for the fixed behavior.
Patch provided by Paul Kehrer, thanḱ you!
[ruby-core:41769] [Feature #5787 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 04:19:33 +00:00
emboss
460c8907c9
* ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString.
...
Thanks to Mantas Mikulenas for noticing and providing a patch!
[ruby-core:42358] [Bug #5972 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 01:03:16 +00:00
emboss
aa3854e33d
* ext/openssl/ossl_cipher.c: Add warning about key as IV.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-08 00:29:26 +00:00
nobu
cf1a22fdf9
* st.c (st_update): table can be unpacked in the callback.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:52:15 +00:00
nobu
af01b0fb07
* ext/-test-/st/numhash/numhash.c (numhash_alloc): free st_table.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:43:49 +00:00
nobu
97c3c98762
* st.c (st_foreach): should not yield same pair when checking
...
after unpacking.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:29:20 +00:00
drbrain
30f0e97ef0
* ext/openssl/ossl_x509store.c: Add class documentation for
...
OpenSSL::X509::Store
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 22:54:10 +00:00
akr
5525d82134
update doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-02 11:51:25 +00:00
nobu
ef84b7c678
* ext/dl/cptr.c (rb_dlptr_new2): remove unused variable.
...
* ext/iconv/iconv.c (get_iconv_opt_i): ditto.
* ext/syck/token.c (Plain): fix types on LP64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-30 21:47:35 +00:00
nobu
f3dabacefb
* ext/readline/readline.c (readline_attempted_completion_function):
...
respect encodings. [Bug #5941 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-29 03:18:11 +00:00
nobu
8335ce7065
* ext/io/console/console.c (io_getch): default delegating method
...
for StringIO. https://github.com/nobu/io-console/issues/4
* ext/stringio/stringio.c: moved some methods to hidden modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 18:24:09 +00:00
nobu
ed469831e4
* file.c (rb_enc_path_next, rb_enc_path_skip_prefix)
...
(rb_enc_path_last_separator, rb_enc_path_end)
(ruby_enc_find_basename, ruby_enc_find_extname): encoding-aware
path handling functions.
* file.c (rb_home_dir, file_expand_path, rb_realpath_internal)
(rb_file_s_basename, rb_file_dirname, rb_file_s_extname)
(rb_file_join): should respect the encodings of arguments than
file system encoding. [ruby-dev:45145] [Bug #5919 ]
* dir.c (check_dirname, ruby_glob0): ditto.
* ext/pathname/pathname.c (path_sub_ext): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 02:32:06 +00:00
nobu
04726dd749
* vm.c (rb_iter_break_value): new function to break a block with
...
the value. [ruby-dev:45132] [Feature #5895 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-24 05:20:48 +00:00
tadf
1d794b9335
ext/date/date_strptime.c: moved detector of leftover.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:54:09 +00:00
tadf
49d65bc4d6
ext/date/date_parse.c: [ruby-core:42173].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 22:13:10 +00:00
nobu
d3b540cf40
* ext/curses/curses.c (cWindow, cMouseEvent): made typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 09:06:48 +00:00
tenderlove
8cf05741bc
* ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
...
subclasses of String with ivars
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
subclasses of String with ivars
* test/psych/test_string.rb: corresponding tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 03:52:01 +00:00
tenderlove
ee3ebc2de5
* ext/psych/lib/psych/visitors/to_ruby.rb: Added ability to load array
...
subclasses with ivars.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added ability to dump
array subclasses with ivars.
* test/psych/test_array.rb: corresponding tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 01:44:21 +00:00