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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2588f97b8687bc26c9afeca413f56f999395819d
4
- data.tar.gz: 006a58d139ca8df5df541410f5a4a5585a25f25e
3
+ metadata.gz: e75512a476ab489dc445ed26b71597714b5c9337
4
+ data.tar.gz: 0b6811f8bb36e43994157a34134f723d1912b80e
5
5
  SHA512:
6
- metadata.gz: 7f73385192dda8c81de9137a83b152ef416bea28c5af36db1ad0246270075669b83d55ad7df1bd7ad328a8d458ff1c43559037c540b3d74d1b6b4768ec680bf1
7
- data.tar.gz: 2c83f38db05c09d4222c2da8947b6e28d9d6fd96b7baf4dfa80633d43792f28c384bc733f4c2fdd9e759b346ee91b95473037d2df52c42abfca67db1d657d55e
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.length
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
@@ -1,3 +1,3 @@
1
1
  class FileWriter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_writer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vidar Hokstad