summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-14 03:33:53 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-14 03:33:53 +0000
commit62b55d9483d72a11345300296190b1e9c0ffd652 (patch)
tree0e6c56fc309dd08eca5fab4dd47734396e885c16 /ext/bigdecimal
parentbb0eb3bf1f8c7d4da734eb9dec684adbf89b1b14 (diff)
Import bigdecimal-1.4.0.pre.20181214a
* https://github.com/ruby/bigdecimal/compare/v1.4.0.pre.20181205a..v1.4.0.pre.20181214a git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.gemspec2
-rw-r--r--ext/bigdecimal/lib/bigdecimal.rb6
2 files changed, 7 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec
index c65c1da0a2b..2475de78815 100644
--- a/ext/bigdecimal/bigdecimal.gemspec
+++ b/ext/bigdecimal/bigdecimal.gemspec
@@ -1,6 +1,6 @@
# coding: utf-8
-bigdecimal_version = '1.4.0.pre.20181204a'
+bigdecimal_version = '1.4.0.pre.20181214a'
Gem::Specification.new do |s|
s.name = "bigdecimal"
diff --git a/ext/bigdecimal/lib/bigdecimal.rb b/ext/bigdecimal/lib/bigdecimal.rb
new file mode 100644
index 00000000000..96995a32b39
--- /dev/null
+++ b/ext/bigdecimal/lib/bigdecimal.rb
@@ -0,0 +1,6 @@
+require 'bigdecimal.so'
+
+def BigDecimal.new(*args, **kwargs)
+ warn "BigDecimal.new is deprecated; use BigDecimal() method instead.", uplevel: 1
+ BigDecimal(*args, **kwargs)
+end