tracking_number 1.0.4 → 1.0.5

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: c982bd19b169cb2d7c3451f310d0408185e3ca3da9056dfd7f08f6d70194d9f1
4
- data.tar.gz: ead95abd691ee8572fd295b3e8aed206b44cbb791437c8d40c90702c1e8cd5e7
3
+ metadata.gz: c4370bfbff7668251f845585e5111d2edf5fed7a1b15e15d60197f1172bd5184
4
+ data.tar.gz: 8492e19e191396b77531f073b8b2c56f729d04d0b21e97d0a2b7a9a72f83cb59
5
5
  SHA512:
6
- metadata.gz: '086856f2923929118bd32f6e6ccd9725c0099c9d274273a9ac5ff072fb2f561460cd940d6b95506ca3ea2685b998310cba8534ef3404732353bdb8a2452094e4'
7
- data.tar.gz: 2280018d8645ce2181819c7cc35a53e8ea857ef7e785a335ed03c6bac6b813e47f6bcb5ac6831e251e77b7f17ffc5451680fea15d69cbaec84bb753dacef3f1e
6
+ metadata.gz: 8204bcc26b83610517ead60c679154b6bb16c5ec10151319ec218fb1eee4e942bdabe37fba69d2d78a04fc5253c414f92a2ee2ff7c7ea8724f85c35edd842f39
7
+ data.tar.gz: 4a7d22c857f7f852641714e0bb67d3e7d687d9bc1721c54a52dc7e365bc584385325babf4d30cb1c9d578bb9b50b0f82878062da1660a5ac6e852ea859a9d12f
@@ -3,7 +3,7 @@
3
3
  "courier_code": "usps",
4
4
  "tracking_numbers": [
5
5
  {
6
- "tracking_url": "https://m.usps.com/m/TrackConfirmAction_detail?tLabels=%s",
6
+ "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=%s",
7
7
  "name": "USPS 20",
8
8
  "description": "20 digit USPS numbers",
9
9
  "regex": [
@@ -76,7 +76,7 @@
76
76
  "odds_multiplier": 1
77
77
  }
78
78
  },
79
- "tracking_url": "https://m.usps.com/m/TrackConfirmAction_detail?tLabels=%s",
79
+ "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=%s",
80
80
  "test_numbers": {
81
81
  "valid": [
82
82
  "4201002334249200190132607600833457",
@@ -115,7 +115,7 @@
115
115
  }
116
116
  }
117
117
  },
118
- "tracking_url": "https://m.usps.com/m/TrackConfirmAction_detail?tLabels=%s",
118
+ "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=%s",
119
119
  "test_numbers": {
120
120
  "valid": [
121
121
  "420 22153 9101026837331000039521",
@@ -156,7 +156,7 @@ module TrackingNumber
156
156
  end
157
157
 
158
158
  def package_type
159
- if matching_additional["ContainerType"]
159
+ if matching_additional["Container Type"]
160
160
  @package_type ||= Info.new(matching_additional["Container Type"]).name
161
161
  end
162
162
  end
@@ -1,3 +1,3 @@
1
1
  module TrackingNumber
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracking_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Keen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-13 00:00:00.000000000 Z
11
+ date: 2018-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport