Module: Everywhere::Plist

Defined in:
lib/everywhere/plist.rb

Overview

Escaping for the plists and entitlements the CLI writes by hand (there are four: every build's Info.plist, every dev's dev bundle, and the iOS builder's entitlements + export options). Every value interpolated into them comes from everywhere.yml or from Apple, so an unescaped & or < is at best a plist macOS refuses to parse and at worst extra keys of someone else's choosing.

Class Method Summary collapse

Class Method Details

.escape(value) ⇒ Object



13
14
15
# File 'lib/everywhere/plist.rb', line 13

def escape(value)
  value.to_s.gsub("&", "&amp;").gsub("<", "&lt;").gsub(">", "&gt;")
end