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 +4 -4
- data/lib/fakefs/pathname.rb +7 -0
- 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: 273b8150a68f4aa49e5fe86810d57eb0354e38c4
|
4
|
+
data.tar.gz: af9700b4b546fd722330894a26f23579c1eeab1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81dc63d6de9644aad4b988dcf501c73c1bd69e6504897361371ef096bd5d5c8c0387e494cec672e2fa20e61b45e043ab00adb475e8f304eebcc8484df5aeef79
|
7
|
+
data.tar.gz: b80196434f68b044d9788ec796a7466765d288c06860e0d60f9f2e9d6519a5371063be504da4e4cf126477f9dfbf7c2af22e18c7df55f7802c530ad6b6348eed
|
data/lib/fakefs/pathname.rb
CHANGED
@@ -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
|
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.13.
|
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
|
15
|
+
date: 2018-02-01 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|