HomePhorge

(PUP-391) Fix Rdoc 4+ specs on Windows Ruby 2 x64
676768645f13Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-391) Fix Rdoc 4+ specs on Windows Ruby 2 x64

  • When calling the document method on RDoc and the root option has not been specified, RDoc will provide a default in the options class: @root = Pathname(Dir.pwd). NOTE: This does not affect RDoc 3.9.5 that ships with Ruby 1.9.3 on Windows, only RDoc 4.0.0+ that ships with Ruby 2.0.0+ on Windows.
  • The win32-dir monkey patches the Dir.pwd method, and instead of using / separators like the rest of Ruby, it uses \ as a path separator.
  • RDoc uses Pathname, specifically the relative_path_from method which expects / separators, and gets confused with \. Therefore, provide a workaround to ensure that Windows uses the appropriate / in paths.

Details

Provenance
Ethan J. Brown <Iristyle@github>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0bc115f51a11: (PUP-391) Use FFI.errno instead of GetLastError
Branches
Unknown
Tags
Unknown

Event Timeline

Ethan J. Brown <Iristyle@github> committed rPU676768645f13: (PUP-391) Fix Rdoc 4+ specs on Windows Ruby 2 x64 (authored by Ethan J. Brown <Iristyle@github>).Jul 3 2014, 7:56 PM