opal-file 1.0.0 → 1.0.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: b7e6065ecbca73e83f6eedfe6be90d7bdbf17f3c
4
- data.tar.gz: d0295aee4b30ce3608cd7b13e8dba7cc65f9858c
3
+ metadata.gz: 7afa6266d7fc712de72195f81e6a6edf6e5760ed
4
+ data.tar.gz: c5dc8c8935ef4aa0c2593d41bb9bbc48843d0436
5
5
  SHA512:
6
- metadata.gz: caf7dbb1c3daf3086b8c33d73b95808293e92c1ddabb179231ee8eec326ea0bfe4702225219a4ae28a94970964c2dad5b71b72e1f4cfa5d0067f3286ae8a2c0d
7
- data.tar.gz: 41b1823fdb3d1d9ab710222a4ee0ee8e52362f6345da844a353d69f36a0566242480065760798d369292a281ea43f22a566a78d608cf29c8db06b2ef015d179c
6
+ metadata.gz: 71e01b9b78ef427f596c4461a23e7e78931712a4427497ae8163ca1dea0736c363ab87930c074166a04fb4f670d68c25f02131d256d8843298bb2ddc43885c50
7
+ data.tar.gz: 8b38f6d8c372efb7fa0b6e3dbfdddcff2a96070c69b4da3d72c61ef2da1db3df28638c0d65c0cfeba1e90eeba5475aa74b6989be7ad35a40282e24ba67efa59b
@@ -157,11 +157,15 @@ if RUBY_ENGINE == "opal"
157
157
  # IO
158
158
 
159
159
  def read(filename, options)
160
- fs.JS.readFileSync(filename, { encoding: "utf8" }.to_n)
160
+ handle_errno do
161
+ fs.JS.readFileSync(filename, { encoding: "utf8" }.to_n)
162
+ end
161
163
  end
162
164
 
163
165
  def write(filename, content)
164
- fs.JS.writeFileSync(filename, content.to_s)
166
+ handle_errno do
167
+ fs.JS.writeFileSync(filename, content.to_s)
168
+ end
165
169
  end
166
170
 
167
171
  private
@@ -1,3 +1,3 @@
1
1
  module OpalFile
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narazaka