turkish_id 1.3.0 → 1.5.0
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 +4 -4
- data/.github/workflows/publish.yml +24 -0
- data/.github/workflows/test.yml +52 -0
- data/.tool-versions +1 -0
- data/Gemfile +4 -9
- data/LICENSE.txt +1 -1
- data/README.md +58 -9
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/bin/setup +0 -0
- data/bin/turkish_id +28 -19
- data/lib/turkish_id/version.rb +1 -1
- data/lib/turkish_id.rb +23 -4
- data/turkish_id.gemspec +24 -14
- metadata +119 -7
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6f16411294196075f7ddc2420a83b1073bca92bbcbf08d872afd22c88de0198
|
|
4
|
+
data.tar.gz: 3a340241b1446a80046e1b3f62ceaffb77d7ed37ff37c4343bfeb7c2fa236ab3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab688e6d2faf494f3ddcfb3f24d26840d9231dae8639af97145d39408658919140ef52dfbab5d583596517801232ff5b6e4c49aa2bf200be777ec7acf941fd04
|
|
7
|
+
data.tar.gz: f9d19b0cf457aa1f257c8547ac9122ae4293b66aa875945f604c569bcdfe1955d4a5f07eed26f751d6252b528ca7eef4d7ba1fd3d73078b395d773ec69606e4e
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
name: Publish Packages
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
|
|
15
|
+
- name: Set up Ruby
|
|
16
|
+
uses: ruby/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
|
|
20
|
+
- name: Publish to RubyGems
|
|
21
|
+
uses: dawidd6/action-publish-gem@v1
|
|
22
|
+
with:
|
|
23
|
+
api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
|
24
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
push:
|
|
7
|
+
branches: [develop, master]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
GIT_COMMIT_SHA: ${{ github.sha }}
|
|
11
|
+
GIT_BRANCH: ${{ github.ref }}
|
|
12
|
+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lint:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
name: lint ${{ matrix.ruby }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
ruby: ["2.7.8", "3.0.6", "3.1.4", "3.2.2"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v2
|
|
25
|
+
- uses: ruby/setup-ruby@v1
|
|
26
|
+
with:
|
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
|
28
|
+
bundler-cache: true
|
|
29
|
+
|
|
30
|
+
- name: StandardRB
|
|
31
|
+
continue-on-error: ${{ matrix.experimental }}
|
|
32
|
+
run: bundle exec standardrb --parallel --format progress
|
|
33
|
+
|
|
34
|
+
test:
|
|
35
|
+
needs: [lint]
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
name: test ${{ matrix.ruby }}
|
|
38
|
+
strategy:
|
|
39
|
+
fail-fast: false
|
|
40
|
+
matrix:
|
|
41
|
+
ruby: ["2.7.8", "3.0.6", "3.1.4", "3.2.2"]
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/checkout@v2
|
|
45
|
+
- uses: ruby/setup-ruby@v1
|
|
46
|
+
with:
|
|
47
|
+
ruby-version: ${{ matrix.ruby }}
|
|
48
|
+
bundler-cache: true
|
|
49
|
+
|
|
50
|
+
- name: Test
|
|
51
|
+
continue-on-error: ${{ matrix.experimental }}
|
|
52
|
+
run: bundle exec rake
|
data/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ruby 3.2.2
|
data/Gemfile
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
source
|
|
3
|
+
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
gemspec
|
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
gem 'rake'
|
|
11
|
-
gem 'rspec'
|
|
12
|
-
gem 'simplecov'
|
|
13
|
-
end
|
|
7
|
+
# Specify your gem's dependencies in viabtc.gemspec
|
|
8
|
+
gemspec
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Turkish ID 🔖
|
|
2
2
|
|
|
3
|
-
[](https://github.com/krmbzds/turkish_id/actions/workflows/test.yml)
|
|
4
|
+
[](https://coveralls.io/github/krmbzds/turkish_id)
|
|
5
|
+
[](https://rubygems.org/gems/turkish_id)
|
|
6
|
+
[](https://rubygems.org/gems/turkish_id)
|
|
7
|
+
[](https://codeclimate.com/github/krmbzds/turkish_id)
|
|
8
|
+
[](https://github.com/krmbzds/turkish_id)
|
|
9
|
+
[](https://www.rubydoc.info/gems/turkish_id)
|
|
4
10
|
|
|
5
11
|
This gem provides methods to validate Turkish Identification Numbers.
|
|
6
12
|
|
|
@@ -36,10 +42,18 @@ Use ```valid?``` method to check validity:
|
|
|
36
42
|
identity_number.valid? #=> true
|
|
37
43
|
```
|
|
38
44
|
|
|
39
|
-
|
|
45
|
+
### Querying the Government Registry
|
|
40
46
|
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
Create a new instance:
|
|
48
|
+
|
|
49
|
+
```rb
|
|
50
|
+
identity_number = TurkishId.new(10000000146)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Use ```registered?``` method to query the government registry:
|
|
54
|
+
|
|
55
|
+
```rb
|
|
56
|
+
identity_number.registered?("Ahmet", "Yılmaz", 1987) #=> false
|
|
43
57
|
```
|
|
44
58
|
|
|
45
59
|
### Generating Relatives
|
|
@@ -78,6 +92,40 @@ me.elder_relative.take(5) #=> [10003000082, 10005999902, 10008999848, 100119997
|
|
|
78
92
|
|
|
79
93
|
And so on.
|
|
80
94
|
|
|
95
|
+
## CLI (Command Line Interface)
|
|
96
|
+
|
|
97
|
+
You can use the CLI for quick lookups:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
$ turkish_id 10000000078 #=> true
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The executable terminates with a proper [exit status](https://en.wikipedia.org/wiki/Exit_status):
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
$ turkish_id 10000000078 #=> true
|
|
107
|
+
$ echo $? #=> 0
|
|
108
|
+
$ turkish_id 10000000079 #=> false
|
|
109
|
+
$ echo $? #=> 1
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Run `turkish_id --help` to learn more:
|
|
113
|
+
|
|
114
|
+
```groff
|
|
115
|
+
Usage
|
|
116
|
+
turkish_id ID_NUMBER [GIVEN_NAME SURNAME YEAR_OF_BIRTH]
|
|
117
|
+
|
|
118
|
+
Description
|
|
119
|
+
turkish_id validates Turkish identity numbers.
|
|
120
|
+
Only providing ID_NUMBER performs numerical validation (offline).
|
|
121
|
+
Providing all arguments will query government registry (online).
|
|
122
|
+
|
|
123
|
+
Examples
|
|
124
|
+
turkish_id 10000000078
|
|
125
|
+
turkish_id 10000000146 Ahmet Yılmaz 1984
|
|
126
|
+
turkish_id 10005999902 "Ayşe Nur" Yılmaz 1996
|
|
127
|
+
```
|
|
128
|
+
|
|
81
129
|
## Anatomy of the Turkish ID Number
|
|
82
130
|
|
|
83
131
|
The Turkish Identification Number consists of ```11``` digits.
|
|
@@ -90,7 +138,7 @@ There are three conditions for a valid identification number:
|
|
|
90
138
|
|
|
91
139
|
Where ```dn``` refers to the ```n-th``` digit of the identification number.
|
|
92
140
|
|
|
93
|
-
Remember that a valid identification number does not imply the existence of an ID. It could only be used as a preliminary check e.g. before querying a government website. This is very similar to credit card validation.
|
|
141
|
+
Remember that a valid identification number does not imply the existence of an ID. It could only be used as a preliminary check e.g. before [querying a government website](#querying-the-government-registry). This is very similar to credit card validation.
|
|
94
142
|
|
|
95
143
|
## Support
|
|
96
144
|
|
|
@@ -98,9 +146,10 @@ Remember that a valid identification number does not imply the existence of an I
|
|
|
98
146
|
|
|
99
147
|
This gem is used in production and tested against the following Ruby versions:
|
|
100
148
|
|
|
101
|
-
- ✅ `2.
|
|
102
|
-
- ✅ `
|
|
103
|
-
- ⏳ `
|
|
149
|
+
- ✅ `3.2.2` (stable)
|
|
150
|
+
- ✅ `3.1.4` (stable)
|
|
151
|
+
- ⏳ `3.0.6` (security maintenance)
|
|
152
|
+
- 🪦 `2.7.8` (end of life)
|
|
104
153
|
|
|
105
154
|
## Development
|
|
106
155
|
|
|
@@ -126,7 +175,7 @@ Yes.
|
|
|
126
175
|
|
|
127
176
|
## License
|
|
128
177
|
|
|
129
|
-
Copyright ©
|
|
178
|
+
Copyright © 2015-2023 [Kerem Bozdas][Personal Webpage]
|
|
130
179
|
|
|
131
180
|
This gem is available under the terms of the [MIT License][License].
|
|
132
181
|
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
require
|
|
5
|
-
require
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require "turkish_id"
|
|
6
6
|
|
|
7
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
8
|
# with your gem easier. You can also use a different console, if you like.
|
|
9
9
|
|
|
10
|
-
require
|
|
10
|
+
require "irb"
|
|
11
11
|
IRB.start
|
data/bin/setup
CHANGED
|
File without changes
|
data/bin/turkish_id
CHANGED
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
lib = File.expand_path(File.dirname(__FILE__) +
|
|
4
|
+
lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
|
|
5
5
|
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
|
|
6
6
|
|
|
7
|
-
require
|
|
7
|
+
require "turkish_id"
|
|
8
|
+
require "turkish_id/version"
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
HELP = '
|
|
10
11
|
Usage
|
|
11
|
-
turkish_id
|
|
12
|
+
turkish_id ID_NUMBER [GIVEN_NAME SURNAME YEAR_OF_BIRTH]
|
|
13
|
+
|
|
14
|
+
Description
|
|
15
|
+
turkish_id validates Turkish identity numbers.
|
|
16
|
+
Only providing ID_NUMBER performs numerical validation (offline).
|
|
17
|
+
Providing all arguments will query government registry (online).
|
|
12
18
|
|
|
13
19
|
Examples
|
|
14
20
|
turkish_id 10000000078
|
|
15
|
-
turkish_id 10000000146
|
|
21
|
+
turkish_id 10000000146 Ahmet Yılmaz 1984
|
|
22
|
+
turkish_id 10005999902 "Ayşe Nur" Yılmaz 1996
|
|
16
23
|
|
|
17
24
|
'
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
result =
|
|
27
|
+
case ARGV.length
|
|
28
|
+
when 1 then TurkishId.new(ARGV[0]).valid?
|
|
29
|
+
when 4 then TurkishId.new(ARGV[0]).registered?(ARGV[1], ARGV[2], ARGV[3])
|
|
30
|
+
else $stdout.puts HELP
|
|
31
|
+
exit 1
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
if ["-?", "-h", "--help", "--usage"].include?(ARGV[0])
|
|
35
|
+
$stdout.puts HELP
|
|
36
|
+
exit 1
|
|
30
37
|
end
|
|
31
38
|
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
if ["-v", "-V", "--version"].include?(ARGV[0])
|
|
40
|
+
$stdout.puts TurkishId::VERSION
|
|
41
|
+
exit 0
|
|
34
42
|
end
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
$stdout.puts result
|
|
45
|
+
exit result ? 0 : 1
|
data/lib/turkish_id/version.rb
CHANGED
data/lib/turkish_id.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require
|
|
3
|
+
require "turkish_id/version"
|
|
4
|
+
require "savon"
|
|
4
5
|
|
|
5
6
|
class TurkishId
|
|
6
7
|
attr_reader :id_number, :checksum, :elder_relative, :younger_relative
|
|
@@ -19,6 +20,10 @@ class TurkishId
|
|
|
19
20
|
true
|
|
20
21
|
end
|
|
21
22
|
|
|
23
|
+
def registered?(given_name, surname, year_of_birth)
|
|
24
|
+
valid? && query_government_registry(given_name, surname, year_of_birth)
|
|
25
|
+
end
|
|
26
|
+
|
|
22
27
|
private
|
|
23
28
|
|
|
24
29
|
def calculate_checksum(id_array)
|
|
@@ -32,7 +37,7 @@ class TurkishId
|
|
|
32
37
|
|
|
33
38
|
# Return checksum
|
|
34
39
|
[d10, d11]
|
|
35
|
-
rescue
|
|
40
|
+
rescue
|
|
36
41
|
[]
|
|
37
42
|
end
|
|
38
43
|
|
|
@@ -42,7 +47,7 @@ class TurkishId
|
|
|
42
47
|
end
|
|
43
48
|
|
|
44
49
|
def next_relative(id_array, direction)
|
|
45
|
-
tree = {
|
|
50
|
+
tree = {up: 1, down: -1}
|
|
46
51
|
get_core(id_array) + 29_999 * tree[direction]
|
|
47
52
|
end
|
|
48
53
|
|
|
@@ -60,7 +65,7 @@ class TurkishId
|
|
|
60
65
|
|
|
61
66
|
def get_id_array(id)
|
|
62
67
|
split_num(Integer(id))
|
|
63
|
-
rescue
|
|
68
|
+
rescue
|
|
64
69
|
[]
|
|
65
70
|
end
|
|
66
71
|
|
|
@@ -76,4 +81,18 @@ class TurkishId
|
|
|
76
81
|
def get_core(id_array)
|
|
77
82
|
join_num(split_num(id_array).take(9))
|
|
78
83
|
end
|
|
84
|
+
|
|
85
|
+
def query_government_registry(given_name, surname, year_of_birth)
|
|
86
|
+
client = Savon.client(wsdl: "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL")
|
|
87
|
+
response = client.call(:tc_kimlik_no_dogrula, message: {
|
|
88
|
+
"TCKimlikNo" => join_num(@id_number),
|
|
89
|
+
"Ad" => given_name.upcase(:turkic),
|
|
90
|
+
"Soyad" => surname.upcase(:turkic),
|
|
91
|
+
"DogumYili" => String(Date.new(Integer(year_of_birth)).year)
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
response.body.dig(:tc_kimlik_no_dogrula_response, :tc_kimlik_no_dogrula_result).is_a?(TrueClass)
|
|
95
|
+
rescue TypeError, ArgumentError, NoMethodError
|
|
96
|
+
false
|
|
97
|
+
end
|
|
79
98
|
end
|
data/turkish_id.gemspec
CHANGED
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
lib = File.expand_path(
|
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
|
-
require
|
|
5
|
+
require "turkish_id/version"
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name
|
|
9
|
-
spec.version
|
|
10
|
-
spec.authors
|
|
11
|
-
spec.email
|
|
8
|
+
spec.name = "turkish_id"
|
|
9
|
+
spec.version = TurkishId::VERSION
|
|
10
|
+
spec.authors = ["Kerem Bozdas"]
|
|
11
|
+
spec.email = ["krmbzds.github@gmail.com"]
|
|
12
12
|
|
|
13
|
-
spec.summary
|
|
14
|
-
spec.description
|
|
15
|
-
spec.homepage
|
|
16
|
-
spec.license
|
|
13
|
+
spec.summary = "Validate Turkish Identification Numbers and More!"
|
|
14
|
+
spec.description = "Validate Turkish Identification Numbers and More!"
|
|
15
|
+
spec.homepage = "https://github.com/krmbzds/turkish_id"
|
|
16
|
+
spec.license = "MIT"
|
|
17
17
|
|
|
18
|
-
spec.files
|
|
19
|
-
spec.bindir
|
|
20
|
-
spec.executables
|
|
21
|
-
spec.require_paths = [
|
|
18
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
|
+
spec.bindir = "bin"
|
|
20
|
+
spec.executables = ["turkish_id"]
|
|
21
|
+
spec.require_paths = ["lib", "lib/turkish_id"]
|
|
22
|
+
|
|
23
|
+
spec.add_development_dependency "bundler"
|
|
24
|
+
spec.add_development_dependency "coveralls_reborn"
|
|
25
|
+
spec.add_development_dependency "rake"
|
|
26
|
+
spec.add_development_dependency "rspec"
|
|
27
|
+
spec.add_development_dependency "standard"
|
|
28
|
+
spec.add_development_dependency "vcr"
|
|
29
|
+
spec.add_development_dependency "webmock"
|
|
30
|
+
|
|
31
|
+
spec.add_runtime_dependency "savon"
|
|
22
32
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,127 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: turkish_id
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kerem Bozdas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
-
dependencies:
|
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: bundler
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: coveralls_reborn
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: rake
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rspec
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: standard
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - ">="
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: vcr
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: webmock
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: savon
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
13
125
|
description: Validate Turkish Identification Numbers and More!
|
|
14
126
|
email:
|
|
15
127
|
- krmbzds.github@gmail.com
|
|
@@ -18,11 +130,11 @@ executables:
|
|
|
18
130
|
extensions: []
|
|
19
131
|
extra_rdoc_files: []
|
|
20
132
|
files:
|
|
133
|
+
- ".github/workflows/publish.yml"
|
|
134
|
+
- ".github/workflows/test.yml"
|
|
21
135
|
- ".gitignore"
|
|
22
136
|
- ".rspec"
|
|
23
|
-
- ".
|
|
24
|
-
- ".ruby-version"
|
|
25
|
-
- ".travis.yml"
|
|
137
|
+
- ".tool-versions"
|
|
26
138
|
- Gemfile
|
|
27
139
|
- LICENSE.txt
|
|
28
140
|
- README.md
|
|
@@ -53,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
53
165
|
- !ruby/object:Gem::Version
|
|
54
166
|
version: '0'
|
|
55
167
|
requirements: []
|
|
56
|
-
rubygems_version: 3.
|
|
168
|
+
rubygems_version: 3.4.14
|
|
57
169
|
signing_key:
|
|
58
170
|
specification_version: 4
|
|
59
171
|
summary: Validate Turkish Identification Numbers and More!
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
turkish_id
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby-2.7.1
|
data/.travis.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.7.1
|
|
4
|
-
- 2.6.6
|
|
5
|
-
- 2.5.8
|
|
6
|
-
before_install:
|
|
7
|
-
- 'gem update --system'
|
|
8
|
-
- 'gem --version'
|
|
9
|
-
- 'gem install bundler'
|
|
10
|
-
env:
|
|
11
|
-
global:
|
|
12
|
-
- CC_TEST_REPORTER_ID=92655ba2c8b47200f80e996afb80c410b9491514845d414d7517108ad35a5178
|
|
13
|
-
before_script:
|
|
14
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
15
|
-
- chmod +x ./cc-test-reporter
|
|
16
|
-
- ./cc-test-reporter before-build
|
|
17
|
-
script:
|
|
18
|
-
- bundle exec rspec
|
|
19
|
-
after_script:
|
|
20
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|