ruby-changes:54307
From: mrkn <ko1@a...>
Date: Mon, 24 Dec 2018 03:32:08 +0900 (JST)
Subject: [ruby-changes:54307] mrkn:r66516 (trunk): Import bigdecimal-1.4.0
mrkn 2018-12-24 03:32:01 +0900 (Mon, 24 Dec 2018) New Revision: 66516 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66516 Log: Import bigdecimal-1.4.0 * https://github.com/ruby/bigdecimal/compare/v1.4.0.pre.20181220a..v1.4.0 Modified files: trunk/ext/bigdecimal/bigdecimal.c trunk/ext/bigdecimal/bigdecimal.gemspec Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 66515) +++ ext/bigdecimal/bigdecimal.c (revision 66516) @@ -2668,7 +2668,7 @@ BigDecimal_new(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L2668 } /* call-seq: - * BigDecimal(initial, digits) + * BigDecimal(initial, digits, exception: true) * * Create a new BigDecimal object. * @@ -2682,8 +2682,13 @@ BigDecimal_new(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L2682 * the number of significant digits is determined from the initial * value. * - * The actual number of significant digits used in computation is usually - * larger than the specified number. + * The actual number of significant digits used in computation is + * usually larger than the specified number. + * + * exception:: Whether an exception should be raised on invalid arguments. + * +true+ by default, if passed +false+, just returns +nil+ + * for invalid. + * * * ==== Exceptions * @@ -3955,9 +3960,6 @@ VP_EXPORT size_t https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L3960 VpInit(BDIGIT BaseVal) { /* Setup +/- Inf NaN -0 */ - VpGetDoubleNaN(); - VpGetDoublePosInf(); - VpGetDoubleNegInf(); VpGetDoubleNegZero(); /* Allocates Vp constants. */ Index: ext/bigdecimal/bigdecimal.gemspec =================================================================== --- ext/bigdecimal/bigdecimal.gemspec (revision 66515) +++ ext/bigdecimal/bigdecimal.gemspec (revision 66516) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.gemspec#L1 # coding: utf-8 -bigdecimal_version = '1.4.0.pre.20181220a' +bigdecimal_version = '1.4.0' Gem::Specification.new do |s| s.name = "bigdecimal" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/