fakefs 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjUzOTNkOTM3NDJkNmJjOGRmYTcwYjE3NWY4MzA4NzMxMTMzN2UzYw==
4
+ MmI3OWYyNmRhMWQ1YmVmZTkxY2IyN2U2MThiZmEwZmY3MDZhNDUzZA==
5
5
  data.tar.gz: !binary |-
6
- YTM0ZTA4YjA3ZDBkZjRlNTRmOGExNzc2NzkyMWYyYWVmODMyMjI0Nw==
6
+ Mjg3ODdmOWU0YjJkOWQwMTRiYmRkOGY0ZmQwNjBlNmRlNTBiMzM1OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjlkMGY3OWVjNWVhZjIzMjEyZDNhZDYzOTQ0ODNiNmUyMDg2ODI2N2Q2MTNm
10
- YTZlM2Q3MmI3Njg0ZGE2MWZmY2I5NGRhNWY1ZmE0NGNkMDVlZDkzNThiMjFk
11
- YTRkNzNlMmExMTk4Nzg2ZTRhMTEzMDZiYWFmZjUxYTQ5MTI4MzE=
9
+ M2YxM2ZiZGY2YmQ2ODk1MzQxZTJmZjc4NmYyYjNjODM1ZWYyYjY1NTBhNDQ5
10
+ YjAxMTNhOWIxYjg4ZWEzM2FhNDkyMDdhMWQ2ZDRkNjk2NDQ5YzFiMmQ2MWVh
11
+ NzkyZWE0OTA4ODFiNDAyMWFlMzY3OWU1YjYxZTgzNmE4MWNhY2E=
12
12
  data.tar.gz: !binary |-
13
- ZDc2Y2ZkYzA2YWE4NDQ3MTBhYTFmMmI3NmEwZTUwZjlkMzZmNzhmMzQ4ZTIy
14
- MDA1ZTlhNDJhMDYxZWNlMDg0NTRiNTljMmU5OTAzMTAxYTNhMzE4NGMyYjU2
15
- M2MyZTc5OTMzNzU2NjcyODUyMDk3ZDc2MjQ4NWYyNTk1ZWE4MTg=
13
+ OTk3M2IyMDlhODI1MWZiNTY5OWRjNWIwODRlMTkwOWNhZGZjYzljNGE5MjRh
14
+ NjJiZjM5MDU5MjkzMTYwZjQ4OTk5NmQ1NjA1Y2Q4NmI3MDFiYWVmODEzZTM4
15
+ YzYzZmEyNDQ3YmNlNGMyNDAyMGJkYzcyMDNhZjExYjJhMGM4M2I=
data/lib/fakefs/file.rb CHANGED
@@ -391,6 +391,10 @@ module FakeFS
391
391
  undef_method :to_inputstream
392
392
  end
393
393
 
394
+ def is_a?(klass)
395
+ RealFile.allocate.is_a?(klass)
396
+ end
397
+
394
398
  def ioctl(integer_cmd, arg)
395
399
  raise NotImplementedError
396
400
  end
@@ -1,6 +1,6 @@
1
1
  module FakeFS
2
2
  module Version
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
 
5
5
  def self.to_s
6
6
  VERSION
data/test/fakefs_test.rb CHANGED
@@ -1158,6 +1158,12 @@ class FakeFSTest < Test::Unit::TestCase
1158
1158
  assert stringio.respond_to?(:size)
1159
1159
  end
1160
1160
 
1161
+ def test_is_not_a_stringio
1162
+ File.open("foo", "w") do |f|
1163
+ assert !f.is_a?(StringIO), 'File is not a StringIO'
1164
+ end
1165
+ end
1166
+
1161
1167
  def test_chdir_changes_directories_like_a_boss
1162
1168
  # I know memes!
1163
1169
  FileUtils.mkdir_p '/path'
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.5.1
4
+ version: 0.5.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: 2014-03-05 00:00:00.000000000 Z
15
+ date: 2014-03-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler