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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 775bb49c6d9342054b77a97f0896dc5cbb1a185d
4
- data.tar.gz: ecaf59b2d26c5d719a9a5ed7647eb41ddd3ebdcc
3
+ metadata.gz: 399df0fa0241a4097018fd561bf67de45b68c665
4
+ data.tar.gz: ded3c7a14ace5525346d97196ce5d9ae6006e781
5
5
  SHA512:
6
- metadata.gz: 9b76df497c9c26676a079649ec241815fb972579acb5d28f884d73dfab6c9708d94807f96d252a98134a602c58b719e511b738fc0efec9eef3cfa8e9e65513c2
7
- data.tar.gz: dfa04c77cbf2c5c349f9b9a90c021ea4fb5c1fffd74354c68a27e3faddff373a641117e66824806ba8cab18e3d660c2f51e16edfd4ce68fbfea8e727b9bed27b
6
+ metadata.gz: fb31a3fcea28fb581c020e44e9fc4480ad5de25bd933fee880d57ca83632f0b797f2557e7297cac707ecf0e887ce6dba0809f80fe76f92fbdc651197beefe3bb
7
+ data.tar.gz: c5010f766c7ecf075643b5dcf9935d53d9587b0717be692044360c77cf751ed9a0622f3ffcd9684cd297876f0046c760588e13d5772eb3a97ffa4488077bd659
data/lib/fakefs/dir.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'English'
2
+
1
3
  module FakeFS
2
4
  # FakeFs Dir class
3
5
  class Dir
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?(Fixnum) || fail(TypeError,
284
- "can't convert String into Integer")
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?(Fixnum) || fail(TypeError,
289
- "can't convert String into Integer")
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
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.11.0'.freeze
4
+ VERSION = '0.11.1'.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.11.0
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-04-08 00:00:00.000000000 Z
15
+ date: 2017-08-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler