diff options
| author | Jack Nagel | 2014-06-11 16:11:53 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-12 09:00:51 -0500 |
| commit | 31a298dcdd2065cbaf1fe1e45df1be3d9d0a2939 (patch) | |
| tree | 14f2c5a86c7819dc0cd64fdd6497c30beaba4f8b /Library/Formula/speedtest_cli.rb | |
| parent | 30dc218e5a749a08ebee6a81651e808e5258820a (diff) | |
| download | homebrew-31a298dcdd2065cbaf1fe1e45df1be3d9d0a2939.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 #30079.
Diffstat (limited to 'Library/Formula/speedtest_cli.rb')
0 files changed, 0 insertions, 0 deletions
