Description: Drop 1.8 compatibility
Author: Christian Kruse <cjk@defunct.ch>
Origin: upstream, c450984de42ded990a9edd30ce9d7ee0e5e0b103
Bug: https://github.com/ckruse/CFPropertyList/issues/52
Bug-Debian: https://bugs.debian.org/1029726
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Applied-Upstream: 3.0.0
Last-Update: 2023-01-26

--- ruby-cfpropertylist-2.2.8.orig/lib/cfpropertylist/rbCFPropertyList.rb
+++ ruby-cfpropertylist-2.2.8/lib/cfpropertylist/rbCFPropertyList.rb
@@ -72,27 +72,11 @@ module CFPropertyList
   end
 end
 
-class String
-  unless("".respond_to?(:bytesize)) then
-    def bytesize
-      self.length
-    end
-  end
-end
-
 dirname = File.dirname(__FILE__)
 require dirname + '/rbCFPlistError.rb'
 require dirname + '/rbCFTypes.rb'
 require dirname + '/rbBinaryCFPropertyList.rb'
 
-require 'iconv' unless "".respond_to?("encode")
-
-# ensure that the module and class exist
-module Enumerable
-  class Enumerator
-  end
-end
-
 begin
   require dirname + '/rbLibXMLParser.rb'
   temp = LibXML::XML::Parser::Options::NOBLANKS; # check if we have a version with parser options
@@ -141,7 +125,7 @@ module CFPropertyList
 
     when Time, DateTime, Date  then CFDate.new(object)
 
-    when Array, Enumerator, Enumerable::Enumerator
+    when Array, Enumerator
       ary = Array.new
       object.each do |o|
         ary.push CFPropertyList.guess(o, options)
