regexp_parser 0.4.7 → 0.4.8
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 +5 -0
- data/lib/regexp_parser/syntax/ruby/2.2.9.rb +13 -0
- data/lib/regexp_parser/syntax/ruby/2.2.rb +2 -2
- data/lib/regexp_parser/syntax/ruby/2.3.6.rb +13 -0
- data/lib/regexp_parser/syntax/ruby/2.3.rb +2 -2
- data/lib/regexp_parser/syntax/ruby/2.4.3.rb +13 -0
- data/lib/regexp_parser/syntax/ruby/2.4.rb +2 -2
- data/lib/regexp_parser/syntax/versions.rb +3 -0
- data/lib/regexp_parser/version.rb +1 -1
- data/test/syntax/ruby/test_files.rb +24 -3
- metadata +55 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0863d48a164a3295b4c264d3fb934845b94919db'
|
4
|
+
data.tar.gz: 1fa12fbac5b388c4abebbce54a048ee27bc7e8de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ba6db445a08a5b2d2562bca4fe539d3951ce42a202083d1888239221d3968ab23579efddfd17da7e90ae899acb4a9b1145cc79c65c9e6fd6d02d3c540af488
|
7
|
+
data.tar.gz: f4bfaa14bed90304671f301d6846f80fd8c7a6c9ce47055b5a29f7018b85bc408d6894ce902f8badeb8cd5c5f638515296862343e614b15d08a04e1cca073605
|
data/ChangeLog
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require File.expand_path('../2.2.
|
1
|
+
require File.expand_path('../2.2.9', __FILE__)
|
2
2
|
|
3
3
|
module Regexp::Syntax
|
4
4
|
module Ruby
|
5
5
|
# uses the latest 2.2 release
|
6
|
-
class V22 < Regexp::Syntax::Ruby::
|
6
|
+
class V22 < Regexp::Syntax::Ruby::V229; end
|
7
7
|
end
|
8
8
|
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require File.expand_path('../2.3.
|
1
|
+
require File.expand_path('../2.3.6', __FILE__)
|
2
2
|
|
3
3
|
module Regexp::Syntax
|
4
4
|
module Ruby
|
5
5
|
# uses the latest 2.3 release
|
6
|
-
class V23 < Regexp::Syntax::Ruby::
|
6
|
+
class V23 < Regexp::Syntax::Ruby::V236; end
|
7
7
|
end
|
8
8
|
end
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require File.expand_path('../2.4.
|
1
|
+
require File.expand_path('../2.4.3', __FILE__)
|
2
2
|
|
3
3
|
module Regexp::Syntax
|
4
4
|
module Ruby
|
5
5
|
# uses the latest 2.4 release
|
6
|
-
class V24 < Regexp::Syntax::Ruby::
|
6
|
+
class V24 < Regexp::Syntax::Ruby::V243; end
|
7
7
|
end
|
8
8
|
end
|
@@ -48,6 +48,7 @@ module Regexp::Syntax
|
|
48
48
|
'ruby/2.2.6',
|
49
49
|
'ruby/2.2.7',
|
50
50
|
'ruby/2.2.8',
|
51
|
+
'ruby/2.2.9',
|
51
52
|
|
52
53
|
# alias for the latest 2.2 implementations
|
53
54
|
'ruby/2.2',
|
@@ -59,6 +60,7 @@ module Regexp::Syntax
|
|
59
60
|
'ruby/2.3.3',
|
60
61
|
'ruby/2.3.4',
|
61
62
|
'ruby/2.3.5',
|
63
|
+
'ruby/2.3.6',
|
62
64
|
|
63
65
|
# alias for the latest 2.3 implementation
|
64
66
|
'ruby/2.3',
|
@@ -67,6 +69,7 @@ module Regexp::Syntax
|
|
67
69
|
'ruby/2.4.0',
|
68
70
|
'ruby/2.4.1',
|
69
71
|
'ruby/2.4.2',
|
72
|
+
'ruby/2.4.3',
|
70
73
|
|
71
74
|
# alias for the latest 2.4 implementation
|
72
75
|
'ruby/2.4',
|
@@ -191,10 +191,17 @@ class TestSyntaxFiles < Test::Unit::TestCase
|
|
191
191
|
assert syntax.kind_of?(Regexp::Syntax::Ruby::V228)
|
192
192
|
end
|
193
193
|
|
194
|
+
def test_syntax_file_2_2_9
|
195
|
+
syntax = Regexp::Syntax.new 'ruby/2.2.9'
|
196
|
+
|
197
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V228)
|
198
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V229)
|
199
|
+
end
|
200
|
+
|
194
201
|
def test_syntax_file_2_2_alias
|
195
202
|
syntax = Regexp::Syntax.new 'ruby/2.2'
|
196
203
|
|
197
|
-
assert syntax.kind_of?(Regexp::Syntax::Ruby::
|
204
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V229)
|
198
205
|
end
|
199
206
|
|
200
207
|
# 2.3 syntax files
|
@@ -240,10 +247,17 @@ class TestSyntaxFiles < Test::Unit::TestCase
|
|
240
247
|
assert syntax.kind_of?(Regexp::Syntax::Ruby::V235)
|
241
248
|
end
|
242
249
|
|
250
|
+
def test_syntax_file_2_3_6
|
251
|
+
syntax = Regexp::Syntax.new 'ruby/2.3.6'
|
252
|
+
|
253
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V235)
|
254
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V236)
|
255
|
+
end
|
256
|
+
|
243
257
|
def test_syntax_file_2_3_alias
|
244
258
|
syntax = Regexp::Syntax.new 'ruby/2.3'
|
245
259
|
|
246
|
-
assert syntax.kind_of?(Regexp::Syntax::Ruby::
|
260
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V236)
|
247
261
|
end
|
248
262
|
|
249
263
|
# 2.4 syntax files
|
@@ -268,9 +282,16 @@ class TestSyntaxFiles < Test::Unit::TestCase
|
|
268
282
|
assert syntax.kind_of?(Regexp::Syntax::Ruby::V242)
|
269
283
|
end
|
270
284
|
|
285
|
+
def test_syntax_file_2_4_3
|
286
|
+
syntax = Regexp::Syntax.new 'ruby/2.4.3'
|
287
|
+
|
288
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V242)
|
289
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V243)
|
290
|
+
end
|
291
|
+
|
271
292
|
def test_syntax_file_2_4_alias
|
272
293
|
syntax = Regexp::Syntax.new 'ruby/2.4'
|
273
294
|
|
274
|
-
assert syntax.kind_of?(Regexp::Syntax::Ruby::
|
295
|
+
assert syntax.kind_of?(Regexp::Syntax::Ruby::V243)
|
275
296
|
end
|
276
297
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regexp_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ammar Ali
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A library for tokenizing, lexing, and parsing Ruby regular expressions.
|
14
14
|
email:
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- lib/regexp_parser/syntax/ruby/2.2.6.rb
|
81
81
|
- lib/regexp_parser/syntax/ruby/2.2.7.rb
|
82
82
|
- lib/regexp_parser/syntax/ruby/2.2.8.rb
|
83
|
+
- lib/regexp_parser/syntax/ruby/2.2.9.rb
|
83
84
|
- lib/regexp_parser/syntax/ruby/2.2.rb
|
84
85
|
- lib/regexp_parser/syntax/ruby/2.3.0.rb
|
85
86
|
- lib/regexp_parser/syntax/ruby/2.3.1.rb
|
@@ -87,10 +88,12 @@ files:
|
|
87
88
|
- lib/regexp_parser/syntax/ruby/2.3.3.rb
|
88
89
|
- lib/regexp_parser/syntax/ruby/2.3.4.rb
|
89
90
|
- lib/regexp_parser/syntax/ruby/2.3.5.rb
|
91
|
+
- lib/regexp_parser/syntax/ruby/2.3.6.rb
|
90
92
|
- lib/regexp_parser/syntax/ruby/2.3.rb
|
91
93
|
- lib/regexp_parser/syntax/ruby/2.4.0.rb
|
92
94
|
- lib/regexp_parser/syntax/ruby/2.4.1.rb
|
93
95
|
- lib/regexp_parser/syntax/ruby/2.4.2.rb
|
96
|
+
- lib/regexp_parser/syntax/ruby/2.4.3.rb
|
94
97
|
- lib/regexp_parser/syntax/ruby/2.4.rb
|
95
98
|
- lib/regexp_parser/syntax/tokens.rb
|
96
99
|
- lib/regexp_parser/syntax/tokens/anchor.rb
|
@@ -197,73 +200,73 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
200
|
version: '0'
|
198
201
|
requirements: []
|
199
202
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.6.
|
203
|
+
rubygems_version: 2.6.14
|
201
204
|
signing_key:
|
202
205
|
specification_version: 4
|
203
206
|
summary: Scanner, lexer, parser for ruby's regular expressions
|
204
207
|
test_files:
|
205
|
-
- test/
|
206
|
-
- test/
|
207
|
-
- test/expression/test_clone.rb
|
208
|
-
- test/expression/test_conditionals.rb
|
209
|
-
- test/expression/test_free_space.rb
|
210
|
-
- test/expression/test_set.rb
|
211
|
-
- test/expression/test_strfregexp.rb
|
212
|
-
- test/expression/test_subexpression.rb
|
213
|
-
- test/expression/test_tests.rb
|
214
|
-
- test/expression/test_to_h.rb
|
215
|
-
- test/expression/test_to_s.rb
|
216
|
-
- test/expression/test_traverse.rb
|
208
|
+
- test/token/test_token.rb
|
209
|
+
- test/token/test_all.rb
|
217
210
|
- test/helpers.rb
|
218
|
-
- test/lexer/test_all.rb
|
219
|
-
- test/lexer/test_conditionals.rb
|
220
211
|
- test/lexer/test_keep.rb
|
212
|
+
- test/lexer/test_conditionals.rb
|
213
|
+
- test/lexer/test_refcalls.rb
|
221
214
|
- test/lexer/test_literals.rb
|
215
|
+
- test/lexer/test_all.rb
|
222
216
|
- test/lexer/test_nesting.rb
|
223
|
-
- test/
|
224
|
-
- test/parser/
|
217
|
+
- test/parser/test_sets.rb
|
218
|
+
- test/parser/test_properties.rb
|
219
|
+
- test/parser/test_types.rb
|
220
|
+
- test/parser/test_groups.rb
|
225
221
|
- test/parser/test_alternation.rb
|
222
|
+
- test/parser/test_free_space.rb
|
226
223
|
- test/parser/test_anchors.rb
|
227
|
-
- test/parser/test_conditionals.rb
|
228
|
-
- test/parser/test_errors.rb
|
229
224
|
- test/parser/test_escapes.rb
|
230
|
-
- test/parser/test_free_space.rb
|
231
|
-
- test/parser/test_groups.rb
|
232
|
-
- test/parser/test_keep.rb
|
233
|
-
- test/parser/test_properties.rb
|
234
225
|
- test/parser/test_quantifiers.rb
|
226
|
+
- test/parser/test_keep.rb
|
227
|
+
- test/parser/test_conditionals.rb
|
228
|
+
- test/parser/test_errors.rb
|
235
229
|
- test/parser/test_refcalls.rb
|
236
|
-
- test/parser/
|
237
|
-
- test/parser/test_types.rb
|
238
|
-
- test/scanner/test_all.rb
|
239
|
-
- test/scanner/test_anchors.rb
|
240
|
-
- test/scanner/test_conditionals.rb
|
241
|
-
- test/scanner/test_errors.rb
|
242
|
-
- test/scanner/test_escapes.rb
|
243
|
-
- test/scanner/test_free_space.rb
|
244
|
-
- test/scanner/test_groups.rb
|
245
|
-
- test/scanner/test_keep.rb
|
246
|
-
- test/scanner/test_literals.rb
|
247
|
-
- test/scanner/test_meta.rb
|
248
|
-
- test/scanner/test_properties.rb
|
249
|
-
- test/scanner/test_quantifiers.rb
|
250
|
-
- test/scanner/test_refcalls.rb
|
251
|
-
- test/scanner/test_scripts.rb
|
252
|
-
- test/scanner/test_sets.rb
|
253
|
-
- test/scanner/test_types.rb
|
254
|
-
- test/scanner/test_unicode_blocks.rb
|
230
|
+
- test/parser/test_all.rb
|
255
231
|
- test/support/disable_autotest.rb
|
256
|
-
- test/support/runner.rb
|
257
232
|
- test/support/warning_extractor.rb
|
233
|
+
- test/support/runner.rb
|
234
|
+
- test/expression/test_subexpression.rb
|
235
|
+
- test/expression/test_base.rb
|
236
|
+
- test/expression/test_free_space.rb
|
237
|
+
- test/expression/test_to_h.rb
|
238
|
+
- test/expression/test_set.rb
|
239
|
+
- test/expression/test_conditionals.rb
|
240
|
+
- test/expression/test_clone.rb
|
241
|
+
- test/expression/test_tests.rb
|
242
|
+
- test/expression/test_to_s.rb
|
243
|
+
- test/expression/test_traverse.rb
|
244
|
+
- test/expression/test_all.rb
|
245
|
+
- test/expression/test_strfregexp.rb
|
246
|
+
- test/syntax/test_syntax.rb
|
247
|
+
- test/syntax/test_all.rb
|
248
|
+
- test/syntax/ruby/test_2.0.0.rb
|
258
249
|
- test/syntax/ruby/test_1.8.rb
|
259
250
|
- test/syntax/ruby/test_1.9.1.rb
|
260
|
-
- test/syntax/ruby/
|
261
|
-
- test/syntax/ruby/test_2.0.0.rb
|
251
|
+
- test/syntax/ruby/test_files.rb
|
262
252
|
- test/syntax/ruby/test_2.2.0.rb
|
253
|
+
- test/syntax/ruby/test_1.9.3.rb
|
263
254
|
- test/syntax/ruby/test_all.rb
|
264
|
-
- test/syntax/ruby/test_files.rb
|
265
|
-
- test/syntax/test_all.rb
|
266
|
-
- test/syntax/test_syntax.rb
|
267
255
|
- test/test_all.rb
|
268
|
-
- test/
|
269
|
-
- test/
|
256
|
+
- test/scanner/test_sets.rb
|
257
|
+
- test/scanner/test_properties.rb
|
258
|
+
- test/scanner/test_scripts.rb
|
259
|
+
- test/scanner/test_types.rb
|
260
|
+
- test/scanner/test_groups.rb
|
261
|
+
- test/scanner/test_meta.rb
|
262
|
+
- test/scanner/test_free_space.rb
|
263
|
+
- test/scanner/test_anchors.rb
|
264
|
+
- test/scanner/test_escapes.rb
|
265
|
+
- test/scanner/test_unicode_blocks.rb
|
266
|
+
- test/scanner/test_quantifiers.rb
|
267
|
+
- test/scanner/test_keep.rb
|
268
|
+
- test/scanner/test_conditionals.rb
|
269
|
+
- test/scanner/test_errors.rb
|
270
|
+
- test/scanner/test_refcalls.rb
|
271
|
+
- test/scanner/test_literals.rb
|
272
|
+
- test/scanner/test_all.rb
|