fakefs 0.13.0 → 0.13.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: 0b95195ccd3ea0f144d92f88f06725e43ff0e343
4
- data.tar.gz: cb254b71918ae91599943364e20d3de41def7105
3
+ metadata.gz: 273b8150a68f4aa49e5fe86810d57eb0354e38c4
4
+ data.tar.gz: af9700b4b546fd722330894a26f23579c1eeab1f
5
5
  SHA512:
6
- metadata.gz: 2bbd253a2ee4a44033e97abaa3b09357f7a1f7663623e4dd39b19497596ea1c086fc67aab9f7357e85bf9217da590e5e33d32de2d2ad6ccf61f425d23be56758
7
- data.tar.gz: afc6d2fbaa08e60975c719dc4ee3c3cb73273acfec113aa429cf25970f288054139d3bee25c823ce347190c5fc3bd9ac8e1945945773d910c00b5b07a46ec358
6
+ metadata.gz: 81dc63d6de9644aad4b988dcf501c73c1bd69e6504897361371ef096bd5d5c8c0387e494cec672e2fa20e61b45e043ab00adb475e8f304eebcc8484df5aeef79
7
+ data.tar.gz: b80196434f68b044d9788ec796a7466765d288c06860e0d60f9f2e9d6519a5371063be504da4e4cf126477f9dfbf7c2af22e18c7df55f7802c530ad6b6348eed
@@ -789,6 +789,13 @@ module FakeFS
789
789
  def split
790
790
  File.split(@path).map { |f| self.class.new(f) }
791
791
  end
792
+
793
+ # See <tt>File.write</tt>. Returns the number of bytes written.
794
+ def write(path, data)
795
+ File.open(path, 'wb') do |file|
796
+ return file.write(data)
797
+ end
798
+ end
792
799
  end
793
800
 
794
801
  # Pathname class
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.13.0'.freeze
4
+ VERSION = '0.13.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.13.0
4
+ version: 0.13.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: 2018-01-14 00:00:00.000000000 Z
15
+ date: 2018-02-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler