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

412 Коммитов

Автор SHA1 Сообщение Дата
marcandre dc215dcd9f * array.c: Add Array#to_h [Feature #7292]
* enum.c: Add Enumerable#to_h

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-23 15:10:48 +00:00
akr 4c5bfb9fbd * lib/tsort.rb (TSort.tsort): Extracted from TSort#tsort.
(TSort.tsort_each): Extracted from TSort#tsort_each.
  (TSort.strongly_connected_components): Extracted from
  TSort#strongly_connected_components.
  (TSort.each_strongly_connected_component): Extracted from
  TSort#each_strongly_connected_component.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-17 15:59:40 +00:00
akr ed6231195b * lib/tsort.rb (TSort.each_strongly_connected_component_from):
Extracted from TSort#each_strongly_connected_component_from.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-17 03:32:15 +00:00
ko1 c6b599e1b6 * NEWS: add a line into NEWS for last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-16 06:14:42 +00:00
drbrain 9cadc95b28 * NEWS (with all sufficient information):
* lib/rake:  Update to rake 10.1.0
* bin/rake:  ditto.
* test/rake:  ditto.

* NEWS:  Update NEWS to include rake 10.1.0 and links to release notes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-11 21:35:01 +00:00
nobu d052676074 NEWS: timeout
* NEWS (Stdlib updates): uptdate of timeout.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 18:43:53 +00:00
naruse c1c45c1cf7 Add NEWS about RbConfig::SIZEOF
https://bugs.ruby-lang.org/issues/8568

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 06:07:58 +00:00
ko1 1450e0b5ac * ext/objspace/object_tracing.c: add new 3 methods to control tracing.
* ObjectSpace::trace_object_allocations_start
* ObjectSpace::trace_object_allocations_stop
* ObjectSpace::trace_object_allocations_clear
  And some refactoring.
* test/objspace/test_objspace.rb: add a test for new methods.
* NEWS: add a description for new methods.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-30 08:17:30 +00:00
akr 0e2f521057 [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-27 14:31:56 +00:00
nobu e1c4d844de NEWS: required keyword arguments
* NEWS (Language changes): mention about required keyword arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-25 00:29:52 +00:00
ko1 b23bbb12f2 * NEWS: add a news for r42974.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-19 05:33:47 +00:00
drbrain 92cd831366 * NEWS: Update for RDoc 4.1.0.preview.1 and RubyGems 2.2.0.preview.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-19 00:11:45 +00:00
nobu 0c252b43ad NEWS: sort
* NEWS (Stdlib updates): sort in case-insensitive alphabetical order.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-13 02:39:03 +00:00
drbrain fdb6a621b0 * lib/rubygems: Update to RubyGems 2.1.3
Fixed installing platform gems

	  Restored concurrent requires

	  Fixed installing gems with extensions with --install-dir

	  Fixed `gem fetch -v` to install the latest version

	  Fixed installing gems with "./" in their files entries

	* test/rubygems/test_gem_package.rb:  Tests for the above.

	* NEWS:  Updated for RubyGems 2.1.3


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-13 01:40:42 +00:00
kazu bd63aca6e0 NEWS: Update RubyGems note.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-10 01:09:55 +00:00
akr f41a2574f0 Updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-08 04:39:23 +00:00
akr 4de7dcf8c8 updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-06 13:05:16 +00:00
a_matsuda 71f3943558 * NEWS: Note about Module#include and prepend scope change
[Feature #8846]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-04 06:43:05 +00:00
knu fd4b5b8dc8 Enhance Numeric#step.
* numeric.c (num_step): Default the limit argument to infinity and
  allow it to be omitted.  Keyword arguments (by: and to:) are
  introduced for ease of use. [Feature #8838] [ruby-dev:47662]
  [ruby-dev:42194]

* numeric.c (num_step): Optimize for infinite loop.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-02 14:56:06 +00:00
charliesome a056098cb7 * NEWS: Add note about frozen string literals
* compile.c (case_when_optimizable_literal): optimize NODE_LIT strings
  in when clauses of case statements

* ext/ripper/eventids2.c: add tSTRING_SUFFIX

* parse.y: add 'f' suffix on string literals for frozen strings

* test/ripper/test_scanner_events.rb: add scanner tests

* test/ruby/test_string.rb: add frozen string tests

[Feature #8579] [ruby-core:55699]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-02 07:11:41 +00:00
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