parser 2.2.2.5 → 2.2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/parser/current.rb +1 -0
- data/lib/parser/lexer.rl +1 -1
- data/lib/parser/version.rb +1 -1
- data/test/test_parser.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 864d24da6c6936935fa44791e2135ede616c27f1
|
4
|
+
data.tar.gz: 2acd99c70f1ae55be305451d0669399c12b23427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a43d1e290f527a7d25b344483cf46ebb5cd32bc64b2f033579bb6925d0cdb6510b348eb400119f3ae6411f6d56b7ee411f05f2e0b0b4687a83aeb13be8595e00
|
7
|
+
data.tar.gz: 5a20d4f2725b79d78ccb3a508b92d9efab5727eb7bf5d3b97679dde3df61c735e84b101573ccf9b863bd3fb3b2906fd43d83aef6f45cc41e33cfb08706b1614b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
v2.2.2.6 (2015-06-30)
|
5
|
+
---------------------
|
6
|
+
|
7
|
+
API modifications:
|
8
|
+
* parser/current: link to README from syntax deviation warning. (whitequark)
|
9
|
+
|
10
|
+
Bugs fixed:
|
11
|
+
* lexer.rl: "[/()\\1/, ?#]": fixes #198. (whitequark)
|
12
|
+
|
4
13
|
v2.2.2.5 (2015-05-25)
|
5
14
|
---------------------
|
6
15
|
|
data/lib/parser/current.rb
CHANGED
@@ -3,6 +3,7 @@ module Parser
|
|
3
3
|
def warn_syntax_deviation(feature, version)
|
4
4
|
warn "warning: parser/current is loading #{feature}, which recognizes"
|
5
5
|
warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}."
|
6
|
+
warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
|
6
7
|
end
|
7
8
|
private :warn_syntax_deviation
|
8
9
|
end
|
data/lib/parser/lexer.rl
CHANGED
data/lib/parser/version.rb
CHANGED
data/test/test_parser.rb
CHANGED
@@ -4938,6 +4938,18 @@ class TestParser < Minitest::Test
|
|
4938
4938
|
ALL_VERSIONS - %w(1.8 1.9 2.0))
|
4939
4939
|
end
|
4940
4940
|
|
4941
|
+
def test_parser_bug_198
|
4942
|
+
assert_parses(
|
4943
|
+
s(:array,
|
4944
|
+
s(:regexp,
|
4945
|
+
s(:str, "()\\1"),
|
4946
|
+
s(:regopt)),
|
4947
|
+
s(:str, "#")),
|
4948
|
+
%q{[/()\\1/, ?#]},
|
4949
|
+
%q{},
|
4950
|
+
ALL_VERSIONS - %w(1.8))
|
4951
|
+
end
|
4952
|
+
|
4941
4953
|
def test_bug_lambda_leakage
|
4942
4954
|
assert_parses(
|
4943
4955
|
s(:begin,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.2.
|
4
|
+
version: 2.2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zotov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|