turkish_id 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: b6f16411294196075f7ddc2420a83b1073bca92bbcbf08d872afd22c88de0198
4
- data.tar.gz: 3a340241b1446a80046e1b3f62ceaffb77d7ed37ff37c4343bfeb7c2fa236ab3
3
+ metadata.gz: 600c75cbbe40174a1d95d4bbcabb8d7caf27dccece27b9a696660d9b3a8908b9
4
+ data.tar.gz: a22c2008e74a37a5a732c773faefe1c8ce0d07af9288ffb1a19d7c6655acb41b
5
5
  SHA512:
6
- metadata.gz: ab688e6d2faf494f3ddcfb3f24d26840d9231dae8639af97145d39408658919140ef52dfbab5d583596517801232ff5b6e4c49aa2bf200be777ec7acf941fd04
7
- data.tar.gz: f9d19b0cf457aa1f257c8547ac9122ae4293b66aa875945f604c569bcdfe1955d4a5f07eed26f751d6252b528ca7eef4d7ba1fd3d73078b395d773ec69606e4e
6
+ metadata.gz: 0675ecd6669bdfdb09630c2859ca8b8040e0b4c1b7ec84116abac10d3cd89a34550b96a485df3065b79ee00915f073ed37550b5c5bf5b273e40ca2402f7c4446
7
+ data.tar.gz: 918c958c61a4013dd621709accce099a28d11372a47ca5ede6ccc1cf349e01cb6171a427b3846a4850f1e319e4832b1d332f464af8cdb0aac1d934348348c334
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class TurkishId
4
- VERSION = "1.5.0"
4
+ VERSION = "1.6.0"
5
5
  end
data/lib/turkish_id.rb CHANGED
@@ -24,6 +24,10 @@ class TurkishId
24
24
  valid? && query_government_registry(given_name, surname, year_of_birth)
25
25
  end
26
26
 
27
+ def not_in_registry?(given_name, surname, year_of_birth)
28
+ !valid? || !query_government_registry(given_name, surname, year_of_birth)
29
+ end
30
+
27
31
  private
28
32
 
29
33
  def calculate_checksum(id_array)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turkish_id
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
  - Kerem Bozdas