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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c80f26849cd185377533e737af6d5be3e65a327631355343aa3e5b10f919c57
4
- data.tar.gz: f43caa1ac1cc5463ac6971c0ce1db35751cac34e0db11cf17f4b6af7f0feb777
3
+ metadata.gz: 3b5515941002143932ddab3ea511671a86f91d1e6b61c815c181becc77c8d2b6
4
+ data.tar.gz: 03b47c2d4ecd0828bef1bc9ea0716a42ec8b08d8a60bb1dfb44d0bc97018860c
5
5
  SHA512:
6
- metadata.gz: c810c8714fb83a724a06cabac9e5a53bd1954bd2339e6c64e0e2a98e8bcc98855f478b630364802e484768d5d9596e93c66a2b4b2b3fbf314a8add099875d1dd
7
- data.tar.gz: 68fd9622af974b95d4a8ce32da4e8fd8f2c061650a1342f8a8a7e15779ee83dba09a2659800bb9d950c210967d6226e69c7ff2d70c58c37a0254a92688d2876b
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('xn--tst-qla.de')
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('täst.de')
41
+ result = Ip2whoisRuby::Api.get_normal_text('xn--tst-qla.de')
42
42
  ```
43
43
 
44
44
 
@@ -24,12 +24,12 @@ module Ip2whoisRuby
24
24
 
25
25
  # Get Punycode.
26
26
  def self.get_punycode(domain)
27
- return SimpleIDN.to_unicode(domain)
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.to_ascii(domain)
32
+ return SimpleIDN.to_unicode(domain)
33
33
  end
34
34
 
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module Ip2whoisRuby
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -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('xn--tst-qla.de')
17
- expect(result).to eq 'täst.de'
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('täst.de')
22
- expect(result).to eq 'xn--tst-qla.de'
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.0.0
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-27 00:00:00.000000000 Z
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
- rubyforge_project:
68
- rubygems_version: 2.7.6.2
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: []