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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ebf2c2969219b548b61f0fed03794375afa3dd2
4
- data.tar.gz: 9acea6a10d46cf0572aa045192a201e908dcc4c9
3
+ metadata.gz: 9862c67cf7db0477bcb034eb5ff18355967919e1
4
+ data.tar.gz: b4734a68bc667ab2a0c8d84b92166fe9cb940b9f
5
5
  SHA512:
6
- metadata.gz: d72e9c949c4646e2dc6c023282f40dd7c9493ec45d04ebc2cb9bd98a2d20e216cb4ff5c47f253886693f937c0dae9492f11f5ade9f4ef03383d0954f23bf6e09
7
- data.tar.gz: dfae5c49da756313c4fe47d29d3f7dea3bb6a079e14edb91a62cc44fdd2729b1f0fb7f369ed099a86433fe3d9636184058fa3b4e8b564a788b4a38da2957a48b
6
+ metadata.gz: 77d8e30c760dfe1ec123d081eeb4cf09053327cf95647aa35213133f3cd89782a4682a82b21d9dc20fa63c98f5839281a163fa48aa01f6179fa2d10cb59eb7ca
7
+ data.tar.gz: c97e51fbbbf03dae568f27c5c01189e99d2cb8ad978670e9e1f7ca0eb2b6ca15768030e39f73e9cfa3b08d7ba8d481203b3aa0f47fe27e7a68a833733b7fe29d
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  module TempToFile
2
- VERSION = '1.0.1'
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
- else
17
- return nil
18
- end
16
+ end if options.is_a? Hash
17
+ return nil
19
18
  end
20
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temptofile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a
metadata.gz.sig CHANGED
Binary file