fakefs 1.3.0 → 1.3.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/dir.rb +5 -3
- 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: 0e9d642f0d0255622007821c7433fd416e328aa50dc2308c866d00922db0ae48
|
4
|
+
data.tar.gz: 3f0a76cbd3f0dbf65bf66be32e54dcbffc33c05be84c74f28136e7e37812066e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9635356aa39838dfaf30fb3768754edb74073fccba55e348644402ecd14219ffd3252f08910721c6eec0f03a491cbf5c09575016a0656e7bae826c458980692
|
7
|
+
data.tar.gz: 3be473ee1b024b6927b65fc1b9e1f0a1594e7f45f8da875b25b8897578b611e7ea44c40e5d16d59ee4e31eca7b780c32f07ef28d509179ff70dc723b6db5217e
|
data/lib/fakefs/dir.rb
CHANGED
@@ -120,11 +120,13 @@ module FakeFS
|
|
120
120
|
def self.glob(pattern, flags = 0, &block)
|
121
121
|
matches_for_pattern = lambda do |matcher|
|
122
122
|
[FileSystem.find(matcher, flags, true) || []].flatten.map do |e|
|
123
|
-
|
124
|
-
|
123
|
+
pwd = Dir.pwd
|
124
|
+
pwd_regex = %r{\A#{pwd.gsub('+') { '\+' }}/?}
|
125
|
+
if pwd.match(%r{\A/?\z}) ||
|
126
|
+
!e.to_s.match(pwd_regex)
|
125
127
|
e.to_s
|
126
128
|
else
|
127
|
-
e.to_s.match(
|
129
|
+
e.to_s.match(pwd_regex).post_match
|
128
130
|
end
|
129
131
|
end.sort
|
130
132
|
end
|
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: 1.3.
|
4
|
+
version: 1.3.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: 2020-12-
|
15
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bump
|