Skip to content

Commit

Permalink
Occasionally the library raises a "superclass mismatch for class Date…
Browse files Browse the repository at this point in the history
…Time (TypeError)" error.
  • Loading branch information
weppos committed May 16, 2010
1 parent 9538fda commit 460ed0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
= Changelog


== master

* FIXED: Occasionally the library raises a "superclass mismatch for class DateTime (TypeError)" error.

== Release 1.1.4

* NEW: Added registrar support to Verisign parsers
Expand Down
3 changes: 3 additions & 0 deletions lib/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def to_proc
end
end


require 'date'

class DateTime
# Ruby 1.9 has DateTime#to_time which internally relies on Time. We define our own #to_time which allows
# DateTimes outside the range of what can be created with Time.
Expand Down

0 comments on commit 460ed0d

Please sign in to comment.