friendly_shipping 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/friendly_shipping/services/ups.rb +1 -1
- data/lib/friendly_shipping/services/usps/parse_time_in_transit_response.rb +1 -1
- data/lib/friendly_shipping/services/usps/rate_estimate_options.rb +1 -1
- data/lib/friendly_shipping/services/usps/serialize_rate_request.rb +2 -2
- data/lib/friendly_shipping/services/usps/shipping_methods.rb +3 -2
- data/lib/friendly_shipping/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bb403d6836f79ac9aa2640acde019549c1bad34f811b83a89200fc42d2988d0
|
4
|
+
data.tar.gz: cafc834f0f658fcbb642b05a63b0ae7a5199c4cb931a763d0fbe818e6120b507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d57c7d63efe4b830468831b40dd0f983fd4c500da0a0a7bb27d75b0f789041fdf39f22ce737d4bbf9c5c8853fc0207133df1188b64a73e5389d6898dfc15add0
|
7
|
+
data.tar.gz: d582a29e16a2d99bd397bb955ade4b0d220a93e749b0f0cbb96d645aa71c7ece47197b74fd5a65c2d2cd95988612b6f71c3599220aea4a97b3ae73606be4cb72
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ 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.5.1] - 2020-01-28
|
8
|
+
|
9
|
+
### Changed
|
10
|
+
- USPS Service: Rename "Package Services" shipping method (#85)
|
11
|
+
- Documentation updates (#86)
|
12
|
+
|
7
13
|
## [0.5] - 2020-01-24
|
8
14
|
|
9
15
|
### Removed
|
@@ -84,7 +84,7 @@ module FriendlyShipping
|
|
84
84
|
|
85
85
|
# Get timing information for a shipment
|
86
86
|
# @param [Physical::Shipment] shipment The shipment we want to estimate timings for
|
87
|
-
# @param [FriendlyShipping::Services::Ups::TimingOptions] Options for this call
|
87
|
+
# @param [FriendlyShipping::Services::Ups::TimingOptions] options Options for this call
|
88
88
|
def timings(shipment, options:, debug: false)
|
89
89
|
time_in_transit_request_xml = SerializeTimeInTransitRequest.call(
|
90
90
|
shipment: shipment,
|
@@ -113,7 +113,7 @@ module FriendlyShipping
|
|
113
113
|
'1' => 'Priority Mail Express',
|
114
114
|
'2' => 'Priority',
|
115
115
|
'3' => 'First-Class',
|
116
|
-
'6' => '
|
116
|
+
'6' => 'Package Services'
|
117
117
|
}.freeze
|
118
118
|
|
119
119
|
# This code carries a few details about the shipment:
|
@@ -8,7 +8,7 @@ module FriendlyShipping
|
|
8
8
|
#
|
9
9
|
# Context: The shipment object we're trying to get results for
|
10
10
|
# USPS returns rates on a package-by-package basis, so the options for obtaining rates are
|
11
|
-
# set on the [FriendlyShipping/
|
11
|
+
# set on the [FriendlyShipping/RateEstimateObject] hash. The possible options are:
|
12
12
|
|
13
13
|
# @param [Physical::ShippingMethod] shipping_method The shipping method ("service" in USPS parlance) we want
|
14
14
|
# to get rates for.
|
@@ -13,8 +13,8 @@ module FriendlyShipping
|
|
13
13
|
# shipment.packages[0].properties[:box_name] Can be :rectangular, :variable,
|
14
14
|
# or a flat rate container defined in CONTAINERS.
|
15
15
|
# @param [String] login The USPS login code
|
16
|
-
# @param [FriendlyShipping::
|
17
|
-
#
|
16
|
+
# @param [FriendlyShipping::Services::Usps::RateEstimateOptions] options The options
|
17
|
+
# object to use with this request.
|
18
18
|
# @return Array<[FriendlyShipping::Rate]> A set of Rates that this package may be sent with
|
19
19
|
def call(shipment:, login:, options:)
|
20
20
|
xml_builder = Nokogiri::XML::Builder.new do |xml|
|
@@ -26,12 +26,13 @@ module FriendlyShipping
|
|
26
26
|
flat: 'FLAT',
|
27
27
|
parcel: 'PARCEL',
|
28
28
|
post_card: 'POSTCARD',
|
29
|
-
package_service: '
|
29
|
+
package_service: 'PACKAGE SERVICE',
|
30
|
+
package_service_retail: 'PACKAGE SERVICE RETAIL'
|
30
31
|
}.freeze
|
31
32
|
|
32
33
|
SHIPPING_METHODS = [
|
33
34
|
'First-Class',
|
34
|
-
'
|
35
|
+
'Package Services',
|
35
36
|
'Priority',
|
36
37
|
'Priority Mail Express',
|
37
38
|
'Standard Post',
|
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:
|
4
|
+
version: 0.5.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: 2020-01-
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: data_uri
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
- !ruby/object:Gem::Version
|
377
377
|
version: '0'
|
378
378
|
requirements: []
|
379
|
-
rubygems_version: 3.
|
379
|
+
rubygems_version: 3.1.2
|
380
380
|
signing_key:
|
381
381
|
specification_version: 4
|
382
382
|
summary: An integration layer for shipping services
|