diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-24 06:22:41 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-24 06:22:41 +0000 |
commit | ea68278fe39f0b7f7dba6a34ae8bf6d4acb94fb5 (patch) | |
tree | b98d64b1688142e413f2b7fc2e01be7136adcf57 /ext/bigdecimal | |
parent | 9f68d0f59196f356b9c20f23a5299c3d32559eae (diff) | |
download | ruby-ea68278fe39f0b7f7dba6a34ae8bf6d4acb94fb5.tar.gz |
bigdecimal: version 1.3.4
Import bigdecimal version 1.3.4. The full commit log is here:
https://github.com/ruby/bigdecimal/compare/v1.3.3...v1.3.4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 14 | ||||
-rw-r--r-- | ext/bigdecimal/bigdecimal.gemspec | 2 |
2 files changed, 4 insertions, 12 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index fcc29a0865..cdd00388d4 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2602,7 +2602,7 @@ static Real *BigDecimal_new(int argc, VALUE *argv); static VALUE BigDecimal_s_new(int argc, VALUE *argv, VALUE self) { - rb_warning("BigDecimal.new is deprecated"); + rb_warning("BigDecimal.new is deprecated; use Kernel.BigDecimal method instead."); return rb_call_super(argc, argv); } @@ -2645,15 +2645,7 @@ BigDecimal_initialize_copy(VALUE self, VALUE other) static VALUE BigDecimal_clone(VALUE self) { - rb_warning("BigDecimal#clone is deprecated."); - return rb_call_super(0, NULL); -} - -static VALUE -BigDecimal_dup(VALUE self) -{ - rb_warning("BigDecimal#dup is deprecated."); - return rb_call_super(0, NULL); + return self; } static Real * @@ -3449,7 +3441,7 @@ Init_bigdecimal(void) rb_define_method(rb_cBigDecimal, "remainder", BigDecimal_remainder, 1); rb_define_method(rb_cBigDecimal, "divmod", BigDecimal_divmod, 1); rb_define_method(rb_cBigDecimal, "clone", BigDecimal_clone, 0); - rb_define_method(rb_cBigDecimal, "dup", BigDecimal_dup, 0); + rb_define_method(rb_cBigDecimal, "dup", BigDecimal_clone, 0); rb_define_method(rb_cBigDecimal, "to_f", BigDecimal_to_f, 0); rb_define_method(rb_cBigDecimal, "abs", BigDecimal_abs, 0); rb_define_method(rb_cBigDecimal, "sqrt", BigDecimal_sqrt, 1); diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec index c1f7da493b..c8c90870ea 100644 --- a/ext/bigdecimal/bigdecimal.gemspec +++ b/ext/bigdecimal/bigdecimal.gemspec @@ -1,6 +1,6 @@ # coding: utf-8 -bigdecimal_version = '1.3.3' +bigdecimal_version = '1.3.4' Gem::Specification.new do |s| s.name = "bigdecimal" |