fakefs 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/fakefs/dir.rb +11 -0
- data/lib/fakefs/version.rb +1 -1
- 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: 0b95195ccd3ea0f144d92f88f06725e43ff0e343
|
4
|
+
data.tar.gz: cb254b71918ae91599943364e20d3de41def7105
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bbd253a2ee4a44033e97abaa3b09357f7a1f7663623e4dd39b19497596ea1c086fc67aab9f7357e85bf9217da590e5e33d32de2d2ad6ccf61f425d23be56758
|
7
|
+
data.tar.gz: afc6d2fbaa08e60975c719dc4ee3c3cb73273acfec113aa429cf25970f288054139d3bee25c823ce347190c5fc3bd9ac8e1945945773d910c00b5b07a46ec358
|
data/README.md
CHANGED
data/lib/fakefs/dir.rb
CHANGED
@@ -90,6 +90,17 @@ module FakeFS
|
|
90
90
|
Dir.new(dirname).map { |file| File.basename(file) }
|
91
91
|
end
|
92
92
|
|
93
|
+
def self.children(dirname, opts = {})
|
94
|
+
entries(dirname, opts) - %w(. ..)
|
95
|
+
end
|
96
|
+
|
97
|
+
def self.each_child(dirname, &_block)
|
98
|
+
Dir.open(dirname) do |file|
|
99
|
+
next if %w(. ..).include?(file)
|
100
|
+
yield file
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
93
104
|
if RUBY_VERSION >= '2.4'
|
94
105
|
def self.empty?(dirname)
|
95
106
|
_check_for_valid_file(dirname)
|
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.
|
4
|
+
version: 0.13.0
|
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: 2018-01-
|
15
|
+
date: 2018-01-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|