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

1181 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 617fa3049a
NEWS: fixed markups and formatting [ci skip]
* got rid of inadvertent label lists.
* marked up resolve_feature_path method names.
* fixed indentation of UnboundMethod#bind_call and marked up as
  RDoc.
2019-09-27 00:48:48 +09:00
Jean Boussier 5b9d646944 Fix Module#name news and add a test 2019-09-26 23:29:49 +09:00
git 1070456bb8 * remove trailing spaces. [ci skip] 2019-09-26 20:25:42 +09:00
Jean Boussier 9d0866c7d7 [EXPERIMENTAL] Make Module#name return a frozen String
* Always the same frozen String for a given Module or Class.
    * Avoids extra allocations whenever calling Module#name.
    * See [Feature #16150]
2019-09-26 13:25:23 +02:00
Benoit Daloze 6ffc045a81 [EXPERIMENTAL] Make Symbol#to_s return a frozen String
* Always the same frozen String for a given Symbol.
* Avoids extra allocations whenever calling Symbol#to_s.
* See [Feature #16150]
2019-09-26 10:23:02 +02:00
Nobuyoshi Nakada 2683171994
[DOC] DOT is not a part of a receiver [ci skip]
[Feature #11297] [Feature #16123]
2019-09-20 16:43:39 +09:00
Hiroshi SHIBATA 9d25c652a9
Removed ThreadsWait from the ruby repository 2019-09-20 14:21:04 +09:00
Hiroshi SHIBATA 37c0839425
Removed Synchronizer from the ruby repository. 2019-09-20 14:06:22 +09:00
Hiroshi SHIBATA 3b56a0934f
Removed Shell from the ruby repository. 2019-09-20 12:56:18 +09:00
Hiroshi SHIBATA 67a6662032
Removed Scanf from the ruby repository. 2019-09-20 12:43:11 +09:00
Hiroshi SHIBATA a3b8501614
Removed CMath from the ruby repository. 2019-09-20 12:31:37 +09:00
Nobuyoshi Nakada b80df6e8e0
Update NEWS and documents [ci skip]
[Feature #11297] [Feature #16123]
2019-09-20 02:40:59 +09:00
NARUSE, Yui 5208c431be Separate Time#inspect from to_s and show subsec [Feature #15958] 2019-09-19 20:20:15 +09:00
Nobuyoshi Nakada 3a3f48fb8f
Comment lines can be placed between fluent dot now 2019-09-15 23:12:24 +09:00
Samuel Williams 9699a5c5bc
Update news regarding `Fiber#raise`. 2019-09-14 22:43:51 +12:00
Akinori MUSHA 1d4bd229b8
Implement Enumerator::Lazy#eager [Feature #15901] 2019-09-04 16:16:46 +09:00
Nobuyoshi Nakada 6f206b8ec6
Prohibit nul-separated glob pattern [Feature #14643] (#2419) 2019-09-02 15:08:53 +09:00
Shugo Maeda 633ae3278e
Add Net::FTP#features and Net::FTP#option
Patch by darkphnx (Dan Wentworth) .  Thanks!
[Feature #15964]
2019-09-02 14:43:51 +09:00
Nobuyoshi Nakada e9b271d1e2
Get rid of interpreting BTS references as label-list [ci skip] 2019-09-02 14:38:26 +09:00
Takashi Kokubun e13c0bb820
Note about ANYARGS in NEWS
Since 50f5a0a8d6, some C++ extensions
needed fixes like https://github.com/eagletmt/faml/pull/49 to make their
build succeed.

Thus it's worth noting that C API declarations are changed.
2019-09-01 15:00:27 +09:00
Yusuke Endoh a1e588d1a7 NEWS: Hash-to-keywords automatic conversion is now warned
A follow up for 16c6984bb9..b5b3afadfa.  [Feature #14183]
2019-08-31 07:03:27 +09:00
Yusuke Endoh c9fc82983c lib/pp.rb: Use UnboundMethod#bind_call instead of .bind(obj).call(...)
Related to [Feature #15955].
2019-08-30 11:13:00 +09:00
Yusuke Endoh 83c6a1ef45 proc.c: Add UnboundMethod#bind_call
`umethod.bind_call(obj, ...)` is semantically equivalent to
`umethod.bind(obj).call(...)`.  This idiom is used in some libraries to
call a method that is overridden.  The added method does the same
without allocation of intermediate Method object.  [Feature #15955]

```
class Foo
  def add_1(x)
    x + 1
  end
end
class Bar < Foo
  def add_1(x) # override
    x + 2
  end
end

obj = Bar.new
p obj.add_1(1) #=> 3
p Foo.instance_method(:add_1).bind(obj).call(1) #=> 2
p Foo.instance_method(:add_1).bind_call(obj, 1) #=> 2
```
2019-08-30 11:13:00 +09:00
Nobuyoshi Nakada 79117d4a9b
NEWS: [Feature #16035] [ci skip] 2019-08-29 22:06:37 +09:00
Nobuyoshi Nakada 2ed68d0ff9
Revert "Add pipeline operator [Feature #15799]"
This reverts commits:
* d365fd5a02
* d780c36624
* aa7211836b
* 043f010c28
* bb4dd7c6af05c7821d572e2592ea3d0cc748d81f
* 043f010c28
* f169043d81

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645
2019-08-29 15:27:59 +09:00
Takashi Kokubun f9149c5596
Minor wording fix in NEWS [ci skip]
pushing a trivial commit for testing post-receive hook
2019-08-12 19:13:38 +09:00
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