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

392 Коммитов

Автор SHA1 Сообщение Дата
mrkn 01983c97a9 * NEWS: fix description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-02 05:16:39 +00:00
akr 4ac5f5710e updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-31 15:12:39 +00:00
tenderlove 0805d73f65 update NEWS for read / write nonblock
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-26 22:50:23 +00:00
usa a28d1eff65 * proc.c (rb_mod_define_method): now they return the symbols of the
defined methods, not the methods/procs themselves.
  [ruby-dev:42151] [Feature #3753]

* NEWS: documents about above change and def-expr (see r42337).

* test/ruby/test_module.rb: tests about above change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-14 05:35:21 +00:00
kou ce89dedde3 * NEWS (REXML::Parsers::SAX2Parser): Add about this change.
* lib/rexml/parsers/sax2parser.rb (REXML::Parsers::SAX2Parser#parse):
  Fix wrong number of arguments. Document says "an array of the
  entity declaration" but it passes two or more arguments.
  This is a bug but it break backward compatibility.
  Reported by Ippei Obayashi. [Bug #8731] [ruby-dev:47582]
* lib/rexml/sax2listener.rb (REXML::SAX2Listener#entitydecl): ditto.
  The listener template accepted two arguments.
* test/rexml/parser/test_sax2.rb: Add tests for external ID case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-11 09:01:41 +00:00
akr 93bb48995c * process.c (rb_clock_gettime): New method.
This is accepted in the meeting:
  https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809
  This method is accepted as a CRuby feature.
  I.e. Other Ruby implementations don't need to implement it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-11 02:59:30 +00:00
zzak e9f7bd3f60 * NEWS: [DOC] typo in example reported by @moretea
https://github.com/ruby/ruby/commit/a39e724#commitcomment-3831489


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-10 00:21:46 +00:00
ko1 a39e724dfe * NEWS: update about new methods for Binding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-09 10:14:30 +00:00
ktsj 214cbdc943 * vm_insnhelper.c (vm_invoke_block): returning from lambda proc
now always exits from the Proc. [ruby-core:56193] [Feature #8693]

* NEWS, test/ruby/test_lambda.rb: ditto. Patch by nobu.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-09 01:49:38 +00:00
nobu a25d02b144 object.c: Module#singleton_class?
* object.c (rb_mod_singleton_p): new method Module#singleton_class? to
  return whether the receiver is a singleton class or not.
  [ruby-core:51087] [Feature #7609]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-08 14:01:23 +00:00
shugo 7b04639573 * NEWS: add description of incompatibility introduced by r42396.
[ruby-core:56329] [Bug #8722]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-08 05:56:01 +00:00
drbrain 9dff71ad78 * lib/webrick/httpresponse.rb: Allow #body to be an IO-like object
that responds to #readpartial and #read.
  [ruby-trunk - Feature #8155]
* NEWS:  NEWS for above
* test/webrick/test_httpresponse.rb:  Tests for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-07 18:38:39 +00:00
knu d5ecd17aee Add Process.argv0.
* ruby.c (Process.argv0): New method to return the original value
  of $0. [Feature #8696]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-07 14:12:08 +00:00
knu 34bb945c40 Add Process.setproctitle().
* ruby.c (Process.setproctitle): New method to change the title of
  the running process that is shown in ps(1). [Feature #8696]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-07 14:12:04 +00:00
glass 038596b6da * NEWS: Add the description that IO#seek supports SEEK_DATA
and SEEK_HOLE.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-02 15:13:42 +00:00
eregon 1e3a29082b * NEWS: fix typos in the description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-01 20:46:01 +00:00
mrkn 991bd133d5 * NEWS: Add the description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-01 17:33:29 +00:00
shugo 1c7f9073b0 * eval.c (rb_mod_refine, mod_using, top_using): don't show
warnings because Refinements are no longer experimental.
  [ruby-core:55993] [Feature #8632]

* test/ruby/test_refinement.rb: related test.

* NEWS: fixes for the above change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-31 09:29:40 +00:00
knu bd304ed85b Add Set#intersect? and #disjoint?.
* lib/set.rb (Set#intersect?, Set#disjoint?): Add new methods for
  testing if two sets have any element in common.
  [ruby-core:45641] [Feature #6588] Based on the code by marcandre.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-30 09:58:13 +00:00
kou 30f5e8caee * NEWS: Add a new feature that REXML::Parsers::StreamParser
supports "entity" event.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-26 14:19:12 +00:00
knu 9d00f3f536 Add facility to Syslog::Logger.
* ext/syslog/lib/syslog/logger.rb (Syslog::Logger): Add facility
  to Syslog::Logger. [Fixes GH-305] patch by Max Shytikov
  https://github.com/ruby/ruby/pull/305

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-26 11:15:06 +00:00
knu ad78cf4ea8 Define Set#to_set so that aSet.to_set returns self.
* lib/set.rb (Set#to_set): Define Set#to_set so that aSet.to_set
  returns self. [Fixes GH-359]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-19 02:22:11 +00:00
kou 8f50a21064 * NEWS: Add REXML::Text#<< related updates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-07 02:55:10 +00:00
shugo 72d3e2b102 * eval.c (rb_using_module): activate refinements in the ancestors of
the argument module to support refinement inheritance by
  Module#include.  [ruby-core:55671] [Feature #8571]

* test/ruby/test_refinement.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-01 03:57:16 +00:00
kou ca4578d949 * NEWS (XMLRPC::Client#http): Add.
[ruby-core:55197] [Feature #8461]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-16 02:02:33 +00:00
shugo 4dd0652561 * NEWS: add a note for Module#using.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-14 05:35:11 +00:00
shugo 73a229c3a5 * NEWS: add notes for $SAFE.
* doc/security.rd: remove the description of $SAFE=4.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-14 00:53:37 +00:00
mrkn 7ba52b04a4 * NEWS: describe a compatibility issue of Numeric#quo
introduced at r41109.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-06 22:18:24 +00:00
mrkn b465a2b4ad * NEWS: fix style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-06 22:16:43 +00:00
drbrain 091c24d51b * lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems:  Tests for the above.
* NEWS:  Added RubyGems 2.0.3 note.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-04 21:54:58 +00:00
xibbar 10e44b568f Add a NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-30 07:59:21 +00:00
naruse a4eaf5f37c Add NEWS for r40879: Digest::Class.file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-22 10:38:37 +00:00
naruse 3188b4695b Add NEWS about r40881, StringScanner#[] supports named captures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-21 13:51:25 +00:00
naruse 05c0a22854 * string.c (str_scrub_bang): add String#scrub!. [Feature #8414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-18 11:16:56 +00:00
naruse c3f4598683 Add NEWS about Kernel#singleton_method r40684 [Feature #8391]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-14 08:42:58 +00:00
akr 2977c53b21 Describe Socket.getifaddrs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-11 10:20:38 +00:00
naruse 4834aa5307 * io.c (rb_io_ext_int_to_encs): ignore internal encoding if external
encoding is ASCII-8BIT. [Bug #8342]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-08 08:47:26 +00:00
naruse 8b29525dad * ext/openssl/ossl_bn.c (ossl_bn_initialize): allow Fixnum and Bignum.
[ruby-core:53986] [Feature #8217]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-25 07:02:31 +00:00
naruse 4a50d447d9 * lib/uri/common.rb (URI.decode_www_form): follow current URL Standard.
It gets encoding argument to specify the character encoding.
  It now allows loose percent encoded strings, but denies ;-separator.
  [ruby-core:53475] [Bug #8103]

* lib/uri/common.rb (URI.decode_www_form): follow current URL Standard.
  It gets encoding argument to convert before percent encode.
  Now UTF-16 strings aren't converted to UTF-8 before percent encode
  by default.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-25 05:27:41 +00:00
akr 5388fb64d9 * lib/tempfile.rb (Tempfile.create): New method.
The method name is proposed by Shugo Maeda.  [ruby-dev:47220]
  [ruby-core:41478] [Feature #5707]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-20 13:50:47 +00:00
naruse 394d5dfa9b * string.c (str_scrub): add ruby method String#scrub which verify and
fix invalid byte sequence.

* string.c (str_compat_and_valid): check given string is compatible
  and valid with given encoding.

* transcode.c (str_transcode0): If invalid: :replace is specified for
  String#encode, replace invalid byte sequence even if the destination
  encoding equals to the source encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-19 17:50:38 +00:00
marcandre 2106aa1990 * lib/matrix.rb: Add Vector#cross_product, patch by Luis Ezcurdia
[fix GH-276] [rubyspec:81eec89a124]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-13 03:08:28 +00:00
akr 4329b14cfb * lib/open-uri.rb: Support multiple fields with same field
name (like Set-Cookie).
  (OpenURI::Meta#metas): New accessor to obtain fields as a Hash from
  field name (string) to field values (array of strings).
  [ruby-core:37734] [Bug #4964] reported by ren li.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-09 10:53:41 +00:00
akr c4d8cc4eae * lib/resolv.rb: Support LOC resources.
[ruby-core:23361] [Feature #1436] by JB Smith.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-06 14:52:48 +00:00
akr 9791353555 * lib/resolv.rb: Add one-shot multicast DNS support.
[ruby-core:53387] [Feature #8089] by Eric Hodel.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-06 14:32:34 +00:00
akr 4c1e97226f * lib/resolv.rb (Resolv::DNS.fetch_resource): New method to obtain
full result.
  [ruby-dev:43587] [Feature #4788] proposed by Makoto Kishimoto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-06 13:16:36 +00:00
akr c3d1fde2b5 * ext/pathname/pathname.c (path_write): New method.
(path_binwrite): Ditto.
  [ruby-core:49468] [Feature #7378]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-04 11:12:12 +00:00
akr b81ea661db * io.c (rb_io_seek_m): Accept :CUR, :END, :SET as "whence" argument.
(interpret_seek_whence): New function.
  [ruby-dev:45818] [Feature #6643]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-03 12:25:09 +00:00
kazu b87ba9f872 fix a typo in NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-03 11:43:42 +00:00
nobu 90e588777f * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-02 14:58:32 +00:00