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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a5d41d1c08b2113a8ae1bece06248981efb6f1a7081a76d33aaebd902691f10
4
- data.tar.gz: 8324c51eab3f46d3de5b93b8b1b34705aa840a69beb2c8a1f09270f0f85eb8d9
3
+ metadata.gz: 4eb2264c89e8b80f9f99c8317e20609b2ba773c43b25ba464fa9193e401248ab
4
+ data.tar.gz: b71e24abcba506de9b335b4a97e096d3d8c07707ac8df486a4af04e061acf9da
5
5
  SHA512:
6
- metadata.gz: 2d846760fc12486649c019263b07681a662edcebb9636a9654a058037ca1dec154edc594476b60d85d622ae7d8cf899a29176d0b842b61085b09641fd5918a60
7
- data.tar.gz: da691101fb5cd85a893cd76a9aee4cf9711f3c06a0e8d14682f1dfea923e6e709fe9a707409b461d2b55b34bbda5c6158c8b4ad84bacd7f1fbcc31748ec7f903
6
+ metadata.gz: '099e22c11617fc59cd2085de26bacee52fb08f46a5b09d10b082f6dd74446deb36ef010ad3bc7806b2e55adb0f959f820e25b6d9d13d7bcaa921ba1668cbb17b'
7
+ data.tar.gz: b1f0eabcf9715f42a61e502f34dd63c6deaa3584767f8d02dc24bf6ae1623a7bdedefb3f06d730fc7e5a4b360071b5e510b57b5e93461a0cd1207323f4749c3d
@@ -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>(\\w\\s*){10,39})",
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": {
@@ -139,8 +139,8 @@
139
139
  "name": "UPS Waybill",
140
140
  "regex": [
141
141
  "\\s*(?<ServiceType>([A-Z]\\s*){1})",
142
- "(?<SerialNumber>(?:[A-Z0-9]\\s*){9,9})",
143
- "(?<CheckDigit>[A-Z0-9]\\s*)"
142
+ "(?<SerialNumber>(?:[0-9]\\s*){9,9})",
143
+ "(?<CheckDigit>[0-9]\\s*)"
144
144
  ],
145
145
  "validation": {
146
146
  "checksum": {
@@ -1,3 +1,3 @@
1
1
  module TrackingNumber
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
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.3.0
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-05 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport