diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-26 18:20:46 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-10-31 15:51:30 +0900 |
commit | 3895e548bd2d75cdf47cd247e84d6071247dd3b3 (patch) | |
tree | c15c6a812342006c0f48a3dd54b2907a15b4c186 /ext/date | |
parent | fce940aac722575a78cd4cbe5f86dd3f3b40d13c (diff) |
[ruby/date] Revert "Simplify #inspect"
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459.
Revert requested by Yui Naruse.
https://github.com/ruby/date/commit/875d563557
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index fa00cbdcb7..ccac90a32e 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6574,8 +6574,11 @@ static VALUE mk_inspect(union DateData *x, VALUE klass, VALUE to_s) { return rb_enc_sprintf(rb_usascii_encoding(), - "#<%"PRIsVALUE": %"PRIsVALUE">", - klass, to_s); + "#<%"PRIsVALUE": %"PRIsVALUE" " + "((%+"PRIsVALUE"j,%ds,%+"PRIsVALUE"n),%+ds,%.0fj)>", + klass, to_s, + m_real_jd(x), m_df(x), m_sf(x), + m_of(x), m_sg(x)); } /* |