Permalink
Switch branches/tags
Nothing to show
Commits on Nov 5, 2012
  1. * thread_pthread.c (rb_reserved_fd_p): fix typo in macro check

    kosaki committed Nov 5, 2012
      that prevented the ifdef ever being true.
      [Bug #7281] [ruby-core:48940]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. Fix compatibility of cached expanded load path

    shirosaki committed Nov 5, 2012
    * file.c (rb_get_path_check_to_string): extract from
      rb_get_path_check(). We change the spec not to call to_path of
      String object.
    
    * file.c (rb_get_path_check_convert): extract from rb_get_path_check().
    
    * file.c (rb_get_path_check): follow the above change.
    
    * file.c (rb_file_expand_path_fast): remove check_expand_path_args().
      Instead we call it in load.c.
    
    * file.c (rb_find_file_ext_safe): use rb_get_expanded_load_path() to
      reduce expand cost.
    
    * file.c (rb_find_file_safe): ditto.
    
    * internal.h (rb_get_expanded_load_path): add a declaration.
    
    * internal.h (rb_get_path_check_to_string, rb_get_path_check_convert):
      add declarations.
    
    * load.c (rb_construct_expanded_load_path): fix for compatibility.
      Same checks in rb_get_path_check() are added. We don't replace
      $LOAD_PATH and ensure that String object of $LOAD_PATH are frozen.
      We don't freeze non String object and expand it every times. We add
      arguments for expanding load path partially and checking if load path
      have relative paths or non String objects.
    
    * load.c (load_path_getcwd): get current working directory for checking
      if it's changed when getting load path.
    
    * load.c (rb_get_expanded_load_path): fix for rebuilding cache properly.
      We check if current working directory is changed and rebuild expanded
      load path cache. We expand paths which start with ~ (User HOME) and
      non String objects every times for compatibility. We make this
      accessible from other source files.
    
    * load.c (rb_feature_provided): call rb_get_path() since we changed
      rb_file_expand_path_fast() not to call it.
    
    * load.c (Init_load): initialize vm->load_path_check_cache.
    
    * vm.c (rb_vm_mark): mark vm->load_path_check_cache for GC.
    
    * vm_core.h (rb_vm_struct): add vm->load_path_check_cache to store data
      to check load path cache validity.
    
    * test/ruby/test_require.rb (TestRequire): add tests for require
      compatibility related to cached expanded load path.
      [ruby-core:47970] [Bug #7158]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. Cache the expanded load path

    shirosaki committed Nov 5, 2012
    * load.c (rb_get_expanded_load_path): cache the expanded load
      path.  This saves 4KB of allocation and some stats for every
      element of the load path (so nearly a MB in my Rails app)
      on every require.
    
    * load.c (rb_construct_expanded_load_path): ensure that $LOAD_PATH
      entries are frozen strings.  The user must mutate $LOAD_PATH
      itself rather than its individual entries.
    
    * vm_core.h (rb_vm_struct): add fields.
    
    * vm.c (rb_vm_mark): mark new fields.
    
    * ruby.c (process_options): modify $LOAD_PATH directly rather than
      its elements.
      Patch by Greg Price.
      [ruby-core:47970] [Bug #7158]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. Index $LOADED_FEATURES so that require isn't so slow

    shirosaki committed Nov 5, 2012
    * load.c (rb_feature_p, rb_provide_feature): index $LOADED_FEATURES
      so that require isn't so slow.
    
    * load.c (rb_provide_feature, get_loaded_features_index): ensure
      that $LOADED_FEATURES entries are frozen strings.  The user
      must mutate $LOADED_FEATURES itself rather than its individual
      entries.
    
    * load.c (reset_loaded_features_snapshot): add a new function to reset
      vm->loaded_features_snapshot.
    
    * load.c (get_loaded_features_index_raw): add a new function to get
      the loaded-features index.
    
    * load.c (features_index_add_single): add a new function to add to the
      loaded-features index a single feature.
    
    * load.c (features_index_add): add a new function to add to the
      loaded-features index all the required entries for `feature`.
    
    * vm_core.h (rb_vm_struct): add fields.
    
    * vm.c (rb_vm_mark): mark new fields.
    
    * include/ruby/intern.h (rb_hash_clear): declare function.
    
    * hash.c (rb_hash_clear): make function non-static.
      Patch by Greg Price.
      [ruby-core:47970] [Bug #7158]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. * 2012-11-06

    matzbot committed Nov 5, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. Expose whether two arrays are shared

    shirosaki committed Nov 5, 2012
    * array.c (rb_ary_shared_with_p): new function.
      Expose whether two arrays are shared (read-only, C only).
    
    * include/ruby/intern.h (rb_ary_shared_with_p): declare.
      Patch by Greg Price.
      [ruby-core:47970] [Bug #7158]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. Clarify and explain loaded_feature_path and rb_feature_p

    shirosaki committed Nov 5, 2012
    * load.c (loaded_feature_path): clarify and briefly comment
      function.  These clarifications have no effect on the behavior
      of the function.
    
    * load.c (rb_feature_p): explain the search loop.  Especially
      useful because the logic is complicated as described in the
      second paragraph.
      Patch by Greg Price.
      [ruby-core:47970] [Bug #7158]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  8. * ext/dl/win32/lib/Win32API.rb (Win32API#call): use 64bit pointer for…

    shirosaki committed Nov 5, 2012
    … x64
    
      Windows. This would fix
      TestSecureRandom#test_s_random_bytes_without_openssl error.
      [ruby-core:47451] [Bug #6990]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  9. * cygwin/GNUmakefile.in (uncommon.mk): link *.res.o.

    shirosaki committed Nov 5, 2012
      EXTOBJES is defined in uncommon.mk. *.res.o setting should be below
      uncommon.mk.
      [ruby-core:48858] [Bug #7277]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  10. * thread_pthread.c (native_thread_init, native_thread_destroy):

    kosaki committed Nov 5, 2012
      removed HAVE_PTHREAD_CONDATTR_INIT check because this silly
      #ifdef makes use-uninitialized-var issue and (2) native_cond_initialize()
      already have a right platform and caller don't need any additional care.
      [Bug #6825]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  11. * lib/cgi/core.rb: check if Tempfile is defined before use it.

    nurse committed Nov 5, 2012
    * lib/cgi/core.rb: remove tempfiles only if tempfiles exist
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  12. * lib/uri/http.rb (URI::HTTP.build): Fix example

    zzak committed Nov 5, 2012
      Patch by Carina C. Zona
      [Fixes #209 Github]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  13. Mon Nov 5 09:55:05 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>

    xibbar
    xibbar committed Nov 5, 2012
    * lib/cgi/core.rb: remove tempfile more early.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  14. Mon Nov 5 09:50:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>

    xibbar
    xibbar committed Nov 5, 2012
    * NEWS: add a news about html5 tagmaker
      and rename CGI#header to CGI#http_header
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 4, 2012
  1. * 2012-11-05

    matzbot committed Nov 4, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. Don't redefine methods

    nurse committed Nov 4, 2012
    If HTML5 element methods are already defined, don't redefine them.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. * ChangeLog: Remove garbages.

    kou committed Nov 4, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. Sun Nov 4 20:41:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>

    xibbar
    xibbar committed Nov 4, 2012
      * lib/cgi.rb, lib/cgi/*/rb: rename CGI#header to
        CGI#http_header,
        add  and update HTML5 tag generater.  [Bug #7110]
        Patch provided by Marcus Stollsteimer, thank you !
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. * lib/fileutils.rb (module FileUtils): repatch [ruby-core:39622]

    mmasaki committed Nov 4, 2012
      [Feature #5337]. improve performance of FileUtils.compare_stream.
      [ruby-core:47545] [Feature #7028]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. * array.c (recursive_equal): fix to return true when self and other

    mmasaki committed Nov 4, 2012
      are resized to same size and the current index become out of
      range.
    
    * test/ruby/test_array.rb: add a test for the above.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. dir.c: FNM_EXTGLOB

    nobu committed Nov 4, 2012
    * dir.c (file_s_fnmatch): match with expanding braces if FNM_EXTGLOB
      is set.  [ruby-core:40037] [Feature #5422]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 3, 2012
  1. * 2012-11-04

    matzbot committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. * ChangeLog: fix ML link for r37444 and r37447.

    nagachika committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. * complex.c: modified doc.

    tadf
    tadf committed Nov 3, 2012
    	* rational.c: ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. * ext/date/date_core.c: modified doc.

    tadf
    tadf committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. * vm.c (rb_vm_rewrite_ep_in_errinfo, vm_rewrite_ep_in_errinfo):

    k-tsj committed Nov 3, 2012
      merge code and remove `rb_vm_rewrite_ep_in_errinfo'.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. * vm.c, proc.c: avoid unnecessary `rb_vm_rewrite_ep_in_errinfo'

    k-tsj committed Nov 3, 2012
      calls.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  7. * ChangeLog: fix.

    k-tsj committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  8. * bin/testrb: Use only Test::Unit::AutoRunner in test-unit gem

    kou committed Nov 3, 2012
      compatible API to be available by both test/unit bundled in Ruby
      and test-unit gem.
    * lib/test/unit.rb (Test::Unit::AutoRunner): Move codes from testrb.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  9. * ext/date/date_parse.c (parse_eu): should capture apostrophe too.

    tadf
    tadf committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  10. * ext/date/date_parse.c (date__parse): revised the tight parser.

    tadf
    tadf committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  11. * lib/rexml/xmldecl.rb (REXML::XMLDecl#content): Add missing \A

    kou committed Nov 3, 2012
      and \z.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  12. * lib/rexml/output.rb (REXML::Output#initialize): Use normalized

    kou committed Nov 3, 2012
      encoding name.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  13. * lib/rexml/output.rb (REXML::Output): Don't output BOM in middle

    kou committed Nov 3, 2012
      of the output string.
    * test/rexml/test_document.rb: Add a test for the above change.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  14. * NEWS: Add an item about REXML::Document#write.

    kou committed Nov 3, 2012
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e