parser 2.2.2.0 → 2.2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a35b8178ac334f461c64c7736dde0cc0425a63f
4
- data.tar.gz: 186d46a80c5034ea3e65ab1971e11e73289f50b5
3
+ metadata.gz: 918d40074c3300d2fa2d060cabb74a87dbd20974
4
+ data.tar.gz: a9c8f078d218c36abdbfdbea05a45214016c061d
5
5
  SHA512:
6
- metadata.gz: 5571daf660bba05e3c2178ec93b82eb5110080ee0769c4da19a29d63da142ba71781a262a8619eb1aaacc1e0e832362d0b532180bfbcc7322e7376228a671e26
7
- data.tar.gz: 78065b278c6f5fd913c5bf0e9a7f3374194d1c3b029edde356448a7350cfecd5e498c5c847873c9aa45bf005a03db7d1433f3e5048028ea92fe0d10974b50420
6
+ metadata.gz: e4398ec85496d00494993e3a8246eb612b4c0531574cb4e4d5d08e7e5b3afc4bbb4da1c7d76e05714f324c8dd1a49cbc9bc5a0222e97e078421b19dccf4106f2
7
+ data.tar.gz: 6fa7af3a14f737508a75eb763dd6975bf2f6dfd51da35b74d1b00f0a0b805c170933cec74f462e9b66bc8ec0b60b802575ac38d75587f7adec578ab6dab3e531
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v2.2.2.1 (2015-04-17)
5
+ ---------------------
6
+
7
+ Bugs fixed:
8
+ * builders/default: don't falsely diagnose multiline regexps (fixes #190). (whitequark)
9
+
4
10
  v2.2.0.4 (2015-04-15)
5
11
  ---------------------
6
12
 
@@ -1406,7 +1406,7 @@ module Parser
1406
1406
  end
1407
1407
  end
1408
1408
 
1409
- Regexp.new(source)
1409
+ Regexp.new(source, (Regexp::EXTENDED if options.children.include?(:x)))
1410
1410
  end
1411
1411
 
1412
1412
  def static_regexp_node(node)
@@ -1,3 +1,3 @@
1
1
  module Parser
2
- VERSION = '2.2.2.0'
2
+ VERSION = '2.2.2.1'
3
3
  end
@@ -4950,4 +4950,10 @@ class TestParser < Minitest::Test
4950
4950
  %q{},
4951
4951
  ALL_VERSIONS - %w(1.8))
4952
4952
  end
4953
+
4954
+ def test_bug_regex_verification
4955
+ assert_parses(
4956
+ s(:regexp, s(:str, "#)"), s(:regopt, :x)),
4957
+ %Q{/#)/x})
4958
+ end
4953
4959
  end
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.0
4
+ version: 2.2.2.1
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-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ast