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

1155 Коммитов

Автор SHA1 Сообщение Дата
Samuel Williams 47c0cab248
Add details of fiber pool and coroutine selection to NEWS. 2019-07-18 20:54:54 +12:00
aycabta de0f192444 Add features of IRB to NEWS 2019-07-15 16:25:50 +09:00
aycabta 574e8a6812 Add Reline section to NEWS 2019-07-15 15:49:59 +09:00
aycabta 3a1d3556e2 Fix a typo of Markdown of NEWS 2019-07-15 15:46:08 +09:00
Tanaka Akira 8f7884761e The default charset of text/* media type is UTF-8.
Thanks for the patch  gareth (Gareth Adams).  [Bug #15933]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

> When no explicit charset parameter is provided by the sender, media
> subtypes of the "text" type are defined to have a default charset
> value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
2019-07-15 09:36:52 +09:00
Kazuhiro NISHIYAMA 0df4a813ca
NEWS: RubyVM.resolve_feature_path moved [ci skip] 2019-07-14 20:33:41 +09:00
Kazuhiro NISHIYAMA 043e3d2cdc
[DOC] Add missing headings [ci skip] 2019-07-14 17:58:41 +09:00
Kazuhiro NISHIYAMA db64093f51
[DOC] Fix a typo [ci skip] 2019-07-14 17:56:38 +09:00
Tanaka Akira 5786df12f5 Describe about Pathname.glob. 2019-07-14 17:44:33 +09:00
Tanaka Akira 6bca4437de Describe warning of open-uri. 2019-07-14 17:22:13 +09:00
Kazuhiro NISHIYAMA 4f351111b8
NEWS: warning of flip-flop is reverted [ci skip] 2019-07-14 14:40:38 +09:00
Benoit Daloze 0a5463f764 Add $LOAD_PATH.resolve_feature_path in NEWS 2019-07-13 15:26:47 +02:00
Kazuhiro NISHIYAMA d3d903cb5f
[DOC] Fix typos [ci skip] 2019-07-01 00:48:11 +09:00
NARUSE, Yui 7f64a0b4db Add new encoding CESU-8 [Feature #15931] 2019-06-24 12:58:33 +09:00
Samuel Williams 096a45d3d2 Update NEWS.
- Add note regarding IA64 removal.
- Add note about Thread allocation performance improvements.
2019-06-24 01:28:23 +12:00
Nobuyoshi Nakada ef524c13d9
NEWS: Module#constant_source_location
[Feature #10771]
2019-06-23 01:46:38 +09:00
Jean Boussier fb85a42860
Add an optional `inherit` argument to Module#autoload?
[Feature #15777]

Closes: https://github.com/ruby/ruby/pull/2173
2019-06-21 17:28:37 +09:00
Kazuhiro NISHIYAMA e6fbdde229
Fix a typo [ci skip] 2019-06-20 17:40:08 +09:00
Hiroshi SHIBATA 557bcd8774 Added racc entry to NEWS. 2019-06-20 16:11:03 +09:00
Jeremy Evans b9ef35e4c6 Implement Complex#<=>
Implement Complex#<=> so that it is usable as an argument when
calling <=> on objects of other classes (since #coerce will coerce
such numbers to Complex).  If the complex number has a zero imaginary
part, and the other argument is a real number (or complex number with
zero imaginary part), return -1, 0, or 1.  Otherwise, return nil,
indicating the objects are not comparable.

Fixes [Bug #15857]
2019-06-19 10:50:58 -07:00
Kazuhiro NISHIYAMA d780c36624
Pipeline operator is experimental [ci skip] 2019-06-14 17:30:12 +09:00
Nobuyoshi Nakada f169043d81
Add pipeline operator [Feature #15799] 2019-06-13 18:44:32 +09:00
Nobuyoshi Nakada e717d6faa8
IO#set_encoding_by_bom
* io.c (rb_io_set_encoding_by_bom): IO#set_encoding_by_bom to set
  the encoding by BOM if exists.  [Bug #15210]
2019-06-13 18:13:05 +09:00
Takashi Kokubun 6dc0541ed3
NEWS: Note about CGI.escapeHTML change [ci skip]
See https://github.com/ruby/ruby/pull/2226 for benchmark results.
2019-06-05 22:29:54 +09:00
Nobuyoshi Nakada 09c09eb0db
NEWS: move GC.compact
From "Implementation improvements" to "Core classes updates".
2019-06-02 00:42:57 +09:00
Nobuyoshi Nakada 3afae5b572
NEWS: markup class and method names 2019-06-02 00:42:11 +09:00
Nobuyoshi Nakada 1457ad1ea7
[DOC] JIS X 0301 has been updated
[ruby-dev:50790]
* https://www.meti.go.jp/press/2019/05/20190520006/20190520006.html
* https://www.meti.go.jp/press/2019/05/20190520006/20190520006-2.pdf

[ci skip]
2019-05-31 19:20:59 +09:00
Jeremy Evans 1cd93f1cdf Allow DelegateClass() to module_eval given block
Methods that return classes often module_eval the given block
(e.g. Class.new and Struct.new).  This allows DelegateClass to
work similarly.  This makes it easier to use DelegateClass
directly without subclassing, so as not to create an unnecessary
subclass.

Implements [Feature #15842]
2019-05-30 18:34:45 -07:00
Jeremy Evans 39eadca76b Add FrozenError#receiver
Similar to NameError#receiver, this returns the object on which
the modification was attempted.  This is useful as it can pinpoint
exactly what is frozen.  In many cases when a FrozenError is
raised, you cannot determine from the context which object is
frozen that you attempted to modify.

Users of the current rb_error_frozen C function will have to switch
to using rb_error_frozen_object or the new rb_frozen_error_raise
in order to set the receiver of the FrozenError.

To allow the receiver to be set from Ruby, support an optional
second argument to FrozenError#initialize.

Implements [Feature #15751]
2019-05-26 11:09:21 -07:00
Takashi Kokubun b83119be9e
Incremental syntax highlight for IRB source lines
Closes: https://github.com/ruby/ruby/pull/2202
2019-05-24 23:54:52 -07:00
Nobuyoshi Nakada e72769ef81
Enumerable#filter_map in NEWS 2019-05-23 23:24:22 +09:00
Nobuyoshi Nakada ccb1652929
New Time methods in NEWS 2019-05-23 22:47:55 +09:00
Marcus Stollsteimer 8bf3040e30 Fix grammar 2019-05-04 15:02:20 +02:00
Nobuyoshi Nakada 330b376133
parse.y: fix here-doc identifier with newline
* parse.y (heredoc_identifier): quoted here-document identifier
  must end within the same line.

  the only corner case that here-document identifier can contain a
  newline is that the closing qoute is placed at the beginning of
  the next line, and has been warned since 2.4.

  ```ruby
  <<"EOS
  " # warning: here document identifier ends with a newline
  EOS
  ```
2019-04-29 12:49:59 +09:00
Nobuyoshi Nakada 6033423d68
NEWS: Moved "Integer#[] with range" to "Core classes updates" 2019-04-29 10:11:44 +09:00
Yusuke Endoh 50cbb21ba5 Add "Integer#[] with range" to NEWS 2019-04-29 01:17:27 +09:00
Kazuki Tsujimoto be8cf0d4f6
Update NEWS for pattern matching [ci skip] 2019-04-27 12:16:28 +09:00
Takashi Kokubun baad9e8a1c
NEWS: Note about $TERM requirement [ci skip] 2019-04-27 12:08:49 +09:00
Takashi Kokubun 2422316aea
NEWS: Credit goes to Pry [ci skip]
We must note this feature is heavily inspired by Pry.
2019-04-26 01:18:39 +09:00
Takashi Kokubun e64bab5f77
Add NEWS entry about IRB syntax highlight [ci skip]
Details: https://github.com/ruby/ruby/pull/2150

Note that this introduction is discussed with @aycabta who is allowed to
make some changes to IRB by the IRB maintainer, keiju.
2019-04-26 00:53:38 +09:00
Kazuhiro NISHIYAMA 790f6709ae
Mention warning of `$,`
see [r67606](3ee0648dc7)
2019-04-25 23:46:47 +09:00
Hiroshi SHIBATA 14dd8d6b37
Added cgit url. 2019-04-23 22:26:40 +09:00
Takashi Kokubun 5da52d1210
Migrate RUBY_VERSION/RUBY_DESCRIPTION to Git
from Subversion.

This behavior is tentative and not discussed well. The point of
discussion will be just the length of commit hash, and I thought we
should include this kind of change in 2.7.0-preview1 release even before
the length is fixed yet.

Let's discuss that afterwards and fix it later as needed. Naruse
suggested that length=10 is very unlikely to cause conflict, and thus
it's used by email notification and rubyci now. This behavior is in
favor of that for now.
2019-04-22 21:27:34 +09:00
kazu fdd3091274 Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 15:04:06 +00:00
tenderlove 91793b8967 Add `GC.compact` again.
🙏

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-20 01:19:47 +00:00
nobu 4d1f86a1ff string.c: warn non-nil $;
* string.c (rb_str_split_m): warn use of non-nil $;.

* string.c (rb_fs_setter): warn when set to non-nil value.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-18 09:34:40 +00:00
hsbt 286f0b8ae3 Added rubygems and bundler entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-17 13:20:02 +00:00
tenderlove 744e5df715 Reverting compaction for now
For some reason symbols (or classes) are being overridden in trunk

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-17 09:41:41 +00:00
k0kubun f399134e8f NEWS: note about recent changes around JIT [ci skip]
This diff is backported from the upcoming preview release note.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-17 09:24:48 +00:00
ktsj 9738f96fcf Introduce pattern matching [EXPERIMENTAL]
[ruby-core:87945] [Feature #14912]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-17 06:48:03 +00:00