aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * io.c: Fixed equivalent ruby code with core implemention.hsbt2016-10-052-0/+6
| | | | | | [fix GH-1429][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb: Added missing spaces and Removed needless spaces.hsbt2016-10-052-7/+12
| | | | | | [fix GH-1454][ci skip] Patch by @bogdanvlviv git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c: Make Enumerable#chunk with no block returnmarcandre2016-10-044-2/+15
| | | | | | an Enumerator [#2172] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-10-05svn2016-10-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (ST2FIX): new macro to convert st_index_t to Fixnum.usa2016-10-049-15/+33
| | | | | | | | | | | | | | | | | | | | | | | a hash value of Object might be Bignum, but it causes many troubles expecially the Object is used as a key of a hash. so I've gave up to do so. * array.c (rb_ary_hash): use above macro. * bignum.c (rb_big_hash): ditto. * hash.c (rb_obj_hash, rb_hash_hash): ditto. * numeric.c (rb_dbl_hash): ditto. * proc.c (proc_hash): ditto. * re.c (rb_reg_hash, match_hash): ditto. * string.c (rb_str_hash_m): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo [ci skip]kazu2016-10-041-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos [ci skip]kazu2016-10-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: update Array#dig docnobu2016-10-042-1/+6
| | | | | | | * array.c (rb_ary_dig): [DOC] update an example of error message by Array#dig, because of Integer Unification. [Fix GH-1455] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bigdecimal.c: more precisionnobu2016-10-043-1/+12
| | | | | | | * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): need more room for precision to round. [ruby-core:77475] [Bug #12805] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bigdecimal.c: fix debug printnobu2016-10-041-28/+22
| | | | | | | | | | * ext/bigdecimal/bigdecimal.c (VpFree, VpInit): fix debug print format. * ext/bigdecimal/bigdecimal.c (VPrint): fix argument description, and embed NaN, Infinity, and zero in the format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-10-04svn2016-10-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regcomp.c (onig_print_compiled_byte_code): make the shown addressnaruse2016-10-032-1/+6
| | | | | | look relative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regexec.c (OPCODE_EXEC_HOOK): op is p-1 because p is alreadynaruse2016-10-032-9/+23
| | | | | | | | | | | incremented. * regexec.c (OPCODE_EXEC_HOOK): use the exact end address. * regexec.c (match_at): don't call OPCODE_EXEC_HOOK in CASE() when it comes from goto fail. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use rb_locale_str_newnobu2016-10-031-1/+1
| | | | | | | * ext/readline/readline.c (readline_char_is_quoted): use rb_locale_str_new with the length. [Feature #12659] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: mention Readline.quoting_detection_proc{,=}. [ci skip]kazu2016-10-032-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* [DOC] Fix default value of shift_age [ci skip]kazu2016-10-032-1/+5
| | | | | | | `LogDevice#initialize` treats shift_age: nil as 7, but Logger#initialize has the default value of shift_age as 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add prefix to FIX2LONG in include/ruby/ruby.hkazu2016-10-031-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rl_char_is_quoted_pnobu2016-10-034-0/+180
| | | | | | | | | * ext/readline/readline.c (readline_s_set_quoting_detection_proc): support rl_char_is_quoted_p. [Feature #12659] * ext/readline/readline.c (readline_s_get_quoting_detection_proc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-10-03svn2016-10-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* readline.c: mustbe_callablenobu2016-10-031-8/+15
| | | | | | | * ext/readline/readline.c (mustbe_callable): extract to check a given argument to be callable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* numeric.c: adjust typenobu2016-10-021-1/+1
| | | | | | | * numeric.c (rb_fix2str): cast to a pointer to adjust argument type for the format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.h: add prefixnobu2016-10-012-13/+20
| | | | | | | * include/ruby/ruby.h (RB_INT2FIX, RB_LONG2FIX): prefix RB to global symbols to get rid of name conflicts with other headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: negative hashnobu2016-10-012-2/+6
| | | | | | * string.c (rb_str_hash_m): hash values may be negative. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_hash_m): st_index_t is not guaranteed as the sameusa2016-10-012-1/+13
| | | | | | | | size with int, and of course also not guaranteed the value can be Fixnum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-10-02svn2016-10-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_fix2str): detect unnormalized Fixnum value.usa2016-10-012-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_parse.c (date_zone_to_diff): it's nonsence and reallyusa2016-10-012-1/+7
| | | | | | | | harm that to use unary minus operator with unsigned value. get rid of test failures introduced at r56312. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: literal rangenobu2016-10-013-55/+21
| | | | | | | * compile.c (iseq_compile_each): move numeric literal range optimization from fixup_nodes() in parse.y. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: optimize flip-flopnobu2016-10-013-41/+49
| | | | | | | | * compile.c (compile_flip_flop): simplify generated code. * compile.c (compile_branch_condition): flip-flop can appear only in coditional expressions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* date_parse.c: str_end_withnobu2016-10-011-3/+10
| | | | | | | * ext/date/date_parse.c (str_end_with): extract to tell if a string ends with the other string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* zonetab.h: use strncmpnobu2016-10-013-6/+3
| | | | | | * ext/date/zonetab.h (zonetab): use strncmp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 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