temptofile 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/temptofile.rb +3 -4
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9862c67cf7db0477bcb034eb5ff18355967919e1
|
4
|
+
data.tar.gz: b4734a68bc667ab2a0c8d84b92166fe9cb940b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d8e30c760dfe1ec123d081eeb4cf09053327cf95647aa35213133f3cd89782a4682a82b21d9dc20fa63c98f5839281a163fa48aa01f6179fa2d10cb59eb7ca
|
7
|
+
data.tar.gz: c97e51fbbbf03dae568f27c5c01189e99d2cb8ad978670e9e1f7ca0eb2b6ca15768030e39f73e9cfa3b08d7ba8d481203b3aa0f47fe27e7a68a833733b7fe29d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/temptofile.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module TempToFile
|
2
|
-
VERSION = '1.0.
|
2
|
+
VERSION = '1.0.2'
|
3
3
|
end
|
4
4
|
|
5
5
|
class Tempfile
|
@@ -13,8 +13,7 @@ class Tempfile
|
|
13
13
|
elsif not options[:prefix].nil?
|
14
14
|
File.rename(self.to_path, options[:suffix] + self.to_path) rescue return nil
|
15
15
|
return options[:suffix] + self.to_path
|
16
|
-
|
17
|
-
|
18
|
-
end
|
16
|
+
end if options.is_a? Hash
|
17
|
+
return nil
|
19
18
|
end
|
20
19
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|