tracking_number 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/data/couriers/dhl.json +19 -3
- data/lib/tracking_number/version.rb +1 -1
- data/lib/tracking_number.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8412feee78aa93b95544c4f550f6c2fe7f85c579075d92257065ee51c8cfbffe
|
4
|
+
data.tar.gz: f9f54c5bc1f7067f6e50660b0f449ce8e22dd25c886d032018641c39e415e640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c48b442b251efd962401eb9599bf847e0af8e1cee033793825f7c621f42986e2098014310506e12034774b93da51e0a9a81854cdede6bc5a85deccdd194d7f31
|
7
|
+
data.tar.gz: 74576dc9b858b73717c70d878402c0af022e6272444b806ea8f52376f54df2ed0f5a26834a2fc22350d098d2e1842368dc6ae161332413b8cc7624a2a58c8281
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
tracking_number changelog
|
2
2
|
|
3
|
+
# [1.6.0](https://github.com/jkeen/tracking_number/compare/v1.5.0...v1.6.0) (2023-11-14)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* resolve error with active support deprecator ([8b97160](https://github.com/jkeen/tracking_number/commit/8b97160a2178b771b340f8459bfa77db5791aeb2))
|
9
|
+
|
10
|
+
|
11
|
+
### Features
|
12
|
+
|
13
|
+
* update to tracking_number_data 1.6.1 ([811a07b](https://github.com/jkeen/tracking_number/commit/811a07bf10d171b56069c927d84266e8a931e073))
|
14
|
+
|
3
15
|
# [1.5.0](https://github.com/jkeen/tracking_number/compare/v1.4.1...v1.5.0) (2023-08-14)
|
4
16
|
|
5
17
|
|
data/lib/data/couriers/dhl.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
{
|
6
6
|
"name": "DHL Express",
|
7
7
|
"id": "dhl_express",
|
8
|
-
"regex": "\\s*(?<SerialNumber>(
|
8
|
+
"regex": "\\s*(?<SerialNumber>([0-9]\\s*){9,10})(?<CheckDigit>([0-9]\\s*))",
|
9
9
|
"validation": {
|
10
10
|
"checksum": {
|
11
11
|
"name": "mod7"
|
@@ -14,21 +14,37 @@
|
|
14
14
|
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
|
15
15
|
"test_numbers": {
|
16
16
|
"valid": [
|
17
|
-
"JVGL0999999990",
|
18
17
|
"3318810025",
|
19
18
|
"73891051146",
|
20
19
|
"8487135506",
|
20
|
+
"1099255990",
|
21
|
+
"3821724944",
|
21
22
|
"3318810036",
|
22
23
|
"3318810014"
|
23
24
|
],
|
24
25
|
"invalid": [
|
25
26
|
"3318810010",
|
26
27
|
"3318810034",
|
27
|
-
"JVGL3099999999",
|
28
28
|
"3318810011"
|
29
29
|
]
|
30
30
|
}
|
31
31
|
},
|
32
|
+
{
|
33
|
+
"name": "DHL Express (Piece ID)",
|
34
|
+
"id": "dhl_express_piece_id",
|
35
|
+
"regex": "\\s*(J[A-Z]{2,3})(?<SerialNumber>([0-9]\\s*){9,10})",
|
36
|
+
"validation": {},
|
37
|
+
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
|
38
|
+
"test_numbers": {
|
39
|
+
"valid": [
|
40
|
+
"JJD0099999999",
|
41
|
+
"JVGL0999999990"
|
42
|
+
],
|
43
|
+
"invalid": [
|
44
|
+
"XJD0099999998"
|
45
|
+
]
|
46
|
+
}
|
47
|
+
},
|
32
48
|
{
|
33
49
|
"name": "DHL E-Commerce",
|
34
50
|
"id": "dhl_ecommerce",
|
data/lib/tracking_number.rb
CHANGED
@@ -7,8 +7,7 @@ require 'tracking_number/base'
|
|
7
7
|
require 'tracking_number/info'
|
8
8
|
require 'tracking_number/partnership'
|
9
9
|
require 'tracking_number/unknown'
|
10
|
-
require 'active_support/
|
11
|
-
require 'active_support/core_ext/hash'
|
10
|
+
require 'active_support/all'
|
12
11
|
|
13
12
|
if defined?(ActiveModel::EachValidator)
|
14
13
|
require 'tracking_number/active_model_validator'
|
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.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|