Sha256: 8a0b2630d26eff66d1df7662e1cb8c6616138cef7f12adb596c1210378f5294d

Contents?: true

Size: 754 Bytes

Versions: 1

Compression:

Stored size: 754 Bytes

Contents

# This throws an *absurd* amount of deprecation warnings when running
# tests, making it pretty impossible to see what you're doing. It's due
# to the gem running in Ruby 2.6, which deprecated `BigDecimal.new` and
# replaced it with the `BigDecimal()` method. Every time
# `Helper.to_big_decimal` is called by the FlowCommerce gem, we get a
# big ol' deprecation warning in the console. This should silence those
# warnings until https://github.com/flowcommerce/ruby-sdk/issues/25 is
# resolved.
module Io
  module Flow
    module V0
      module HttpClient
        module Helper
          def Helper.to_big_decimal(value)
            return unless value.present?

            BigDecimal(value.to_s)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 config/initializers/freedom_patches.rb