lib/wrapp/app_info.rb in wrapp-0.3.0 vs lib/wrapp/app_info.rb in wrapp-0.4.0

- old
+ new

@@ -18,17 +18,11 @@ def version get_property('CFBundleShortVersionString') end def get_property(property) - raise "No property found: #{property}" unless - properties.has_key?(property) - properties[property].strip - end - - private - - def properties - Plist4r.open plist + command_line = Cocaine::CommandLine.new('/usr/libexec/PlistBuddy', + '-c :cmd :plist') + command_line.run(:cmd => "Print #{property}", :plist => plist).strip end end end