scissor 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/scissor/writer.rb +3 -2
  3. metadata +18 -5
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ DESCRIPTION = "utility to chop sound files"
17
17
  RUBYFORGE_PROJECT = "scissor"
18
18
  HOMEPATH = "http://github.com/youpy/scissor"
19
19
  BIN_FILES = %w( )
20
- VERS = "0.0.25"
20
+ VERS = "0.0.26"
21
21
 
22
22
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
23
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
@@ -72,6 +72,7 @@ module Scissor
72
72
 
73
73
  def to_file(filename, options)
74
74
  filename = Pathname.new(filename)
75
+ full_filename = filename.expand_path
75
76
 
76
77
  if @tracks.flatten.empty?
77
78
  raise EmptyFragment
@@ -102,9 +103,9 @@ module Scissor
102
103
  mix_files(tmpfiles, final_tmpfile = tmpdir + 'tmp.wav')
103
104
 
104
105
  if filename.extname == '.wav'
105
- File.rename(final_tmpfile, filename)
106
+ File.rename(final_tmpfile, full_filename)
106
107
  else
107
- run_command("ffmpeg -ab #{options[:bitrate]} -i \"#{final_tmpfile}\" \"#{filename}\"")
108
+ run_command("ffmpeg -ab #{options[:bitrate]} -i \"#{final_tmpfile}\" \"#{full_filename}\"")
108
109
  end
109
110
  end
110
111
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scissor
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 43
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 25
9
- version: 0.0.25
9
+ - 26
10
+ version: 0.0.26
10
11
  platform: ruby
11
12
  authors:
12
13
  - youpy
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-12-22 00:00:00 +09:00
18
+ date: 2011-06-18 00:00:00 +09:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: open4
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - <=
26
28
  - !ruby/object:Gem::Version
29
+ hash: 21
27
30
  segments:
28
31
  - 1
29
32
  - 0
@@ -35,9 +38,11 @@ dependencies:
35
38
  name: ruby-mp3info
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 3
41
46
  segments:
42
47
  - 0
43
48
  version: "0"
@@ -47,9 +52,11 @@ dependencies:
47
52
  name: riff
48
53
  prerelease: false
49
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
50
56
  requirements:
51
57
  - - <=
52
58
  - !ruby/object:Gem::Version
59
+ hash: 19
53
60
  segments:
54
61
  - 0
55
62
  - 3
@@ -61,9 +68,11 @@ dependencies:
61
68
  name: tempdir
62
69
  prerelease: false
63
70
  requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
64
72
  requirements:
65
73
  - - ">="
66
74
  - !ruby/object:Gem::Version
75
+ hash: 3
67
76
  segments:
68
77
  - 0
69
78
  version: "0"
@@ -111,23 +120,27 @@ rdoc_options:
111
120
  require_paths:
112
121
  - lib
113
122
  required_ruby_version: !ruby/object:Gem::Requirement
123
+ none: false
114
124
  requirements:
115
125
  - - ">="
116
126
  - !ruby/object:Gem::Version
127
+ hash: 3
117
128
  segments:
118
129
  - 0
119
130
  version: "0"
120
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
+ none: false
121
133
  requirements:
122
134
  - - ">="
123
135
  - !ruby/object:Gem::Version
136
+ hash: 3
124
137
  segments:
125
138
  - 0
126
139
  version: "0"
127
140
  requirements: []
128
141
 
129
142
  rubyforge_project: scissor
130
- rubygems_version: 1.3.6
143
+ rubygems_version: 1.5.0
131
144
  signing_key:
132
145
  specification_version: 3
133
146
  summary: utility to chop sound files