regexp_parser 2.11.2 → 2.12.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.
@@ -3,7 +3,10 @@
3
3
  module Regexp::Syntax
4
4
  module Token
5
5
  module UnicodeProperty
6
- all = proc { |name| constants.grep(/#{name}/).flat_map(&method(:const_get)) }
6
+ def self.all(name)
7
+ constants.grep(/#{name}/).flat_map(&method(:const_get)).freeze
8
+ end
9
+ private_class_method :all
7
10
 
8
11
  CharType_V1_9_0 = %i[alnum alpha ascii blank cntrl digit graph
9
12
  lower print punct space upper word xdigit].freeze
@@ -63,9 +66,11 @@ module Regexp::Syntax
63
66
 
64
67
  Age_V3_2_0 = %i[age=14.0 age=15.0].freeze
65
68
 
66
- Age_V3_5_0 = %i[age=15.1]
69
+ Age_V3_5_0 = %i[age=15.1].freeze
70
+
71
+ Age_V4_0_0 = %i[age=16.0 age=17.0].freeze
67
72
 
68
- Age = all[:Age_V]
73
+ Age = all(:Age_V)
69
74
 
70
75
  Derived_V1_9_0 = %i[
71
76
  ascii_hex_digit
@@ -138,9 +143,13 @@ module Regexp::Syntax
138
143
  id_compat_math_continue
139
144
  id_compat_math_start
140
145
  ids_unary_operator
146
+ ].freeze
147
+
148
+ Derived_V4_0_0 = %i[
149
+ modifier_combining_mark
141
150
  ]
142
151
 
143
- Derived = all[:Derived_V]
152
+ Derived = all(:Derived_V)
144
153
 
145
154
  Script_V1_9_0 = %i[
146
155
  arabic
@@ -339,7 +348,21 @@ module Regexp::Syntax
339
348
  vithkuqi
340
349
  ].freeze
341
350
 
342
- Script = all[:Script_V]
351
+ Script_V4_0_0 = %i[
352
+ beria_erfe
353
+ garay
354
+ gurung_khema
355
+ kirat_rai
356
+ ol_onal
357
+ sidetic
358
+ sunuwar
359
+ tai_yo
360
+ todhri
361
+ tolong_siki
362
+ tulu_tigalari
363
+ ].freeze
364
+
365
+ Script = all(:Script_V)
343
366
 
344
367
  UnicodeBlock_V1_9_0 = %i[
345
368
  in_alphabetic_presentation_forms
@@ -701,9 +724,30 @@ module Regexp::Syntax
701
724
 
702
725
  UnicodeBlock_V3_5_0 = %i[
703
726
  in_cjk_unified_ideographs_extension_i
704
- ]
727
+ ].freeze
728
+
729
+ UnicodeBlock_V4_0_0 = %i[
730
+ in_beria_erfe
731
+ in_cjk_unified_ideographs_extension_j
732
+ in_egyptian_hieroglyphs_extended_a
733
+ in_garay
734
+ in_gurung_khema
735
+ in_kirat_rai
736
+ in_miscellaneous_symbols_supplement
737
+ in_myanmar_extended_c
738
+ in_ol_onal
739
+ in_sharada_supplement
740
+ in_sidetic
741
+ in_sunuwar
742
+ in_symbols_for_legacy_computing_supplement
743
+ in_tai_yo
744
+ in_tangut_components_supplement
745
+ in_todhri
746
+ in_tolong_siki
747
+ in_tulu_tigalari
748
+ ].freeze
705
749
 
706
- UnicodeBlock = all[:UnicodeBlock_V]
750
+ UnicodeBlock = all(:UnicodeBlock_V)
707
751
 
708
752
  Emoji_V2_5_0 = %i[
709
753
  emoji
@@ -733,25 +777,26 @@ module Regexp::Syntax
733
777
  grapheme_cluster_break=zwj
734
778
  ].freeze
735
779
 
736
- Enumerated = all[:Enumerated_V]
737
-
738
- Emoji = all[:Emoji_V]
739
-
740
- V1_9_0 = Category::All + POSIX + all[:V1_9_0]
741
- V1_9_3 = all[:V1_9_3]
742
- V2_0_0 = all[:V2_0_0]
743
- V2_2_0 = all[:V2_2_0]
744
- V2_3_0 = all[:V2_3_0]
745
- V2_4_0 = all[:V2_4_0]
746
- V2_5_0 = all[:V2_5_0]
747
- V2_6_0 = all[:V2_6_0]
748
- V2_6_2 = all[:V2_6_2]
749
- V2_6_3 = all[:V2_6_3]
750
- V3_1_0 = all[:V3_1_0]
751
- V3_2_0 = all[:V3_2_0]
752
- V3_5_0 = all[:V3_5_0]
753
-
754
- All = all[/^V\d+_\d+_\d+$/]
780
+ Enumerated = all(:Enumerated_V)
781
+
782
+ Emoji = all(:Emoji_V)
783
+
784
+ V1_9_0 = Category::All + POSIX + all(:V1_9_0)
785
+ V1_9_3 = all(:V1_9_3)
786
+ V2_0_0 = all(:V2_0_0)
787
+ V2_2_0 = all(:V2_2_0)
788
+ V2_3_0 = all(:V2_3_0)
789
+ V2_4_0 = all(:V2_4_0)
790
+ V2_5_0 = all(:V2_5_0)
791
+ V2_6_0 = all(:V2_6_0)
792
+ V2_6_2 = all(:V2_6_2)
793
+ V2_6_3 = all(:V2_6_3)
794
+ V3_1_0 = all(:V3_1_0)
795
+ V3_2_0 = all(:V3_2_0)
796
+ V3_5_0 = all(:V3_5_0)
797
+ V4_0_0 = all(:V4_0_0)
798
+
799
+ All = all(/^V\d+_\d+_\d+$/)
755
800
 
756
801
  Type = :property
757
802
  NonType = :nonproperty
@@ -0,0 +1,4 @@
1
+ class Regexp::Syntax::V4_0_0 < Regexp::Syntax::V3_5_0
2
+ implements :property, UnicodeProperty::V4_0_0
3
+ implements :nonproperty, UnicodeProperty::V4_0_0
4
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  class Regexp
4
4
  class Parser
5
- VERSION = '2.11.2'
5
+ VERSION = '2.12.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regexp_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.2
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ammar Ali
@@ -106,6 +106,7 @@ files:
106
106
  - lib/regexp_parser/syntax/versions/3.1.0.rb
107
107
  - lib/regexp_parser/syntax/versions/3.2.0.rb
108
108
  - lib/regexp_parser/syntax/versions/3.5.0.rb
109
+ - lib/regexp_parser/syntax/versions/4.0.0.rb
109
110
  - lib/regexp_parser/token.rb
110
111
  - lib/regexp_parser/version.rb
111
112
  - regexp_parser.gemspec
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
134
  - !ruby/object:Gem::Version
134
135
  version: '0'
135
136
  requirements: []
136
- rubygems_version: 3.6.7
137
+ rubygems_version: 4.0.3
137
138
  specification_version: 4
138
139
  summary: Scanner, lexer, parser for ruby's regular expressions
139
140
  test_files: []