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

[BSON] Various warnings

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • bson-5.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      If running Ruby with $VERBOSE = true a number of warnings related to the bson gem are surfaced:

      $ ruby -rbson -w -e 'puts "Ruby: #{ENV["RUBY_VERSION"]} / bson-ruby: #{BSON::VERSION}"'
      
      # output
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson/decimal128/builder.rb:192: warning: assigned but unused variable - original
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson/decimal128/builder.rb:193: warning: assigned but unused variable - e
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson/decimal128/builder.rb:194: warning: assigned but unused variable - decimal
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson/decimal128/builder.rb:320: warning: assigned but unused variable - base
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson_native.bundle: warning: method redefined; discarding old next_object_id
      /Users/alex/.rvm/gems/ruby-3.2.0/gems/bson-4.15.0/lib/bson/object_id.rb:371: warning: previous definition of next_object_id was here
      Ruby: ruby-3.2.0 / bson-ruby: 4.15.0
      

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: