Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1653

Replace BigDecimal.new with BigDecimal() (bson)

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • bson-4.5.0
    • Affects Version/s: None
    • Component/s: BSON
    • Environment:
      ruby 2.6.0

      BigDecimal(1) works down to ruby 1.9.

      The driver itself does not use BigDecimal, but bson-ruby does.


      `warning: BigDecimal.new is deprecated` reported with ruby 2.6.0

      ruby/2.6.0/lib/ruby/gems/mongoid-6.4.2/lib/mongoid/extensions/big_decimal.rb:56: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.

      Refer Ruby/BigDecimal

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oshanz Oshan Wisumperuma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: