aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* date_parse.c: refactornobu2016-10-011-110/+59
| | | | | | | * ext/date/date_parse.c (date_zone_to_diff): refactor without allocating strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-10-01svn2016-09-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() setsusa2016-09-302-1/+6
| | | | | | | errno internally, then should not set it here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_flip.rb: addnobu2016-09-301-0/+5
| | | | | | * test/ruby/test_flip.rb (test_flip_flop): basic test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/http.rb: Documentation and code style imrovements.hsbt2016-09-303-16/+30
| | | | | | | * test/uri/test_http.rb: Added test for coverage. [fix GH-1427][ruby-core:77255][Misc #12756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/syntax/control_expressions.rdoc: Add missing 'as'hsbt2016-09-302-2/+7
| | | | | | [ci skip][fix GH-1448] Patch by @jsyeo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-09-30svn2016-09-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_range.rb: all assertionsnobu2016-09-301-49/+60
| | | | | | | * test/ruby/test_range.rb (test_range_bsearch_for_floats): test all assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/store.rb (YAML::Store#dump): use table argument instead of @table ↵kazu2016-09-292-1/+6
| | | | | | directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update call-seq of YAML::Store#initialize [ci skip]kazu2016-09-291-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2016-09-290-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix YAML::Storekazu2016-09-293-9/+207
| | | | | | | | | | | | | | | | | * lib/yaml/store.rb (YAML::Store#initialize): Fix arguments. [ruby-dev:49821] [Bug #12800] * test/yaml/test_store.rb: Add tests from test/test_pstore.rb. * test/yaml/test_store.rb (YAMLStoreTest#test_with_options): Add options test. * lib/yaml/store.rb (YAML::Store#dump): Revert to to_yaml. * lib/yaml/store.rb (YAML::Store#empty_marshal_data): Use to_yaml with options. * lib/yaml/store.rb (YAML::Store#empty_marshal_checksum): Use CHECKSUM_ALGO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* checksum algorithm is not MD5 only [ci skip]kazu2016-09-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: deferred_dots_gennobu2016-09-291-8/+17
| | | | | | * parse.y (deferred_dots_gen): extract for tDOT2 and tDOT3. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* appveyor.yml: use mirror for zlibnobu2016-09-291-1/+1
| | | | | | | * appveyor.yml (install): try sourceforge.net mirror to download zlib source. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_sync.c: Document exception typesnobu2016-09-292-5/+11
| | | | | | | | * thread_sync.c (rb_queue_pop, rb_szqueue_push, rb_szqueue_pop): Document exception types, ThreadError, raised by Queue and SizedQueue. [Fix GH-1451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-09-29svn2016-09-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_sync.c: Remove confusing commentsnobu2016-09-292-9/+15
| | | | | | | | * thread_sync.c (Init_thread_sync): Remove confusing doc comments, which are picked up by rdoc unexpectedly, from Queue and SizedQueue. [Fix GH-1450] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* PStore: select checksum algorithmnobu2016-09-282-2/+13
| | | | | | | | * lib/pstore.rb (PStore::CHECKSUM_ALGO): find available hashing algorithm for checksum. MD5 is not available in FIPS mode. [Feature #6943] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_pstore.rb: use queuesnobu2016-09-281-8/+13
| | | | | | | * test/test_pstore.rb (PStoreTest#test_thread_safe): handshake by queues, and reduce sleeping time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: minlnobu2016-09-281-9/+11
| | | | | | * ext/strscan/strscan.c (minl): extract to reduce repeated S_LEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: use S_RESTLENnobu2016-09-281-6/+6
| | | | | | | * ext/strscan/strscan.c (strscan_getch, strscan_peek), (strscan_rest_size, inspect2): use S_RESTLEN consistently. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update Signal.signame doc [ci-skip]nobu2016-09-282-2/+8
| | | | | | | * signal.c (sig_signame): [DOC] Add documentation in the case of return nil. [Fix GH-1449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml: delete comments. They were outdated. [ci skip]shyouhei2016-09-282-10/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rubygems 2.6.7nobu2016-09-2824-431/+153
| | | | | | | * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems to 2.6.7, not the master, with r56225. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rubygems 2.6.7nobu2016-09-2831-165/+515
| | | | | | | | * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems to 2.6.7. Release note of 2.6.7: https://github.com/rubygems/rubygems/commit/60f35bd1d2359fc30301d2d4cd72bc6833e8d12a git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix typo of r56271. [ci skip]nagachika2016-09-272-3/+3
| | | | | | * NEWS: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-09-28svn2016-09-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* error.c: check argument of Warning.warnnobu2016-09-273-0/+19
| | | | | | | * error.c (rb_warning_s_warn): the argument must be an ASCII-compatible string. [ruby-core:77430] [Bug #12793] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: fix up r56198nobu2016-09-273-4/+29
| | | | | | | | | | | * parse.y (symbol, dsym, parser_set_number_literal): set state to ENDARG, so that `do` after a literal should be `do_block` and bound to the outer method. [ruby-core:72482] [Bug #11873] * parse.y (parse_ident): revert r56198. * parse.y (warn_balanced): the state of symbol and numeric literals is now EXPR_ENDARG, do not exclude it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_syntax.rb: more test_warn_balancednobu2016-09-271-2/+8
| | | | | | | * test/ruby/test_syntax.rb (test_warn_balanced): more assertions for a symbol literal and a local variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: news about Warning.warning. [ci skip]shyouhei2016-09-272-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_ripper.rb: fix squiggly heredoc identifierkazu2016-09-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c: This makes all warnings raised call Warning.warn, whichshyouhei2016-09-273-8/+63
| | | | | | | | | | by default does the same thing it does currently (rb_write_error_str). You can override Warning.warn to change the behavior. [ruby-core:75016] [Feature #12299] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* iseq.c: syntax error in compile_filenobu2016-09-273-2/+27
| | | | | | | * iseq.c (iseqw_s_compile_file): deal with syntax error as well as compile, and should not abort when rescued. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* assertions.rb: success optionnobu2016-09-271-1/+11
| | | | | | | * test/lib/test/unit/assertions.rb (assert_in_out_err): add success option to check the exit status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* iseq.c: kwarg to compilenobu2016-09-271-2/+16
| | | | | | | * iseq.c (iseqw_s_compile, iseqw_s_compile_file): allow keyword arguments as the options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* iseq.c: file name encodingnobu2016-09-271-3/+1
| | | | | | * iseq.c (iseqw_s_compile): keep the encoding of file name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: remove extra linenobu2016-09-271-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo [ci skip]kazu2016-09-271-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb (parse): don't allow , as a separator. [Bug #12791]naruse2016-09-276-4/+30
| | | | | | * lib/webrick/cookie.rb (parse): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-09-27svn2016-09-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_ripper.rb: add a test for dedent_string.headius2016-09-261-0/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove Ns before puctuationknu2016-09-265-10/+10
| | | | | | | * man/erb.1, man/irb.1, man/ri.1, man/ruby.1: Remove Ns before puctuation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_exception.rb: another assertionnobu2016-09-261-1/+2
| | | | | | | * test/ruby/test_exception.rb (test_throw_false): test the thrown tag. [Bug #12743] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stringio.c: fix signed integer overflowrhe2016-09-263-6/+30
| | | | | | | | | | | | | * ext/stringio/stringio.c (strio_seek): Avoid signed integer overflow. It's not harmful in practice here, but is still undefined behavior. * ext/stringio/stringio.c (strio_extend): Check that the new length does not exceed LONG_MAX. This fixes the invalid write on the overflow. * test/stringio/test_stringio.rb (test_write_integer_overflow): Add a test case for the above fix in strio_extend(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval_intern.h: make TH_PUSH_TAG() initialize rb_vm_tag::tag with Qundefrhe2016-09-263-1/+21
| | | | | | | | | | | | | * eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj) searches a tag with rb_vm_tag::tag == obj, throw(false) can accidentally find an unrelated tag which is not created by Kernel#catch. [ruby-core:77229] [Bug #12743] * test/ruby/test_exception.rb (test_throw_false): Add a test case for this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb: provide default basename parametersonots2016-09-263-1/+16
| | | | | | | for Tempfile.create. [Feature #11965] Patch by Yuki Kurihara * test/test_tempfile.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fast path of lstrip_offsetnobu2016-09-262-5/+17
| | | | | | | | * string.c (lstrip_offset): add a fast path in the case of single byte optimizable strings, as well as rstrip_offset. [ruby-core:77392] [Feature #12788] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* minitest-5.9.1nobu2016-09-262-0/+5
| | | | | | * gems/bundled_gems: update to minitest-5.9.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e