Backport #7992

Backport r39544 - Fixes FileUtils bug #7958

Added by drbrain (Eric Hodel) about 8 years ago. Updated almost 8 years ago.



This reverts r34669 which altered FileUtils metaprogramming in a way that broke FileUtils::Verbose, ::NoWrite and ::DryRun.



Related issues

Related to Ruby master - Bug #7958: include FileUtils::Verbose gives NoMethodError when installing files with a different modeCloseddrbrain (Eric Hodel)02/26/2013Actions

Updated by drbrain (Eric Hodel) almost 8 years ago

  • Status changed from Open to Assigned

Updated by trans (Thomas Sawyer) almost 8 years ago

Response to my latest post on #7958 ?

Updated by mpapis (Michal Papis) almost 8 years ago

:+1: it will help to debug problems when installing Rubygems in RVM (every Ruby installation).

Updated by trans (Thomas Sawyer) almost 8 years ago

Can I ask exactly what are you +1'ing and why?


Updated by nagachika (Tomoyuki Chikanaga) almost 8 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40251.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

merge revision(s) 39544,39546: [Backport #7992]

* lib/fileutils.rb:  Revert r34669 which altered the way
  metaprogramming in FileUtils occurred.  [ruby-trunk - Bug #7958]

* test/fileutils/visibility_tests.rb:  Refactored tests of FileUtils
  options modules to expose bug found in #7958

* test/fileutils/test_dryrun.rb:  ditto.

* test/fileutils/test_nowrite.rb:  ditto.

* test/fileutils/test_verbose.rb:  ditto.

Also available in: Atom PDF