file-temp 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +7 -0
- data/Rakefile +2 -0
- data/file-temp.gemspec +2 -1
- data/lib/file/temp.rb +7 -4
- data/test/test_file_temp.rb +1 -1
- metadata +10 -10
data/CHANGES
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
= 1.1.4 - 16-Sep-2010
|
2
|
+
* The File::Temp.temp_name method has been altered on Unix systems. It
|
3
|
+
no longer prefixes TMPDIR to the name since it was redundant and could
|
4
|
+
generate a bogus path.
|
5
|
+
* Set the license to Artistic 2.0.
|
6
|
+
* Set the test task as the default Rake task.
|
7
|
+
|
1
8
|
= 1.1.3 - 14-Sep-2010
|
2
9
|
* Fixed potential libc linker failure.
|
3
10
|
|
data/Rakefile
CHANGED
data/file-temp.gemspec
CHANGED
@@ -2,8 +2,9 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'file-temp'
|
5
|
-
spec.version = '1.1.
|
5
|
+
spec.version = '1.1.4'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
|
+
spec.license = 'Artistic 2.0'
|
7
8
|
spec.email = 'djberg96@gmail.com'
|
8
9
|
spec.homepage = 'http://www.rubyforge.org/projects/shards'
|
9
10
|
spec.summary = 'An alternative way to generate temp files'
|
data/lib/file/temp.rb
CHANGED
@@ -59,7 +59,7 @@ class File::Temp < File
|
|
59
59
|
# :startdoc:
|
60
60
|
|
61
61
|
# The version of the file-temp library.
|
62
|
-
VERSION = '1.1.
|
62
|
+
VERSION = '1.1.4'
|
63
63
|
|
64
64
|
if WINDOWS
|
65
65
|
# The temporary directory used on MS Windows.
|
@@ -125,13 +125,16 @@ class File::Temp < File
|
|
125
125
|
fclose(@fptr) if @fptr
|
126
126
|
end
|
127
127
|
|
128
|
-
# Generates a unique file name
|
129
|
-
# File::Temp::TMPDIR constant.
|
128
|
+
# Generates a unique file name.
|
130
129
|
#
|
131
130
|
# Note that a file is not actually generated on the filesystem.
|
132
131
|
#
|
133
132
|
def self.temp_name
|
134
|
-
|
133
|
+
if WINDOWS
|
134
|
+
TMPDIR + tmpnam(nil) << '.tmp'
|
135
|
+
else
|
136
|
+
tmpnam(nil) << '.tmp'
|
137
|
+
end
|
135
138
|
end
|
136
139
|
|
137
140
|
private
|
data/test/test_file_temp.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file-temp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 4
|
10
|
+
version: 1.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel J. Berger
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-16 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -61,17 +61,17 @@ extra_rdoc_files:
|
|
61
61
|
- README
|
62
62
|
- MANIFEST
|
63
63
|
files:
|
64
|
-
- MANIFEST
|
65
64
|
- CHANGES
|
66
|
-
- README
|
67
65
|
- file-temp.gemspec
|
68
|
-
- test/test_file_temp.rb
|
69
|
-
- Rakefile
|
70
66
|
- lib/file/temp.rb
|
67
|
+
- MANIFEST
|
68
|
+
- Rakefile
|
69
|
+
- README
|
70
|
+
- test/test_file_temp.rb
|
71
71
|
has_rdoc: true
|
72
72
|
homepage: http://www.rubyforge.org/projects/shards
|
73
|
-
licenses:
|
74
|
-
|
73
|
+
licenses:
|
74
|
+
- Artistic 2.0
|
75
75
|
post_install_message:
|
76
76
|
rdoc_options: []
|
77
77
|
|