friendly_shipping 0.9.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +1 -1
  3. data/.rubocop.yml +6 -0
  4. data/README.md +1 -1
  5. data/friendly_shipping.gemspec +7 -7
  6. data/lib/friendly_shipping/access_token.rb +24 -0
  7. data/lib/friendly_shipping/api_error.rb +4 -2
  8. data/lib/friendly_shipping/api_error_handler.rb +4 -6
  9. data/lib/friendly_shipping/api_failure.rb +2 -11
  10. data/lib/friendly_shipping/api_result.rb +10 -0
  11. data/lib/friendly_shipping/http_client.rb +4 -10
  12. data/lib/friendly_shipping/label.rb +0 -2
  13. data/lib/friendly_shipping/services/rl/api_error.rb +0 -2
  14. data/lib/friendly_shipping/services/rl/bol_options.rb +0 -4
  15. data/lib/friendly_shipping/services/rl/item_options.rb +0 -2
  16. data/lib/friendly_shipping/services/rl/package_options.rb +0 -2
  17. data/lib/friendly_shipping/services/rl/parse_create_bol_response.rb +0 -3
  18. data/lib/friendly_shipping/services/rl/parse_invoice_response.rb +0 -3
  19. data/lib/friendly_shipping/services/rl/parse_print_bol_response.rb +0 -3
  20. data/lib/friendly_shipping/services/rl/parse_print_shipping_labels_response.rb +0 -3
  21. data/lib/friendly_shipping/services/rl/parse_rate_quote_response.rb +31 -4
  22. data/lib/friendly_shipping/services/rl/parse_transit_times_response.rb +0 -3
  23. data/lib/friendly_shipping/services/rl/rate_quote_options.rb +0 -4
  24. data/lib/friendly_shipping/services/rl/serialize_location.rb +9 -2
  25. data/lib/friendly_shipping/services/rl/shipment_options.rb +0 -2
  26. data/lib/friendly_shipping/services/rl.rb +4 -21
  27. data/lib/friendly_shipping/services/ship_engine/api_error.rb +0 -2
  28. data/lib/friendly_shipping/services/ship_engine/label_item_options.rb +0 -2
  29. data/lib/friendly_shipping/services/ship_engine/label_options.rb +0 -4
  30. data/lib/friendly_shipping/services/ship_engine/label_package_options.rb +0 -3
  31. data/lib/friendly_shipping/services/ship_engine/parse_address_validation_response.rb +3 -5
  32. data/lib/friendly_shipping/services/ship_engine/parse_carrier_response.rb +0 -2
  33. data/lib/friendly_shipping/services/ship_engine/parse_label_response.rb +0 -2
  34. data/lib/friendly_shipping/services/ship_engine/parse_rate_estimates_response.rb +2 -4
  35. data/lib/friendly_shipping/services/ship_engine/parse_rates_response.rb +2 -4
  36. data/lib/friendly_shipping/services/ship_engine/parse_void_response.rb +2 -2
  37. data/lib/friendly_shipping/services/ship_engine/rate_estimates_options.rb +0 -2
  38. data/lib/friendly_shipping/services/ship_engine/rates_item_options.rb +0 -2
  39. data/lib/friendly_shipping/services/ship_engine/rates_options.rb +0 -2
  40. data/lib/friendly_shipping/services/ship_engine/rates_package_options.rb +0 -2
  41. data/lib/friendly_shipping/services/ship_engine.rb +11 -28
  42. data/lib/friendly_shipping/services/ship_engine_ltl/parse_carrier_response.rb +1 -3
  43. data/lib/friendly_shipping/services/ship_engine_ltl/parse_quote_response.rb +1 -3
  44. data/lib/friendly_shipping/services/ship_engine_ltl.rb +5 -17
  45. data/lib/friendly_shipping/services/tforce_freight/access_token.rb +3 -18
  46. data/lib/friendly_shipping/services/tforce_freight/api_error.rb +0 -2
  47. data/lib/friendly_shipping/services/tforce_freight/generate_create_bol_request_hash.rb +2 -14
  48. data/lib/friendly_shipping/services/tforce_freight/generate_pickup_request_hash.rb +0 -2
  49. data/lib/friendly_shipping/services/tforce_freight/generate_rates_request_hash.rb +0 -2
  50. data/lib/friendly_shipping/services/tforce_freight/package_options.rb +0 -2
  51. data/lib/friendly_shipping/services/tforce_freight/parse_create_bol_response.rb +0 -4
  52. data/lib/friendly_shipping/services/tforce_freight/parse_rates_response.rb +4 -12
  53. data/lib/friendly_shipping/services/tforce_freight/parse_shipment_document.rb +0 -2
  54. data/lib/friendly_shipping/services/tforce_freight/rates_item_options.rb +0 -2
  55. data/lib/friendly_shipping/services/tforce_freight/rates_options.rb +0 -3
  56. data/lib/friendly_shipping/services/tforce_freight/rates_package_options.rb +0 -2
  57. data/lib/friendly_shipping/services/tforce_freight/shipment_options.rb +0 -2
  58. data/lib/friendly_shipping/services/tforce_freight.rb +1 -27
  59. data/lib/friendly_shipping/services/ups/label_item_options.rb +0 -2
  60. data/lib/friendly_shipping/services/ups/label_options.rb +0 -3
  61. data/lib/friendly_shipping/services/ups/label_package_options.rb +0 -2
  62. data/lib/friendly_shipping/services/ups/parse_address_validation_response.rb +1 -1
  63. data/lib/friendly_shipping/services/ups/parse_rate_response.rb +0 -4
  64. data/lib/friendly_shipping/services/ups/parse_shipment_accept_response.rb +0 -3
  65. data/lib/friendly_shipping/services/ups/parse_shipment_confirm_response.rb +0 -2
  66. data/lib/friendly_shipping/services/ups/parse_void_shipment_response.rb +0 -2
  67. data/lib/friendly_shipping/services/ups/parse_xml_response.rb +1 -1
  68. data/lib/friendly_shipping/services/ups/rate_estimate_options.rb +0 -2
  69. data/lib/friendly_shipping/services/ups/rate_estimate_package_options.rb +0 -2
  70. data/lib/friendly_shipping/services/ups/serialize_access_request.rb +0 -2
  71. data/lib/friendly_shipping/services/ups/serialize_rating_service_selection_request.rb +0 -4
  72. data/lib/friendly_shipping/services/ups/serialize_shipment_confirm_request.rb +0 -3
  73. data/lib/friendly_shipping/services/ups.rb +1 -23
  74. data/lib/friendly_shipping/services/ups_freight/api_error.rb +0 -2
  75. data/lib/friendly_shipping/services/ups_freight/generate_freight_rate_request_hash.rb +0 -4
  76. data/lib/friendly_shipping/services/ups_freight/generate_freight_ship_request_hash.rb +0 -8
  77. data/lib/friendly_shipping/services/ups_freight/parse_freight_label_response.rb +0 -3
  78. data/lib/friendly_shipping/services/ups_freight/parse_freight_rate_response.rb +0 -4
  79. data/lib/friendly_shipping/services/ups_freight/parse_shipment_document.rb +0 -2
  80. data/lib/friendly_shipping/services/ups_freight/rates_options.rb +0 -4
  81. data/lib/friendly_shipping/services/ups_freight/rates_package_options.rb +0 -2
  82. data/lib/friendly_shipping/services/ups_freight/rates_structure_options.rb +0 -2
  83. data/lib/friendly_shipping/services/ups_freight/shipment_options.rb +0 -2
  84. data/lib/friendly_shipping/services/ups_freight.rb +1 -21
  85. data/lib/friendly_shipping/services/ups_json/access_token.rb +3 -12
  86. data/lib/friendly_shipping/services/ups_json/api_error.rb +0 -2
  87. data/lib/friendly_shipping/services/ups_json/generate_city_state_lookup_payload.rb +23 -0
  88. data/lib/friendly_shipping/services/ups_json/generate_labels_payload.rb +0 -3
  89. data/lib/friendly_shipping/services/ups_json/generate_rates_payload.rb +2 -4
  90. data/lib/friendly_shipping/services/ups_json/label_item_options.rb +0 -2
  91. data/lib/friendly_shipping/services/ups_json/label_options.rb +0 -3
  92. data/lib/friendly_shipping/services/ups_json/label_package_options.rb +0 -2
  93. data/lib/friendly_shipping/services/ups_json/parse_city_state_lookup_response.rb +44 -0
  94. data/lib/friendly_shipping/services/ups_json/parse_json_response.rb +13 -6
  95. data/lib/friendly_shipping/services/ups_json/parse_labels_response.rb +4 -4
  96. data/lib/friendly_shipping/services/ups_json/parse_money_hash.rb +1 -1
  97. data/lib/friendly_shipping/services/ups_json/parse_rate_modifier_hash.rb +2 -2
  98. data/lib/friendly_shipping/services/ups_json/parse_rates_response.rb +19 -17
  99. data/lib/friendly_shipping/services/ups_json/rates_item_options.rb +0 -2
  100. data/lib/friendly_shipping/services/ups_json/rates_options.rb +0 -2
  101. data/lib/friendly_shipping/services/ups_json.rb +23 -23
  102. data/lib/friendly_shipping/services/usps/parse_rate_response.rb +0 -4
  103. data/lib/friendly_shipping/services/usps/parse_time_in_transit_response.rb +0 -3
  104. data/lib/friendly_shipping/services/usps/parse_xml_response.rb +1 -1
  105. data/lib/friendly_shipping/services/usps/rate_estimate_options.rb +0 -2
  106. data/lib/friendly_shipping/services/usps/rate_estimate_package_options.rb +0 -2
  107. data/lib/friendly_shipping/services/usps/serialize_rate_request.rb +0 -2
  108. data/lib/friendly_shipping/services/usps.rb +1 -12
  109. data/lib/friendly_shipping/services/usps_international/parse_rate_response.rb +0 -3
  110. data/lib/friendly_shipping/services/usps_international/rate_estimate_options.rb +0 -2
  111. data/lib/friendly_shipping/services/usps_international/rate_estimate_package_options.rb +0 -2
  112. data/lib/friendly_shipping/services/usps_international/serialize_rate_request.rb +0 -2
  113. data/lib/friendly_shipping/services/usps_international.rb +1 -5
  114. data/lib/friendly_shipping/services/usps_ship/access_token.rb +3 -18
  115. data/lib/friendly_shipping/services/usps_ship/api_error.rb +0 -2
  116. data/lib/friendly_shipping/services/usps_ship/machinable_package.rb +6 -4
  117. data/lib/friendly_shipping/services/usps_ship/parse_rate_estimates_response.rb +3 -3
  118. data/lib/friendly_shipping/services/usps_ship/parse_timings_response.rb +14 -12
  119. data/lib/friendly_shipping/services/usps_ship/rate_estimate_package_options.rb +0 -2
  120. data/lib/friendly_shipping/services/usps_ship/serialize_rate_estimates_request.rb +0 -2
  121. data/lib/friendly_shipping/services/usps_ship.rb +1 -15
  122. data/lib/friendly_shipping/version.rb +1 -1
  123. data/lib/friendly_shipping.rb +20 -21
  124. metadata +7 -5
  125. data/lib/friendly_shipping/inflections.rb +0 -10
@@ -7,29 +7,14 @@ module FriendlyShipping
7
7
  class USPSShip
8
8
  # Represents an access token returned by USPS Ship. The access token can be
9
9
  # used to make API requests. Once it expires, a new token must be created.
10
- class AccessToken
10
+ class AccessToken < FriendlyShipping::AccessToken
11
11
  # @return [String] the token's type
12
12
  attr_reader :token_type
13
13
 
14
- # @return [Integer] the token's expiration
15
- attr_reader :expires_in
16
-
17
- # @return [String] the raw JWT token
18
- attr_reader :raw_token
19
-
20
14
  # @param token_type [String] the token's type (typically "Bearer")
21
- # @param expires_in [Integer] the token's expiration
22
- # @param raw_token [String] the raw JWT token
23
- def initialize(token_type:, expires_in:, raw_token:)
15
+ def initialize(token_type:, **other_kwargs)
24
16
  @token_type = token_type
25
- @expires_in = expires_in
26
- @raw_token = raw_token
27
- end
28
-
29
- # Decodes and returns the raw JWT token.
30
- # @return [Array<Hash>] the decoded token
31
- def decoded_token
32
- @_decoded_token = JWT.decode(raw_token, nil, false)
17
+ super(**other_kwargs)
33
18
  end
34
19
  end
35
20
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'friendly_shipping/api_error'
4
-
5
3
  module FriendlyShipping
6
4
  module Services
7
5
  class USPSShip
@@ -15,10 +15,11 @@ module FriendlyShipping
15
15
  MIN_WIDTH = Measured::Length(3, :inches)
16
16
  MIN_HEIGHT = Measured::Length(0.25, :inches)
17
17
 
18
- MAX_LENGTH = Measured::Length(27, :inches)
19
- MAX_WIDTH = Measured::Length(17, :inches)
20
- MAX_HEIGHT = Measured::Length(17, :inches)
18
+ MAX_LENGTH = Measured::Length(22, :inches)
19
+ MAX_WIDTH = Measured::Length(18, :inches)
20
+ MAX_HEIGHT = Measured::Length(15, :inches)
21
21
 
22
+ MIN_WEIGHT = Measured::Weight(6, :ounces)
22
23
  MAX_WEIGHT = Measured::Weight(25, :pounds)
23
24
 
24
25
  # @param package [Physical::Package]
@@ -37,7 +38,8 @@ module FriendlyShipping
37
38
  def at_least_minimum
38
39
  package.length >= MIN_LENGTH &&
39
40
  package.width >= MIN_WIDTH &&
40
- package.height >= MIN_HEIGHT
41
+ package.height >= MIN_HEIGHT &&
42
+ package.weight >= MIN_WEIGHT
41
43
  end
42
44
 
43
45
  # @return [Boolean]
@@ -12,7 +12,7 @@ module FriendlyShipping
12
12
  #
13
13
  # @param request [Request] the request that was used to obtain this response
14
14
  # @param response [Response] the response that USPS returned
15
- # @return [Success<ApiResult<Array<Rate>>>, Failure<ApiFailure<String>>]
15
+ # @return [Success<ApiResult<Array<Rate>>>, Failure<ApiResult<String>>]
16
16
  def call(request:, response:)
17
17
  rates = JSON.parse(response.body)['rates'].map do |rate|
18
18
  shipping_method = SHIPPING_METHODS.detect { |sm| sm.service_code == rate['mailClass'] }
@@ -63,10 +63,10 @@ module FriendlyShipping
63
63
  # @param message [String]
64
64
  # @param request [Request]
65
65
  # @param response [Response]
66
- # @return [Failure<ApiFailure<String>>]
66
+ # @return [Failure<ApiResult<String>>]
67
67
  def failure(message, request, response)
68
68
  Failure(
69
- ApiFailure.new(
69
+ ApiResult.new(
70
70
  message,
71
71
  original_request: request,
72
72
  original_response: response
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'friendly_shipping/timing'
4
-
5
3
  module FriendlyShipping
6
4
  module Services
7
5
  class USPSShip
@@ -13,7 +11,7 @@ module FriendlyShipping
13
11
  #
14
12
  # @param request [Request] the request that was used to obtain this response
15
13
  # @param response [Response] the response that USPS returned
16
- # @return [Success<ApiResult<Array<Timing>>>, Failure<ApiFailure<String>>]
14
+ # @return [Success<ApiResult<Array<Timing>>>, Failure<ApiResult<String>>]
17
15
  def call(request:, response:)
18
16
  timings = JSON.parse(response.body).map do |timing|
19
17
  shipping_method = SHIPPING_METHODS.detect { |sm| sm.service_code == timing['mailClass'] }
@@ -36,16 +34,14 @@ module FriendlyShipping
36
34
  end.compact
37
35
 
38
36
  if timings.empty?
39
- failure("No timings were returned. Is the destination zip correct?", request, response)
37
+ failure(api_error("No timings were returned. Is the destination zip correct?"), request, response)
40
38
  else
41
39
  success(timings, request, response)
42
40
  end
43
41
  rescue JSON::ParserError => e
44
- failure(e.message, request, response)
42
+ failure(e, request, response)
45
43
  end
46
44
 
47
- private
48
-
49
45
  # @param timings [Array<Timing>]
50
46
  # @param request [Request]
51
47
  # @param response [Response]
@@ -60,19 +56,25 @@ module FriendlyShipping
60
56
  )
61
57
  end
62
58
 
63
- # @param message [String]
59
+ # @param error [JSON::ParserError, FriendlyShipping::ApiError]
64
60
  # @param request [Request]
65
61
  # @param response [Response]
66
- # @return [Failure<ApiFailure<String>>]
67
- def failure(message, request, response)
62
+ # @return [Failure<ApiResult>]
63
+ def failure(error, request, response)
68
64
  Failure(
69
- ApiFailure.new(
70
- message,
65
+ ApiResult.new(
66
+ error,
71
67
  original_request: request,
72
68
  original_response: response
73
69
  )
74
70
  )
75
71
  end
72
+
73
+ private
74
+
75
+ def api_error(message)
76
+ FriendlyShipping::ApiError.new(nil, message)
77
+ end
76
78
  end
77
79
  end
78
80
  end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'friendly_shipping/services/ups/rate_estimate_package_options'
4
-
5
3
  module FriendlyShipping
6
4
  module Services
7
5
  class USPSShip
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'friendly_shipping/services/usps/machinable_package'
4
-
5
3
  module FriendlyShipping
6
4
  module Services
7
5
  class USPSShip
@@ -1,20 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'friendly_shipping/http_client'
4
-
5
- require 'friendly_shipping/services/usps_ship/access_token'
6
- require 'friendly_shipping/services/usps_ship/api_error'
7
- require 'friendly_shipping/services/usps_ship/shipping_methods'
8
-
9
- require 'friendly_shipping/services/usps_ship/rate_estimate_options'
10
- require 'friendly_shipping/services/usps_ship/rate_estimate_package_options'
11
- require 'friendly_shipping/services/usps_ship/timing_options'
12
-
13
- require 'friendly_shipping/services/usps_ship/serialize_rate_estimates_request'
14
- require 'friendly_shipping/services/usps_ship/machinable_package'
15
-
16
- require 'friendly_shipping/services/usps_ship/parse_rate_estimates_response'
17
- require 'friendly_shipping/services/usps_ship/parse_timings_response'
3
+ require 'nokogiri'
18
4
 
19
5
  module FriendlyShipping
20
6
  module Services
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyShipping
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.1"
5
5
  end
@@ -2,32 +2,31 @@
2
2
 
3
3
  require "physical"
4
4
  require "money"
5
+ require "dry/monads"
6
+ require "restclient"
5
7
 
6
8
  # Explicitly configure the default rounding mode to avoid deprecation warnings
7
9
  Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
8
10
 
9
- require "friendly_shipping/version"
10
- require "friendly_shipping/inflections"
11
- require "friendly_shipping/request"
12
- require "friendly_shipping/response"
13
- require "friendly_shipping/carrier"
14
- require "friendly_shipping/shipping_method"
15
- require "friendly_shipping/structure_options"
16
- require "friendly_shipping/label"
17
- require "friendly_shipping/rate"
18
- require "friendly_shipping/api_result"
19
- require "friendly_shipping/api_failure"
11
+ require "zeitwerk"
20
12
 
21
- require 'friendly_shipping/services/rl'
22
- require "friendly_shipping/services/ship_engine"
23
- require 'friendly_shipping/services/ship_engine_ltl'
24
- require "friendly_shipping/services/tforce_freight"
25
- require "friendly_shipping/services/ups"
26
- require "friendly_shipping/services/ups_freight"
27
- require "friendly_shipping/services/ups_json"
28
- require "friendly_shipping/services/usps"
29
- require "friendly_shipping/services/usps_international"
30
- require "friendly_shipping/services/usps_ship"
13
+ loader = Zeitwerk::Loader.for_gem
14
+ loader.inflector.inflect(
15
+ "rl" => "RL",
16
+ "parse_create_bol_response" => "ParseCreateBOLResponse",
17
+ "parse_print_bol_response" => "ParsePrintBOLResponse",
18
+ "serialize_create_bol_request" => "SerializeCreateBOLRequest",
19
+ "bol_structures_serializer" => "BOLStructuresSerializer",
20
+ "bol_packages_serializer" => "BOLPackagesSerializer",
21
+ "bol_options" => "BOLOptions",
22
+ "ship_engine_ltl" => "ShipEngineLTL",
23
+ "tforce_freight" => "TForceFreight",
24
+ "generate_create_bol_request_hash" => "GenerateCreateBOLRequestHash",
25
+ "parse_xml_response" => "ParseXMLResponse",
26
+ "usps_ship" => "USPSShip",
27
+ "shipping_methods" => "SHIPPING_METHODS"
28
+ )
29
+ loader.setup
31
30
 
32
31
  module FriendlyShipping
33
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_shipping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-05-06 00:00:00.000000000 Z
12
+ date: 2025-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-monads
@@ -130,13 +130,13 @@ files:
130
130
  - bin/setup
131
131
  - friendly_shipping.gemspec
132
132
  - lib/friendly_shipping.rb
133
+ - lib/friendly_shipping/access_token.rb
133
134
  - lib/friendly_shipping/api_error.rb
134
135
  - lib/friendly_shipping/api_error_handler.rb
135
136
  - lib/friendly_shipping/api_failure.rb
136
137
  - lib/friendly_shipping/api_result.rb
137
138
  - lib/friendly_shipping/carrier.rb
138
139
  - lib/friendly_shipping/http_client.rb
139
- - lib/friendly_shipping/inflections.rb
140
140
  - lib/friendly_shipping/item_options.rb
141
141
  - lib/friendly_shipping/label.rb
142
142
  - lib/friendly_shipping/package_options.rb
@@ -300,6 +300,7 @@ files:
300
300
  - lib/friendly_shipping/services/ups_json/api_error.rb
301
301
  - lib/friendly_shipping/services/ups_json/generate_address_classification_payload.rb
302
302
  - lib/friendly_shipping/services/ups_json/generate_address_hash.rb
303
+ - lib/friendly_shipping/services/ups_json/generate_city_state_lookup_payload.rb
303
304
  - lib/friendly_shipping/services/ups_json/generate_labels_payload.rb
304
305
  - lib/friendly_shipping/services/ups_json/generate_package_hash.rb
305
306
  - lib/friendly_shipping/services/ups_json/generate_rates_payload.rb
@@ -310,6 +311,7 @@ files:
310
311
  - lib/friendly_shipping/services/ups_json/label_options.rb
311
312
  - lib/friendly_shipping/services/ups_json/label_package_options.rb
312
313
  - lib/friendly_shipping/services/ups_json/parse_address_classification_response.rb
314
+ - lib/friendly_shipping/services/ups_json/parse_city_state_lookup_response.rb
313
315
  - lib/friendly_shipping/services/ups_json/parse_json_response.rb
314
316
  - lib/friendly_shipping/services/ups_json/parse_labels_response.rb
315
317
  - lib/friendly_shipping/services/ups_json/parse_money_hash.rb
@@ -376,14 +378,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
378
  requirements:
377
379
  - - ">="
378
380
  - !ruby/object:Gem::Version
379
- version: '3.0'
381
+ version: '3.1'
380
382
  required_rubygems_version: !ruby/object:Gem::Requirement
381
383
  requirements:
382
384
  - - ">="
383
385
  - !ruby/object:Gem::Version
384
386
  version: '0'
385
387
  requirements: []
386
- rubygems_version: 3.4.20
388
+ rubygems_version: 3.5.22
387
389
  signing_key:
388
390
  specification_version: 4
389
391
  summary: An integration layer for shipping services
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # This is necessary for classes with acronyms to autoload in Rails
4
- if Object.const_defined?('ActiveSupport::Inflector')
5
- ActiveSupport::Inflector.inflections(:en) do |inflect|
6
- inflect.acronym 'BOL'
7
- inflect.acronym 'RL'
8
- inflect.acronym 'TForce'
9
- end
10
- end