1. 15 6月, 2020 17 次提交
  2. 14 6月, 2020 11 次提交
  3. 13 6月, 2020 8 次提交
  4. 12 6月, 2020 4 次提交
    • N
      Revert "[ruby/fileutils] Make verbose output go to stdout instead of stderr" · 510df47f
      Nobuyoshi Nakada 提交于
      This reverts commit 7cddb844,
      because the test of rake 13.0.1 is depending on the previous
      behavior.
      510df47f
    • N
      [ruby/fileutils] Fix #install with "X" mode option · cc9ca468
      Nobuyoshi Nakada 提交于
      `FileUtils#install` methed raises an unexpected `TypeError`, when
      called with `mode:` option which has `"X"`.
      
      ```
      $ ruby -rfileutils -e 'FileUtils.install("tmp/a", "tmp/b", mode: "o+X")'
      /opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `directory?': no implicit conversion of File::Stat into String (TypeError)
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:942:in `block (3 levels) in symbolic_modes_to_i'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each_char'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `each'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `inject'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:933:in `block (2 levels) in symbolic_modes_to_i'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `each_slice'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:931:in `block in symbolic_modes_to_i'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `each'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `inject'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:926:in `symbolic_modes_to_i'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:973:in `fu_mode'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:883:in `block in install'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1588:in `block in fu_each_src_dest'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1604:in `fu_each_src_dest0'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:1586:in `fu_each_src_dest'
      	from /opt/local/lib/ruby/2.7.0/fileutils.rb:877:in `install'
      	from -e:1:in `<main>'
      ```
      
      In spite of that `symbolic_modes_to_i` considers the `File::Stat`
      `path` case at the beginning, in `"X"` case, `path` is passed to
      `FileTest.directory?` method which requires a `String`.  In such
      case, the mode in `path` should be examined instead.
      
      https://github.com/ruby/fileutils/commit/af675af6b2
      cc9ca468
    • J
      [ruby/fileutils] Make verbose output go to stdout instead of stderr · 7cddb844
      Jeremy Evans 提交于
      Verbose output is not error output, and should be sent to
      stdout and not stderr.
      
      Fixes Ruby bug 4436
      
      https://github.com/ruby/fileutils/commit/563a383025
      7cddb844
    • K
      prevent memory allocation for GC tests · e2678781
      Koichi Sasada 提交于
      We observed test failures on test_latest_gc_info with random
      order CI.
      http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/2998078l0ll
      
      To solve it, use a pre-allocated hash object and rehearsal.
      e2678781