Sha256: c012054f3cfc91d4187e9b70e3a87ee9c1de446db8337c42c586ee4f406dd4ff

Contents?: true

Size: 576 Bytes

Versions: 12

Compression:

Stored size: 576 Bytes

Contents

require 'date/format'

# Taken directly from the Ruby 1.8.6 standard library.  Ruby 1.9 has apparently
# eliminated this class, but it is currently (2008-02-08) required by ActiveSupport.
#
# Making this file available to ActiveSupport allows testing under Ruby 1.9,
# but this patch should be unnecessary when ActiveSupport upgrades and becomes
# compatible with Ruby 1.9
module ParseDate # :nodoc:
  def parsedate(str, comp=false)
    Date._parse(str, comp).
      values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)
  end

  module_function :parsedate
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
bahuvrihi-tap-0.10.0 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.1 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.2 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.3 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.4 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.5 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.6 lib/tap/patches/ruby19/parsedate.rb
bahuvrihi-tap-0.10.7 lib/tap/patches/ruby19/parsedate.rb
tap-0.10.0 lib/tap/patches/ruby19/parsedate.rb
tap-0.10.1 lib/tap/patches/ruby19/parsedate.rb
tap-0.9.0 lib/tap/patches/ruby19/parsedate.rb
tap-0.9.1 lib/tap/patches/ruby19/parsedate.rb