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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 223298ed208018a34846ad4ecad1c92cca231fd9fba0e323097ef9b5b6fd16c5
4
- data.tar.gz: ffbc69fe1a53b1c88b8d3c4602fe50d2e9ecb8116e391a196658fa53fafa91c0
3
+ metadata.gz: 8412feee78aa93b95544c4f550f6c2fe7f85c579075d92257065ee51c8cfbffe
4
+ data.tar.gz: f9f54c5bc1f7067f6e50660b0f449ce8e22dd25c886d032018641c39e415e640
5
5
  SHA512:
6
- metadata.gz: 4b47d582e0c50e0d4be14bf7c462b1f90b8b8d9a6406f209c05344b9e4b73c958cc75577d3054f56549e953d4ac75e4a886d4f6257315c6ad80802edfa90bbdb
7
- data.tar.gz: b404e9f543ef4cb52471dd1ee1f0bdad9f77c62c56f70fcd1e17dfb89e3a5d529c64109510bc40ccb12d66f07fd84b3a75dff06cb27e83b659d35223a0e8fae9
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
 
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "DHL Express",
7
7
  "id": "dhl_express",
8
- "regex": "\\s*(?<SerialNumber>(J[A-Z][A-Z][A-Z])?([0-9])?([0-9]\\s*){9})(?<CheckDigit>([0-9]\\s*))",
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",
@@ -1,3 +1,3 @@
1
1
  module TrackingNumber
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -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/core_ext/string'
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.5.0
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-08-14 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport