regexp_property_values 1.2.0 → 1.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 +5 -0
- data/Rakefile +5 -0
- data/lib/aliases +4 -0
- data/lib/regexp_property_values/updater.rb +5 -20
- data/lib/regexp_property_values/version.rb +1 -1
- data/lib/values +18 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdb92664f5c2d943c3e6d7a82720d306fed68efc788b7983073412c8fe3b710f
|
4
|
+
data.tar.gz: 31a796c90cc09cf6453bbac697fcfc3e3d752060681173d318549ac032adf6a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87d459e10251725ebbe142b03187e2714d19b5aec425b6bd92be9e52646a43c4fac4167968fdc8a95a546e58f4228e1c919640ca74221a3cfeba28c93079257
|
7
|
+
data.tar.gz: 39ca12c98c0f347603cd900f7cf99c4d98a4e30e5700c4da91fc0aa91c39766aed307839bed6a7d821c02a5032f6955e3f7c2a49f4c5a18aea4618490bfc9811
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.3.0] - 2022-04-07
|
8
|
+
|
9
|
+
### Added
|
10
|
+
- new properties of Ruby 3.2 / Unicode 14.0
|
11
|
+
|
7
12
|
## [1.2.0] - 2021-12-31
|
8
13
|
|
9
14
|
### Added
|
data/Rakefile
CHANGED
data/lib/aliases
CHANGED
@@ -35,6 +35,7 @@ Cn;Unassigned
|
|
35
35
|
Co;Private_Use
|
36
36
|
Combining_Mark;Mark
|
37
37
|
Copt;Coptic
|
38
|
+
Cpmn;Cypro_Minoan
|
38
39
|
Cprt;Cypriot
|
39
40
|
Cs;Surrogate
|
40
41
|
Cyrl;Cyrillic
|
@@ -154,6 +155,7 @@ Orkh;Old_Turkic
|
|
154
155
|
Orya;Oriya
|
155
156
|
Osge;Osage
|
156
157
|
Osma;Osmanya
|
158
|
+
Ougr;Old_Uyghur
|
157
159
|
P;Punctuation
|
158
160
|
PCM;Prepended_Concatenation_Mark
|
159
161
|
Palm;Palmyrene
|
@@ -218,10 +220,12 @@ Tglg;Tagalog
|
|
218
220
|
Thaa;Thaana
|
219
221
|
Tibt;Tibetan
|
220
222
|
Tirh;Tirhuta
|
223
|
+
Tnsa;Tangsa
|
221
224
|
UIdeo;Unified_Ideograph
|
222
225
|
Ugar;Ugaritic
|
223
226
|
VS;Variation_Selector
|
224
227
|
Vaii;Vai
|
228
|
+
Vith;Vithkuqi
|
225
229
|
WSpace;White_Space
|
226
230
|
Wara;Warang_Citi
|
227
231
|
Wcho;Wancho
|
@@ -5,7 +5,7 @@ module RegexpPropertyValues
|
|
5
5
|
require 'fileutils'
|
6
6
|
require 'set'
|
7
7
|
|
8
|
-
BASE_URL = '
|
8
|
+
BASE_URL = 'https://www.unicode.org/Public/UCD/latest/ucd'
|
9
9
|
|
10
10
|
UCD_FILES = %w[
|
11
11
|
Blocks.txt
|
@@ -38,26 +38,11 @@ module RegexpPropertyValues
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def download_ucd_files(ucd_path: nil, emoji_path: nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
ucd_path ||= ENV['RPV_UCD_PATH']
|
45
|
-
emoji_path ||= ENV['RPV_EMOJI_PATH']
|
46
|
-
|
47
|
-
if ucd_path.nil? && emoji_path.nil?
|
48
|
-
puts <<-EOS.gsub(/\n */, ' ')
|
49
|
-
This try will load ucd and emoji data for the CURRENT RUBY (
|
50
|
-
(#{RUBY_VERSION} - ucd #{unicode_version}, emoji #{emoji_version}).
|
51
|
-
Run this on the latest Ruby version you want to support.
|
52
|
-
Unicode directory structure changes sometimes, so you might need to
|
53
|
-
pass the right path(s) as keyword args or ENV vars. Continue? [y/n]'
|
54
|
-
EOS
|
55
|
-
|
56
|
-
return puts 'download skipped.' unless $stdin.gets =~ /^y/i
|
57
|
-
end
|
41
|
+
puts 'This will try to load the latest UCD data. Continue? [y/n]'
|
42
|
+
return puts 'download skipped.' unless $stdin.gets =~ /^y/i
|
58
43
|
|
59
|
-
ucd_path ||=
|
60
|
-
emoji_path ||= "#{BASE_URL}/emoji
|
44
|
+
ucd_path ||= ENV['RPV_UCD_PATH'] || BASE_URL
|
45
|
+
emoji_path ||= ENV['RPV_EMOJI_PATH'] || "#{BASE_URL}/emoji/"
|
61
46
|
|
62
47
|
Dir.chdir(TMP_DIR) do
|
63
48
|
UCD_FILES.each { |f| `wget #{ucd_path}/#{f}` }
|
data/lib/values
CHANGED
@@ -7,6 +7,7 @@ Age=11.0
|
|
7
7
|
Age=12.0
|
8
8
|
Age=12.1
|
9
9
|
Age=13.0
|
10
|
+
Age=14.0
|
10
11
|
Age=2.0
|
11
12
|
Age=2.1
|
12
13
|
Age=3.0
|
@@ -71,6 +72,7 @@ Coptic
|
|
71
72
|
Cuneiform
|
72
73
|
Currency_Symbol
|
73
74
|
Cypriot
|
75
|
+
Cypro_Minoan
|
74
76
|
Cyrillic
|
75
77
|
Dash
|
76
78
|
Dash_Punctuation
|
@@ -135,6 +137,7 @@ In_Ancient_Greek_Numbers
|
|
135
137
|
In_Ancient_Symbols
|
136
138
|
In_Arabic
|
137
139
|
In_Arabic_Extended_A
|
140
|
+
In_Arabic_Extended_B
|
138
141
|
In_Arabic_Mathematical_Alphabetic_Symbols
|
139
142
|
In_Arabic_Presentation_Forms_A
|
140
143
|
In_Arabic_Presentation_Forms_B
|
@@ -196,6 +199,7 @@ In_Cuneiform
|
|
196
199
|
In_Cuneiform_Numbers_and_Punctuation
|
197
200
|
In_Currency_Symbols
|
198
201
|
In_Cypriot_Syllabary
|
202
|
+
In_Cypro_Minoan
|
199
203
|
In_Cyrillic
|
200
204
|
In_Cyrillic_Extended_A
|
201
205
|
In_Cyrillic_Extended_B
|
@@ -222,6 +226,7 @@ In_Enclosed_Ideographic_Supplement
|
|
222
226
|
In_Ethiopic
|
223
227
|
In_Ethiopic_Extended
|
224
228
|
In_Ethiopic_Extended_A
|
229
|
+
In_Ethiopic_Extended_B
|
225
230
|
In_Ethiopic_Supplement
|
226
231
|
In_General_Punctuation
|
227
232
|
In_Geometric_Shapes
|
@@ -261,6 +266,7 @@ In_Inscriptional_Parthian
|
|
261
266
|
In_Javanese
|
262
267
|
In_Kaithi
|
263
268
|
In_Kana_Extended_A
|
269
|
+
In_Kana_Extended_B
|
264
270
|
In_Kana_Supplement
|
265
271
|
In_Kanbun
|
266
272
|
In_Kangxi_Radicals
|
@@ -282,6 +288,8 @@ In_Latin_Extended_B
|
|
282
288
|
In_Latin_Extended_C
|
283
289
|
In_Latin_Extended_D
|
284
290
|
In_Latin_Extended_E
|
291
|
+
In_Latin_Extended_F
|
292
|
+
In_Latin_Extended_G
|
285
293
|
In_Lepcha
|
286
294
|
In_Letterlike_Symbols
|
287
295
|
In_Limbu
|
@@ -346,6 +354,7 @@ In_Old_Persian
|
|
346
354
|
In_Old_Sogdian
|
347
355
|
In_Old_South_Arabian
|
348
356
|
In_Old_Turkic
|
357
|
+
In_Old_Uyghur
|
349
358
|
In_Optical_Character_Recognition
|
350
359
|
In_Oriya
|
351
360
|
In_Ornamental_Dingbats
|
@@ -408,6 +417,7 @@ In_Tai_Xuan_Jing_Symbols
|
|
408
417
|
In_Takri
|
409
418
|
In_Tamil
|
410
419
|
In_Tamil_Supplement
|
420
|
+
In_Tangsa
|
411
421
|
In_Tangut
|
412
422
|
In_Tangut_Components
|
413
423
|
In_Tangut_Supplement
|
@@ -417,15 +427,18 @@ In_Thai
|
|
417
427
|
In_Tibetan
|
418
428
|
In_Tifinagh
|
419
429
|
In_Tirhuta
|
430
|
+
In_Toto
|
420
431
|
In_Transport_and_Map_Symbols
|
421
432
|
In_Ugaritic
|
422
433
|
In_Unified_Canadian_Aboriginal_Syllabics
|
423
434
|
In_Unified_Canadian_Aboriginal_Syllabics_Extended
|
435
|
+
In_Unified_Canadian_Aboriginal_Syllabics_Extended_A
|
424
436
|
In_Vai
|
425
437
|
In_Variation_Selectors
|
426
438
|
In_Variation_Selectors_Supplement
|
427
439
|
In_Vedic_Extensions
|
428
440
|
In_Vertical_Forms
|
441
|
+
In_Vithkuqi
|
429
442
|
In_Wancho
|
430
443
|
In_Warang_Citi
|
431
444
|
In_Yezidi
|
@@ -433,6 +446,7 @@ In_Yi_Radicals
|
|
433
446
|
In_Yi_Syllables
|
434
447
|
In_Yijing_Hexagram_Symbols
|
435
448
|
In_Zanabazar_Square
|
449
|
+
In_Znamenny_Musical_Notation
|
436
450
|
Inherited
|
437
451
|
Initial_Punctuation
|
438
452
|
Inscriptional_Pahlavi
|
@@ -508,6 +522,7 @@ Old_Persian
|
|
508
522
|
Old_Sogdian
|
509
523
|
Old_South_Arabian
|
510
524
|
Old_Turkic
|
525
|
+
Old_Uyghur
|
511
526
|
Open_Punctuation
|
512
527
|
Oriya
|
513
528
|
Osage
|
@@ -572,6 +587,7 @@ Tai_Tham
|
|
572
587
|
Tai_Viet
|
573
588
|
Takri
|
574
589
|
Tamil
|
590
|
+
Tangsa
|
575
591
|
Tangut
|
576
592
|
Telugu
|
577
593
|
Terminal_Punctuation
|
@@ -581,6 +597,7 @@ Tibetan
|
|
581
597
|
Tifinagh
|
582
598
|
Tirhuta
|
583
599
|
Titlecase_Letter
|
600
|
+
Toto
|
584
601
|
Ugaritic
|
585
602
|
Unassigned
|
586
603
|
Unified_Ideograph
|
@@ -590,6 +607,7 @@ Uppercase
|
|
590
607
|
Uppercase_Letter
|
591
608
|
Vai
|
592
609
|
Variation_Selector
|
610
|
+
Vithkuqi
|
593
611
|
Wancho
|
594
612
|
Warang_Citi
|
595
613
|
White_Space
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regexp_property_values
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janosch Müller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This small library lets you see which property values are supported by
|
14
14
|
the regular expression engine of the Ruby version you are running, and what they
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
rubygems_version: 3.3.
|
64
|
+
rubygems_version: 3.3.3
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Inspect property values supported by Ruby's regex engine
|