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 +4 -4
- data/lib/tori/backend/filesystem.rb +6 -2
- data/lib/tori/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: 2b19023a541895766bcd6cbc231febb4d6a5102b
|
4
|
+
data.tar.gz: ee94e3e57dcee888c4eb09bdaee736e0277054b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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