tracking_number 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/data/couriers/dhl.json +1 -1
- data/lib/data/couriers/ups.json +2 -2
- data/lib/tracking_number/version.rb +1 -1
- 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: 4eb2264c89e8b80f9f99c8317e20609b2ba773c43b25ba464fa9193e401248ab
|
4
|
+
data.tar.gz: b71e24abcba506de9b335b4a97e096d3d8c07707ac8df486a4af04e061acf9da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '099e22c11617fc59cd2085de26bacee52fb08f46a5b09d10b082f6dd74446deb36ef010ad3bc7806b2e55adb0f959f820e25b6d9d13d7bcaa921ba1668cbb17b'
|
7
|
+
data.tar.gz: b1f0eabcf9715f42a61e502f34dd63c6deaa3584767f8d02dc24bf6ae1623a7bdedefb3f06d730fc7e5a4b360071b5e510b57b5e93461a0cd1207323f4749c3d
|
data/lib/data/couriers/dhl.json
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
},
|
49
49
|
{
|
50
50
|
"name": "DHL E-Commerce",
|
51
|
-
"regex": "\\s*((G\\s*M\\s*)|(L\\s*X\\s*)|(R\\s*X\\s*)|(U\\s*V\\s*)|(C\\s*N\\s*)|(S\\s*G\\s*)|(T\\s*H\\s*)|(I\\s*N\\s*)|(H\\s*K\\s*)|(M\\s*Y\\s*))\\s*(?<SerialNumber>(\\
|
51
|
+
"regex": "\\s*((G\\s*M\\s*)|(L\\s*X\\s*)|(R\\s*X\\s*)|(U\\s*V\\s*)|(C\\s*N\\s*)|(S\\s*G\\s*)|(T\\s*H\\s*)|(I\\s*N\\s*)|(H\\s*K\\s*)|(M\\s*Y\\s*))\\s*(?<SerialNumber>([0-9]\\s*){10,39})",
|
52
52
|
"validation": {},
|
53
53
|
"tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s",
|
54
54
|
"test_numbers": {
|
data/lib/data/couriers/ups.json
CHANGED
@@ -139,8 +139,8 @@
|
|
139
139
|
"name": "UPS Waybill",
|
140
140
|
"regex": [
|
141
141
|
"\\s*(?<ServiceType>([A-Z]\\s*){1})",
|
142
|
-
"(?<SerialNumber>(?:[
|
143
|
-
"(?<CheckDigit>[
|
142
|
+
"(?<SerialNumber>(?:[0-9]\\s*){9,9})",
|
143
|
+
"(?<CheckDigit>[0-9]\\s*)"
|
144
144
|
],
|
145
145
|
"validation": {
|
146
146
|
"checksum": {
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|