taglia / HandBrakeBatch

Encode video in batch mode using HandBrake
http://www.osomac.com
53 stars 17 forks source link

Ruby 1.9 onwards doesnt have current directory in load path. #30

Closed gauravkadyan closed 11 years ago

gauravkadyan commented 11 years ago

Ruby 1.9 onwards doesnt have current directory in load path. This means that plist file cant be read. Please find below, the diff to make the app work for ruby 1.9+. Also,this is an awesome app. Thanks :).

diff --git a/HandBrakeBatch/manicure.rb b/HandBrakeBatch/manicure.rb index 14c2d2f..fcc1c08 100755 --- a/HandBrakeBatch/manicure.rb +++ b/HandBrakeBatch/manicure.rb @@ -12,7 +12,7 @@ require 'optparse' require 'ostruct' require 'rubygems' -require 'plist' +require './plist'

CLI options: (code based on http://www.ruby-doc.org/stdlib/libdoc/optparse/rdoc/index.html )

def readOptions diff --git a/HandBrakeBatch/plist.rb b/HandBrakeBatch/plist.rb index 71f2714..006cfca 100644 --- a/HandBrakeBatch/plist.rb +++ b/HandBrakeBatch/plist.rb @@ -13,8 +13,8 @@ require 'base64' require 'cgi' require 'stringio'

-require 'plist/generator' -require 'plist/parser' +require './plist/generator' +require './plist/parser'

module Plist VERSION = '3.1.0'

taglia commented 11 years ago

Thanks gauravkadyan for letting me know.