summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * eval.c (rb_f_public_send): rename invoke_method to public_send.matz2007-12-101-2/+2
| | | | | | it now invokes public method only no matter how it's called. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_names): new method Regexp#names.akr2007-12-091-2/+16
| | | | | | | | | | | (rb_reg_named_captures): new method Regexp#named_captures (match_regexp): new method MatchData#regexp. (match_names): new method MatchData#names. * lib/pp.rb (MatchData#pretty_print): show names of named captures. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (read_multipart): exclude blanks from header values.nobu2007-12-091-5/+5
| | | | | | | [ruby-list:44327] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pp.rb: use Hash for recursion check as inspect.akr2007-12-071-6/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/json.rb, lib/json/*: moved to ext/json/lib.naruse2007-12-0419-4681/+0
| | | | | | | | | | | | | | | -- M trunk/ChangeLog D trunk/lib/json D trunk/lib/json.rb A trunk/ext/json/lib A trunk/ext/json/lib/json A trunk/ext/json/lib/json.rb A trunk/ext/json/extconf.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.1 -> 0.2.2.kou2007-12-024-7/+9
| | | | | | | | | | | | * lib/rss/maker/itunes.rb: fixed new_itunes_category. * lib/rss/maker/taxonomy.rb: new_taxo_topic -> new_topic because of consistency. * test/rss/test_maker_itunes.rb, test/rss/test_itunes.rb: removed needless UTF-8 characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling sojeg22007-12-011-3/+3
| | | | | | | | | pressing control-c in the controlling terminal or sending SIGTERM stops the XML-RPC server. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/README: remove jcode.rbmatz2007-12-011-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* a reaction to recent time's changes.tadf2007-12-011-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/jcode.rb: removedmatz2007-11-301-231/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/json.rb, lib/json/add/{core.rb, rails.rb},naruse2007-11-303-12/+192
| | | | | | | | | | | | | | | test/json/test_json_rails.rb: additional files of JSON 1.1.2. [ruby-dev:32405] -- M lib/json.rb A lib/json/add A lib/json/add/core.rb A lib/json/add/rails.rb A test/json/test_json_rails.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json, lib/json, test/json: Update to JSON 1.1.2.naruse2007-11-284-49/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | (RubyForge#15447) * math.c: fix typo. -- M ChangeLog M math.c M ext/json/ext/generator/generator.c M ext/json/ext/parser/parser.rl M ext/json/ext/parser/parser.c M lib/json/version.rb M lib/json/editor.rb M lib/json/common.rb M lib/json/pure/parser.rb M test/json/test_json_unicode.rb M test/json/test_json_fixtures.rb M test/json/test_json_generate.rb M test/json/test_json_addition.rb M test/json/test_json.rb M test/json/runner.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS tonobu2007-11-281-3/+8
| | | | | | | | | | | | get rid of mixing $LDFLAGS and $ARCH_FLAG. * lib/mkmf.rb (configuration): ditto. * lib/mkmf.rb (create_makefile): support for extensions which has no shared object. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/finalizer.rb: removedmatz2007-11-271-193/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/extserv.rb (initialize, stop_service): synchronize withseki2007-11-261-6/+13
| | | | | | | | | | ExtServManager. * test/drb/test_drb.rb (TestDRbEval): ignored. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]keiju2007-11-261-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import fast-loading gem_prelude.rb from RubyGems.drbrain2007-11-254-15/+53
| | | | | | | Import RubyGems r1516. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 0.9.5drbrain2007-11-209-42/+109
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged from ruby_1_8 branch.seki2007-11-197-60/+69
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix Time.parse to support nsec.akr2007-11-191-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check struct timespec, clock_gettime, utimensat,akr2007-11-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | struct stat.st_atim, struct stat.st_atimespec, struct stat.st_atimensec, struct stat.st_mtim, struct stat.st_mtimespec, struct stat.st_mtimensec, struct stat.st_ctim, struct stat.st_ctimespec, struct stat.st_ctimensec. * include/ruby/missing.h: provide struct timespec if not available. * time.c: support nanosecond-resolution using struct timespec. * include/ruby/intern.h: provide rb_time_nano_new. * file.c (utime_internal): use utimensat if available. (rb_file_s_utime): refactored. (rb_f_test): use stat_atime, stat_mtime, stat_ctime. (rb_stat_cmp): check tv_nsec. (stat_atimespec): new function. (stat_atime): ditto. (stat_mtimespec): ditto. (stat_mtime): ditto. (stat_ctimespec): ditto. (stat_ctime): ditto. (rb_stat_atime): use stat_atime. (rb_file_s_atime): ditto. (rb_file_atime): ditto. (rb_stat_mtime): use stat_mtime. (rb_file_s_mtime): ditto. (rb_file_mtime): ditto. (rb_file_ctime): use stat_ctime. (rb_file_s_ctime): ditto. (rb_stat_ctime): ditto. * variable.c (rb_copy_generic_ivar): clear clone's instance variables if obj has no instance variable. * marshal.c (w_object): dump instance variables of generated string for TYPE_USERDEF, even if original object has instance variables. * lib/time.rb (Time#xmlschema): use nsec instead of usec. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.nobu2007-11-181-7/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (have_struct_member): define HAVE_type_member.akr2007-11-171-4/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: added some declarations for event hooks.shugo2007-11-161-0/+4
| | | | | | | * lib/profile.rb: set VM::InstructionSequence.compile_option. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.nobu2007-11-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: Node#value defined twice.why2007-11-152-3/+1
| | | | | | | * lib/yaml/: several method redefinitions causing warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.why2007-11-151-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml.rb (quick_emit): use combination of object_id and hash towhy2007-11-152-9/+13
| | | | | | | | identify repeated object references, since GC will reuse memory of objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session::FileStore::restore): usematz2007-11-151-4/+12
| | | | | | | lockfile for exclusive locks. a patch from <tommy AT tmtm.org>. [ruby-dev:32296] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch fromnobu2007-11-121-0/+31
| | | | | | | Daniel Berger <djberg96 AT gmail.com> in [ruby-core:13378]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine doc.akr2007-11-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {lib,test}/rubygems: set property.nobu2007-11-101-183/+183
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RubyGems trunk revision 1493.drbrain2007-11-1081-0/+12239
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Don't override Enumerable#inject for 1.9drbrain2007-11-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x formatz2007-11-061-2/+2
| | | | | | | nkf conversion. a patch from <moonwolf AT moonwolf.com>. [ruby-dev:32183] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_send): allow send/__send__ to call methods of allmatz2007-11-047-27/+27
| | | | | | | | | | visibility again. we no longer provide __send, __send!. * eval.c (rb_invoke_method): new method to honor private visibility. if it's invoked in a function call style, it calls private methods as well (previous 1.9 send behavior). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::Switch::summarize): fix for long formnobu2007-11-041-1/+1
| | | | | | | | option with very long argument. a patch from Kobayashi Noritada <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (call_args): remove "parenthesize argument(s) for futurematz2007-11-041-7/+7
| | | | | | | | version" warning. when I added this warning, I had a plan to reimplement the parser that is simpler than the current one. since we abandoned the plan, warning no longer required. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb (HTTPHeader#initialize): provide default User-Agent to fix ↵aamine2007-11-041-0/+1
| | | | | | 500 error on some corrupted HTTP servers. [ruby-core:13135] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixes ticket:110 (more UTF-16 problems)ser2007-11-044-6/+18
| | | | | | | | Missing include for UndefinedNamespaceException was causing errors in some cases. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: --with-vendor-hdrdir implemented.akr2007-11-031-0/+15
| | | | | | | * lib/mkmf.rb: check --vendor argument. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/content.rb, lib/rss/content/, lib/rss/maker/content.rb,kou2007-11-025-16/+32
| | | | | | | | | | test/rss/test_content.rb, test/rss/test_maker_content.rb, test/rss/rss-testcase.rb (RSS::TestCase): supported content:encoded with RSS 2.0. Suggested by Sam Lown. Thanks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.0 -> 0.2.1.kou2007-11-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (Init_Exception): make NameError to be subclass ofmatz2007-11-021-7/+7
| | | | | | | | | StandardError again. * error.c (Init_Exception): make SecurityError to be subclass of Exception, since it's too important to be handled implicitly. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: :redirect option implemented to disable redirects.akr2007-10-281-0/+24
| | | | | | | (OpenURI::HTTPRedirect): new exception class for redirection. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" injeg22007-10-251-1/+1
| | | | | | | addition to "password" for Telnet login prompts. [ruby-Bugs-10746] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/telnet.rb (Net::Telnet#login): Making the password promptjeg22007-10-251-1/+1
| | | | | | | pattern case insensitive. [ruby-Bugs-10746] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch frommatz2007-10-251-1/+1
| | | | | | Dan Zwell <dzwell AT zwell.net> in [ruby-core:12941]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri.rb, lib/uri/ldaps.rb: added LDAPSakira2007-10-252-0/+13
| | | | | | | cheme. [ruby-dev:31896] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug thatjeg22007-10-241-2/+2
| | | | | | | | caused time zone conversion to fail for some ISO 8601 date formats. [ruby-Bugs-12677] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e