fakefs 0.14.1 → 0.14.2

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: 954f3fc7ea36c08c05e1c2ca89e91adf4428c12a10106b3b7a4d40bd9f4423d1
4
- data.tar.gz: 9390881fc9ee94194ae5949b1ca51d094a90d51f7f41386212599c28cb7f15bb
3
+ metadata.gz: 1d98886afa8b5fd8e596861220ec9c4a314c5d058b25f5416be15633b8defb1d
4
+ data.tar.gz: a88ad4e851c73bacaaa59414899c1aca7332d906654935a076f56c805263c4d5
5
5
  SHA512:
6
- metadata.gz: 55ef32d6dce753f635cf136c51ca520cb43ac23327479b3c7c8b7851cd4162702d033be69d2404c1a7efc23b8c34b4df0848cb1aabf2730e42d8ce3152557ca7
7
- data.tar.gz: 869f3a78cfa683cce97204c7c72abd40e1085bf6febfdad85fca7492b16f3f520185ff539169ea9e8779abea7c7a17915b9290855975837349ca8d7c84d21428
6
+ metadata.gz: 0a564f99ce1046113350ed488d020fcfdfd9362cda67e5b59d8b787d6671a47cf9b1c6146a315a21ab287d0abc2a8d19144ee955de49e1c7cc7a3a5096a9e5a2
7
+ data.tar.gz: c23a08f82abfe3bbf35fa679d51c6cd0e5681bc7260936f1aed6baa80193d99cebd3f054b9ea681e2db8c8f082a8a2f4ff5fb335a7a99b041626507b1a705ed6
@@ -101,7 +101,11 @@ module FakeFS
101
101
  end
102
102
 
103
103
  def self.size(path)
104
- read(path).bytesize
104
+ if directory?(path)
105
+ 64 + (32 * FileSystem.find(path).entries.size)
106
+ else
107
+ read(path).bytesize
108
+ end
105
109
  end
106
110
 
107
111
  def self.size?(path)
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.14.1'.freeze
4
+ VERSION = '0.14.2'.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.14.1
4
+ version: 0.14.2
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-05-17 00:00:00.000000000 Z
15
+ date: 2018-05-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bump