sexp_processor 4.4.2 → 4.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/pt_testcase.rb +29 -17
- data/lib/sexp_processor.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c847159418199e0c96895e23b28368b141320f9
|
4
|
+
data.tar.gz: b19be09f312410655b8b3ed8feeb85990d8d0e6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f401eb92711cbed3f4227eb4c133442862d1eb8ef888fa64d87805dea7e80bf4b0cad4d9bad06bb80f3568ccfb8da3c8f1f320f474c7da77747dfa5afc3664a5
|
7
|
+
data.tar.gz: b94d88a84a4aa15fc10eddb4a0c3f7aca5189696e235ff9c3ef6d6115e0d8707178368830aebf925a7723c6ed860b873fe53ca3e4ac809f187c3b7f47ff66b28
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/pt_testcase.rb
CHANGED
@@ -356,7 +356,7 @@ class ParseTreeTestCase < Minitest::Test
|
|
356
356
|
###
|
357
357
|
# 1.9 specific tests
|
358
358
|
|
359
|
-
add_19edgecases("lambda { (x + 1) }",
|
359
|
+
add_19edgecases("lambda { || (x + 1) }",
|
360
360
|
s(:iter,
|
361
361
|
s(:call, nil, :lambda),
|
362
362
|
0,
|
@@ -393,7 +393,8 @@ class ParseTreeTestCase < Minitest::Test
|
|
393
393
|
s(:lit, :a),
|
394
394
|
s(:hash,
|
395
395
|
s(:lit, :b),
|
396
|
-
s(:lit, :c)))
|
396
|
+
s(:lit, :c))),
|
397
|
+
"Ruby2Ruby" => "[:a, { :b => :c }]")
|
397
398
|
|
398
399
|
add_19tests("array_bare_hash_labels",
|
399
400
|
"Ruby" => "[:a, b: :c]",
|
@@ -401,7 +402,8 @@ class ParseTreeTestCase < Minitest::Test
|
|
401
402
|
s(:lit, :a),
|
402
403
|
s(:hash,
|
403
404
|
s(:lit, :b),
|
404
|
-
s(:lit, :c)))
|
405
|
+
s(:lit, :c))),
|
406
|
+
"Ruby2Ruby" => "[:a, { :b => :c }]")
|
405
407
|
|
406
408
|
add_19tests("call_arglist_norm_hash_colons",
|
407
409
|
"Ruby" => "o.m(42, a: 1, b: 2)",
|
@@ -411,14 +413,16 @@ class ParseTreeTestCase < Minitest::Test
|
|
411
413
|
s(:lit, 42),
|
412
414
|
s(:hash,
|
413
415
|
s(:lit, :a), s(:lit, 1),
|
414
|
-
s(:lit, :b), s(:lit, 2)))
|
416
|
+
s(:lit, :b), s(:lit, 2))),
|
417
|
+
"Ruby2Ruby" => "o.m(42, :a => 1, :b => 2)")
|
415
418
|
|
416
419
|
add_19tests("call_arglist_trailing_comma",
|
417
|
-
|
420
|
+
"Ruby" => "a(1,2,3,)",
|
418
421
|
"ParseTree" => s(:call,
|
419
422
|
nil,
|
420
423
|
:a,
|
421
|
-
s(:lit, 1), s(:lit, 2), s(:lit, 3))
|
424
|
+
s(:lit, 1), s(:lit, 2), s(:lit, 3)),
|
425
|
+
"Ruby2Ruby" => "a(1, 2, 3)")
|
422
426
|
|
423
427
|
add_19tests("call_bang",
|
424
428
|
"Ruby" => "!a",
|
@@ -432,11 +436,13 @@ class ParseTreeTestCase < Minitest::Test
|
|
432
436
|
|
433
437
|
add_19tests("call_fonz",
|
434
438
|
"Ruby" => "a.()",
|
435
|
-
"ParseTree" => s(:call, s(:call, nil, :a), :call)
|
439
|
+
"ParseTree" => s(:call, s(:call, nil, :a), :call),
|
440
|
+
"Ruby2Ruby" => "a.call")
|
436
441
|
|
437
442
|
add_19tests("call_fonz_cm",
|
438
443
|
"Ruby" => "a::()",
|
439
|
-
"ParseTree" => s(:call, s(:call, nil, :a), :call)
|
444
|
+
"ParseTree" => s(:call, s(:call, nil, :a), :call),
|
445
|
+
"Ruby2Ruby" => "a.call")
|
440
446
|
|
441
447
|
add_19tests("call_not",
|
442
448
|
"Ruby" => "not (42)",
|
@@ -454,7 +460,7 @@ class ParseTreeTestCase < Minitest::Test
|
|
454
460
|
s(:call, nil, :b)))
|
455
461
|
|
456
462
|
add_19tests("call_splat_mid",
|
457
|
-
"Ruby" => "def f(a = nil, *b, c)
|
463
|
+
"Ruby" => "def f(a = nil, *b, c)\n # do nothing\nend",
|
458
464
|
"ParseTree" => s(:defn, :f,
|
459
465
|
s(:args, s(:lasgn, :a, s(:nil)), :"*b", :c),
|
460
466
|
s(:nil)))
|
@@ -500,25 +506,29 @@ class ParseTreeTestCase < Minitest::Test
|
|
500
506
|
"ParseTree" => s(:call, nil, :m,
|
501
507
|
s(:hash,
|
502
508
|
s(:lit, :a), s(:lit, 1),
|
503
|
-
s(:lit, :b), s(:lit, 2)))
|
509
|
+
s(:lit, :b), s(:lit, 2))),
|
510
|
+
"Ruby2Ruby" => "m(:a => 1, :b => 2)")
|
504
511
|
|
505
512
|
add_19tests("hash_new",
|
506
513
|
"Ruby" => "{ a: 1, b: 2 }",
|
507
514
|
"ParseTree" => s(:hash,
|
508
515
|
s(:lit, :a), s(:lit, 1),
|
509
|
-
s(:lit, :b), s(:lit, 2))
|
516
|
+
s(:lit, :b), s(:lit, 2)),
|
517
|
+
"Ruby2Ruby" => "{ :a => 1, :b => 2 }")
|
510
518
|
|
511
519
|
add_19tests("hash_new_no_space",
|
512
520
|
"Ruby" => "{a:1,b:2}",
|
513
521
|
"ParseTree" => s(:hash,
|
514
522
|
s(:lit, :a), s(:lit, 1),
|
515
|
-
s(:lit, :b), s(:lit, 2))
|
523
|
+
s(:lit, :b), s(:lit, 2)),
|
524
|
+
"Ruby2Ruby" => "{ :a => 1, :b => 2 }")
|
516
525
|
|
517
526
|
add_19tests("hash_new_with_keyword",
|
518
527
|
"Ruby" => "{ true: 1, b: 2 }",
|
519
528
|
"ParseTree" => s(:hash,
|
520
529
|
s(:lit, :true), s(:lit, 1),
|
521
|
-
s(:lit, :b), s(:lit, 2))
|
530
|
+
s(:lit, :b), s(:lit, 2)),
|
531
|
+
"Ruby2Ruby" => "{ :true => 1, :b => 2 }")
|
522
532
|
|
523
533
|
add_19tests("if_post_not",
|
524
534
|
"Ruby" => "a if not b",
|
@@ -535,19 +545,21 @@ class ParseTreeTestCase < Minitest::Test
|
|
535
545
|
"Ruby2Ruby" => "a unless b")
|
536
546
|
|
537
547
|
add_19tests("label_in_bare_hash_in_array_in_ternary",
|
538
|
-
|
548
|
+
"Ruby" => "1 ? [:a, b: 2] : 1",
|
539
549
|
"ParseTree" => s(:if, s(:lit, 1),
|
540
550
|
s(:array,
|
541
551
|
s(:lit, :a),
|
542
552
|
s(:hash, s(:lit, :b), s(:lit, 2))),
|
543
|
-
s(:lit, 1))
|
553
|
+
s(:lit, 1)),
|
554
|
+
"Ruby2Ruby" => "1 ? ([:a, { :b => 2 }]) : (1)")
|
544
555
|
|
545
556
|
add_19tests("label_in_callargs_in_ternary",
|
546
|
-
|
557
|
+
"Ruby" => "1 ? m(a: 2) : 1",
|
547
558
|
"ParseTree" => s(:if, s(:lit, 1),
|
548
559
|
s(:call, nil, :m,
|
549
560
|
s(:hash, s(:lit, :a), s(:lit, 2))),
|
550
|
-
s(:lit, 1))
|
561
|
+
s(:lit, 1)),
|
562
|
+
"Ruby2Ruby" => "1 ? (m(:a => 2)) : (1)")
|
551
563
|
|
552
564
|
add_19tests("not",
|
553
565
|
"Ruby" => "(not true)",
|
data/lib/sexp_processor.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sexp_processor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
30
30
|
xx3n58i0lQkBE1EpKE0lFu/y
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-03-
|
32
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: minitest
|
@@ -65,14 +65,14 @@ dependencies:
|
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.9'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '3.
|
75
|
+
version: '3.9'
|
76
76
|
description: |-
|
77
77
|
sexp_processor branches from ParseTree bringing all the generic sexp
|
78
78
|
processing tools with it. Sexp, SexpProcessor, Environment, etc... all
|
@@ -86,6 +86,7 @@ extra_rdoc_files:
|
|
86
86
|
- Manifest.txt
|
87
87
|
- README.txt
|
88
88
|
files:
|
89
|
+
- .gemtest
|
89
90
|
- History.txt
|
90
91
|
- Manifest.txt
|
91
92
|
- README.txt
|
@@ -99,7 +100,6 @@ files:
|
|
99
100
|
- test/test_environment.rb
|
100
101
|
- test/test_sexp.rb
|
101
102
|
- test/test_sexp_processor.rb
|
102
|
-
- .gemtest
|
103
103
|
homepage: https://github.com/seattlerb/sexp_processor
|
104
104
|
licenses:
|
105
105
|
- MIT
|
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
124
|
+
rubyforge_project: sexp_processor
|
125
|
+
rubygems_version: 2.2.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
|
metadata.gz.sig
CHANGED
Binary file
|