simpleidn 0.2.3 → 0.3.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 +4 -4
- data/CHANGELOG.md +26 -0
- data/LICENCE +21 -21
- data/README.md +82 -0
- data/lib/simpleidn/uts46mapping.rb +166 -4
- data/lib/simpleidn/version.rb +1 -1
- data/lib/simpleidn.rb +293 -283
- data/simpleidn.gemspec +13 -3
- metadata +14 -18
- data/.gitignore +0 -11
- data/.travis.yml +0 -9
- data/Gemfile +0 -7
- data/README.rdoc +0 -39
- data/Rakefile +0 -6
- data/tables/IdnaMappingTable.txt +0 -9025
- data/tables/generate_mapping_table.rb +0 -51
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simpleidn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Morten Møller Riis
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rake
|
|
@@ -16,28 +15,28 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 13.0
|
|
18
|
+
version: '13.0'
|
|
20
19
|
type: :development
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 13.0
|
|
25
|
+
version: '13.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: rspec
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '3.
|
|
32
|
+
version: '3.13'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '3.
|
|
39
|
+
version: '3.13'
|
|
41
40
|
description: This gem allows easy conversion from punycode ACE strings to unicode
|
|
42
41
|
UTF-8 strings and vice-versa.
|
|
43
42
|
email:
|
|
@@ -46,23 +45,21 @@ executables: []
|
|
|
46
45
|
extensions: []
|
|
47
46
|
extra_rdoc_files: []
|
|
48
47
|
files:
|
|
49
|
-
-
|
|
50
|
-
- ".travis.yml"
|
|
51
|
-
- Gemfile
|
|
48
|
+
- CHANGELOG.md
|
|
52
49
|
- LICENCE
|
|
53
|
-
- README.
|
|
54
|
-
- Rakefile
|
|
50
|
+
- README.md
|
|
55
51
|
- lib/simpleidn.rb
|
|
56
52
|
- lib/simpleidn/uts46mapping.rb
|
|
57
53
|
- lib/simpleidn/version.rb
|
|
58
54
|
- simpleidn.gemspec
|
|
59
|
-
- tables/IdnaMappingTable.txt
|
|
60
|
-
- tables/generate_mapping_table.rb
|
|
61
55
|
homepage: https://github.com/mmriis/simpleidn
|
|
62
56
|
licenses:
|
|
63
57
|
- MIT
|
|
64
|
-
metadata:
|
|
65
|
-
|
|
58
|
+
metadata:
|
|
59
|
+
source_code_uri: https://github.com/mmriis/simpleidn
|
|
60
|
+
bug_tracker_uri: https://github.com/mmriis/simpleidn/issues
|
|
61
|
+
changelog_uri: https://github.com/mmriis/simpleidn/blob/master/CHANGELOG.md
|
|
62
|
+
rubygems_mfa_required: 'true'
|
|
66
63
|
rdoc_options: []
|
|
67
64
|
require_paths:
|
|
68
65
|
- lib
|
|
@@ -77,8 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
74
|
- !ruby/object:Gem::Version
|
|
78
75
|
version: '0'
|
|
79
76
|
requirements: []
|
|
80
|
-
rubygems_version: 3.
|
|
81
|
-
signing_key:
|
|
77
|
+
rubygems_version: 3.6.9
|
|
82
78
|
specification_version: 4
|
|
83
79
|
summary: Punycode ACE to unicode UTF-8 (and vice-versa) string conversion.
|
|
84
80
|
test_files: []
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/README.rdoc
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
== SimpleIDN
|
|
2
|
-
|
|
3
|
-
{rdoc-image:https://app.travis-ci.com/mmriis/simpleidn.svg?branch=master}[https://app.travis-ci.com/mmriis/simpleidn]
|
|
4
|
-
|
|
5
|
-
This gem allows easy conversion from punycode ACE strings to unicode UTF-8 strings and visa versa.
|
|
6
|
-
|
|
7
|
-
The implementation is heavily based on the RFC3492 C example implementation but simplified since it does not preserve case.
|
|
8
|
-
|
|
9
|
-
This gem works with Ruby 2.2+.
|
|
10
|
-
|
|
11
|
-
== Installation
|
|
12
|
-
|
|
13
|
-
[sudo] gem install simpleidn
|
|
14
|
-
|
|
15
|
-
+sudo+ is optional depending on your setup.
|
|
16
|
-
|
|
17
|
-
In your Ruby script you can now.
|
|
18
|
-
|
|
19
|
-
require 'rubygems'
|
|
20
|
-
require 'simpleidn'
|
|
21
|
-
|
|
22
|
-
SimpleIDN.to_unicode("xn--mllerriis-l8a.com")
|
|
23
|
-
=> "møllerriis.com"
|
|
24
|
-
|
|
25
|
-
SimpleIDN.to_ascii("møllerriis.com")
|
|
26
|
-
=> "xn--mllerriis-l8a.com"
|
|
27
|
-
|
|
28
|
-
== Testing / RSpec
|
|
29
|
-
|
|
30
|
-
In order to run the test suite you must have <tt>rspec</tt> installed.
|
|
31
|
-
|
|
32
|
-
The test suite has been copied from the IDN gem and uses examples from JOSEFSSON test vectors, taken from DRAFT-JOSEFSSON-IDN-TEST-VECTORS-00:
|
|
33
|
-
http://www.gnu.org/software/libidn/draft-josefsson-idn-test-vectors.html
|
|
34
|
-
|
|
35
|
-
== Known issues
|
|
36
|
-
|
|
37
|
-
Does not preserve uppercase. So if, for some reason, you use uppercase characters (eg. Ø instead of ø), please take note of that.
|
|
38
|
-
|
|
39
|
-
Please report any issues!
|