lib/friendly_shipping.rb in friendly_shipping-0.4.6 vs lib/friendly_shipping.rb in friendly_shipping-0.4.7
- old
+ new
@@ -1,7 +1,11 @@
# frozen_string_literal: true
require "physical"
+require "money"
+
+# Explicitly configure the default rounding mode to avoid deprecation warnings
+Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
require "friendly_shipping/version"
require "friendly_shipping/request"
require "friendly_shipping/response"
require "friendly_shipping/carrier"