fakefs 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fakefs/dir.rb +2 -0
- data/lib/fakefs/file.rb +5 -4
- 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: 399df0fa0241a4097018fd561bf67de45b68c665
|
4
|
+
data.tar.gz: ded3c7a14ace5525346d97196ce5d9ae6006e781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb31a3fcea28fb581c020e44e9fc4480ad5de25bd933fee880d57ca83632f0b797f2557e7297cac707ecf0e887ce6dba0809f80fe76f92fbdc651197beefe3bb
|
7
|
+
data.tar.gz: c5010f766c7ecf075643b5dcf9935d53d9587b0717be692044360c77cf751ed9a0622f3ffcd9684cd297876f0046c760588e13d5772eb3a97ffa4488077bd659
|
data/lib/fakefs/dir.rb
CHANGED
data/lib/fakefs/file.rb
CHANGED
@@ -279,14 +279,15 @@ module FakeFS
|
|
279
279
|
|
280
280
|
def self.chown(owner_int, group_int, filename)
|
281
281
|
file = FileSystem.find(filename)
|
282
|
+
|
282
283
|
if owner_int && owner_int != -1
|
283
|
-
owner_int.is_a?(
|
284
|
-
|
284
|
+
owner_int.is_a?(Integer) || fail(TypeError,
|
285
|
+
"can't convert String into Integer")
|
285
286
|
file.uid = owner_int
|
286
287
|
end
|
287
288
|
if group_int && group_int != -1
|
288
|
-
group_int.is_a?(
|
289
|
-
|
289
|
+
group_int.is_a?(Integer) || fail(TypeError,
|
290
|
+
"can't convert String into Integer")
|
290
291
|
file.gid = group_int
|
291
292
|
end
|
292
293
|
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.11.
|
4
|
+
version: 0.11.1
|
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: 2017-
|
15
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|