fakefs 0.19.2 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakefs/file_test.rb +24 -4
- 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: 54f3f5584483097c4ba4c7d40c6912fbb52df5a7a997a98377ad771ad2a54d6d
|
4
|
+
data.tar.gz: adb831cf13a0f17bb9e410ceb8b1fa5f9bfa810c4879dde4a8d622d9f9ca0b3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5773c49c57fee658c7fdc4d546233beb7af67d9da479cf4e328c1fb2d81f54f119ed474ee6af1a490aa18eae8dfa75b7259cb0d177068b8f499f2a6faefe92f5
|
7
|
+
data.tar.gz: 3817e2826e858e6eb8de9ed98a053917f7865ef6555b3d364c2938eaec406a05b86a3ba9a41345e71460297940475092323537fbfc532df9bd18f1a4cc61a884
|
data/lib/fakefs/file_test.rb
CHANGED
@@ -3,14 +3,18 @@ module FakeFS
|
|
3
3
|
module FileTest
|
4
4
|
extend self
|
5
5
|
|
6
|
-
def exist?(file_name)
|
7
|
-
File.exist?(file_name)
|
8
|
-
end
|
9
|
-
|
10
6
|
def directory?(file_name)
|
11
7
|
File.directory?(file_name)
|
12
8
|
end
|
13
9
|
|
10
|
+
def executable?(file_name)
|
11
|
+
File.executable?(file_name)
|
12
|
+
end
|
13
|
+
|
14
|
+
def exist?(file_name)
|
15
|
+
File.exist?(file_name)
|
16
|
+
end
|
17
|
+
|
14
18
|
def file?(file_name)
|
15
19
|
File.file?(file_name)
|
16
20
|
end
|
@@ -23,6 +27,22 @@ module FakeFS
|
|
23
27
|
File.readable?(file_name)
|
24
28
|
end
|
25
29
|
|
30
|
+
def sticky?(file_name)
|
31
|
+
File.sticky?(file_name)
|
32
|
+
end
|
33
|
+
|
34
|
+
def symlink?(file_name)
|
35
|
+
File.symlink?(file_name)
|
36
|
+
end
|
37
|
+
|
38
|
+
def world_readable?(file_name)
|
39
|
+
File.new(file_name).stat.world_readable?
|
40
|
+
end
|
41
|
+
|
42
|
+
def world_writable?(file_name)
|
43
|
+
File.new(file_name).stat.world_writable?
|
44
|
+
end
|
45
|
+
|
26
46
|
def writable?(file_name)
|
27
47
|
File.writable?(file_name)
|
28
48
|
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: 0.
|
4
|
+
version: 0.20.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: 2019-
|
15
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bump
|