ruby-ripmime 0.1.3 → 0.1.4
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/README +5 -5
- data/ext/ruby-ripmime.c +2 -0
- data/ext/ruby-ripmime.h +2 -0
- metadata +3 -3
data/README
CHANGED
@@ -36,11 +36,11 @@ gem install ruby-ripmime
|
|
36
36
|
size = File.stat(file).size
|
37
37
|
puts "#{size}\t#{file}"
|
38
38
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
39
|
+
# (output)
|
40
|
+
# 28 /tmp/d20121223-23507-zhwjuj/text-plain1
|
41
|
+
# 9941 /tmp/d20121223-23507-zhwjuj/220px-Shiitake_Meshi_Ekiben.JPG
|
42
|
+
# 0 /tmp/d20121223-23507-zhwjuj/multipart-mixed0
|
43
|
+
# 16361 /tmp/d20121223-23507-zhwjuj/234px-Shiitakegrowing.jpg
|
44
44
|
end
|
45
45
|
ensure
|
46
46
|
mailpack.close
|
data/ext/ruby-ripmime.c
CHANGED
@@ -44,6 +44,7 @@ static VALUE ruby_ripmime_decode(VALUE self, VALUE mailpack, VALUE outputdir) {
|
|
44
44
|
}
|
45
45
|
|
46
46
|
RIPMIME_init(&rm);
|
47
|
+
MIME_set_name_by_type(1);
|
47
48
|
|
48
49
|
// XXX: for strdup memory leak (ripMIME 1.4.0.10)
|
49
50
|
rm.outputdir = NULL;
|
@@ -56,6 +57,7 @@ static VALUE ruby_ripmime_decode(VALUE self, VALUE mailpack, VALUE outputdir) {
|
|
56
57
|
free(rm.outputdir);
|
57
58
|
}
|
58
59
|
|
60
|
+
// XXX: for strdup memory leak (ripMIME 1.4.0.10)
|
59
61
|
if (rm.mailpack) {
|
60
62
|
free(rm.mailpack);
|
61
63
|
}
|
data/ext/ruby-ripmime.h
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ripmime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- winebarrel
|