Sha256: 33315eb10e884980327f23b66130ed6cdbb5f9f5ba165543811627b7f32b2d34

Contents?: true

Size: 777 Bytes

Versions: 553

Compression:

Stored size: 777 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|
  if c.method_defined?(:to_plist)
    begin
      c.send(:alias_method, :to_binary_plist, :to_plist)
      c.send(:remove_method, :to_plist)
    rescue NameError
    end
  end
  c.module_eval("include Plist::Emit")
end

Version data entries

553 entries across 553 versions & 5 rubygems

Version Path
fastlane-2.227.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.226.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.225.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.224.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.223.1 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.223.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.222.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.221.1 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.221.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.220.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.219.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.218.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-security-patched-2.216.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.217.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.216.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.215.1 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.215.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-mercafacil-2.214.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.214.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb
fastlane-2.213.0 fastlane_core/lib/fastlane_core/core_ext/cfpropertylist.rb