idnx 0.1.0 → 0.1.1

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: 7e9eef708b35b383a3270b44ca3670e72d92bd3c29e89ecf2df9ba0ded94a144
4
- data.tar.gz: 4c08ebc4dc52aa8ccf6fe5b1c53c17e7eb2a6e07d11c7d689f049d757d6de379
3
+ metadata.gz: 36e8b31d685bd8a07c8f729d89fead70bd02f172e8ac6e67682acc251c3c29f3
4
+ data.tar.gz: 807d5edd9c47efc19811dcd0367c2ebf741d67fe24ceda0ec1707bcbbfe92a62
5
5
  SHA512:
6
- metadata.gz: 960e68d02443bf62b55290187f1785e16b9d16005107ce3b3f7db4ee016c1c91dd867de57d04f8cb92db18081a7b01499ac20fa8082f76ba884e8702806ff8ea
7
- data.tar.gz: 0be4f68aa311208b5652e2773192487cec450e6ff604d04a1d72f662136309928bd405a095f36eb4dc6f9180dafa10d1f90fe4f847225dd6288b5a2d4aeab29f
6
+ metadata.gz: bce91ce6e4679acf80690e15a5efa258e9f1ab802f356af3ae5025e0afc9c530babd11d5601c2a5a345692f1f757e7d0f2b10b637615ddbb1691df3caca12bf5
7
+ data.tar.gz: 181c44f5ef5eb6947fe23ff5e06d923ab7afd38ba1ce4387f63a7aebc4882e1dd748f2b1ba1f5f2ed3c5b1f22e91104eaf13cf7c984fbfdf5513007f32ed054b
data/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.1] - 2021-10-03
4
+
5
+ Added missing RBS sig files to the gemspec.
6
+
7
+ ## [0.1.0] - 2021-09-04
8
+
9
+ ### improvements
10
+
11
+ It ships RBS signatures for the main public API.
12
+
13
+ ### compliance
14
+
15
+ `idnx` ships with a pure ruby punycode implementation (IDNA 2003), which will get loaded when `libidn2` isn't installed in the system. This was necessary for license compatibility, given that Apache 2.0 projects can rely on GPL dependencies (such as `libidn2`) but nnot exclusively.
16
+
17
+ ## [0.0.1] - 2021-06-11
18
+
19
+ This is the initial release.
20
+
21
+ ### Features
22
+
23
+ `idnx` ships with a single function, which translate Innternational domain names into Punycode names, which can be used for DNS requests:
24
+
25
+ ```ruby
26
+ require "idnx"
27
+
28
+ Idnx.to_punycode("bücher.de") #=> "xn--bcher-kva.de"
29
+ ```
data/lib/idnx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Idnx
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/sig/idnx.rbs ADDED
@@ -0,0 +1,12 @@
1
+ module Idnx
2
+ VERSION: String
3
+
4
+ class Error < StandardError
5
+ end
6
+
7
+ def self?.to_punycode: (String hostname) -> String
8
+
9
+ module Lib
10
+ def self?.lookup: (String hostname) -> String
11
+ end
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idnx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HoneyryderChuck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2021-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -35,6 +35,7 @@ extra_rdoc_files:
35
35
  - LICENSE.txt
36
36
  - README.md
37
37
  files:
38
+ - CHANGELOG.md
38
39
  - LICENSE.txt
39
40
  - README.md
40
41
  - lib/idnx.rb
@@ -42,6 +43,7 @@ files:
42
43
  - lib/idnx/ruby.rb
43
44
  - lib/idnx/version.rb
44
45
  - lib/idnx/windows.rb
46
+ - sig/idnx.rbs
45
47
  homepage: https://github.com/honeyryderchuck/idnx
46
48
  licenses: []
47
49
  metadata:
@@ -63,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
65
  - !ruby/object:Gem::Version
64
66
  version: '0'
65
67
  requirements: []
66
- rubygems_version: 3.2.15
68
+ rubygems_version: 3.2.22
67
69
  signing_key:
68
70
  specification_version: 4
69
71
  summary: Converts International Domain Names into Punycode. It uses (via FFI) 'libidn2'