tckimlikdogrulama 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,20 +3,17 @@ require "tckimlikdogrulama/version"
3
3
 
4
4
 
5
5
  module Tckimlikdogrulama
6
-
7
- def tckimlikno_dogrula(options = {})
8
- client = Savon::Client.new("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL")
9
- res = client.request(:tc_kimlik_no_dogrula) {soap.body = { "TCKimlikNo" => options[:identification_number], "Ad" => UnicodeUtils.upcase(options[:first_name], :tr) , "Soyad" => UnicodeUtils.upcase(options[:last_name], :tr), "DogumYili" => options[:birth_year]}}
10
- unless res.body[:tc_kimlik_no_dogrula_response][:tc_kimlik_no_dogrula_result]
11
- false
12
- else
13
- true
14
- end
15
- end
16
-
17
- =begin
6
+
18
7
  module ClassMethods
19
-
8
+ def tckimlikno_dogrula(options = {})
9
+ client = Savon::Client.new("https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL")
10
+ res = client.request(:tc_kimlik_no_dogrula) {soap.body = { "TCKimlikNo" => options[:identification_number], "Ad" => UnicodeUtils.upcase(options[:first_name], :tr) , "Soyad" => UnicodeUtils.upcase(options[:last_name], :tr), "DogumYili" => options[:birth_year]}}
11
+ unless res.body[:tc_kimlik_no_dogrula_response][:tc_kimlik_no_dogrula_result]
12
+ false
13
+ else
14
+ true
15
+ end
16
+ end
20
17
  end
21
18
 
22
19
  module InstanceMethods
@@ -35,12 +32,11 @@ module Tckimlikdogrulama
35
32
  receiver.extend ClassMethods
36
33
  receiver.send :include, InstanceMethods
37
34
  end
38
- =end
35
+
39
36
 
40
37
  end
41
38
 
42
- =begin
39
+
43
40
  class ActiveRecord::Base
44
41
  include Tckimlikdogrulama
45
42
  end
46
- =end
@@ -1,3 +1,3 @@
1
1
  module Tckimlikdogrulama
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tckimlikdogrulama
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
16
- requirement: &70260123382140 !ruby/object:Gem::Requirement
16
+ requirement: &70293695688380 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70260123382140
24
+ version_requirements: *70293695688380
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: unicode_utils
27
- requirement: &70260123381720 !ruby/object:Gem::Requirement
27
+ requirement: &70293695687960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70260123381720
35
+ version_requirements: *70293695687960
36
36
  description: Ad, Soyad, TCKimlikNo ve DogumYili ile Dogrulama Yapar
37
37
  email:
38
38
  - guzelmurat@gmail.com