Skip to content

Commit f9a47c6

Browse files
committedFeb 23, 2018
Load DateLibrary from date.rb.
I'm not sure how this was lost before. It may have been booted elsewhere and that code disappeared.
1 parent 1758394 commit f9a47c6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/Ruby.java

+1
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ private void initBuiltins() {
17451745
addLazyBuiltin("fcntl.rb", "fcntl", "org.jruby.ext.fcntl.FcntlLibrary");
17461746
addLazyBuiltin("pathname.jar", "pathname", "org.jruby.ext.pathname.PathnameLibrary");
17471747
addLazyBuiltin("set.rb", "set", "org.jruby.ext.set.SetLibrary");
1748+
addLazyBuiltin("date.jar", "date", "org.jruby.ext.date.DateLibrary");
17481749

17491750
addLazyBuiltin("mathn/complex.jar", "mathn/complex", "org.jruby.ext.mathn.Complex");
17501751
addLazyBuiltin("mathn/rational.jar", "mathn/rational", "org.jruby.ext.mathn.Rational");

Diff for: ‎lib/ruby/stdlib/date.rb

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
# puts secs_to_new_year()
195195

196196
require 'date/format'
197+
require 'date.jar'
197198

198199
# Class representing a date.
199200
#

0 commit comments

Comments
 (0)
Please sign in to comment.