rtaglib 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +84 -9
- data/README.txt +0 -0
- data/Rakefile +30 -27
- data/{test/data → data}/440Hz-5sec.flac +0 -0
- data/{test/data → data}/440Hz-5sec.mp3 +0 -0
- data/{test/data → data}/440Hz-5sec.mpc +0 -0
- data/{test/data → data}/440Hz-5sec.ogg +0 -0
- data/{test/data → data}/440Hz-5sec.wv +0 -0
- data/data/test_jason.mp3 +0 -0
- data/data/test_jason.ogg +0 -0
- data/ext/Rakefile +10 -0
- data/ext/tagfile/Rakefile.rb +42 -0
- data/ext/tagfile/rake_ext_conf.rb +29 -0
- data/ext/tagfile/tagfile.c +11 -7
- data/ext/taglib/Rakefile.rb +48 -0
- data/ext/taglib/rake_ext_conf.rb +33 -0
- data/ext/taglib/taglib-mswin32/bin/tag.dll +0 -0
- data/ext/taglib/taglib-mswin32/bin/tag_c.dll +0 -0
- data/ext/taglib/taglib-mswin32/bin/tag_cd.dll +0 -0
- data/ext/taglib/taglib-mswin32/bin/tagd.dll +0 -0
- data/ext/taglib/taglib-mswin32/bin/taglib-config +55 -0
- data/ext/taglib/taglib-mswin32/include/taglib/apefooter.h +173 -0
- data/ext/taglib/taglib-mswin32/include/taglib/apeitem.h +204 -0
- data/ext/taglib/taglib-mswin32/include/taglib/apetag.h +162 -0
- data/ext/taglib/taglib-mswin32/include/taglib/attachedpictureframe.h +220 -0
- data/ext/taglib/taglib-mswin32/include/taglib/audioproperties.h +110 -0
- data/ext/taglib/taglib-mswin32/include/taglib/commentsframe.h +168 -0
- data/ext/taglib/taglib-mswin32/include/taglib/fileref.h +262 -0
- data/ext/taglib/taglib-mswin32/include/taglib/flacfile.h +201 -0
- data/ext/taglib/taglib-mswin32/include/taglib/flacproperties.h +92 -0
- data/ext/taglib/taglib-mswin32/include/taglib/generalencapsulatedobjectframe.h +174 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v1genres.h +66 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v1tag.h +180 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2extendedheader.h +93 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2footer.h +82 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2frame.h +414 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2framefactory.h +167 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2header.h +175 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2synchdata.h +70 -0
- data/ext/taglib/taglib-mswin32/include/taglib/id3v2tag.h +300 -0
- data/ext/taglib/taglib-mswin32/include/taglib/mpcfile.h +175 -0
- data/ext/taglib/taglib-mswin32/include/taglib/mpcproperties.h +85 -0
- data/ext/taglib/taglib-mswin32/include/taglib/mpegfile.h +277 -0
- data/ext/taglib/taglib-mswin32/include/taglib/mpegheader.h +166 -0
- data/ext/taglib/taglib-mswin32/include/taglib/mpegproperties.h +118 -0
- data/ext/taglib/taglib-mswin32/include/taglib/oggfile.h +112 -0
- data/ext/taglib/taglib-mswin32/include/taglib/oggflacfile.h +118 -0
- data/ext/taglib/taglib-mswin32/include/taglib/oggpage.h +203 -0
- data/ext/taglib/taglib-mswin32/include/taglib/oggpageheader.h +232 -0
- data/ext/taglib/taglib-mswin32/include/taglib/relativevolumeframe.h +274 -0
- data/ext/taglib/taglib-mswin32/include/taglib/speexfile.h +99 -0
- data/ext/taglib/taglib-mswin32/include/taglib/speexproperties.h +89 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tag.h +173 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tag_c.h +288 -0
- data/ext/taglib/taglib-mswin32/include/taglib/taglib.h +177 -0
- data/ext/taglib/taglib-mswin32/include/taglib/taglib_export.h +39 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tbytevector.h +409 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tbytevectorlist.h +91 -0
- data/ext/taglib/taglib-mswin32/include/taglib/textidentificationframe.h +258 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tfile.h +271 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tlist.h +252 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tlist.tcc +316 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tmap.h +200 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tmap.tcc +196 -0
- data/ext/taglib/taglib-mswin32/include/taglib/trueaudiofile.h +180 -0
- data/ext/taglib/taglib-mswin32/include/taglib/trueaudioproperties.h +93 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tstring.h +456 -0
- data/ext/taglib/taglib-mswin32/include/taglib/tstringlist.h +115 -0
- data/ext/taglib/taglib-mswin32/include/taglib/uniquefileidentifierframe.h +113 -0
- data/ext/taglib/taglib-mswin32/include/taglib/unknownframe.h +79 -0
- data/ext/taglib/taglib-mswin32/include/taglib/unsynchronizedlyricsframe.h +157 -0
- data/ext/taglib/taglib-mswin32/include/taglib/urllinkframe.h +172 -0
- data/ext/taglib/taglib-mswin32/include/taglib/vorbisfile.h +118 -0
- data/ext/taglib/taglib-mswin32/include/taglib/vorbisproperties.h +125 -0
- data/ext/taglib/taglib-mswin32/include/taglib/wavpackfile.h +164 -0
- data/ext/taglib/taglib-mswin32/include/taglib/wavpackproperties.h +94 -0
- data/ext/taglib/taglib-mswin32/include/taglib/xingheader.h +100 -0
- data/ext/taglib/taglib-mswin32/include/taglib/xiphcomment.h +202 -0
- data/ext/taglib/taglib-mswin32/lib/pkgconfig/taglib_c.pc +12 -0
- data/ext/taglib/taglib-mswin32/lib/tag.lib +0 -0
- data/ext/taglib/taglib-mswin32/lib/tag_c.lib +0 -0
- data/ext/taglib/taglib_i386-mingw32.source +22645 -0
- data/ext/taglib/taglib_i386-mswin32.source +22645 -0
- data/ext/taglib/{taglib.cxx → taglib_x86_64-linux.source} +508 -75
- data/lib/TagLib.rb +3 -2
- data/lib/TagLib_doc.rb +1532 -1526
- data/lib/rtaglib_mswin32.rb +4 -0
- data/lib/tagfile.rb +6 -0
- data/swig/Doxyfile +0 -0
- data/swig/Rakefile +44 -19
- data/swig/TagLib_doc.rb +2755 -0
- data/swig/make_doc.rb +5 -4
- data/swig/process_cxx.rb +2 -2
- data/swig/rake_ext_conf.rb +33 -0
- data/swig/taglib.i +8 -5
- data/swig/test.rb +47 -39
- data/test/test_read.rb +4 -3
- data/test/test_taglib.rb +47 -39
- data/test/test_write.rb +4 -3
- metadata +96 -20
- data/ext/tagfile/extconf.rb +0 -14
- data/ext/taglib/extconf.rb +0 -22
- data/swig/extconf.rb +0 -22
data/test/test_write.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'ftools'
|
3
|
-
|
4
|
-
|
3
|
+
$:.unshift(File.dirname(__FILE__)+"/../lib")
|
4
|
+
$:.unshift(File.dirname(__FILE__)+"/../ext")
|
5
|
+
require 'tagfile'
|
5
6
|
require 'test/unit'
|
6
7
|
require 'tmpdir'
|
7
8
|
|
8
9
|
class RTagFileWriteTestCase < Test::Unit::TestCase
|
9
10
|
def setup
|
10
|
-
@original=File.dirname(__FILE__)+"
|
11
|
+
@original=File.dirname(__FILE__)+"/../data/440Hz-5sec.mp3"
|
11
12
|
@temp_dir=Dir::tmpdir+"/rtaglib"
|
12
13
|
FileUtils.mkdir(@temp_dir) if !File.exists? @temp_dir
|
13
14
|
FileUtils.chmod(0777, @temp_dir)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtaglib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- cdx
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-17 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,16 +20,15 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 2.3.3
|
24
24
|
version:
|
25
|
-
description: Rtaglib is a binding for Taglib's library (http://developer.kde.org/~wheeler/taglib.html)
|
25
|
+
description: " Rtaglib is a binding for Taglib's library (http://developer.kde.org/~wheeler/taglib.html).\n TagFile uses the same interface of ruby-taglib, but creates a true ruby extension.\n Taglib is a complete implementation of the Api, based on swig. See test/test_taglib.rb for examples of use\n"
|
26
26
|
email:
|
27
|
-
- clbustos@
|
27
|
+
- clbustos@gmail.com
|
28
28
|
executables: []
|
29
29
|
|
30
30
|
extensions:
|
31
|
-
- ext/
|
32
|
-
- ext/taglib/extconf.rb
|
31
|
+
- ext/Rakefile
|
33
32
|
extra_rdoc_files:
|
34
33
|
- History.txt
|
35
34
|
- Manifest.txt
|
@@ -39,29 +38,106 @@ files:
|
|
39
38
|
- Manifest.txt
|
40
39
|
- README.txt
|
41
40
|
- Rakefile
|
42
|
-
-
|
41
|
+
- data/440Hz-5sec.flac
|
42
|
+
- data/440Hz-5sec.mp3
|
43
|
+
- data/440Hz-5sec.mpc
|
44
|
+
- data/440Hz-5sec.ogg
|
45
|
+
- data/440Hz-5sec.wv
|
46
|
+
- data/test_jason.mp3
|
47
|
+
- data/test_jason.ogg
|
48
|
+
- ext/Rakefile
|
49
|
+
- ext/tagfile/Rakefile.rb
|
50
|
+
- ext/tagfile/rake_ext_conf.rb
|
43
51
|
- ext/tagfile/tagfile.c
|
44
|
-
- ext/taglib/
|
45
|
-
- ext/taglib/
|
52
|
+
- ext/taglib/Rakefile.rb
|
53
|
+
- ext/taglib/rake_ext_conf.rb
|
54
|
+
- ext/taglib/taglib-mswin32/bin/tag.dll
|
55
|
+
- ext/taglib/taglib-mswin32/bin/tag_c.dll
|
56
|
+
- ext/taglib/taglib-mswin32/bin/tag_cd.dll
|
57
|
+
- ext/taglib/taglib-mswin32/bin/tagd.dll
|
58
|
+
- ext/taglib/taglib-mswin32/bin/taglib-config
|
59
|
+
- ext/taglib/taglib-mswin32/include/taglib/apefooter.h
|
60
|
+
- ext/taglib/taglib-mswin32/include/taglib/apeitem.h
|
61
|
+
- ext/taglib/taglib-mswin32/include/taglib/apetag.h
|
62
|
+
- ext/taglib/taglib-mswin32/include/taglib/attachedpictureframe.h
|
63
|
+
- ext/taglib/taglib-mswin32/include/taglib/audioproperties.h
|
64
|
+
- ext/taglib/taglib-mswin32/include/taglib/commentsframe.h
|
65
|
+
- ext/taglib/taglib-mswin32/include/taglib/fileref.h
|
66
|
+
- ext/taglib/taglib-mswin32/include/taglib/flacfile.h
|
67
|
+
- ext/taglib/taglib-mswin32/include/taglib/flacproperties.h
|
68
|
+
- ext/taglib/taglib-mswin32/include/taglib/generalencapsulatedobjectframe.h
|
69
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v1genres.h
|
70
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v1tag.h
|
71
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2extendedheader.h
|
72
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2footer.h
|
73
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2frame.h
|
74
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2framefactory.h
|
75
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2header.h
|
76
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2synchdata.h
|
77
|
+
- ext/taglib/taglib-mswin32/include/taglib/id3v2tag.h
|
78
|
+
- ext/taglib/taglib-mswin32/include/taglib/mpcfile.h
|
79
|
+
- ext/taglib/taglib-mswin32/include/taglib/mpcproperties.h
|
80
|
+
- ext/taglib/taglib-mswin32/include/taglib/mpegfile.h
|
81
|
+
- ext/taglib/taglib-mswin32/include/taglib/mpegheader.h
|
82
|
+
- ext/taglib/taglib-mswin32/include/taglib/mpegproperties.h
|
83
|
+
- ext/taglib/taglib-mswin32/include/taglib/oggfile.h
|
84
|
+
- ext/taglib/taglib-mswin32/include/taglib/oggflacfile.h
|
85
|
+
- ext/taglib/taglib-mswin32/include/taglib/oggpage.h
|
86
|
+
- ext/taglib/taglib-mswin32/include/taglib/oggpageheader.h
|
87
|
+
- ext/taglib/taglib-mswin32/include/taglib/relativevolumeframe.h
|
88
|
+
- ext/taglib/taglib-mswin32/include/taglib/speexfile.h
|
89
|
+
- ext/taglib/taglib-mswin32/include/taglib/speexproperties.h
|
90
|
+
- ext/taglib/taglib-mswin32/include/taglib/tag.h
|
91
|
+
- ext/taglib/taglib-mswin32/include/taglib/tag_c.h
|
92
|
+
- ext/taglib/taglib-mswin32/include/taglib/taglib.h
|
93
|
+
- ext/taglib/taglib-mswin32/include/taglib/taglib_export.h
|
94
|
+
- ext/taglib/taglib-mswin32/include/taglib/tbytevector.h
|
95
|
+
- ext/taglib/taglib-mswin32/include/taglib/tbytevectorlist.h
|
96
|
+
- ext/taglib/taglib-mswin32/include/taglib/textidentificationframe.h
|
97
|
+
- ext/taglib/taglib-mswin32/include/taglib/tfile.h
|
98
|
+
- ext/taglib/taglib-mswin32/include/taglib/tlist.h
|
99
|
+
- ext/taglib/taglib-mswin32/include/taglib/tlist.tcc
|
100
|
+
- ext/taglib/taglib-mswin32/include/taglib/tmap.h
|
101
|
+
- ext/taglib/taglib-mswin32/include/taglib/tmap.tcc
|
102
|
+
- ext/taglib/taglib-mswin32/include/taglib/trueaudiofile.h
|
103
|
+
- ext/taglib/taglib-mswin32/include/taglib/trueaudioproperties.h
|
104
|
+
- ext/taglib/taglib-mswin32/include/taglib/tstring.h
|
105
|
+
- ext/taglib/taglib-mswin32/include/taglib/tstringlist.h
|
106
|
+
- ext/taglib/taglib-mswin32/include/taglib/uniquefileidentifierframe.h
|
107
|
+
- ext/taglib/taglib-mswin32/include/taglib/unknownframe.h
|
108
|
+
- ext/taglib/taglib-mswin32/include/taglib/unsynchronizedlyricsframe.h
|
109
|
+
- ext/taglib/taglib-mswin32/include/taglib/urllinkframe.h
|
110
|
+
- ext/taglib/taglib-mswin32/include/taglib/vorbisfile.h
|
111
|
+
- ext/taglib/taglib-mswin32/include/taglib/vorbisproperties.h
|
112
|
+
- ext/taglib/taglib-mswin32/include/taglib/wavpackfile.h
|
113
|
+
- ext/taglib/taglib-mswin32/include/taglib/wavpackproperties.h
|
114
|
+
- ext/taglib/taglib-mswin32/include/taglib/xingheader.h
|
115
|
+
- ext/taglib/taglib-mswin32/include/taglib/xiphcomment.h
|
116
|
+
- ext/taglib/taglib-mswin32/lib/pkgconfig/taglib_c.pc
|
117
|
+
- ext/taglib/taglib-mswin32/lib/tag.lib
|
118
|
+
- ext/taglib/taglib-mswin32/lib/tag_c.lib
|
119
|
+
- ext/taglib/taglib_i386-mingw32.source
|
120
|
+
- ext/taglib/taglib_i386-mswin32.source
|
121
|
+
- ext/taglib/taglib_x86_64-linux.source
|
46
122
|
- lib/TagLib.rb
|
47
123
|
- lib/TagLib_doc.rb
|
124
|
+
- lib/rtaglib_mswin32.rb
|
125
|
+
- lib/tagfile.rb
|
48
126
|
- swig/Doxyfile
|
49
127
|
- swig/Rakefile
|
50
|
-
- swig/
|
128
|
+
- swig/TagLib_doc.rb
|
51
129
|
- swig/make_doc.rb
|
52
130
|
- swig/process_cxx.rb
|
131
|
+
- swig/rake_ext_conf.rb
|
53
132
|
- swig/taglib.i
|
54
133
|
- swig/test.rb
|
55
|
-
- test/data/440Hz-5sec.flac
|
56
|
-
- test/data/440Hz-5sec.mp3
|
57
|
-
- test/data/440Hz-5sec.mpc
|
58
|
-
- test/data/440Hz-5sec.ogg
|
59
|
-
- test/data/440Hz-5sec.wv
|
60
134
|
- test/test_read.rb
|
61
135
|
- test/test_taglib.rb
|
62
136
|
- test/test_write.rb
|
63
137
|
has_rdoc: true
|
64
138
|
homepage: http://rtaglib.rubyforge.org/
|
139
|
+
licenses: []
|
140
|
+
|
65
141
|
post_install_message:
|
66
142
|
rdoc_options:
|
67
143
|
- --main
|
@@ -84,9 +160,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
160
|
requirements:
|
85
161
|
- libtag >=1.5
|
86
162
|
rubyforge_project: rtaglib
|
87
|
-
rubygems_version: 1.3.
|
163
|
+
rubygems_version: 1.3.5
|
88
164
|
signing_key:
|
89
|
-
specification_version:
|
165
|
+
specification_version: 3
|
90
166
|
summary: Bindings for taglib
|
91
167
|
test_files:
|
92
168
|
- test/test_taglib.rb
|
data/ext/tagfile/extconf.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require "mkmf"
|
2
|
-
$CFLAGS+=" -Wall "
|
3
|
-
taglib_config = find_executable("taglib-config")
|
4
|
-
if taglib_config
|
5
|
-
prefix = `#{taglib_config} --prefix`.strip
|
6
|
-
$CFLAGS += " -I#{prefix}/include"
|
7
|
-
$LDFLAGS += " -L#{prefix}/lib"
|
8
|
-
end
|
9
|
-
dir_config("tag_c")
|
10
|
-
if have_library("tag_c") and have_header("taglib/tag_c.h")
|
11
|
-
create_makefile("tagfile")
|
12
|
-
else
|
13
|
-
print "*** ERROR: Need taglib library\n"
|
14
|
-
end
|
data/ext/taglib/extconf.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
if(PLATFORM=~/mingw/)
|
3
|
-
puts "Building for MinGW"
|
4
|
-
$libs = append_library($libs, "stdc++")
|
5
|
-
$CFLAGS= " -I/mingw/include/taglib"
|
6
|
-
|
7
|
-
else
|
8
|
-
puts "Building for other architecture"
|
9
|
-
taglib_config = find_executable("taglib-config")
|
10
|
-
if taglib_config
|
11
|
-
prefix = `#{taglib_config} --prefix`.strip
|
12
|
-
$CFLAGS += " -I#{prefix}/include"
|
13
|
-
$LDFLAGS += " -L#{prefix}/lib"
|
14
|
-
else
|
15
|
-
prefix = "/usr"
|
16
|
-
end
|
17
|
-
$CFLAGS += " -I#{prefix}/include/taglib"
|
18
|
-
end
|
19
|
-
$libs = append_library($libs, "supc++")
|
20
|
-
if have_header("taglib/taglib_export.h") and have_library("tag")
|
21
|
-
create_makefile("TagLib")
|
22
|
-
end
|
data/swig/extconf.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
if(PLATFORM=~/mingw/)
|
3
|
-
puts "Building for MinGW"
|
4
|
-
$libs = append_library($libs, "stdc++")
|
5
|
-
$CFLAGS= " -I/mingw/include/taglib"
|
6
|
-
|
7
|
-
else
|
8
|
-
puts "Building for other architecture"
|
9
|
-
taglib_config = find_executable("taglib-config")
|
10
|
-
if taglib_config
|
11
|
-
prefix = `#{taglib_config} --prefix`.strip
|
12
|
-
$CFLAGS += " -I#{prefix}/include"
|
13
|
-
$LDFLAGS += " -L#{prefix}/lib"
|
14
|
-
else
|
15
|
-
prefix = "/usr"
|
16
|
-
end
|
17
|
-
$CFLAGS += " -I#{prefix}/include/taglib"
|
18
|
-
end
|
19
|
-
$libs = append_library($libs, "supc++")
|
20
|
-
if have_header("taglib/taglib_export.h") and have_library("tag")
|
21
|
-
create_makefile("TagLib")
|
22
|
-
end
|