friendly_shipping 0.5 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7033f8bf845a41a0cefa6899a465fd78a85077ff565c7c30f67d04f20708ff6
4
- data.tar.gz: 2c5207e0139608d78b7c65b6f273b9dc222bc750bc47e587147e8f486c908b43
3
+ metadata.gz: 8bb403d6836f79ac9aa2640acde019549c1bad34f811b83a89200fc42d2988d0
4
+ data.tar.gz: cafc834f0f658fcbb642b05a63b0ae7a5199c4cb931a763d0fbe818e6120b507
5
5
  SHA512:
6
- metadata.gz: 00d7ce8fe1d737b482d71a6ff96195a82dc70b94c7784291c9cc18eb2f71ca529dadf33900a7f5aef223a4f89a3b1297403d7bc352dd9e8255c139b11b7351c1
7
- data.tar.gz: 7a7746f0c59dfcd03d2a330142f106cfe3c0fc7b82628859691d28c0dbd27e3d7584670c44f3509780271aaaf44fbd83551d0e1415ac14807d9ec2578891ab95
6
+ metadata.gz: d57c7d63efe4b830468831b40dd0f983fd4c500da0a0a7bb27d75b0f789041fdf39f22ce737d4bbf9c5c8853fc0207133df1188b64a73e5389d6898dfc15add0
7
+ data.tar.gz: d582a29e16a2d99bd397bb955ade4b0d220a93e749b0f0cbb96d645aa71c7ece47197b74fd5a65c2d2cd95988612b6f71c3599220aea4a97b3ae73606be4cb72
@@ -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' => 'First-Class Package Service'
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/RateEstimateobect] hash. The possible options are:
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::ShippingMethod] shipping_method The shipping method we want to get rates
17
- # for. If empty, we get all of them
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: 'PACKAGESERVICE'
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
- 'First-Class Package Service',
35
+ 'Package Services',
35
36
  'Priority',
36
37
  'Priority Mail Express',
37
38
  'Standard Post',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyShipping
4
- VERSION = "0.5"
4
+ VERSION = "0.5.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.5'
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-25 00:00:00.000000000 Z
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.0.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