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

769 Коммитов

Автор SHA1 Сообщение Дата
kazu ce35f428f2 Add NEWS for Ruby 2.5.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-26 12:00:02 +00:00
kazu 948762808e Move from NEWS to doc/NEWS-2.4.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-26 12:00:01 +00:00
nobu 342f10b9b3 compile.c: toplevel return
* compile.c (iseq_compile_each): stop execution of the current source
  by toplevel return.  [ruby-core:36785] [Feature #4840]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-21 01:58:32 +00:00
mrkn 9f5a161d2e NEWS: Fix the default rounding mode
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-15 16:08:33 +00:00
hsbt def2a2cb3f Added entry of psych 2.2.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-15 11:00:41 +00:00
hsbt 910848f2a9 Update description of XMLRPC section.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-13 02:01:34 +00:00
kazu c45bf6621f NEWS: Add String#match? and Symbol#match? [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-12 13:12:08 +00:00
kazu 908edb0d8a NEWS: Use spaces instead of tab [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-12 13:12:06 +00:00
kazu aa91e864cc NEWS: Sort entries [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-12 13:12:05 +00:00
naruse 2873edeafb Merge Onigmo 6.0.0
* https://github.com/k-takata/Onigmo/blob/Onigmo-6.0.0/HISTORY
* fix for ruby 2.4: https://github.com/k-takata/Onigmo/pull/78
* suppress warning: https://github.com/k-takata/Onigmo/pull/79
* include/ruby/oniguruma.h: include onigmo.h.
* template/encdb.h.tmpl: ignore duplicated definition of EUC-CN in
  enc/euc_kr.c. It is defined in enc/gb2313.c with CRuby macro.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-10 17:47:04 +00:00
nobu 2dd993072e Fix grammer [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-10 06:25:26 +00:00
naruse 583b6dc33c Zlib.gzip and Zlib.gunzip [Feature #13020]
Encode and Decode gzip data without creating files.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-09 22:45:39 +00:00
kou b23eac6958 rexml: REXML::Element#[] accepts String or Symbol as attribute name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-06 13:57:56 +00:00
kazu 956aa0102e NEWS: mention chomp option of String and StringIO
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-05 12:35:02 +00:00
naruse 306f43acfe String#unpack1 [Feature #12752]
Returns the first value of String#unpack.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-01 14:18:32 +00:00
usa b6e137e93c Remove `offset:` from `Array#pack`
* pack.c (pack_pack): can use `@` instead of `offset:`.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-01 13:20:47 +00:00
usa 0dd9c302d9 Supports `buffer` and `offset` in `Array#pack`
* pack.c (pack_pack): Supports `buffer` and `offset` in `Array#pack`.
  [Feature #12754] [ruby-dev:49798]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-12-01 13:08:20 +00:00
naruse c11e648799 Regexp supports Unicoe 9.0.0's \X
* meta character \X matches Unicode 9.0.0 characters with some workarounds
  for UTR #51 Unicode Emoji, Version 4.0 emoji zwj sequences.
  [Feature #12831] [ruby-core:77586]

The term "character" can have many meanings bytes, codepoints, combined
characters, and so on. "grapheme cluster" is highest one of such words,
which means user-perceived characters.
Unicode Standard Annex #29 UNICODE TEXT SEGMENTATION specifies how to
handle grapheme clusters (extended grapheme cluster).
But some specs aren't updated to current situation because Unicode Emoji
is rapidly extended without well definition.
It breaks the precondition of UTR#29 "Grapheme cluster boundaries can be
easily tested by looking at immediately adjacent characters". (the
sentence will be removed in the next version)
Though some of its detail are described in Unicode Technical Report #51
UNICODE EMOJI but it is not merged into UTR#29 yet.

http://unicode.org/reports/tr29/
http://unicode.org/reports/tr51/
http://unicode.org/Public/emoji/4.0/

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-30 17:29:19 +00:00
rhe aab0d67a1f openssl: import v2.0.0
Import Ruby/OpenSSL 2.0.0. The full commit history since 2.0.0 beta.2
(imported at r56098) can be found at:

  https://github.com/ruby/openssl/compare/v2.0.0.beta.2...v2.0.0

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-30 14:41:46 +00:00
kazu 7a480ae850 NEWS: Add String/Symbol#casecmp? [Feature #12786]
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-29 15:31:16 +00:00
nobu 8c08d2de53 NEWS: mention [Feature #12953] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-26 10:57:02 +00:00
shugo 94ca443a62 Add credit and PR/issue numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-24 01:03:07 +00:00
shugo e50266f299 Add a new optinal argument pathname to FTP#stat.
Based on the patch by soleboxy.
[Fix GH-1478] [ruby-core:78240] [Feature #12965]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-23 00:03:27 +00:00
shugo eb8c73adbc Support TLS and hash styles options for Net::FTP.new.
If the :ssl options is specified, the control connection is protected with
TLS in the manner described in RFC 4217.  Data connections are also
protected with TLS unless the :private_data_connection is set to false.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-19 02:29:23 +00:00
tadd 8d7c380216 * NEWS: Added entry for optimized Rational. [Feature #12484] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-18 15:31:05 +00:00
yui-knk 59b9f54fc2 * NEWS: Fix class name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-18 10:58:30 +00:00
kazu 465381dd32 Add a space [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-08 15:04:29 +00:00
kazu 8be027a30a Add ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-08 15:01:55 +00:00
kazu 9a23a4060a Add entry for Enumerator::Lazy#chunk_while
[ci skip][GH-1186]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 15:26:10 +00:00
kazu 36b4b44bdb fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 12:10:36 +00:00
hsbt 911f3d9503 Added Entry for Rubygems 2.6.8 update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 09:46:42 +00:00
naruse 4c5f4258aa Add NEWS about removing ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 05:53:42 +00:00
ko1 807f3f97b7 fix NEWS message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 01:03:04 +00:00
ko1 75775157ea Introduce table improvement by Vladimir Makarov <vmakarov@redhat.com>.
[Feature #12142]
	See header of st.c for improvment details.

	You can see all of code history here:
	<https://github.com/vnmakarov/ruby/tree/hash_tables_with_open_addressing>

	This improvement is discussed at
	<https://bugs.ruby-lang.org/issues/12142>
	with many people, especially with Yura Sokolov.

	* st.c: improve st_table.

	* include/ruby/st.h: ditto.

	* internal.h, numeric.c, hash.c (rb_dbl_long_hash): extract a function.

	* ext/-test-/st/foreach/foreach.c: catch up this change.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-07 00:45:00 +00:00
hsbt cf96cfe729 * NEWS: Added entry for RDoc 5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-06 12:36:52 +00:00
hsbt 670b180242 * NEWS: ordered entries and adjust styles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-06 12:36:47 +00:00
hsbt 9b09175d38 * NEWS: Added entry for [Feature #12160][ruby-core:74239]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-06 09:23:35 +00:00
hsbt 69dc53022b * NEWS: Added entry for r56624.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-06 09:18:30 +00:00
kazu 7ee5888490 add a ticket number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-06 03:29:22 +00:00
shugo 88243c5303 * lib/net/http.rb (Net::HTTP.post): new convenience method to send a POST request.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 14:39:06 +00:00
knu 2d8841791f IPAddr#== and IPAddr#<=> no longer raise an exception if coercion fails
* lib/ipaddr.rb (IPAddr#==): If coercion fails, return false
  instead of passing through the exception. [ruby-core:77451]
  [Bug #12799]

* lib/ipaddr.rb (IPAddr#<=>): If coercion fails, return nil
  instead of passing through the exception. [ruby-core:77451]
  [Bug #12799]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 13:53:38 +00:00
ktsj 9cbd6ee097 * vm_trace.c (tracepoint_attr_callee_id, rb_tracearg_callee_id):
add TracePoint#callee_id. [ruby-core:77241] [Feature #12747]

* cont.c, eval.c, gc.c, include/ruby/intern.h, insns.def, thread.c,
  vm.c, vm_backtrace.c, vm_core.h, vm_eval.c, vm_insnhelper.c, vm_trace.c: ditto.

* test/ruby/test_settracefunc.rb: tests for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 13:15:27 +00:00
nobu dfe91fcd08 numeric.c: round to nearest even
* numeric.c (flo_round, int_round): support round-to-nearest-even
  semantics of IEEE 754 to match sprintf behavior, and add `half:`
  optional keyword argument for the old behavior.
  [ruby-core:76273] [Bug #12548]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 09:49:39 +00:00
knu 76977611dd Add Set#compare_by_identity and Set#compare_by_identity?
* lib/set.rb (Set#compare_by_identity, Set#compare_by_identity?):
  New methods. [Feature #12210]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 09:23:14 +00:00
nobu a2144bd72a chomp option
* io.c (extract_getline_opts): extract chomp option.
  [Feature #12553]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 07:28:09 +00:00
knu 19c749f61c Document the change in Shellwords.shellwords
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 05:40:51 +00:00
shugo 7a78133a41 Add NEWS about r56213.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 03:31:45 +00:00
akr 9373c5efb9 Pathname#empty? implemented.
* ext/pathname/pathname.c (Pathname#empty?): New method.
  [ruby-core:76404] [Feature#12596] Proposed by John Backus.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 03:29:08 +00:00
naruse 19e59705f8 Add NEWS about r56200
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-11-05 03:13:16 +00:00
kazu 54354c0613 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-10-26 12:26:51 +00:00