marcandre-backports 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/backports.gemspec +1 -1
- data/lib/backports/1.8.7/dir.rb +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
data/backports.gemspec
CHANGED
data/lib/backports/1.8.7/dir.rb
CHANGED
@@ -4,7 +4,7 @@ class Dir
|
|
4
4
|
Backports.make_block_optional self, :foreach, :test_on => Dir, :arg => "."
|
5
5
|
|
6
6
|
def mktmpdir(prefix_suffix=nil, tmpdir=nil)
|
7
|
-
raise NoMethodError, "undefined method `mktmpdir' for Dir:Class; you must require 'tmpdir'" unless
|
7
|
+
raise NoMethodError, "undefined method `mktmpdir' for Dir:Class; you must require 'tmpdir'" unless method_defined? :tmpdir
|
8
8
|
|
9
9
|
case prefix_suffix
|
10
10
|
when nil
|