ip2whois_ruby 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/ip2whois_ruby/api.rb +2 -2
- data/lib/ip2whois_ruby/version.rb +1 -1
- data/spec/ip2whois_ruby_spec.rb +4 -4
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b5515941002143932ddab3ea511671a86f91d1e6b61c815c181becc77c8d2b6
|
4
|
+
data.tar.gz: 03b47c2d4ecd0828bef1bc9ea0716a42ec8b08d8a60bb1dfb44d0bc97018860c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916eb9244596f353660a52b1fd8bed5e74196c075de1811453d27d74efa96a12b2810e7598ab6968b6ab00568ccfb007b0d00169cbfa36e5c02d668a4bd7f6e2
|
7
|
+
data.tar.gz: ade4171fd59cc3ee12bc8555659caabbc3ab247ece51b6196b54d25dbd450235a9cc9de1ad84a5107f12d543831708a6fff345e3c2c63e8fe610cf7bf1f5c015
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ result = Ip2whoisRuby::Api.lookup('example.com')
|
|
28
28
|
```
|
29
29
|
require 'ip2whois_ruby'
|
30
30
|
|
31
|
-
result = Ip2whoisRuby::Api.get_punycode('
|
31
|
+
result = Ip2whoisRuby::Api.get_punycode('täst.de')
|
32
32
|
```
|
33
33
|
|
34
34
|
|
@@ -38,7 +38,7 @@ result = Ip2whoisRuby::Api.get_punycode('xn--tst-qla.de')
|
|
38
38
|
```
|
39
39
|
require 'ip2whois_ruby'
|
40
40
|
|
41
|
-
result = Ip2whoisRuby::Api.get_normal_text('
|
41
|
+
result = Ip2whoisRuby::Api.get_normal_text('xn--tst-qla.de')
|
42
42
|
```
|
43
43
|
|
44
44
|
|
data/lib/ip2whois_ruby/api.rb
CHANGED
@@ -24,12 +24,12 @@ module Ip2whoisRuby
|
|
24
24
|
|
25
25
|
# Get Punycode.
|
26
26
|
def self.get_punycode(domain)
|
27
|
-
return SimpleIDN.
|
27
|
+
return SimpleIDN.to_ascii(domain)
|
28
28
|
end
|
29
29
|
|
30
30
|
# Get Normal text.
|
31
31
|
def self.get_normal_text(domain)
|
32
|
-
return SimpleIDN.
|
32
|
+
return SimpleIDN.to_unicode(domain)
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
data/spec/ip2whois_ruby_spec.rb
CHANGED
@@ -13,13 +13,13 @@ describe "Ip2whoisRuby" do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it "work correctly with get punycode" do
|
16
|
-
result = Ip2whoisRuby::Api.get_punycode('
|
17
|
-
expect(result).to eq '
|
16
|
+
result = Ip2whoisRuby::Api.get_punycode('täst.de')
|
17
|
+
expect(result).to eq 'xn--tst-qla.de'
|
18
18
|
end
|
19
19
|
|
20
20
|
it "work correctly with get normal text" do
|
21
|
-
result = Ip2whoisRuby::Api.get_normal_text('
|
22
|
-
expect(result).to eq '
|
21
|
+
result = Ip2whoisRuby::Api.get_normal_text('xn--tst-qla.de')
|
22
|
+
expect(result).to eq 'täst.de'
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ip2whois_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ip2whois
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simpleidn
|
@@ -49,7 +49,7 @@ homepage: https://github.com/ip2whois/ip2whois-ruby
|
|
49
49
|
licenses:
|
50
50
|
- MIT
|
51
51
|
metadata: {}
|
52
|
-
post_install_message:
|
52
|
+
post_install_message:
|
53
53
|
rdoc_options: []
|
54
54
|
require_paths:
|
55
55
|
- lib
|
@@ -64,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
|
-
|
68
|
-
|
69
|
-
signing_key:
|
67
|
+
rubygems_version: 3.2.33
|
68
|
+
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: IP2WHOIS Ruby SDK
|
72
71
|
test_files: []
|