From: "david_macmahon (David MacMahon)" Date: 2012-09-19T13:36:58+09:00 Subject: [ruby-core:47579] [ruby-trunk - Bug #7031] Date::mjd_to_jd disappeared Issue #7031 has been updated by david_macmahon (David MacMahon). Well, what's done is done. One cannot put the toothpaste back in the tube. It looks like "wew" (William Webber, I presume) documented all of the non-private lib/date.rb methods in 2003 (see r4435). Prior to that it appears all undocumented and all non-nodoc. On the bright side, I have learned a couple of new "best practices" from this: 1. Never put debug/test methods in files that end up on $LOAD_PATH. These methods can be added as needed from files that do not end up on $LOAD_PATH. 2. Always mark "internal use" methods as private, protected, and/or nodoc as applicable. Thanks for all your work on Ruby!!! ---------------------------------------- Bug #7031: Date::mjd_to_jd disappeared https://bugs.ruby-lang.org/issues/7031#change-29503 Author: Anonymous Status: Rejected Priority: Low Assignee: tadf (tadayoshi funaba) Category: lib Target version: ruby -v: - I've migrated almost all of my Ruby code from Ruby 1.8 to 1.9 (finally!). Most things went pretty smoothly, but I recently came across a script of mine that uses Date::mjd_to_jd. This method, along with several other Date methods, seems to have disappeared from Ruby as of r31668. I didn't see any discussion of these methods in the commit logs nor could I find anything about them on the web or ruby mailing list archives. Are there replacement methods for these that I should be using instead? Was there a reason for removing these methods that I should be aware of before monkey patching them back in? Am I missing something? Thanks, Dave -- http://bugs.ruby-lang.org/