unicode-x 1.4.1 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -0
- data/README.md +23 -15
- data/lib/unicode/x.rb +0 -7
- data/lib/unicode/x/version.rb +2 -1
- data/unicode-x.gemspec +11 -10
- metadata +102 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c14830f04afa01cf5d867bd2a0df1deb8ed684956da3726bce8890c89a1339b
|
4
|
+
data.tar.gz: 9f3eb854db600228ed5940f1a937e79bb0d08611b8f4ed17b6a2122901f14bfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '082ec00bb41287af99ebc7f8f83925a4ccb2c8204331c55fb4f41277ba98d194bb1a74411c0aacc3fed5fd21dd3ec7ad479eea51fd7670b21565694c834fde19'
|
7
|
+
data.tar.gz: bef30e2669e7119116f2e79d4b1d4b11019ca5b7e720ad8b67e4ac64ae0f0ebfece21d8c55fc3228edc16b361e1195d5696cb2fb13e05cb25664b26afbaaac1f
|
data/CHANGELOG.md
CHANGED
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -1,27 +1,35 @@
|
|
1
|
-
# Unicode::X [![[version]](https://badge.fury.io/rb/unicode-x.svg)](https://badge.fury.io/rb/unicode-x)
|
1
|
+
# Unicode::X 11 [![[version]](https://badge.fury.io/rb/unicode-x.svg)](https://badge.fury.io/rb/unicode-x)
|
2
2
|
|
3
|
-
|
3
|
+
**Unicodex** is a collection of choose-what-you-need style Unicode libraries for Ruby.
|
4
|
+
|
5
|
+
## Libraries
|
4
6
|
|
5
7
|
Library | Info
|
6
8
|
------------------------|-------------------------------------------------
|
7
|
-
[unicode-blocks](https://github.com/janlelis/unicode-blocks) |
|
8
|
-
[unicode-categories](https://github.com/janlelis/unicode-categories) |
|
9
|
-
[unicode-confusable](https://github.com/janlelis/unicode-confusable) |
|
10
|
-
[unicode-emoji](https://github.com/janlelis/unicode-emoji) | Emoji
|
9
|
+
[unicode-blocks](https://github.com/janlelis/unicode-blocks) | Data about blocks
|
10
|
+
[unicode-categories](https://github.com/janlelis/unicode-categories) | Data about general categories
|
11
|
+
[unicode-confusable](https://github.com/janlelis/unicode-confusable) | Detect confusable characters
|
12
|
+
[unicode-emoji](https://github.com/janlelis/unicode-emoji) | Emoji list and regex
|
11
13
|
[unicode-display_width](https://github.com/janlelis/unicode-display_width) | Monospace character width
|
12
|
-
[unicode-name](https://github.com/janlelis/unicode-name) |
|
13
|
-
[
|
14
|
-
[unicode-
|
15
|
-
[unicode-
|
16
|
-
[unicode-
|
17
|
-
[unicode-types](https://github.com/janlelis/unicode-types) | Basic codepoint types
|
14
|
+
[unicode-name](https://github.com/janlelis/unicode-name) | Codepoint names and labels
|
15
|
+
[unicode-numeric_value](https://github.com/janlelis/unicode-numeric_value) | Retrieve values of numerical codepoints
|
16
|
+
[unicode-scripts](https://github.com/janlelis/unicode-scripts) | Data about scripts / script extensions
|
17
|
+
[unicode-sequence_name](https://github.com/janlelis/unicode-sequence_name) | Names of codepoint sequences
|
18
|
+
[unicode-types](https://github.com/janlelis/unicode-types) | Basic type of codepoints
|
18
19
|
|
19
|
-
##
|
20
|
+
## Collection
|
20
21
|
|
21
|
-
|
22
|
+
You can get all by libraries at once by adding to your `Gemfile`:
|
22
23
|
|
23
24
|
```ruby
|
24
25
|
gem 'unicode-x'
|
25
26
|
```
|
26
27
|
|
27
|
-
|
28
|
+
### Versioning Policy
|
29
|
+
|
30
|
+
Beginning with version 11, `Unicode::X`'s major version is synced to Unicode's. It will require the latest version of the micro libraries that come with the specified Unicode version.
|
31
|
+
|
32
|
+
## Also See
|
33
|
+
|
34
|
+
- [Introduction to Unicode in Ruby](https://idiosyncratic-ruby.com/66-ruby-has-character.html) (blog post)
|
35
|
+
- [unicode_normalize](https://github.com/ruby/ruby/blob/trunk/lib/unicode_normalize/normalize.rb): Unicode normalization included in standard library
|
data/lib/unicode/x.rb
CHANGED
@@ -10,10 +10,3 @@ require "unicode/sequence_name"
|
|
10
10
|
require "unicode/numeric_value"
|
11
11
|
require "unicode/scripts"
|
12
12
|
require "unicode/types"
|
13
|
-
|
14
|
-
begin
|
15
|
-
require "unicode_normalize/normalize"
|
16
|
-
rescue LoadError
|
17
|
-
warn "Could not load unicode_normalize which is part of Ruby 2.2"
|
18
|
-
end
|
19
|
-
|
data/lib/unicode/x/version.rb
CHANGED
data/unicode-x.gemspec
CHANGED
@@ -18,14 +18,15 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
20
|
gem.required_ruby_version = "~> 2.0"
|
21
|
-
|
22
|
-
gem.add_dependency "unicode-
|
23
|
-
gem.add_dependency "unicode-
|
24
|
-
gem.add_dependency "unicode-
|
25
|
-
gem.add_dependency "unicode-
|
26
|
-
gem.add_dependency "unicode-
|
27
|
-
gem.add_dependency "unicode-
|
28
|
-
gem.add_dependency "unicode-
|
29
|
-
gem.add_dependency "unicode-
|
30
|
-
gem.add_dependency "unicode-
|
21
|
+
|
22
|
+
gem.add_dependency "unicode-blocks", ">= 1.3", "< 1.4"
|
23
|
+
gem.add_dependency "unicode-categories", ">= 1.3", "< 1.4"
|
24
|
+
gem.add_dependency "unicode-confusable", ">= 1.4", "< 1.5"
|
25
|
+
gem.add_dependency "unicode-emoji", ">= 1.1", "< 2.0"
|
26
|
+
gem.add_dependency "unicode-display_width", ">= 1.4", "< 1.5"
|
27
|
+
gem.add_dependency "unicode-name", ">= 1.6", "< 1.7"
|
28
|
+
gem.add_dependency "unicode-numeric_value", ">= 1.4", "< 1.5"
|
29
|
+
gem.add_dependency "unicode-scripts", ">= 1.3", "< 1.4"
|
30
|
+
gem.add_dependency "unicode-sequence_name", ">= 1.2", "< 1.3"
|
31
|
+
gem.add_dependency "unicode-types", ">= 1.3", "< 1.4"
|
31
32
|
end
|
metadata
CHANGED
@@ -1,155 +1,215 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-x
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 11.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode-blocks
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
29
|
+
version: '1.3'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: unicode-categories
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
39
|
+
version: '1.3'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.4'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
49
|
+
version: '1.3'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.4'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: unicode-confusable
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- - "
|
57
|
+
- - ">="
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
59
|
+
version: '1.4'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.5'
|
48
63
|
type: :runtime
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
|
-
- - "
|
67
|
+
- - ">="
|
53
68
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
69
|
+
version: '1.4'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1.5'
|
55
73
|
- !ruby/object:Gem::Dependency
|
56
74
|
name: unicode-emoji
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
58
76
|
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.1'
|
59
80
|
- - "<"
|
60
81
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
82
|
+
version: '2.0'
|
62
83
|
type: :runtime
|
63
84
|
prerelease: false
|
64
85
|
version_requirements: !ruby/object:Gem::Requirement
|
65
86
|
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.1'
|
66
90
|
- - "<"
|
67
91
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
92
|
+
version: '2.0'
|
69
93
|
- !ruby/object:Gem::Dependency
|
70
94
|
name: unicode-display_width
|
71
95
|
requirement: !ruby/object:Gem::Requirement
|
72
96
|
requirements:
|
73
|
-
- - "
|
97
|
+
- - ">="
|
74
98
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
99
|
+
version: '1.4'
|
100
|
+
- - "<"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.5'
|
76
103
|
type: :runtime
|
77
104
|
prerelease: false
|
78
105
|
version_requirements: !ruby/object:Gem::Requirement
|
79
106
|
requirements:
|
80
|
-
- - "
|
107
|
+
- - ">="
|
81
108
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
109
|
+
version: '1.4'
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.5'
|
83
113
|
- !ruby/object:Gem::Dependency
|
84
114
|
name: unicode-name
|
85
115
|
requirement: !ruby/object:Gem::Requirement
|
86
116
|
requirements:
|
87
|
-
- - "
|
117
|
+
- - ">="
|
88
118
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
119
|
+
version: '1.6'
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '1.7'
|
90
123
|
type: :runtime
|
91
124
|
prerelease: false
|
92
125
|
version_requirements: !ruby/object:Gem::Requirement
|
93
126
|
requirements:
|
94
|
-
- - "
|
127
|
+
- - ">="
|
95
128
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
129
|
+
version: '1.6'
|
130
|
+
- - "<"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.7'
|
97
133
|
- !ruby/object:Gem::Dependency
|
98
134
|
name: unicode-numeric_value
|
99
135
|
requirement: !ruby/object:Gem::Requirement
|
100
136
|
requirements:
|
101
|
-
- - "
|
137
|
+
- - ">="
|
102
138
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
139
|
+
version: '1.4'
|
140
|
+
- - "<"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '1.5'
|
104
143
|
type: :runtime
|
105
144
|
prerelease: false
|
106
145
|
version_requirements: !ruby/object:Gem::Requirement
|
107
146
|
requirements:
|
108
|
-
- - "
|
147
|
+
- - ">="
|
109
148
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
149
|
+
version: '1.4'
|
150
|
+
- - "<"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.5'
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: unicode-scripts
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
114
156
|
requirements:
|
115
|
-
- - "
|
157
|
+
- - ">="
|
116
158
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
159
|
+
version: '1.3'
|
160
|
+
- - "<"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '1.4'
|
118
163
|
type: :runtime
|
119
164
|
prerelease: false
|
120
165
|
version_requirements: !ruby/object:Gem::Requirement
|
121
166
|
requirements:
|
122
|
-
- - "
|
167
|
+
- - ">="
|
123
168
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
169
|
+
version: '1.3'
|
170
|
+
- - "<"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '1.4'
|
125
173
|
- !ruby/object:Gem::Dependency
|
126
174
|
name: unicode-sequence_name
|
127
175
|
requirement: !ruby/object:Gem::Requirement
|
128
176
|
requirements:
|
129
|
-
- - "
|
177
|
+
- - ">="
|
130
178
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
179
|
+
version: '1.2'
|
180
|
+
- - "<"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '1.3'
|
132
183
|
type: :runtime
|
133
184
|
prerelease: false
|
134
185
|
version_requirements: !ruby/object:Gem::Requirement
|
135
186
|
requirements:
|
136
|
-
- - "
|
187
|
+
- - ">="
|
137
188
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
189
|
+
version: '1.2'
|
190
|
+
- - "<"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '1.3'
|
139
193
|
- !ruby/object:Gem::Dependency
|
140
194
|
name: unicode-types
|
141
195
|
requirement: !ruby/object:Gem::Requirement
|
142
196
|
requirements:
|
143
|
-
- - "
|
197
|
+
- - ">="
|
144
198
|
- !ruby/object:Gem::Version
|
145
|
-
version: '1.
|
199
|
+
version: '1.3'
|
200
|
+
- - "<"
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '1.4'
|
146
203
|
type: :runtime
|
147
204
|
prerelease: false
|
148
205
|
version_requirements: !ruby/object:Gem::Requirement
|
149
206
|
requirements:
|
150
|
-
- - "
|
207
|
+
- - ">="
|
151
208
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
209
|
+
version: '1.3'
|
210
|
+
- - "<"
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '1.4'
|
153
213
|
description: A collection of micro libraries providing data and algorithms about Unicode
|
154
214
|
characters.
|
155
215
|
email:
|
@@ -160,6 +220,8 @@ extra_rdoc_files: []
|
|
160
220
|
files:
|
161
221
|
- ".gitignore"
|
162
222
|
- CHANGELOG.md
|
223
|
+
- Gemfile
|
224
|
+
- Gemfile.lock
|
163
225
|
- README.md
|
164
226
|
- Rakefile
|
165
227
|
- lib/unicode/x.rb
|