aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/psych/lib/psych/parser.rb (Mark): Adding a class to wraptenderlove2011-01-172-0/+26
| | | | | | | | | marker information * ext/psych/parser.c (mark): Add a method to return the mark object for the parser * test/psych/test_parser.rb: tests for the Mark class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSONtenderlove2011-01-171-1/+1
| | | | | | | strings should be dumped with double quotes. [ruby-core:34186] * test/psych/test_json_tree.rb: test for double quotes git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* The cast must use uint32_t. [ruby-core:34481]naruse2011-01-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) innaruse2011-01-141-1/+1
| | | | | | | gzip's header is the size of uncompressed input data modulo 2^32. [ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb: new checks for RL_PROMPT_START_IGNOREyugui2011-01-122-1/+7
| | | | | | | | | | and RL_PROMPT_END_IGNORE. [ruby-core:34331] * ext/readline/readline.c: enables USE_INSERT_IGNORE_ESCAPE only if RL_PROMPT_{START,END}_IGNORE are available to get rid of compilation error with libedit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: apply a patch from Nobuyoshi Nakada.kouji2011-01-091-0/+99
| | | | | | | | fixed #3616 [ruby-core:31484] IRB + readline incorrectly counts non-printing characters in prompt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverting r30451 until I can figure out what is wrong.tenderlove2011-01-071-4/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tagstenderlove2011-01-061-1/+1
| | | | | | should not be included in JSON mapping git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/array/resize/resize.c (Init_resize): renamed methodnobu2011-01-051-1/+1
| | | | | | | for test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (get_strio, strio_set_string)nobu2011-01-051-3/+3
| | | | | | | (strio_reopen): check if frozen. [ruby-core:33648] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_resize): new utility function. [ruby-dev:42912]nobu2011-01-052-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (init_funcname_len): ignore rest from first dot.nobu2011-01-052-0/+2
| | | | | | | [ruby-dev:41774] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb: use YAML 1.0 outputtenderlove2011-01-051-1/+1
| | | | | | | format for serializing nil values. Thanks Eric Hodel! * test/psych/test_nil.rb: test for nil values git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * SSL_shutdown should be called until the return value is non-zero:tenderlove2011-01-051-1/+4
| | | | | | http://www.openssl.org/docs/ssl/SSL_shutdown.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Use _WIN32 rather than checking for windows.h. Thanks Jon Forums!tenderlove2011-01-057-11/+10
| | | | | | [ruby-core:33977] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c: take care of platforms where long is biggernobu2011-01-011-42/+75
| | | | | | | than int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the resultnobu2010-12-311-0/+1
| | | | | | | of sizeof to be int, not size_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: strip current directory prefix.nobu2010-12-291-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/extconf.rb: check for windows.h while building fiddle.tenderlove2010-12-271-0/+1
| | | | | | Thanks Jon Forums! [ruby-core:33923] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (Init_zlib): Add Zlib.defale and Zlib.inflate.naruse2010-12-271-4/+10
| | | | | | [ruby-dev:42833] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update rdoc of zlib.naruse2010-12-271-3/+9
| | | | | | Add description about gzip(1) compatible output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: add IF_NAMESIZE.akr2010-12-261-2/+3
| | | | | | | add a default for INET6_ADDRSTRLEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ripper/depend (ripper.y): fix messages with nmake.nobu2010-12-261-2/+2
| | | | | | [ruby-dev:42896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/mkconstants.rb: define INET_ADDRSTRLEN as 16 if notakr2010-12-261-1/+1
| | | | | | | available. fix compilation error on mswin32-60. reported by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo.akr2010-12-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c: define IFNAMSIZ if not available.akr2010-12-261-0/+3
| | | | | | | fix compilation error on mingw32. reported by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2010-12-261-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (rb_if_indextoname): new function to abstractakr2010-12-261-16/+45
| | | | | | | | | | | | environments without if_indextoname. (inspect_ipv6_multicast_if): new function to inspect IPV6_MULTICAST_IF. Socket::Option.new(:INET6, :IPV6, :MULTICAST_IF, [2].pack("I!")).inspect is "#<Socket::Option: INET6 IPV6 MULTICAST_IF eth0>". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32/registry.rb: Corrected RegCreateKeyExA signature.luislavena2010-12-251-1/+1
| | | | | | Patch by Rafal Michalski [ruby-core:33874] [Ruby 1.9-Bug#4203] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* This ifdef should be useless after r30374.naruse2010-12-252-6/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: Fix build error which was introduced r30372.kosaki2010-12-251-5/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: check the existence of if_indextoname().usa2010-12-252-6/+29
| | | | | | | | * ext/socket/option.c: yesterday's akr's commits destroyed the build of some unrelated platforms (such as Windows). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_ipv4_add_drop_membership): new functionakr2010-12-252-1/+146
| | | | | | | | | | | | | | | | | | | to inspect struct ip_mreq and struct ip_mreqn for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. Socket::Option.new(:INET, :IP, :ADD_MEMBERSHIP, [239,255,99,81, 0,0,0,0].pack("CCCCCCCC")).inspect is now "#<Socket::Option: INET IP ADD_MEMBERSHIP 239.255.99.81 0.0.0.0>". (inspect_ipv4_multicast_if): new function to inspect struct in_addr and struct ip_mreqn for IP_MULTICAST_IF. Socket::Option.new(:INET, :IP, :MULTICAST_IF, [192,168,0,7].pack("CCCC")).inspect is now "#<Socket::Option: INET IP MULTICAST_IF 192.168.0.7>". * ext/socket/extconf.rb: check struct ip_mreq and struct ip_mreqn. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (inspect_ipv6_mreq): new function to inspectakr2010-12-252-1/+32
| | | | | | | | | | | | | struct ipv6_mreq for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP. Socket::Option.new(:INET6, :IPV6, :JOIN_GROUP, [0xff12,0,0,0,0,0,0,1, 2].pack("nnnnnnnnI!")).inspect is now: "#<Socket::Option: INET6 IPV6 JOIN_GROUP ff12::1 eth0>" * ext/socket/extconf.rb: check struct ipv6_mreq. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec().kosaki2010-12-251-0/+2
| | | | | | | | | We must reinitialize GVL when new process creation. Otherwise we may meet an insane deadlock. [Bug #4121][ruby-dev:42686] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/generator/generator.{c,h} (fbuffer_free_only_buffer):nobu2010-12-251-1/+0
| | | | | | | unused. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzreader_gets): support optional lengthnobu2010-12-251-15/+87
| | | | | | parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_read, gzfile_readpartial): length shouldnobu2010-12-251-10/+10
| | | | | | be long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/generator/generator.c (fbuffer_free): unused.nobu2010-12-251-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): add casts.nobu2010-12-251-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2010-12-231-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):kosaki2010-12-141-1/+1
| | | | | | | | | fix compile error when !HAVE_X509V3_SET_NCONF. Thanks Chikanaga-san. [ruby-dev:42761] [Ruby 1.9-Bug#4158] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_s_open): should close the IO if some errorusa2010-12-141-9/+44
| | | | | | | occurs in initilizing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): how many gcc-c99ismsusa2010-12-141-1/+1
| | | | | | | must a man mend; before he can build with VC? r30178 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c: indefinite length BER to DER encoding istenderlove2010-12-111-27/+120
| | | | | | properly supported. Thanks Martin Bosslet! [ruby-core:33082] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/bigdecimal/bigdecimal.h: suppress "warning: 'VPrint' declared 'static' ↵kazu2010-12-111-1/+1
| | | | | | but never defined". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Document RSA, RSA encryption/decryption and PKCS #5 encryption/decryptiondrbrain2010-12-102-55/+140
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Include Comparable in OpenSSL::X509::Name, document #<=>drbrain2010-12-101-0/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/multi-tk.rb: infinite loop on method_missing at loading.nagai2010-12-101-58/+72
| | | | | | | | | [ruby-dev:42716] [Ruby 1.9-Bug#4129] * ext/tk/lib/multi-tk.rb: when no eventloop is running, ruby freezes at exit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: try pkgconfig first, then fall back totenderlove2010-12-101-5/+8
| | | | | | normal have_library, etc. Thanks Erik Hollensbe. [ruby-core:32406] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e