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/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
- @copy="/tmp/test_"+sprintf("%06d",rand(10000))+".mp3"
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.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-04-26 00:00:00 -04:00
12
+ date: 2009-05-20 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency