Closed gauravkadyan closed 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'
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'
Thanks gauravkadyan for letting me know.
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'