fakefs 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/fakefs/file_system.rb +1 -1
- data/lib/fakefs/version.rb +1 -1
- data/test/fakefs_test.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dc2593e0eff91e5df327b9e0e6009d629cfcb42
|
4
|
+
data.tar.gz: 2f28f7c3fe6f1a0b5c1e6a3268a4b49b6e343543
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3610a7311b20ef411ae1d9b486b30efad8d68fa7e5d5b4c0e4cad43537d57f6f9f6bd843683d2826111a2bb2884e8d354dc0174a12b8356dbc67abb8ed1ac11
|
7
|
+
data.tar.gz: 35fad1a65e7b3972d465f64dee7c54fd0c4f28c2b8043c28bcefe63a5ca891e038e5cd7eb83cc2aea118a90939c71518821424acdc899ca87641d6b6b72cddec
|
data/Gemfile
CHANGED
data/lib/fakefs/file_system.rb
CHANGED
@@ -133,7 +133,7 @@ module FakeFS
|
|
133
133
|
directories_under(dir)
|
134
134
|
end
|
135
135
|
else
|
136
|
-
dir.matches
|
136
|
+
dir.matches(/\A#{pattern.gsub('.', '\.').gsub('?','.').gsub('*', '.*').gsub('(', '\(').gsub(')', '\)').gsub(/\{(.*?)\}/) { "(#{$1.gsub(',', '|')})" }}\Z/)
|
137
137
|
end
|
138
138
|
|
139
139
|
if parts.empty? # we're done recursing
|
data/lib/fakefs/version.rb
CHANGED
data/test/fakefs_test.rb
CHANGED
@@ -1099,6 +1099,12 @@ class FakeFSTest < Test::Unit::TestCase
|
|
1099
1099
|
assert_equal ['/one/five.rb', '/one/two'], Dir['/one/**']
|
1100
1100
|
end
|
1101
1101
|
|
1102
|
+
def test_dir_glob_ending_in_group_and_wildcard
|
1103
|
+
FileUtils.mkdir_p "/tmp/python-3.4.1"
|
1104
|
+
FileUtils.mkdir_p "/tmp/python-2.7.8"
|
1105
|
+
assert_equal ['/tmp/python-2.7.8', '/tmp/python-3.4.1'], Dir.glob("/tmp/python-[0-9]*")
|
1106
|
+
end
|
1107
|
+
|
1102
1108
|
def test_dir_glob_with_block
|
1103
1109
|
FileUtils.touch('foo')
|
1104
1110
|
FileUtils.touch('bar')
|
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.5.
|
4
|
+
version: 0.5.4
|
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: 2014-
|
15
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|