regexp_parser 0.4.4 → 0.4.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0604ea42bc410c25f4c37a0ef234ae2dd049d0f4
4
- data.tar.gz: 802cdea5c8a5b1180f2fca0f05cf86f74fc5568d
3
+ metadata.gz: 40efa39d5722d426021e0ad2bf6b4780de962030
4
+ data.tar.gz: add0a1e239dc054a8645f2fff0d6a4c416b06c2d
5
5
  SHA512:
6
- metadata.gz: c61e8870e3393345cfaf0edebb9e97119789ef4ce9ff276246824de06ea91cc44bf60d2e3c7efbcb0caddf0cac73c8f1434b8b0d57fcdeda630fda4680f71aee
7
- data.tar.gz: 8321f1f1547b455df46689f8eb6e3f9d3ba81b6c6203f9bf5d353eec6e1206189e8a6fff851027167701d6599f5e227dc09c35c071dd465a41a83f3b981a5745
6
+ metadata.gz: faa96f4064bca1e85e6f74c238b51d78e85690fd79f7cef6ac49121bbd47574d5770c31f23d0ab10932f989233f3d4b3bb4dfc1a366a207291fac96ec9064a93
7
+ data.tar.gz: aab21e4149172afddc06a1798a7f6be16d4ad0bd5d532c4a34dcfe81fa79b4ff08b241ea5b0f0095a188a0bd1dffc8169a17b53ef68699aa973951aa7ee43efd
data/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ Sun Sep 17 2017 Ammar Ali <ammarabuali@gmail.com>
2
+
3
+ * Thanks to Janosch Müller (https://github.com/janosch-x):
4
+ - Support ruby 2.2.7 (PR #42)
5
+ * Added ruby version files for 2.2.8, 2.3.5, and 2.4.2
6
+ * Bumped version to 0.4.5
7
+
1
8
  Mon Jul 10 2017 Ammar Ali <ammarabuali@gmail.com>
2
9
 
3
10
  * Thanks to Janosch Müller (https://github.com/janosch-x):
@@ -16,7 +16,7 @@ module Regexp::Syntax
16
16
 
17
17
  class UnknownSyntaxNameError < SyntaxError
18
18
  def initialize(name)
19
- super "Unknown syntax name '#{name}'. Forgot to add it in the case statement?"
19
+ super "Unknown syntax name '#{name}'. Forgot to add it to Regexp::Syntax::VERSIONS?"
20
20
  end
21
21
  end
22
22
 
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../2.2.6', __FILE__)
2
+
3
+ module Regexp::Syntax
4
+ module Ruby
5
+
6
+ class V227 < Regexp::Syntax::Ruby::V226
7
+ def initialize
8
+ super
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../2.2.7', __FILE__)
2
+
3
+ module Regexp::Syntax
4
+ module Ruby
5
+
6
+ class V228 < Regexp::Syntax::Ruby::V227
7
+ def initialize
8
+ super
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -1,8 +1,8 @@
1
- require File.expand_path('../2.2.6', __FILE__)
1
+ require File.expand_path('../2.2.8', __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::V226; end
6
+ class V22 < Regexp::Syntax::Ruby::V228; end
7
7
  end
8
8
  end
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../2.3.4', __FILE__)
2
+
3
+ module Regexp::Syntax
4
+ module Ruby
5
+
6
+ class V235 < Regexp::Syntax::Ruby::V234
7
+ def initialize
8
+ super
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -1,8 +1,8 @@
1
- require File.expand_path('../2.3.4', __FILE__)
1
+ require File.expand_path('../2.3.5', __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::V234; end
6
+ class V23 < Regexp::Syntax::Ruby::V235; end
7
7
  end
8
8
  end
@@ -0,0 +1,13 @@
1
+ require File.expand_path('../2.4.1', __FILE__)
2
+
3
+ module Regexp::Syntax
4
+ module Ruby
5
+
6
+ class V242 < Regexp::Syntax::Ruby::V241
7
+ def initialize
8
+ super
9
+ end
10
+ end
11
+
12
+ end
13
+ end
@@ -1,8 +1,8 @@
1
- require File.expand_path('../2.4.1', __FILE__)
1
+ require File.expand_path('../2.4.2', __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::V241; end
6
+ class V24 < Regexp::Syntax::Ruby::V242; end
7
7
  end
8
8
  end
@@ -46,6 +46,8 @@ module Regexp::Syntax
46
46
  'ruby/2.2.4',
47
47
  'ruby/2.2.5',
48
48
  'ruby/2.2.6',
49
+ 'ruby/2.2.7',
50
+ 'ruby/2.2.8',
49
51
 
50
52
  # alias for the latest 2.2 implementations
51
53
  'ruby/2.2',
@@ -56,6 +58,7 @@ module Regexp::Syntax
56
58
  'ruby/2.3.2',
57
59
  'ruby/2.3.3',
58
60
  'ruby/2.3.4',
61
+ 'ruby/2.3.5',
59
62
 
60
63
  # alias for the latest 2.3 implementation
61
64
  'ruby/2.3',
@@ -63,6 +66,7 @@ module Regexp::Syntax
63
66
  # Ruby 2.4.x
64
67
  'ruby/2.4.0',
65
68
  'ruby/2.4.1',
69
+ 'ruby/2.4.2',
66
70
 
67
71
  # alias for the latest 2.4 implementation
68
72
  'ruby/2.4',
@@ -1,5 +1,5 @@
1
1
  class Regexp
2
2
  module Parser
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  end
@@ -177,10 +177,24 @@ class TestSyntaxFiles < Test::Unit::TestCase
177
177
  assert syntax.kind_of?(Regexp::Syntax::Ruby::V226)
178
178
  end
179
179
 
180
+ def test_syntax_file_2_2_7
181
+ syntax = Regexp::Syntax.new 'ruby/2.2.7'
182
+
183
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V226)
184
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V227)
185
+ end
186
+
187
+ def test_syntax_file_2_2_8
188
+ syntax = Regexp::Syntax.new 'ruby/2.2.8'
189
+
190
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V227)
191
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V228)
192
+ end
193
+
180
194
  def test_syntax_file_2_2_alias
181
195
  syntax = Regexp::Syntax.new 'ruby/2.2'
182
196
 
183
- assert syntax.kind_of?(Regexp::Syntax::Ruby::V226)
197
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V228)
184
198
  end
185
199
 
186
200
  # 2.3 syntax files
@@ -219,10 +233,17 @@ class TestSyntaxFiles < Test::Unit::TestCase
219
233
  assert syntax.kind_of?(Regexp::Syntax::Ruby::V234)
220
234
  end
221
235
 
236
+ def test_syntax_file_2_3_5
237
+ syntax = Regexp::Syntax.new 'ruby/2.3.5'
238
+
239
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V234)
240
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V235)
241
+ end
242
+
222
243
  def test_syntax_file_2_3_alias
223
244
  syntax = Regexp::Syntax.new 'ruby/2.3'
224
245
 
225
- assert syntax.kind_of?(Regexp::Syntax::Ruby::V234)
246
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V235)
226
247
  end
227
248
 
228
249
  # 2.4 syntax files
@@ -240,9 +261,16 @@ class TestSyntaxFiles < Test::Unit::TestCase
240
261
  assert syntax.kind_of?(Regexp::Syntax::Ruby::V241)
241
262
  end
242
263
 
264
+ def test_syntax_file_2_4_2
265
+ syntax = Regexp::Syntax.new 'ruby/2.4.2'
266
+
267
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V241)
268
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V242)
269
+ end
270
+
243
271
  def test_syntax_file_2_4_alias
244
272
  syntax = Regexp::Syntax.new 'ruby/2.4'
245
273
 
246
- assert syntax.kind_of?(Regexp::Syntax::Ruby::V241)
274
+ assert syntax.kind_of?(Regexp::Syntax::Ruby::V242)
247
275
  end
248
276
  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
4
+ version: 0.4.5
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-07-10 00:00:00.000000000 Z
11
+ date: 2017-09-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for tokenizing, lexing, and parsing Ruby regular expressions.
14
14
  email:
@@ -78,15 +78,19 @@ files:
78
78
  - lib/regexp_parser/syntax/ruby/2.2.4.rb
79
79
  - lib/regexp_parser/syntax/ruby/2.2.5.rb
80
80
  - lib/regexp_parser/syntax/ruby/2.2.6.rb
81
+ - lib/regexp_parser/syntax/ruby/2.2.7.rb
82
+ - lib/regexp_parser/syntax/ruby/2.2.8.rb
81
83
  - lib/regexp_parser/syntax/ruby/2.2.rb
82
84
  - lib/regexp_parser/syntax/ruby/2.3.0.rb
83
85
  - lib/regexp_parser/syntax/ruby/2.3.1.rb
84
86
  - lib/regexp_parser/syntax/ruby/2.3.2.rb
85
87
  - lib/regexp_parser/syntax/ruby/2.3.3.rb
86
88
  - lib/regexp_parser/syntax/ruby/2.3.4.rb
89
+ - lib/regexp_parser/syntax/ruby/2.3.5.rb
87
90
  - lib/regexp_parser/syntax/ruby/2.3.rb
88
91
  - lib/regexp_parser/syntax/ruby/2.4.0.rb
89
92
  - lib/regexp_parser/syntax/ruby/2.4.1.rb
93
+ - lib/regexp_parser/syntax/ruby/2.4.2.rb
90
94
  - lib/regexp_parser/syntax/ruby/2.4.rb
91
95
  - lib/regexp_parser/syntax/tokens.rb
92
96
  - lib/regexp_parser/syntax/tokens/anchor.rb
@@ -193,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
197
  version: '0'
194
198
  requirements: []
195
199
  rubyforge_project:
196
- rubygems_version: 2.6.11
200
+ rubygems_version: 2.6.13
197
201
  signing_key:
198
202
  specification_version: 4
199
203
  summary: Scanner, lexer, parser for ruby's regular expressions