Skip to content

Commit

Permalink
Changed to plist4r instead of plist gem
Browse files Browse the repository at this point in the history
  • Loading branch information
dmayer-mtso committed Jan 22, 2014
1 parent de12753 commit 49094b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source "https://rubygems.org"

gem 'highline'
gem 'launchy'
gem 'plist'
gem 'plist4r'
gem 'trollop'
gem 'net-ssh'
gem 'net-sftp'
Expand Down
13 changes: 11 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,31 @@ GEM
eventmachine (1.0.3)
ffi (1.9.0)
git (1.2.6)
haml (4.0.5)
tilt
highline (1.6.18)
htmlentities (4.3.1)
launchy (2.3.0)
addressable (~> 2.3)
libxml-ruby (2.7.0)
libxml4r (0.2.6)
libxml-ruby (>= 1.1.3)
log4r (1.1.10)
mini_portile (0.5.0)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.6.7)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
plist (3.1.0)
plist4r (1.2.2)
haml
libxml-ruby
libxml4r
qtbindings (4.8.3.0)
rbkb (0.6.12)
eventmachine (>= 0.12.8)
sqlite3 (1.3.8)
tilt (2.0.0)
trollop (2.0)

PLATFORMS
Expand All @@ -41,7 +50,7 @@ DEPENDENCIES
net-sftp
net-ssh
nokogiri
plist
plist4r
qtbindings
rbkb
sqlite3
Expand Down
5 changes: 3 additions & 2 deletions lib/plist_util.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'plist'
require 'plist4r'
require 'rbconfig'
require 'nokogiri'
require 'coderay'
Expand Down Expand Up @@ -41,7 +41,8 @@ def parse_plist_file
`#{@plutil.realpath} -convert xml1 "#{@plist_file}"`
end

@plist_data = Plist::parse_xml(@plist_file)
# @plist_data = Plist::parse_xml(@plist_file)
@plist_data = Plist4r.open @plist_file
end

def extract_url_handlers
Expand Down

0 comments on commit 49094b1

Please sign in to comment.