[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47554] [ruby-trunk - Bug #7031] Date::mjd_to_jd disappeared

From: "david_macmahon (David MacMahon)" <davidm@...>
Date: 2012-09-16 18:03:09 UTC
List: ruby-core #47554
Issue #7031 has been updated by david_macmahon (David MacMahon).


FWIW, they were part of 1.8.7:  

http://www.ruby-doc.org/stdlib-1.8.7/libdoc/date/rdoc/Date.html#method-c-mjd_to_jd

Comparing the docs for 1.8.7 and 1.9.3, it looks like all of the ::*_to_* conversion methods were dropped.

## Ruby 1.8.7
$ irb -f -r date
irb(main):001:0> RUBY_VERSION
=> "1.8.7"
irb(main):002:0> Date.methods.grep /_to_/
=> ["jd_to_mjd", "civil_to_jd", "day_fraction_to_time", "jd_to_commercial", "ld_to_jd", "jd_to_ordinal", "time_to_day_fraction", "jd_to_civil", "zone_to_diff", "jd_to_ld", "amjd_to_ajd", "ajd_to_jd", "jd_to_wday", "ajd_to_amjd", "commercial_to_jd", "mjd_to_jd", "ordinal_to_jd", "jd_to_ajd"]

## Ruby 1.9.3
$ irb -f -r date
irb(main):001:0> RUBY_VERSION
=> "1.9.3"
irb(main):002:0> Date.methods.grep /_to_/
=> [:respond_to_missing?]

----------------------------------------
Bug #7031:  Date::mjd_to_jd disappeared
https://bugs.ruby-lang.org/issues/7031#change-29410

Author: Anonymous
Status: Assigned
Priority: Normal
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/

In This Thread

Prev Next