friendly_shipping 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e5444887ead0f957efaa619fc49bf737c34513f8a2480504beaabdbdab0eb2d
4
- data.tar.gz: c52c103c53e9be10cef0d6288c1713de54441e536f8691cf0685c2bb0a4859ff
3
+ metadata.gz: 748717bbd3258962363ac3c25a9159cbcf384c91d8f5a356a1c405441bec7bac
4
+ data.tar.gz: cf66d120169edd0bdc1608a27c0a015da599ca7800e813245cb1af9b2ce7992d
5
5
  SHA512:
6
- metadata.gz: eff139906b09356f48bbb34e39587f41f3802cba25abb87921b7e2883865d399d4b043b793c5e0ca40fddf9fe9ca00b326be39722466a9c59c83020a67d6674e
7
- data.tar.gz: 396fe842544a93357d601d383a27d116b5b6f4e2947fec39703e7bd70a57b8fe30a63f68eb7312761db56e3533d59fbf70a3c87bb673ac3d497912c84b5a703b
6
+ metadata.gz: f5b2fe10990482d30af429f31bbb48acfafa3dec81adf728a18a29d3de20bafaf329d00c73bb8899ab21469b7068a67bdb848067980d4deee559cdd1cbe511bb
7
+ data.tar.gz: 483efd68ebd20f3554baa8a239d1372a3fea8805cbcd203e84f7ec2401fd135627c452c2002147b474635806748dffd926ead4f40030ce583fb8a01c6d60ef3a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.7.1] - 2023-01-20
8
+ - ShipEngine Service: Include package dimensions even if package code given
9
+
7
10
  ## [0.7.0] - 2022-12-14
8
11
  - Removes dependency on unmaintained data_uri gem
9
12
  - Bumps required Ruby to 2.7
@@ -53,16 +53,13 @@ module FriendlyShipping
53
53
  ["reference#{index + 1}".to_sym, message]
54
54
  end.to_h
55
55
 
56
- if package_options.package_code
57
- package_hash[:package_code] = package_options.package_code
58
- else
59
- package_hash[:dimensions] = {
60
- unit: 'inch',
61
- width: package.container.width.convert_to(:inches).value.to_f.round(2),
62
- length: package.container.length.convert_to(:inches).value.to_f.round(2),
63
- height: package.container.height.convert_to(:inches).value.to_f.round(2)
64
- }
65
- end
56
+ package_hash[:package_code] = package_options.package_code
57
+ package_hash[:dimensions] = {
58
+ unit: 'inch',
59
+ width: package.container.width.convert_to(:inches).value.to_f.round(2),
60
+ length: package.container.length.convert_to(:inches).value.to_f.round(2),
61
+ height: package.container.height.convert_to(:inches).value.to_f.round(2)
62
+ }
66
63
  package_hash
67
64
  end
68
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyShipping
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_shipping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Meyerhoff
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-14 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads