summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/lib
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/lib
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/lib')
-rw-r--r--ext/bigdecimal/lib/bigdecimal.rb6
1 files changed, 6 insertions, 0 deletions
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