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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba1c4a6d4dd371bbcfa5eca4dfba162108fc047eb48fb5ccdc93de3170735d30
4
- data.tar.gz: 36f70c94b66328860b281d321d3001a7f1cf72e06c3e82a93a9d21b302a4593d
3
+ metadata.gz: 54f3f5584483097c4ba4c7d40c6912fbb52df5a7a997a98377ad771ad2a54d6d
4
+ data.tar.gz: adb831cf13a0f17bb9e410ceb8b1fa5f9bfa810c4879dde4a8d622d9f9ca0b3c
5
5
  SHA512:
6
- metadata.gz: 6be9106c484a95caa9fc3e98b7488e27b6a530391fc6128e723a0ce98535019c11ae286da8935bb9042654febdd6610ea82cbae4124ca5c4a92bc732c58edd41
7
- data.tar.gz: bb74d541390718a780688737c0045b0c1c95db4aff032133a650ac19ddaa166fc1760ca53091cf27596fc75f9c38615989876204ff930ab9cb46305a38d0aedf
6
+ metadata.gz: 5773c49c57fee658c7fdc4d546233beb7af67d9da479cf4e328c1fb2d81f54f119ed474ee6af1a490aa18eae8dfa75b7259cb0d177068b8f499f2a6faefe92f5
7
+ data.tar.gz: 3817e2826e858e6eb8de9ed98a053917f7865ef6555b3d364c2938eaec406a05b86a3ba9a41345e71460297940475092323537fbfc532df9bd18f1a4cc61a884
@@ -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
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.19.2'.freeze
4
+ VERSION = '0.20.0'.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.2
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-02-16 00:00:00.000000000 Z
15
+ date: 2019-03-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bump