polly-ffmpeg 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/ffmpeg.gemspec +1 -1
  2. data/lib/ffmpeg.rb +3 -3
  3. metadata +1 -1
data/ffmpeg.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ffmpeg}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Patrik Hedman"]
data/lib/ffmpeg.rb CHANGED
@@ -52,15 +52,15 @@ module FFMpeg
52
52
  # Explicitly set ffmpeg path
53
53
  #
54
54
  def ffmpeg_path(path)
55
- @ffmpeg_path = path
55
+ @@ffmpeg_path = path
56
56
  end
57
57
 
58
58
  #
59
59
  # Ru§ns ffmpeg
60
60
  #
61
61
  def run
62
- if path = @ffmpeg_path ? @ffmpeg_path : FFMpegCommand.command(locate_ffmpeg)
63
- execute_command path
62
+ unless (path = @@ffmpeg_path ? @@ffmpeg_path : locate_ffmpeg).empty?
63
+ execute_command FFMpegCommand.command(path)
64
64
  else
65
65
  $stderr.puts "Couldn't locate ffmpeg, try to specify an explicit path
66
66
  with the ffmpeg_path(path) method"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polly-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Hedman