fakefs 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakefs/fileutils.rb +2 -0
- data/lib/fakefs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5028ccb7533da5e51a7c081920d73130e282c9c5a9ab7018ffda8da72306eb3
|
4
|
+
data.tar.gz: aedfa71c2601c065b879d965ca5794d1e6e15e17924642c3ea80b88b25ab3681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 127a0e17dbe151a8ba15b7dec06a2ecf3e8b3bec828c88c551b8a1dc7adf7354fd64feb2914990fab429c518da48586ffad438a9d2058327b3c93d20f7c7047e
|
7
|
+
data.tar.gz: 4c6855143c1619a7ef53f2fdc07310e7c56369827c800cf4060b334470dc87b29bed307f09464c11b0ef30ffde06e3349eac724aa8d7d24906bd39ba78866d71
|
data/lib/fakefs/fileutils.rb
CHANGED
@@ -100,6 +100,8 @@ module FakeFS
|
|
100
100
|
def cp(src, dest, options = {})
|
101
101
|
raise Errno::ENOTDIR, dest.to_s if src.is_a?(Array) && !File.directory?(dest)
|
102
102
|
|
103
|
+
raise Errno::ENOENT, dest.to_s unless File.exist?(dest) || File.exist?(File.dirname(dest))
|
104
|
+
|
103
105
|
# handle `verbose' flag
|
104
106
|
RealFileUtils.cp src, dest, options.merge(noop: true)
|
105
107
|
|
data/lib/fakefs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fakefs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2019-02-
|
15
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bump
|