friendly_shipping 0.4.12 → 0.4.13

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: ac610e37f3f9934e6d35875de977408fe0705a1805d65b02d64df9af92ee0a2e
4
- data.tar.gz: c753fd77d680370bb9093a77941fa3684fb9bc0be02dae6536bf778387f02881
3
+ metadata.gz: 1003d74ec50b026b72f4aee61e1c3ebfbdda0e99740ec0f766cb4c64a9333ad3
4
+ data.tar.gz: 72bb7de71cde4aae5d7b202fbf56dc2d8b2e31f04c2950d5bc17b8405d45139b
5
5
  SHA512:
6
- metadata.gz: f3233882a12440922c943e0397ab642d1166605cd9fb759c72e20410b921cc9b1d624f1e1eca03f76c4cad688903432fe590bfa9d3f1e5d2efbd3fa324a37ff0
7
- data.tar.gz: 0ef189d545b329facc67372ec3208ab9d0872feddc91933fb68500bfe804b8740816c628eb92535a4010206175c49784ed1b7211bbca55693f78a5643da4bda1
6
+ metadata.gz: 6a3feda8a0cc788d23318d61c9a90f9628ea1323f2e9a4208f23376f7efb768c6b732c9d6af462c18763a261ec22fc0ebe75bcdefe0656e7a9fbe38750a0ea92
7
+ data.tar.gz: 01042d8c994b18598ea9acfa4ce20a4c11190beeb43bf342a72d25d76040be65bddb2883a2e3d240c3502811cc89bfeb620ed397e681c05d7ab5efb89e3ce533
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ 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.4.13] - 2020-01-18
8
+
9
+ ### Changed
10
+ - USPS Service: Gracefully handle bogus responses from USPS (#77)
11
+
7
12
  ## [0.4.12] - 2020-01-15
8
13
 
9
14
  ### Changed
@@ -44,6 +44,8 @@ module FriendlyShipping
44
44
  end
45
45
  commitment_sequence = commitment_node.at('CommitmentSeq').text
46
46
  properties = COMMITMENT_SEQUENCES[commitment_sequence]
47
+ next unless properties # Sometimes USPS returns an invalid CommitmentSeq
48
+
47
49
  scheduled_delivery_time = properties.delete(:commitment_time)
48
50
  scheduled_delivery_date = commitment_node.at('SDD').text
49
51
  parsed_delivery_time = Time.parse("#{scheduled_delivery_date} #{scheduled_delivery_time}")
@@ -56,7 +58,7 @@ module FriendlyShipping
56
58
  guaranteed: guaranteed,
57
59
  properties: properties
58
60
  )
59
- end
61
+ end.compact
60
62
  end
61
63
 
62
64
  def parse_non_expedited_commitment_nodes(non_expedited_commitment_nodes)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FriendlyShipping
4
- VERSION = "0.4.12"
4
+ VERSION = "0.4.13"
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.4.12
4
+ version: 0.4.13
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-15 00:00:00.000000000 Z
11
+ date: 2020-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: data_uri