Граф коммитов

29726 Коммитов

Автор SHA1 Сообщение Дата
kazu beafa477f1 old ChangeLog and NEWS move to doc
* doc/NEWS-2.0.0: moved from NEWS
* doc/ChangeLog-2.0.0: moved ChangeLog older than created ruby_2_0_0 branch
* NEWS: NEWS for 2.1.0 that describes changes since 2.0.0
* ChangeLog: ChangeLog since created ruby_2_0_0 branch

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-25 00:41:07 +00:00
svn 2b847f8187 * 2013-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 17:51:23 +00:00
akr c89844dbc5 * ext/socket: define and use union_sockaddr instead of struct
sockaddr_storage for less casts.

* ext/socket/rubysocket.h (union_sockaddr): defined.

* ext/socket/socket.c (sock_accept): use union_sockaddr.
  (sock_accept_nonblock): ditto.
  (sock_sysaccept): ditto.
  (sock_s_getnameinfo): ditto.

* ext/socket/basicsocket.c (bsock_getsockname): ditto.
  (bsock_getpeername): ditto.
  (bsock_local_address): ditto.
  (bsock_remote_address): ditto.

* ext/socket/ancdata.c (bsock_recvmsg_internal): ditto.

* ext/socket/init.c (recvfrom_arg): ditto.
  (recvfrom_blocking): ditto.
  (rsock_s_recvfrom): ditto.
  (rsock_s_recvfrom_nonblock): ditto.
  (rsock_getfamily): ditto.

* ext/socket/raddrinfo.c (rb_addrinfo_t): ditto.
  (ai_get_afamily): ditto.
  (inspect_sockaddr): ditto.
  (addrinfo_mdump): ditto.
  (addrinfo_mload): ditto.
  (addrinfo_getnameinfo): ditto.
  (addrinfo_ip_port): ditto.
  (extract_in_addr): ditto.
  (addrinfo_ipv6_to_ipv4): ditto.
  (addrinfo_unix_path): ditto.

* ext/socket/tcpserver.c (tcp_accept): ditto.
  (tcp_accept_nonblock): ditto.
  (tcp_sysaccept): ditto.

* ext/socket/ipsocket.c (ip_addr): ditto.
  (ip_peeraddr): ditto.
  (ip_s_getaddress): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 17:51:17 +00:00
naruse ef33958094 Use require_relative to require local library
* from 1.9 require relative path from the file must use require_relative.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 13:10:46 +00:00
tadf 66f9135726 * ext/date/date_core.c: [ruby-core:52303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 12:16:07 +00:00
nobu 9e0683523a test_array.rb: fix test for r39466
* test/ruby/test_array.rb (test_sample_random): remove adjustment for
  the bug fixed by r39466.  [ruby-core:52779] [Bug #7935]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 07:48:31 +00:00
nobu d64c926eba random.c: increase limit for generic rand
* random.c (rb_random_ulong_limited): limit is inclusive, but generic
  rand method should return a number less than it, so increase for the
  difference.  [ruby-core:52779] [Bug #7935]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 06:33:49 +00:00
drbrain 023561f704 * lib/net/http.rb: Removed duplicate Accept-Encoding in Net::HTTP#get.
[ruby-trunk - Bug #7924]
* test/net/http/test_http.rb:  Test for the above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 06:15:05 +00:00
zzak 1f9fa7c62f * thread.c: Document ThreadGroup::Default
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 05:29:06 +00:00
zzak 5feede6f3b * thread.c: Grammar for #backtrace_locations and ::handle_interrupt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 05:23:51 +00:00
nobu ac94eb1a91 vm_insnhelper.c: compare with me in method top cfp
* vm_insnhelper.c (vm_call_method): block level control frame does not
  have method entry, so obtain the method entry from method top-level
  control frame to be compared with refined method entry.
  [ruby-core:52750] [Bug #7925]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 04:36:00 +00:00
zzak bd88e6c0b5 * object.c: Document methods receiving string and convert to symbol
Patch by Stefan Rusterholz
* vm_eval.c: ditto
* vm_method.c: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 04:24:52 +00:00
nobu 6aaf5c5ca0 * .gdbinit (rp): fix argument order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 02:59:17 +00:00
nobu 6217417799 signal.c: fix type
* signal.c (sigsegv): type of write(2) is ssize_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 01:16:46 +00:00
kosaki 2474a1ac00 remove duplicated entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 00:18:32 +00:00
kosaki bc5a5989c0 * signal.c (sigsegv): suppress unused result warning. Because
write(2) is marked __warn_unused_result__ on Linux glibc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-24 00:17:29 +00:00
nobu 45dea57588 compile.c: no keyword check if kw_rest
* compile.c (iseq_set_arguments): no keyword check if any keyword rest
  argument exists, even unnamed.  [ruby-core:52744] [Bug #7922]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 22:51:45 +00:00
marcandre a6d08b450c * array.c: Fix rdoc for flatten!
* hash.c: Correct rdoc for reject!

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 20:17:20 +00:00
svn a0f3e24f95 * 2013-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 17:38:16 +00:00
marcandre 673e1b9276 * enumerator.c: rdoc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 17:38:12 +00:00
marcandre 87e0df89d2 * NEWS: Reorder and fix indent levels [ruby-core:52723]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 14:23:39 +00:00
marcandre 315c72e234 * NEWS: Fix RubyGems version [Bug #7920]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 13:57:30 +00:00
zzak 5a34caab4f test_backtrace.rb: test Thread#backtrace_locations with range
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 08:08:24 +00:00
zzak a153ce31a1 * thread.c: Documentation for Thread#backtrace_locations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 07:52:46 +00:00
zzak a14f02f0e0 * vm.c: Typo in ObjectSpace::WeakMap overview
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 07:06:10 +00:00
zzak 5f2e433813 * thread.c: Improved rdoc for ::handle_interrupt, ::pending_interrupt?
and #pending_interrupt?


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 07:00:51 +00:00
nobu 4abd941e78 * Makefile.in (archlibdir): needed for multiarch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 06:20:19 +00:00
nobu de697194c2 merger.rb: runnable
* tool/merger.rb: make runnable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 04:51:12 +00:00
nobu 0ac71e725c merger.rb: suppress warnings
* tool/merger.rb (version_up, tag, default_merge_branch): suppress
  syntax warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 04:49:16 +00:00
knu 5b7d2440ca misc/ruby-electric.el: Avoid electric insertion in some cases.
* misc/ruby-electric.el (ruby-electric-curlies)
  (ruby-electric-matching-char, ruby-electric-bar): Avoid electric
  insertion when there is a prefix argument.

* misc/ruby-electric.el (ruby-electric-insert)
  (ruby-electric-cua-replace-region-p)
  (ruby-electric-cua-replace-region): Avoid electric insertion and
  fall back when cua-mode is enabled and a region is active.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 03:55:39 +00:00
zzak c2204ca328 * array.c: Document #<=> return values and formatting
* bignum.c: ditto
* file.c: ditto
* object.c: ditto
* numeric.c: ditto
* rational.c: ditto
* string.c: ditto
* time.c: ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 03:35:38 +00:00
nobu 827e71bda5 test_process.rb: fix test
* test/ruby/test_process.rb (assert_fail_too_long_path): get rid of
  syntax error on sh, increase command line size until it exceeds the
  limit.  [Bug #7904]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 03:34:04 +00:00
zzak 933ff1d6d7 * array.c (rb_ary_diff, rb_ary_and, rb_ary_or): Document return order
[RubySpec #7803


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 02:50:34 +00:00
zzak c135883d37 * object.c (rb_obj_comp): Documenting Object#<=> return values
Patch by Stefan Rusterholz


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 02:11:53 +00:00
nobu 3331d6774f dir.c: encoding check
* dir.c (file_s_fnmatch, fnmatch_brace): encoding-incompatible pattern
  and string do not match, instead of exception.  [ruby-dev:47069]
  [Bug #7911]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 00:48:44 +00:00
marcandre 143a2f7ef1 * doc/NEWS-*: Update NEWS from their respective branches
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:57:58 +00:00
marcandre d52f95dc7a * NEWS: + Module.prepended and Module.prepend_features
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:18:47 +00:00
marcandre eff6180e53 * object.c: Add doc for Module.prepended
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:18:33 +00:00
marcandre 8222a78e28 * NEWS: + Thread::Backtrace::Location
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:18:18 +00:00
marcandre a3d592b47a * NEWS: Add privacy of respond_to_missing? & al as a potential incompatibility
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:18:04 +00:00
marcandre 1727511e85 * NEWS: Fix ARGF#codepoints
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:17:49 +00:00
marcandre ed045985e7 * NEWS: Add that unused variables starting with _ won't generate a warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:17:35 +00:00
marcandre 15fcd78ff7 * NEWS: Add Enumerable::Lazy to list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:17:21 +00:00
marcandre 11354e242a * NEWS: + RubyVM::InstructionSequence new methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:17:06 +00:00
marcandre 1ac0694c58 * NEWS: + ObjectSpace::WeakMap
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:16:52 +00:00
marcandre ca28854eef * NEWS: Specify that Proc#eql? was also removed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:16:38 +00:00
marcandre 3f8d180092 * NEWS: pending_interrupt? is both instance and singleton method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:16:24 +00:00
marcandre e0003e074f * NEWS: Add Thread#pending_interrupt? and Thread.handle_interrupt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:16:10 +00:00
marcandre bc11b883a0 * NEWS: Floats are frozen too
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:15:55 +00:00
marcandre 10f953417b * NEWS: Add that Fixnums and Bignums are frozen
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22 23:15:40 +00:00