file_writer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/file_writer.rb +1 -1
- data/lib/file_writer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e75512a476ab489dc445ed26b71597714b5c9337
|
4
|
+
data.tar.gz: 0b6811f8bb36e43994157a34134f723d1912b80e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c32936a4a6020bb7a1074d0be3c67e644d18523f4ac11720d2309601812572850fa3b97fdeaee6ff2c90564447bc237be67d4bc44df4ef42ea03692f975b06
|
7
|
+
data.tar.gz: 64b955399678d05ee7858ee7676d87dc1359414914e411af85178049de3f2110cabb25495b675e4555fe9f0ee9547b067af82c55bd6974332689c6128959a412
|
data/lib/file_writer.rb
CHANGED
@@ -30,7 +30,7 @@ class FileWriter
|
|
30
30
|
end
|
31
31
|
|
32
32
|
File.open(fname, "wb+", mode) do |f|
|
33
|
-
if f.syswrite(contents) != contents.
|
33
|
+
if f.syswrite(contents) != contents.bytesize
|
34
34
|
raise SystemCallError.new("FileWriter#write: syswrite returned unexpected length")
|
35
35
|
end
|
36
36
|
f.flush
|
data/lib/file_writer/version.rb
CHANGED