ripper_ruby_parser 1.4.0 → 1.4.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f75852f6918c25ff33b1edfdd19ed7dc6e09662dd5786b37afe5cc900433db6b
|
4
|
+
data.tar.gz: 1f8b9b066b7dff6170ba7a1c0487a474314a1c67e8d5b63c3720aae4ae498775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040b94d89f959fdab917a244cea6649d27dbf1f9fa390753f09b025f6feac6778425a154592d9f252b1f60d28473865e78f6e993d6ba75658cd8d67aeed95d53
|
7
|
+
data.tar.gz: 0d947570348eb461628a027200ad456968261980925087915c9b7ec7f281ec9e789b3d9facf03090f7cecf3f879e4e7fcf1a1ff41a259fb036737d371d6a31e1
|
data/CHANGELOG.md
CHANGED
@@ -284,14 +284,6 @@ describe RipperRubyParser::Parser do
|
|
284
284
|
s(:evstr, s(:call, nil, :qux)))
|
285
285
|
end
|
286
286
|
|
287
|
-
it 'works for strings with interpolations followed by escape sequences' do
|
288
|
-
'"#{foo}\\n"'.
|
289
|
-
must_be_parsed_as s(:dstr,
|
290
|
-
'',
|
291
|
-
s(:evstr, s(:call, nil, :foo)),
|
292
|
-
s(:str, "\n"))
|
293
|
-
end
|
294
|
-
|
295
287
|
it 'works with an empty interpolation' do
|
296
288
|
"\"foo\#{}bar\"".
|
297
289
|
must_be_parsed_as s(:dstr,
|
@@ -302,6 +294,24 @@ describe RipperRubyParser::Parser do
|
|
302
294
|
end
|
303
295
|
end
|
304
296
|
|
297
|
+
describe 'with interpolations and escape sequences' do
|
298
|
+
it 'works when interpolations are followed by escape sequences' do
|
299
|
+
'"#{foo}\\n"'.
|
300
|
+
must_be_parsed_as s(:dstr,
|
301
|
+
'',
|
302
|
+
s(:evstr, s(:call, nil, :foo)),
|
303
|
+
s(:str, "\n"))
|
304
|
+
end
|
305
|
+
|
306
|
+
it 'works when interpolations contain a mix of other string-like literals' do
|
307
|
+
'"#{[:foo, \'bar\']}\\n"'.
|
308
|
+
must_be_parsed_as s(:dstr,
|
309
|
+
'',
|
310
|
+
s(:evstr, s(:array, s(:lit, :foo), s(:str, 'bar'))),
|
311
|
+
s(:str, "\n"))
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
305
315
|
describe 'with single quoted strings' do
|
306
316
|
it 'works with escaped single quotes' do
|
307
317
|
"'foo\\'bar'".
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripper_ruby_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sexp_processor
|