From d130fd13dc11e89387aad69b8202d80431319a05 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 8 Dec 2013 00:47:44 -0500 Subject: [PATCH] Remove Ruby <1.9 core extensions --- lib/jekyll/core_ext.rb | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/lib/jekyll/core_ext.rb b/lib/jekyll/core_ext.rb index 54f7c9d5..c71c72f5 100644 --- a/lib/jekyll/core_ext.rb +++ b/lib/jekyll/core_ext.rb @@ -54,14 +54,6 @@ class Hash end end -# Thanks, ActiveSupport! -class Date - # Converts datetime to an appropriate format for use in XML - def xmlschema - strftime("%Y-%m-%dT%H:%M:%S%Z") - end if RUBY_VERSION < '1.9' -end - module Enumerable # Returns true if path matches against any glob pattern. # Look for more detail about glob pattern in method File::fnmatch. @@ -74,13 +66,7 @@ end # read_with_options ignore optional parameter for 1.8, # and act as alias for 1.9 or later. class File - if RUBY_VERSION < '1.9' - def self.read_with_options(path, opts = {}) - self.read(path) - end - else - def self.read_with_options(path, opts = {}) - self.read(path, opts) - end + def self.read_with_options(path, opts = {}) + self.read(path, opts) end end