file-temp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/ext/temp.c +2 -2
- data/test/tc_file_temp.rb +3 -2
- metadata +3 -3
data/CHANGES
CHANGED
data/ext/temp.c
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
#define P_tmpdir "/tmp"
|
|
15
15
|
#endif
|
|
16
16
|
|
|
17
|
-
#define VERSION "0.1.
|
|
17
|
+
#define VERSION "0.1.2"
|
|
18
18
|
|
|
19
19
|
VALUE cFileTemp;
|
|
20
20
|
|
|
@@ -112,6 +112,6 @@ void Init_temp(){
|
|
|
112
112
|
/* ENV['P_tmpdir']: Your system's tmpdir */
|
|
113
113
|
rb_define_const(cFileTemp, "TMPDIR", rb_str_new2(P_tmpdir));
|
|
114
114
|
|
|
115
|
-
/* 0.1.
|
|
115
|
+
/* 0.1.2: The version of this library */
|
|
116
116
|
rb_define_const(cFileTemp, "VERSION", rb_str_new2(VERSION));
|
|
117
117
|
}
|
data/test/tc_file_temp.rb
CHANGED
|
@@ -14,7 +14,7 @@ class TC_File_Temp < Test::Unit::TestCase
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def test_file_temp_version
|
|
17
|
-
assert_equal('0.1.
|
|
17
|
+
assert_equal('0.1.2', FileTemp::VERSION)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def test_file_temp_tmpdir
|
|
@@ -44,7 +44,8 @@ class TC_File_Temp < Test::Unit::TestCase
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def test_file_temp_expected_errors
|
|
47
|
-
|
|
47
|
+
assert_raise(TypeError){ @fh = FileTemp.new(false, 1) }
|
|
48
|
+
assert_raise(ArgumentError){ @fh = FileTemp.new(true, 'temp_bar_XXXXX', 1) }
|
|
48
49
|
end
|
|
49
50
|
|
|
50
51
|
def teardown
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: file-temp
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.1.
|
|
7
|
-
date: 2007-06-
|
|
6
|
+
version: 0.1.2
|
|
7
|
+
date: 2007-06-06 00:00:00 -06:00
|
|
8
8
|
summary: An alternative way to generate tempfiles
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -32,8 +32,8 @@ files:
|
|
|
32
32
|
- test/tc_file_temp.rb
|
|
33
33
|
- CHANGES
|
|
34
34
|
- MANIFEST
|
|
35
|
-
- Rakefile
|
|
36
35
|
- README
|
|
36
|
+
- Rakefile
|
|
37
37
|
- ext/temp.c
|
|
38
38
|
test_files:
|
|
39
39
|
- test/tc_file_temp.rb
|