Skip to content

Commit

Permalink
Load DateLibrary from date.rb.
Browse files Browse the repository at this point in the history
I'm not sure how this was lost before. It may have been booted
elsewhere and that code disappeared.
headius committed Feb 23, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent 1758394 commit f9a47c6
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/Ruby.java
Original file line number Diff line number Diff line change
@@ -1745,6 +1745,7 @@ private void initBuiltins() {
addLazyBuiltin("fcntl.rb", "fcntl", "org.jruby.ext.fcntl.FcntlLibrary");
addLazyBuiltin("pathname.jar", "pathname", "org.jruby.ext.pathname.PathnameLibrary");
addLazyBuiltin("set.rb", "set", "org.jruby.ext.set.SetLibrary");
addLazyBuiltin("date.jar", "date", "org.jruby.ext.date.DateLibrary");

addLazyBuiltin("mathn/complex.jar", "mathn/complex", "org.jruby.ext.mathn.Complex");
addLazyBuiltin("mathn/rational.jar", "mathn/rational", "org.jruby.ext.mathn.Rational");
1 change: 1 addition & 0 deletions lib/ruby/stdlib/date.rb
Original file line number Diff line number Diff line change
@@ -194,6 +194,7 @@
# puts secs_to_new_year()

require 'date/format'
require 'date.jar'

# Class representing a date.
#

0 comments on commit f9a47c6

Please sign in to comment.