flacky 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@
3
3
  require 'flacky/flac_tagger'
4
4
  require 'flacky/mp3_tagger'
5
5
 
6
+ require 'shellwords'
7
+
6
8
  module Flacky
7
9
 
8
10
  class Mp3Convertor
@@ -37,7 +39,10 @@ module Flacky
37
39
  end
38
40
 
39
41
  def transcode_file(flac_file, mp3_file)
40
- %x{flac -dcs '#{flac_file}' | lame #{lame_opts} - '#{mp3_file}'}
42
+ flac = flac_file.shellescape
43
+ mp3 = mp3_file.shellescape
44
+
45
+ %x{flac -dcs #{flac} | lame #{lame_opts} - #{mp3}}
41
46
  end
42
47
 
43
48
  def tag_file(flac_file, mp3_file)
@@ -1,3 +1,3 @@
1
1
  module Flacky
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flacky
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: