diff options
| author | Jack Nagel | 2014-06-11 16:11:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-12 09:00:51 -0500 |
| commit | faaa622820deb067fa65d1207db119be950fad93 (patch) | |
| tree | 26a9e32f78371fcb6df7e308dd97e62486993d5d /Library/Homebrew/test/test_pathname.rb | |
| parent | 6eb7e0c27fcbc53d58e2a112ef10e902d54b6a7b (diff) | |
| download | brew-faaa622820deb067fa65d1207db119be950fad93.tar.bz2 | |
Deprecate Pathname#/ with non-string/non-pathname arguments
Ruby 2.2 will define Pathname#/ as a simple alias of Pathname#+.
In practice, this means that it will raise a TypeError unless the
argument responds to to_path or to_str.
Currently we blindly convert the argument to a string using to_s, so
deprecate this in the interest of matching the upstream behavior. In the
future we can replace this with
alias_method :/, :+ unless method_defined?(:/)
Closes Homebrew/homebrew#30079.
Diffstat (limited to 'Library/Homebrew/test/test_pathname.rb')
0 files changed, 0 insertions, 0 deletions
