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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f2ce68dae19376b6afae68d92f079c60661ef424d26a58f7a201c43893860dc
4
- data.tar.gz: 3370d7423c4cd7b60df5143f6e890242e5381b7d7fe7a0224d9bf3d25950aa8b
3
+ metadata.gz: b6f16411294196075f7ddc2420a83b1073bca92bbcbf08d872afd22c88de0198
4
+ data.tar.gz: 3a340241b1446a80046e1b3f62ceaffb77d7ed37ff37c4343bfeb7c2fa236ab3
5
5
  SHA512:
6
- metadata.gz: b87c07e37a6e77264a43ab52e218c6419b859d6daa79bfcfe38cb35b379fd39f25bf447576fbdaf3b3c43bafca4dca83639ffa485e2bd1e34ddac8b87398c962
7
- data.tar.gz: fd1974ed82dd65682b1f5a09a265dc020282551b2be4e53c5eca23bdf5f28bee0c18f6c882c5ca3f40b0501ebd6750c16394f80ae4f7d343d3b06eb16271ecf5
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 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
- # Specify your gem's dependencies in turkish_id.gemspec
6
- gemspec
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
6
 
8
- group :test do
9
- gem 'bundler'
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Kerem Bozdas
3
+ Copyright (c) 2015-2023 Kerem Bozdas
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Turkish ID 🔖
2
2
 
3
- [![Build Status](https://travis-ci.org/krmbzds/turkish_id.svg?branch=master)](https://travis-ci.org/krmbzds/turkish_id) [![Gem](https://img.shields.io/gem/v/turkish_id.svg)](https://github.com/krmbzds/turkish_id) [![Dependencies](https://img.shields.io/badge/dependencies-none-brightgreen.svg)](https://rubygems.org/gems/turkish_id) [![Gem](https://img.shields.io/gem/dt/turkish_id.svg)](https://rubygems.org/gems/turkish_id) [![Code Climate](https://codeclimate.com/github/krmbzds/turkish_id/badges/gpa.svg)](https://codeclimate.com/github/krmbzds/turkish_id) [![Test Coverage](https://codeclimate.com/github/krmbzds/turkish_id/badges/coverage.svg)](https://codeclimate.com/github/krmbzds/turkish_id/coverage)
3
+ [![Status](https://img.shields.io/github/actions/workflow/status/krmbzds/turkish_id/test.yml?branch=master)](https://github.com/krmbzds/turkish_id/actions/workflows/test.yml)
4
+ [![Coverage](https://img.shields.io/coveralls/github/krmbzds/turkish_id)](https://coveralls.io/github/krmbzds/turkish_id)
5
+ [![Downloads](https://img.shields.io/gem/dt/turkish_id.svg)](https://rubygems.org/gems/turkish_id)
6
+ [![Dependencies](https://img.shields.io/badge/dependencies-1-yellowgreen.svg)](https://rubygems.org/gems/turkish_id)
7
+ [![Maintainability](https://img.shields.io/codeclimate/maintainability/krmbzds/turkish_id)](https://codeclimate.com/github/krmbzds/turkish_id)
8
+ [![Version](https://img.shields.io/gem/v/turkish_id.svg)](https://github.com/krmbzds/turkish_id)
9
+ [![Docs](https://img.shields.io/badge/rubydoc-info-blue.svg)](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
- Or use the command line executable:
45
+ ### Querying the Government Registry
40
46
 
41
- ```sh
42
- $ turkish_id 10000000078 #=> Your identification number is valid.
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.7.1` (stable)
102
- - ✅ `2.6.6` (stable)
103
- - ⏳ `2.5.8` (security maintenance)
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 © 2019 [Kerem Bozdas][Personal Webpage]
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
  task default: :spec
data/bin/console CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
5
- require 'turkish_id'
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 'irb'
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__) + '/../lib')
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 'turkish_id'
7
+ require "turkish_id"
8
+ require "turkish_id/version"
8
9
 
9
- @help = '
10
+ HELP = '
10
11
  Usage
11
- turkish_id QUERY
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
- def parse_input
20
- ARGV[0] ? validate_id(ARGV[0]) : print_help
21
- end
22
-
23
- def validate_id(id_number)
24
- identity_number = TurkishId.new(id_number)
25
- print_result(identity_number.valid?)
26
- end
27
-
28
- def print_result(result)
29
- STDOUT.puts "Your identification number is #{result ? 'valid' : 'invalid'}."
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
- def print_help
33
- STDOUT.puts @help
39
+ if ["-v", "-V", "--version"].include?(ARGV[0])
40
+ $stdout.puts TurkishId::VERSION
41
+ exit 0
34
42
  end
35
43
 
36
- parse_input
44
+ $stdout.puts result
45
+ exit result ? 0 : 1
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class TurkishId
4
- VERSION = '1.3.0'
4
+ VERSION = "1.5.0"
5
5
  end
data/lib/turkish_id.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'turkish_id/version'
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 StandardError
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 = { up: 1, down: -1 }
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 StandardError
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('lib', __dir__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'turkish_id/version'
5
+ require "turkish_id/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'turkish_id'
9
- spec.version = TurkishId::VERSION
10
- spec.authors = ['Kerem Bozdas']
11
- spec.email = ['krmbzds.github@gmail.com']
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 = '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'
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 = `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']
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.3.0
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: 2020-07-18 00:00:00.000000000 Z
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
- - ".ruby-gemset"
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.1.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