kuwaiti_civil_id 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52635bc2c3d4a02ce9568ac8a1c5d3dee81de2f452a466495f99c7b3e3cfb4ce
4
- data.tar.gz: fb4de214f84e1672b34f0b03b8713bfd23dfa223f0163c6f4f0fe01e0cc5e4f4
3
+ metadata.gz: d2d63ef1541b60b8df0a1079052188f495fcb97d5d0380f1a045e2b9901b7918
4
+ data.tar.gz: 61011a73f89fb31c7b57a90023ed22d2106b1627800e4827985dcdf5bec7a96c
5
5
  SHA512:
6
- metadata.gz: 783bc4772b6332f47185557d26bac5aa2f50cbb63346060638ff949462677169ec94130d9a6c870267029e2c3c4fbf613c0ce40eb7360912bb69ad6aaa70848b
7
- data.tar.gz: 79a0b5dd36eaa5198145c030dcd316af1bede1e9e1680877d5cf9d7509d67657d8313b342d8fa957827555ed88941f289cb48194ac3822d4f9c97af7ce569b33
6
+ metadata.gz: 5956c7a054d752925650cd4b108bc42ff27bd2115c84d69fb4f74d75cbd80686e1d45318f890b0250ee47aa88020d519881580f81d6027200084af2169b4e76a
7
+ data.tar.gz: d4bc75de0423159a48e11f42b84cd78c86ce809ef18b9220331aee6bfa0f73862a231bff8d744e7d95758373c6d83e37ea4960791f5826ea20d83b7bdd72df1a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.2] - 2026-06-05
4
+
5
+ - Added missing variable for number validation
6
+
3
7
  ## [1.0.1] - 2026-06-05
4
8
 
5
9
  - Fixed a typo in the validator code.
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KuwaitiCivilId
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
@@ -13,7 +13,7 @@ module KuwaitiCivilId
13
13
  digits = id_number.to_s.chars.map(&:to_i)
14
14
  checksum = digits.pop
15
15
  coefficients = [2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]
16
- digits.zip(coefficients).sum { |d, c| d * c }
16
+ sum = digits.zip(coefficients).sum { |d, c| d * c }
17
17
  calculated_checksum = 11 - (sum % 11)
18
18
  calculated_checksum == checksum
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuwaiti_civil_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdullah Esmail
@@ -23,6 +23,7 @@ files:
23
23
  - README.md
24
24
  - Rakefile
25
25
  - kuwaiti_civil_id-1.0.0.gem
26
+ - kuwaiti_civil_id-1.0.1.gem
26
27
  - lib/kuwaiti_civil_id.rb
27
28
  - lib/kuwaiti_civil_id/version.rb
28
29
  - sig/kuwaiti_civil_id.rbs