Sha256: 1bc8d567d73259497573f20629a7afde62602071ea85c0cd9087d1771c8a1143

Contents?: true

Size: 687 Bytes

Versions: 38

Compression:

Stored size: 687 Bytes

Contents

# To be used instead of require "cfpropertylist". Restores extensions from
# Plist overwritten by CFPropertyList.

require "cfpropertylist"
require "plist"

# Brute-force solution to conflict between #to_plist introduced by
# CFPropertyList and plist. Remove the method added by CFPropertyList
# and restore the method from Plist::Emit. Each class gains a
# #to_binary_plist method equivalent to #to_plist from CFPropertyList.
#
# CFPropertyList also adds Enumerator#to_plist, but there is no such
# method from Plist, so leave it.
[Array, Hash].each do |c|
  c.send :alias_method, :to_binary_plist, :to_plist
  c.send :remove_method, :to_plist
  c.module_eval "include Plist::Emit"
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
fastlane-2.71.0.beta.20171225010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171224010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171223010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171222010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.3 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171221010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.2 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171220010004 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.71.0.beta.20171219010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.1 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.0.beta.20171217010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.0.beta.20171216010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.0.beta.20171215010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.69.3 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.70.0.beta.20171214010003 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.69.2 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.69.1 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb