tori 0.0.7 → 0.0.8

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: 60c498b145993e83c117daa560ad2679d090cd35
4
- data.tar.gz: d242d6b256b840d490000aeeb68c06bdb6ac1662
3
+ metadata.gz: 2b19023a541895766bcd6cbc231febb4d6a5102b
4
+ data.tar.gz: ee94e3e57dcee888c4eb09bdaee736e0277054b0
5
5
  SHA512:
6
- metadata.gz: 15320df2ebf93398a6da016aad599dfc8ed4a9b8492ebe83184f30e27f3e89883fbbee33fbfd832f0cede6e262066fbd0e74282abe1e62dcd3e7c2e9ad521592
7
- data.tar.gz: 86776a02078c91a7e7cb0fa30b1b5d63f8f9886ab8d2361845f054005e6ee0712443caa57f4d8cf99e21dcbef4d798ac2ab2aba42db3c6aea37a6d84d7306fd9
6
+ metadata.gz: 810f914e2fb306d90c8cee6f4c15eee2cd263c711b8f6faa584ff2dbd4aeccb3ccf084126f3b0be1ddfa5e6c2c0c01620a46e5d8f5da3a147053b7a49f4ba80c
7
+ data.tar.gz: 049cd8f285bc2017d10a7aa3f0aaf5120973822cad8de5c780f0fb9cb0935b0890f8435df6fd3e10c047de627b00c6a02a363dc0a81100dd5915f2ab61f87eb6
@@ -11,9 +11,13 @@ module Tori
11
11
  case resource
12
12
  when String
13
13
  ::File.open(path(filename), 'w'){ |f| f.write resource }
14
- # see also https://bugs.ruby-lang.org/issues/11199
15
14
  when Pathname
16
- ::IO.copy_stream resource.to_s, path(filename)
15
+ # see also https://bugs.ruby-lang.org/issues/11199
16
+ ::File.open(resource) { |src|
17
+ ::File.open(path(filename), 'w'){ |dst|
18
+ ::IO.copy_stream src, dst
19
+ }
20
+ }
17
21
  else
18
22
  ::IO.copy_stream resource, path(filename)
19
23
  end
data/lib/tori/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tori
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss