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

1215 Коммитов

Автор SHA1 Сообщение Дата
hsbt 097ee409be Update entry of Psych on NEWS file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-19 12:57:19 +00:00
hsbt f43a333dee Update entry of RubyGems on NEWS file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-19 12:46:29 +00:00
mrkn 7d4bfb5308 NEWS: Note for the bigdecimal versions
The differences between bigdecimal 1.3.5, 1.4.0, and 1.5.0 are explained.

[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-17 03:08:46 +00:00
naruse 96b32a0108 Merge nkf v2.1.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-15 09:55:24 +00:00
mrkn 308360f13b NEWS: Fix description of BigDecimal.new [ci skip]
BigDecimal.new is restored, and will be removed on bigdecimal 1.5

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-14 03:45:32 +00:00
stomar 6b6b59f7fd NEWS: various fixes
Fix some typos; fix syntax in a code example; fix unintentional
description list for ticket numbers; other fixes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-13 20:35:02 +00:00
marcandre fc4029b843 NEWS: Mention (1...) in addition to (1..) [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 19:51:50 +00:00
ko1 7510eef748 remove `compiled_` prefix. [Feature #15287]
* vm_trace.c: remove `compiled_` prefix from the following methods:
  * `compiled_eval_script`
  * `compiled_instruction_sequence`
  [Feature #15287]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 15:45:06 +00:00
hsbt 1a1f9ecb30 Added entry of Psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 13:25:29 +00:00
akr c33e716d6d mention Pathname change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 05:38:59 +00:00
samuel 337cabf7df Fix location of NEWS for native coroutine.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 02:31:26 +00:00
hsbt e4922abde3 Update version number on Bundler section.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 00:17:59 +00:00
samuel ace30f4de8 Explain which architectures are supported in NEWS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 23:56:26 +00:00
samuel 61c2022595 Add NEWS about coroutine implementation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 23:49:29 +00:00
ko1 ed2ad8fc1e remove unused (redundant) chapter names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 07:31:23 +00:00
mame eec23088e4 NEWS: add a ticket number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 04:26:04 +00:00
duerst 448e86d796 add clarification about details of update to Unicode 11.0.0 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 00:44:24 +00:00
kazu 8a758e87f2 Sort [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-10 23:52:59 +00:00
nobu 0c0ec3ad21 Add the deprecation of flip-flops to NEWS page [ci skip]
[Fix GH-2047]

From: Junichi Ito <jit@sonicgarden.jp>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-10 23:40:14 +00:00
ko1 1692ccaf9f add NEWS entries about script_compiled event
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-06 13:56:36 +00:00
hsbt 586e018c73 Added News entries about RubyGems and Bundler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-06 13:19:06 +00:00
normal aa6dfe7103 NEWS: fix typo (maesured => measured) [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-06 10:09:35 +00:00
mame 0cd28199e5 load.c (RubyVM.resolve_feature_path): New method. [Feature #15230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-06 06:40:54 +00:00
mrkn 5fa8b95d5f NEWS: update about bigdecimal [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-05 11:30:26 +00:00
mrkn 2810c12a99 Import bigdecimal 1.4.0.pre.20181205a
* https://github.com/ruby/bigdecimal/compare/74d25ef..v1.4.0.pre.20181205a

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-05 11:30:24 +00:00
duerst 433410a00f add update to Unicode 11.0.0 to NEWS [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-05 10:06:47 +00:00
mrkn f15cf0918a Revert bigdecimal 1.4.0 related commits
* Revert "Remove unnecessary linker flags"

  This reverts commit 49efa01579.

* Revert "Move dependency on gemspec"

  This reverts commit bfb64d4765.

* Revert "Remove unnecessary directory listing"

  This reverts commit 86661b5c60.

* Revert "* expand tabs."

  This reverts commit 35ada33f83.

* Revert "Import bigdecimal-1.4.0.pre-20181204a"

  This reverts commit 8891bb3bd6.

* Revert "ext/bigdecimal/bigdecimal.c: drop unused function"

  This reverts commit 5ceeea4da1.

* Revert "* expand tabs."

  This reverts commit e021386e90.

* Revert "Import bigdecimal-1.4.0.pre-20181130a"

  This reverts commit a0e438cd3c.

* Revert "NEWS: write about bigdecimal updates"

  This reverts commit 89455ff2ba.

* Revert "Fix rubyspec of bigdecimal for ruby <2.6"

  This reverts commit 4bcdeeb65e.

* Revert "Fix rubyspec against bigdecimal updates"

  This reverts commit c8fb30fc9e.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-05 04:01:53 +00:00
ko1 5ce533520e add a NEWS entry of TracePoint#enable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-03 13:39:42 +00:00
mrkn 89455ff2ba NEWS: write about bigdecimal updates
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-03 09:21:39 +00:00
shyouhei 37c22bd945 string.c: [DOC] deprecate String#crypt [ci skip] [Feature #14915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-03 05:46:46 +00:00
mame ebff9dc10e object.c: Deprecate Object#=~ and add NilClass#=~`
Object#=~ always returns nil.  This behavior is not only unuseful but
also troublesome because it may hide a type error.

This change deprecates Object#=~.  For compatibility, NilClass#=~ is
newly introduced.  [Feature #15231]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-26 07:55:07 +00:00
nobu 2b9448fd77 NEWS: fix markup [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-25 06:07:28 +00:00
knu 94ec8e0d93 Add entries regarding Enumerator::Chain to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-24 08:38:36 +00:00
nobu 16a642c331 Enable refinements at Object#respond_to?
[Feature #15327] [Fix GH-2020]

From: osyo-manga <manga.osyo@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-22 08:29:02 +00:00
nobu 633fef6dec Enable refinements to public_send.
[Feature #15326] [Fix GH-2019]

From: manga_osyo <manga.osyo@gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-22 07:53:07 +00:00
nobu c71cc2db7f Proc#<< and Proc#>>
[Feature #6284]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-22 05:51:43 +00:00
nobu 1d66574aa9 [DOC] mention class method `new` [ci skip]
* NEWS: mention `new` class methods, instead of `initialize`
  insetance methods whic are not called by users directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-16 04:32:48 +00:00
yui-knk 1d7d08262e Rename `AST` module to `AbstractSyntaxTree`
Follow the same naming convention of `InstructionSequence` class.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-09 01:37:41 +00:00
yui-knk 3038bc31de NEWS: Add `RubyVM::AST.of` to NEWS [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-08 00:36:35 +00:00
kazu ed44d40ba7 Sort in alphabetical order [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-05 07:01:47 +00:00
hsbt 59c8d50653 Added bundler as default gems. Revisit [Feature #12733]
* bin/*, lib/bundler/*, lib/bundler.rb, spec/bundler, man/*:
    Merge from latest stable branch of bundler/bundler repository and
    added workaround patches. I will backport them into upstream.
  * common.mk, defs/gmake.mk: Added `test-bundler` task for test suite
    of bundler.
  * tool/sync_default_gems.rb: Added sync task for bundler.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 23:07:56 +00:00
marcandre eda970cfe2 lib/matrix.rb: Make Matrix & Vector mutable. Add #[]=, #map!.
Adapted from patch by Grzegorz Jakubiak. [#14151] [Fix GH-1769] [Fix GH-1905]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 17:52:51 +00:00
marcandre a1f22c4f1c lib/matrix.rb: Alias antisymmetric? with skew_symmetric?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 17:52:05 +00:00
marcandre 55961ac9d7 Revert "Matrix: Add #reflexive? method. [Fix GH-1730]"
This reverts commit 19fe6552c4.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 17:51:56 +00:00
ko1 3bdd8e74f3 update NEWS about theap
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-30 22:24:35 +00:00
nobu 15533bb40a NEWS: codify keywords and callback methods [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-28 01:58:27 +00:00
naruse 48af6fd544 Print exception's cause like Java
Print `cause` of the exception if the exception is not caught and printed
its backtraces and error message [Feature #8257]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-27 21:45:30 +00:00
knu b16d73ae0c Update the example of local variable shadowing
I came up with this snippet when we were trying to convince Matz.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-27 07:22:38 +00:00
stomar 61cccab436 NEWS: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-26 12:16:25 +00:00
nobu 7cc758f7a8 Indent as a code block [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-26 04:46:24 +00:00
mame c9d720b873 parse.y: remove "shadowing outer local variable" warning
You can now write the following without warning.

    user = User.all.find {|user| cond(user) }

Fixes [Feature #12490].
A patch from Soutaro Matsumoto <matsumoto@soutaro.com>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-26 03:10:02 +00:00
mame b171d92046 Revert "parse.y: remove "shadowing outer local variable" warning"
I forgot to add the copyright of the patch...

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-26 03:08:10 +00:00
mame 7f69d4e41f parse.y: remove "shadowing outer local variable" warning
You can now write the following without warning.

  user = User.all.find {|user| cond(user) }

Fixes [Feature #12490].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-26 02:54:01 +00:00
k0kubun 84d747c6d9 NEWS: note about --disable-mjit-support [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-21 15:41:00 +00:00
k0kubun 2c8b8b3fd4 NEWS: prefer advertising --jit option [ci skip]
In addition to `--enable=jit` and `--enable-jit`, we're going to ship
`--jit` as a short hand of it in Ruby 2.6.0.

That's because both --enable=jit and --enable-jit are super hard to
type everytime on command line, and I want make it easier to use so
that many people use it. First of all, `--enable=jit` is accidentally
added for consistency with `--disable=jit` and it's not added for human.

As it's a short hand, once JIT became enabled by default, the `--jit`
option would be removed after some deprecation warning period and only
`--enable=jit`/`--disable=jit` will survive. That being said, I still
think having `--jit` as a temporary short hand is valuable for the above
reasons.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-21 15:29:01 +00:00
kazu 80220db346 NEWS: Fix keywords [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 15:00:02 +00:00
kazu 45172a7b17 NEWS: Fix `,`s [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 15:00:00 +00:00
stomar 19931ae1a0 NEWS: fix language
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 13:02:02 +00:00
hsbt 2a75c70a36 Added entry about new default gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 12:17:18 +00:00
k0kubun b4728ae856 NEWS: update about MJIT [ci skip]
Rails performance is somewhat improved by compaction. Still not great
though.

MinGW support is much stable now, and mswin support is added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 12:08:48 +00:00
mame 09e82053b7 Add the oneshot coverage feature to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-20 12:01:41 +00:00
stomar 22d8ff8c96 NEWS: small fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-19 21:37:04 +00:00
nobu cfc7328782 NEWS in rdoc mode [ci skip]
* NEWS: reverted to rdoc mode.  markdown mode does not make
  class/module/method references in HTML.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-17 11:35:28 +00:00
stomar 1bb5cc2106 NEWS: Hash#update! does not exist
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-13 20:53:56 +00:00
kazu 48291d5212 Revert "NEWS: Fix indent [ci skip]"
This reverts commit a43d71159fdf208f5ad29fe8f4169e193056caaa.

already fixed at r64958

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-08 15:47:21 +00:00
kazu 634de69596 NEWS: Fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-08 15:12:56 +00:00
nobu fcf308e5fc Timezone at Time#+ and Time#-
* time.c (time_add): support for Timezone.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-08 04:03:32 +00:00
nobu ee58c638b8 Timezone support by Time [Feature #14850]
* strftime.c (rb_strftime): support timezone object by `%z`.

* time.c (time_init_1, time_new_timew, time_getlocaltime): accept
  timezone object as `off`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-08 02:35:31 +00:00
hsbt 5a9b23abb7 Added news entry of r64741.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-05 10:28:38 +00:00
nobu d65d5533ab Add difference method to Array
I introduce a `difference` method equivalent to the `-` operator, but
which accept more than array as argument. This improved readability, and
it is also coherent with the `+` operator, which has a similar `concat`
method. The method doesn't modify the original object and return a new
object instead. I plan to introduce a `difference!` method as well.

Tests and documentation are included.

It solves partially https://bugs.ruby-lang.org/issues/14097

From: Ana María Martínez Gómez <ammartinez@suse.de>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-10-05 06:23:34 +00:00
mrkn 85f192b075 range.c: Add Range#%
[Feature #14697] [ruby-core:86588]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-28 02:18:58 +00:00
nobu ce77c3859a Sort in alphabetical order [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-27 10:22:07 +00:00
kazu 0fb505d242 NEWS: Replace tab with spaces
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-27 10:15:05 +00:00
mrkn 00e210909c NEWS: Add ArithmeticSequence related things
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-27 09:29:51 +00:00
kazu e5a3bfb3da Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-21 02:14:33 +00:00
marcandre 19fe6552c4 Matrix: Add #reflexive? method. [Fix GH-1730]
Adapted from a patch by Yilo

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-20 18:24:16 +00:00
nobu abe75149d1 Enumerable#to_h with block and so on
[Feature #15143]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-20 15:06:56 +00:00
nobu 744e816f55 Add union method to Array
I introduce a `union` method equivalent to the `|` operator, but which
accept more than array as argument. This improved readability, and it
is also coherent with the `+` operator, which has a similar `concat`
method. The method doesn't modify the original object and return a new
object instead. It is plan to introduce a `union!` method as well.

Tests and documentation are included.

It solves partially https://bugs.ruby-lang.org/issues/14097

[Fix GH-1747] [Feature #14097]

From: Ana María Martínez Gómez <ammartinez@suse.de>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-20 03:18:52 +00:00
marcandre f7f216ed37 [DOC] Add changes to Hash#merge in NEWS [#15111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-19 02:10:05 +00:00
marcandre c22b853737 Alias Struct#select as Struct#filter. Patch by Kenichi Kamiya.
[Fix GH-#1862] [#1784]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-16 04:00:14 +00:00
tarui 9ca7389272 range.c: Range#cover? accepts Range object. [Feature #14473]
* range.c (range_cover): add code for range argument.
          If the argument is a Range, check it is or is not 
	  covered by the reciver. If it can be treated as a
	  sequence, this method treats it that way. 
	* test/ruby/test_range.rb (class TestRange): add tests
	  for this feature.
	  
	  This patch is written by Owen Stephens. thank you!


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-05 19:06:08 +00:00
normal 8ae4438637 NEWS: add entries for rb_waitpid and timer-thread [ci skip]
Some of these changes may affect debugging and tracing tools

[Bug #14867] [ruby-core:88199] [Misc #14937]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-23 19:13:01 +00:00
kazu 57a5a3ebcd Mention `--enable=jit` instead of `--jit`
"--jit" flag usage may be deprecated at r63995 [Feature #14878]
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-23 08:33:54 +00:00
nobu ed32e52699 NEWS: categorized new entries all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-19 01:55:27 +00:00
kazu b97e215b66 Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-19 01:33:33 +00:00
nobu 3e1a6feeb6 NEWS: quote false [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-18 09:56:43 +00:00
nobu b6eb3fcbec NEWS: converted to Markdown [ci skip]
* NEWS: Converted to Markdown format, from (wrongly) Markdown-mixed
  RDoc format.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-18 09:53:11 +00:00
kazu 3bee3527fd [DOC] Fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-18 07:26:23 +00:00
normal 30ad342975 NEWS: clarify that we still use FD_CLOEXEC [ci skip]
[Misc #14907]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-17 07:47:26 +00:00
kazu 59bbe8a95b [DOC] Add ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-17 04:01:12 +00:00
kazu 6cd8896bfa [DOC] Update NEWS about close_others [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-17 04:00:09 +00:00
nobu 37279d1546 non-symbol keys in kwargs
* class.c (separate_symbol): [EXPERIMENTAL] non-symbol key in keyword
  arguments hash causes an exception now.
  c.f. https://twitter.com/yukihiro_matz/status/1022287578995646464

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-14 11:58:17 +00:00
kazu 7d2b70a95f fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-13 14:54:32 +00:00
usa 4e87ee8da8 mention about r64337
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-13 14:33:06 +00:00
kazu 842b735979 add 'x' mode character for O_EXCL
[Feature #11258]
Patch by cremno (cremno phobia)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-09 08:49:09 +00:00
ktsj b3fb892dba NEWS: add NEWS entry about Kernel#then [Feature #14594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-01 08:12:14 +00:00
yui-knk fff17079d7 NEWS: Add TracePoint#parameters which was introduced by r63562
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-10 07:01:53 +00:00
naruse 8e37f17671 Add Net::HTTPClientException [Bug #14688]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-06 09:01:04 +00:00
naruse bd7c46a7aa Introduce write_timeout to Net::HTTP [Feature #13396]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-06 08:03:47 +00:00
yui-knk 9e82c4f1c1 NEWS: Add RubyVM::AST
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-31 06:25:58 +00:00
normal c5cb386eba NEWS: clarify item about built-in thread cache
[Feature #14757]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-30 11:49:06 +00:00
normal 9e5354eb52 NEWS: add item about built-in thread cache
This change may impact design of future programs and obviate
thread pools in many cases, so it's worth a mention.
Anyways, this seems stable since r63499 [Feature #14757]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-29 01:18:06 +00:00
nobu 989e07c0f2 range.c: === by cover?
* range.c (range_eqq): switch `Range#===` to use `cover?` instead
  of `include?`.  [Feature #14575]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-17 10:46:21 +00:00
kou 97c07d3487 rss: Add option Hash support to RSS::Parser.parse
Available options:

  * :validate
  * :ignore_unknown_element
  * :parser_class


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-05-12 09:06:00 +00:00
kou 4602d8e2b7 NEWS: Add recent REXML changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-30 06:54:13 +00:00
knu de2bfd3d9c Remove the teeny part from the shared library name on macOS
This will prevent macOS users from having to rebuild all extension
libraries every time they upgrade ruby to a new teeny release.

Before:
- libruby.2.6.0.dylib
- libruby.2.6.dylib -> libruby.2.6.0.dylib
- libruby.dylib -> libruby.2.6.0.dylib

After:
- libruby.2.6.dylib
- libruby.dylib -> libruby.2.6.dylib

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-29 11:15:41 +00:00
stomar 743c6edd32 NEWS: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-27 20:25:49 +00:00
mame e5de886863 Adds "endless range" to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-19 15:23:34 +00:00
nobu c635662d7f dir.c: warning for NUL
* dir.c (rb_push_glob): warn NUL-separated glob patterns.
  [Feature #14643]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-19 07:05:39 +00:00
nobu f852af0e59 symbol.c: non-ASCII constant names
* symbol.c (rb_sym_constant_char_p): support for non-ASCII
  constant names.  [Feature #13770]

* object.c (rb_mod_const_get, rb_mod_const_defined): support for
  non-ASCII constant names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-10 00:41:47 +00:00
nobu 140512d222 parse.y: else without rescue
* parse.y (bodystmt): [EXPERIMENTAL] make `else` without `rescue`
  a syntax error.  [DevelopersMeeting20180315Japan]

  https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20180315Japan
  https://docs.google.com/document/d/1RT0ijSo8uJ4Awn3CEvuYkjH0TVeXSYgeAFNmVGYC3ak/edit#
  > * do-else-end
  >   https://twitter.com/joker1007/status/974173396006129664
  >   https://twitter.com/joker1007/status/974173641347756032
  >   https://twitter.com/joker1007/status/974176512554369027
  >   Will be SyntaxError in 2.6-preview2
  >   All of begin/do/def (experimental)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-23 00:40:08 +00:00
nobu b9881083f1 error.c: full_message options
* error.c (exc_full_message): add highlight: and reverse: keyword
  options.  [Bug #14324]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-22 08:26:23 +00:00
shugo 798316eac2 io.c: Methods of File should not invoke external commands
For security reasons, File.read, File.binread, File.write, File.binwrite,
File.foreach, and File.readlines should not invoke external commands even
if the path starts with the pipe character |.
[ruby-core:84495] [Feature #14245]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-20 09:09:49 +00:00
naruse 04883f12c8 Introduce URI::File to handle file URI scheme
* the default value of URI::File's authority is "" (localhost).
  Both nil and "localhost" is normalized to "" by default.
* URI::File ignores setting userinfo and port
[Feature #14035]
fix https://github.com/ruby/ruby/pull/1719
fic https://github.com/ruby/ruby/pull/1832

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-15 16:51:31 +00:00
mrkn b12d7f17d6 NEWS: add descriptions of [Feature #12732]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-15 12:01:08 +00:00
nobu 2258a97fe2 string.c: split with block
* string.c (rb_str_split_m): yield each split substrings if the
  block is given, instead of returing the array.  [Feature #4780]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-15 11:08:04 +00:00
mame d583ee266b Add FileUtils#cp_lr
* lib/fileutils.rb: Add FileUtils#cp_lr.  This method creates hard links
  of each file from directory to another directory recursively.
  This patch is based on Thomas Sawyers and Zachary Scott.
  [Feature #4189] [ruby-core:33820]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-13 08:18:03 +00:00
k0kubun 9af2ab9d89 NEWS: resurrect ticket number [ci skip]
which was unintentionally dropped at r62612.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-28 14:31:17 +00:00
k0kubun e4e65671f9 erb.rb: relax warn level of ERB.new
I changed my mind and thought branching ERB.new in all libraries is too
hard. Code becomes too ugly. I increased the warn level to 2, and the
old initializer will be removed when Ruby 2.5 becomes EOL.
-S option of erb(1) stays in the same policy: will be removed at Ruby 2.7.

NEWS: note about the direction

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-28 12:12:20 +00:00
eregon b1a8c64483 Add a new #filter alias for #select
* In Enumerable, Enumerator::Lazy, Array, Hash and Set
  [Feature #13784] [ruby-core:82285]
* Share specs for the various #select#select! methods and
  reuse them for #filter/#filter!.
* Add corresponding filter tests for select tests.
* Update NEWS.

[Fix GH-1824]

From: Alexander Patrick <adp90@case.edu>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-25 13:52:07 +00:00
k0kubun e5d5cc4a88 NEWS: elaborate on JIT for 2.6.0-preview1 [ci skip]
This information is backported from the draft of 2.6.0-preview1 release
note. NEWS for final 2.6.0 release will be different.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-24 01:05:20 +00:00
k0kubun cc777d09f4 erb.rb: deprecate safe_level of ERB.new
Also, as it's in the middle of the list of 4 arguments, 3rd and 4th arguments
(trim_mode, eoutvar) are changed to keyword arguments.
Old ways to specify arguments are deprecated and warned now.

bin/erb: deprecate -S option.

We'll remove all of deprecated ones at Ruby 2.7+.

enc/make_encmake.rb: stopped using deprecated interface
ext/etc/mkconstants.rb: ditto
ext/socket/mkconstants.rb: ditto
sample/ripper/ruby2html.rb: ditto
spec/ruby/library/erb/defmethod/def_erb_method_spec.rb: ditto
spec/ruby/library/erb/new_spec.rb: ditto
test/erb/test_erb.rb: ditto
test/erb/test_erb_command.rb: ditto
tool/generic_erb.rb: ditto
tool/ruby_vm/helpers/dumper.rb: ditto
tool/transcode-tblgen.rb: ditto
lib/rdoc/erbio.rb: ditto
lib/rdoc/generator/darkfish.rb: ditto

[Feature #14256]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 13:28:25 +00:00
nobu 74009968ce NEWS: fixed unintentional description list [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 05:06:46 +00:00
nobu 5d874cf1aa NEWS: fixed unintentional description list [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 04:55:58 +00:00
nobu 5fe33f07d4 NEWS: adjust layout [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 04:13:02 +00:00
kou a1fb880f17 Add KeyError, NameError and NoMethodError changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 03:33:42 +00:00
nobu 24294c7d60 NEWS: fixed a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-22 03:14:39 +00:00
mame 3095f4ecc6 * NEWS: add NEWS entry about Binding#source_location [Feature #14230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-21 17:06:23 +00:00
ko1 633b463854 add NEWS entries about [Feature #14318] and [Feature #14330].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-21 08:14:51 +00:00
nobu 1cd9c3ce62 random.c: Random.bytes
* random.c (random_s_bytes): new method Random.bytes, which is
  equivalent to Random::DEFAULT.bytes.  [Feature #4938]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-20 09:26:38 +00:00
shyouhei 62916542b2 add NEWS entry for VM generator renewal [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-16 08:51:23 +00:00
k0kubun 4122066a7b NEWS: note about --jit [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-11 05:32:17 +00:00
k0kubun c50220619b system_spec.rb: add RubySpec for r62025
NEWS: added an entry for `exception: true` option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-24 14:31:40 +00:00
nobu 6a3a7e9114 dir.c: Dir#each_child
* dir.c (dir_each_child_m): new instance methods Dir#each_child
  and Dir#children.  [Feature #13969]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-24 07:15:55 +00:00
nobu f7210deb82 NEWS: [Feature #14223] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-24 06:32:46 +00:00
stomar 82a9714530 NEWS: Matrix#antisymmetric?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-11 19:37:25 +00:00
ko1 c39bdb798d `$SAFE` as a process global state. [Feature #14250]
* vm_core.h (rb_vm_t): move `rb_execution_context_t::safe_level` to
  `rb_vm_t::safe_level_` because `$SAFE` is a process (VM) global state.

* vm_core.h (rb_proc_t): remove `rb_proc_t::safe_level` because `Proc`
  objects don't need to keep `$SAFE` at the creation.
  Also make `is_from_method` and `is_lambda` as 1 bit fields.

* cont.c (cont_restore_thread): no need to keep `$SAFE` for Continuation.

* eval.c (ruby_cleanup): use `rb_set_safe_level_force()` instead of access
  `vm->safe_level_` directly.

* eval_jump.c: End procs `END{}` doesn't keep `$SAFE`.

* proc.c (proc_dup): removed and introduce `rb_proc_dup` in vm.c.

* safe.c (rb_set_safe_level): don't check `$SAFE` 1 -> 0 changes.

* safe.c (safe_setter): use `rb_set_safe_level()`.

* thread.c (rb_thread_safe_level): `Thread#safe_level` returns `$SAFE`.
  It should be obsolete.

* transcode.c (load_transcoder_entry): `rb_safe_level()` only returns
  0 or 1 so that this check is not needed.

* vm.c (vm_proc_create_from_captured): don't need to keep `$SAFE` for Proc.

* vm.c (rb_proc_create): renamed to `proc_create`.

* vm.c (rb_proc_dup): moved from proc.c.

* vm.c (vm_invoke_proc): do not need to set and restore `$SAFE`
  for `Proc#call`.

* vm_eval.c (rb_eval_cmd): rename a local variable to represent clearer
  meaning.

* lib/drb/drb.rb: restore `$SAFE`.

* lib/erb.rb: restore `$SAFE`, too.

* test/lib/leakchecker.rb: check `$SAFE == 0` at the end of tests.

* test/rubygems/test_gem.rb: do not set `$SAFE = 1`.

* bootstraptest/test_proc.rb: catch up this change.

* spec/ruby/optional/capi/string_spec.rb: ditto.

* test/bigdecimal/test_bigdecimal.rb: ditto.

* test/fiddle/test_func.rb: ditto.

* test/fiddle/test_handle.rb: ditto.

* test/net/imap/test_imap_response_parser.rb: ditto.

* test/pathname/test_pathname.rb: ditto.

* test/readline/test_readline.rb: ditto.

* test/ruby/test_file.rb: ditto.

* test/ruby/test_optimization.rb: ditto.

* test/ruby/test_proc.rb: ditto.

* test/ruby/test_require.rb: ditto.

* test/ruby/test_thread.rb: ditto.

* test/rubygems/test_gem_specification.rb: ditto.

* test/test_tempfile.rb: ditto.

* test/test_tmpdir.rb: ditto.

* test/win32ole/test_win32ole.rb: ditto.

* test/win32ole/test_win32ole_event.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-28 20:09:24 +00:00
kazu 94fdb5e1d2 Add NEWS for Ruby 2.6.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-26 11:36:07 +00:00
kazu 8be1c6523d Move from NEWS to doc/NEWS-2.5.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-26 11:35:48 +00:00
kazu 1ef1557896 NEWS: Fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-25 03:01:07 +00:00
hsbt 6c71bdbc85 Added gemification entry to NEWS file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-25 00:33:19 +00:00
sorah 7361587fff NEWS: use of copy_file_range(2) isn't a new method
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 17:55:01 +00:00
k0kubun 6ea6e972b2 NEWS: move the section to note ERB performance
I heard that notable performance improvements should be written to
"Implementation Improvements". So I put the sentence here.

Also, the sentence itself is fixed to be the same as Ruby 2.5 release
note draft's one.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 17:20:04 +00:00
k0kubun 6915ffc99d NEWS: note about ERB's rendering performance
improvement.

There is no specific ticket for it, but improving the ERB's performance
was my largest passion that made me a Ruby committer.

See r58735, r58842, r58904, r58905, r58916.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 16:43:17 +00:00
mame 6585043231 NEWS: Add a brief explanation for branch and method coverage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 14:52:23 +00:00
nobu 874da405bd fix grammatical mistake [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 10:12:21 +00:00
normal 5461fa37bd NEWS: updates for WEBrick [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 08:45:21 +00:00
normal acdbb5c0ec NEWS: fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 08:40:11 +00:00
mrkn 1b0b42dbd9 NEWS: update for bigdecimal 1.3.4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-24 06:24:57 +00:00
hsbt 9fe26ef8de Merge rdoc-6.0.1.
It fixes an installation error of activerecord.

  https://github.com/ruby/rdoc/issues/571

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-23 23:33:09 +00:00
sorah daaebaec79 Print backtrace in reverse order on IRB too
[Feature #8861]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-23 18:17:39 +00:00
ko1 3044138bd7 RubyVM::InstructionSequence#trace_points.
* iseq.c (iseqw_trace_points): add `RubyVM::InstructionSequence#trace_points`
  method for tools which want to manipulate ISeq (and traces).

* test/ruby/test_iseq.rb: add a test for this method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-23 14:46:59 +00:00
ko1 eb8c2773cb RubyVM::InstructionSequence#each_child.
* iseq.c (iseqw_each_child): add RubyVM::InstructionSequence#each_child
  method for tools which want to manipulate ISeq.

* test/ruby/test_iseq.rb: add a test for this method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-23 12:48:24 +00:00
hsbt 7825e8363d Postponing the Bundler merge.
I faced a big issue about Bundler with ruby core.
  I have no time to resolve it issue before 2.5 final release.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-22 23:08:05 +00:00
akr bf287424fd open-uri defines URI.open defined as an alias.
open-uri's Kernel.open will be deprecated in future.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-21 14:15:04 +00:00
hsbt 722306265d Added detailed version of Bundler on NEWS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-21 09:29:47 +00:00
sonots 7176eb2df9 * lib/logger.rb (Logger::LogDevice#open_logfile, #create_logfile):
Logger should be able to open only files [Bug #14212]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-21 05:07:43 +00:00
stomar 677c539d1f NEWS: update news for Psych
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-20 09:51:29 +00:00
stomar d51151cf30 NEWS: "absent operator" is now called "absence operator"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-20 09:31:58 +00:00
stomar efe8be7332 NEWS: grammar fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-20 09:31:22 +00:00
hsbt 71e5c12578 Update rdoc-6.0.0 entry on NEWS file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-20 08:50:26 +00:00
hsbt 26529d3df9 Update version number of Psych
From: SHIBATA Hiroshi <hsbt@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-19 12:28:18 +00:00
hsbt 0c530ddd13 Update RubyGems entry on NEWS file.
From: SHIBATA Hiroshi <hsbt@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-19 12:23:21 +00:00
normal d02f2996d2 NEWS: update for WEBrick Proc body responses
Better late than never :x [Feature #855]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-15 21:55:50 +00:00
normal 3ed8d3983c NEWS: updates about trivial GVL release changes
No tickets, but all pretty trivial changes which avoids
stalls on slow/non-responsive filesytems.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-15 21:49:21 +00:00
kazu 8197188707 Fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-15 11:52:40 +00:00
eregon 0b81d101db Add [Feature #14143] to NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 19:26:04 +00:00
rhe 13ea7a8761 NEWS: add entry for openssl
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 11:19:17 +00:00
stomar d31e847688 NEWS: grammar fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 10:23:10 +00:00
tadd bbec11d329 Implement String#undump to unescape String#dump-ed string
[Feature #12275] [close GH-1765]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 08:47:13 +00:00
knu b53ec390d1 Allow empty path components in a URI [Bug #8352]
* generic.rb (URI::Generic#merge, URI::Generic#route_to): Fix a bug
  where a sequence of slashes in the path part gets collapsed to a
  single slash.  According to the relevant RFCs and WHATWG URL
  Standard, empty path components are simply valid and there is no
  special treatment defined for them, so we just keep them as they
  are.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-14 01:11:28 +00:00
mrkn 3874e0d1fb NEWS: bigdecimal 1.3.3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-13 15:36:25 +00:00
sorah f7fd4cb6c9 NEWS: typo [DOC] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-13 10:55:41 +00:00
kazu 9982bfd18b pattern and modulo are not keyword argument [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 15:01:11 +00:00
kazu 4ea549e839 Fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 15:01:10 +00:00
kazu eccdc515d5 atime,mtime,ctime of File::Stat are instance methods
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 15:01:08 +00:00
svn 1711b54b7b * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 13:07:08 +00:00
sorah 6d32595237 NEWS: polish
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 13:07:06 +00:00
a_matsuda 29e1f56e23 NEWS for Method#===
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 12:12:40 +00:00
shyouhei 9fa87ebe7f NEWS entry for [Feature #12882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 12:10:20 +00:00
sorah 0d7718896c error.c(exc_full_message): Exception#full_message
Add a method to retrieve a String expression of an exception,
formatted in the same way that Ruby prints an uncaught exception out.

[Feature #14141]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 11:47:16 +00:00
shyouhei 27c7d49840 NEWS entry for FrozenError [Feature #13224]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 11:33:26 +00:00
naruse 0da34dbb26 Integer#allbits?, Integer#anybits?, Integer#nobits? [Feature #12753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 09:12:14 +00:00
mrkn 8adf110322 NEWS: mention Process.last_status
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 09:00:19 +00:00
duerst a6a1d7ab21 mention support of emoji-related Unicode character properties in NEWS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 08:35:08 +00:00
k0kubun ed682479ee NEWS: add entry for r61137
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 08:27:33 +00:00
mame 9b1d8ab7d0 ext/coverage/coverage.c: remove COVERAGE_EXPERIMENTAL_MODE
A NEWS entry is also added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-12 00:20:58 +00:00
marcandre 33913f1a6c NEWS: add changes for Matrix [ci-skip] [doc]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-11 23:50:40 +00:00
usa f17285275c mention about [Feature #13726] and [Feature #13731]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-10 23:28:09 +00:00
marcandre a9770bac63 Add case equality arity to Enumerable#all?, any?, none? and one?,
and specialized Array#any? and Hash#any?
Based on patch by D.E. Akers [#11286]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-10 22:36:28 +00:00
stomar 67d9cd737e NEWS: grammar fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-08 22:43:05 +00:00
mrkn 8903ab2e5f NEWS: add Integer#pow(b, m)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-04 02:35:41 +00:00
naruse 31796f17d3 Update to Onigmo 6.1.3-669ac9997619954c298da971fcfacccf36909d05.
[Bug #13892]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-01 13:50:13 +00:00
mrkn b35f6f04f3 NEWS: Net::HTTP is a stdlib
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-01 08:35:58 +00:00
hsbt 44320c5b8d Merge psych-3.0.0.
See NEWS file for this update details.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-01 01:52:26 +00:00
mame 23c1fccf83 prelude.rb: Add Kernel#pp, a trigger for lib/pp.rb
[Feature #14123]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-30 01:31:00 +00:00
marcandre 0c03a89ecd Make Module#{define|alias|undef|remove}_method public [#14133]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-29 17:47:59 +00:00
marcandre 7298ae9e4b Make Module#attr{accessor|reader|writer|} public [#14132]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-29 17:47:47 +00:00
sorah 87bebfb9fa Typo... the feature committed at r60935
[Feature #14140] [ruby-core:83963]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-29 11:16:14 +00:00
sorah b5e0ca4730 Log exception with bold and underline for TTYs
Print error message in bold/underlined text if STDERR is unchanged and a tty.
[Feature #14160] [experimental]

Screenshot: https://img.sorah.jp/s/2017-11-29_1711_xj2fu.png

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-29 11:14:23 +00:00