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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf89043900e25034c9e9c2072e3e22f24f66456821693fc391f4b09337db6e79
4
- data.tar.gz: 5a522c214d0373e804a7b1e2cb38ea223283cfa1caa25f625df344746230d9fb
3
+ metadata.gz: b5028ccb7533da5e51a7c081920d73130e282c9c5a9ab7018ffda8da72306eb3
4
+ data.tar.gz: aedfa71c2601c065b879d965ca5794d1e6e15e17924642c3ea80b88b25ab3681
5
5
  SHA512:
6
- metadata.gz: 4faacf937d0a705649022219dc67c4e5e7b84488fbdb60bf162a680655b3f7e03d986bd6cfcc166eb6260f71be9d5ab5086d3aed5adff2b9aed390242282b465
7
- data.tar.gz: 70eaf5ae57fc369423729af31d6eb160980a987a530a69bc8cf9b5dcb292631d1f084a02d2934451edc76b8c27041355a3869b7855360922295cb00eb13eef80
6
+ metadata.gz: 127a0e17dbe151a8ba15b7dec06a2ecf3e8b3bec828c88c551b8a1dc7adf7354fd64feb2914990fab429c518da48586ffad438a9d2058327b3c93d20f7c7047e
7
+ data.tar.gz: 4c6855143c1619a7ef53f2fdc07310e7c56369827c800cf4060b334470dc87b29bed307f09464c11b0ef30ffde06e3349eac724aa8d7d24906bd39ba78866d71
@@ -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
 
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.19.0'.freeze
4
+ VERSION = '0.19.1'.freeze
5
5
 
6
6
  def self.to_s
7
7
  VERSION
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.0
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-09 00:00:00.000000000 Z
15
+ date: 2019-02-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bump