rtaglib 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -3
- data/README.txt +21 -2
- data/Rakefile +15 -10
- data/ext/tagfile/extconf.rb +6 -0
- data/ext/taglib/extconf.rb +11 -4
- data/ext/taglib/taglib.cxx +1670 -548
- data/lib/TagLib.rb +7 -2
- data/lib/TagLib_doc.rb +1489 -1369
- data/swig/Rakefile +2 -5
- data/swig/extconf.rb +11 -4
- data/swig/taglib.i +105 -43
- data/swig/test.rb +59 -3
- data/test/test_taglib.rb +59 -3
- data/test/test_write.rb +9 -2
- metadata +2 -2
data/test/test_write.rb
CHANGED
@@ -3,12 +3,19 @@ require 'ftools'
|
|
3
3
|
require 'rubygems'
|
4
4
|
require File.dirname(__FILE__)+'/../ext/tagfile/tagfile'
|
5
5
|
require 'test/unit'
|
6
|
+
require 'tmpdir'
|
7
|
+
|
6
8
|
class RTagFileWriteTestCase < Test::Unit::TestCase
|
7
9
|
def setup
|
8
10
|
@original=File.dirname(__FILE__)+"/data/440Hz-5sec.mp3"
|
9
|
-
|
10
|
-
|
11
|
+
@temp_dir=Dir::tmpdir+"/rtaglib"
|
12
|
+
FileUtils.mkdir(@temp_dir) if !File.exists? @temp_dir
|
13
|
+
FileUtils.chmod(0777, @temp_dir)
|
14
|
+
|
15
|
+
@copy=@temp_dir+"/test_"+sprintf("%06d",rand(10000))+".mp3"
|
11
16
|
File.copy(@original, @copy)
|
17
|
+
FileUtils.chmod(0777, @copy)
|
18
|
+
|
12
19
|
@file=::TagFile::File.new(@copy)
|
13
20
|
end
|
14
21
|
def teardown
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtaglib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Bustos
|
@@ -9,7 +9,7 @@ autorequire: ""
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-05-20 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|